def handle(table): if re.match(filter, table): details = cmd_dynamodb('describe-table --table-name %s' % table, env) details = json.loads(details)['Table'] arn = details['TableArn'] db = DynamoDB(arn) db.count = details['ItemCount'] db.bytes = details['TableSizeBytes'] db.created_at = details['CreationDateTime'] result.append(db) pool[arn] = db
def handle(table): if re.match(filter, table): details = dynamodb_client.describe_table(TableName=table) details = details['Table'] arn = details['TableArn'] db = DynamoDB(arn) db.count = details['ItemCount'] db.bytes = details['TableSizeBytes'] db.created_at = details['CreationDateTime'] result.append(db) pool[arn] = db