コード例 #1
0
 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
コード例 #2
0
 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
コード例 #3
0
ファイル: infra.py プロジェクト: bbc/localstack
 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