def pformat(self, consumed_capacity=None):
consumed_capacity = consumed_capacity or {}<EOL>lines = []<EOL>parts = ["<STR_LIT>", self.index_type, "<STR_LIT>", self.name]<EOL>if self.status != "<STR_LIT>":<EOL><INDENT>parts.insert(<NUM_LIT:0>, "<STR_LIT>" % self.status)<EOL><DEDENT>lines.append("<STR_LIT:U+0020>".join(parts))<EOL>lines.append("<STR_LIT>".format(self.item_count, self.size))<EOL>read = "<STR_LIT>" + format_throughput(<EOL>self.read_throughput, consumed_capacity.get("<STR_LIT>")<EOL>)<EOL>write = "<STR_LIT>" + format_throughput(<EOL>self.write_throughput, consumed_capacity.get("<STR_LIT>")<EOL>)<EOL>lines.append("<STR_LIT:U+0020>" + read + "<STR_LIT:U+0020>" + write)<EOL>lines.append("<STR_LIT:U+0020>" + self.hash_key.schema)<EOL>if self.range_key is not None:<EOL><INDENT>lines.append("<STR_LIT:U+0020>" + self.range_key.schema)<EOL><DEDENT>if self.includes is not None:<EOL><INDENT>keys = "<STR_LIT>" % "<STR_LIT:U+002CU+0020>".join(("<STR_LIT>" % i for i in self.includes))<EOL>lines.append("<STR_LIT>" % keys)<EOL><DEDENT>return "<STR_LIT:\n>".join(lines)<EOL>
Pretty format for insertion into table pformat