Ejemplo n.º 1
0
 public async Task CreateChangeTableForApp(Guid appId)
 {
     await DynamoDBClient.CreateTableAsync(
         GetChangeTableName(appId),
         new List <KeySchemaElement>()
     {
         new KeySchemaElement()
         {
             KeyType       = KeyType.HASH,
             AttributeName = nameof(Change.Group),
         },
         new KeySchemaElement()
         {
             KeyType       = KeyType.RANGE,
             AttributeName = nameof(Change.Tidemark),
         }
     },
         new List <AttributeDefinition>()
     {
         new AttributeDefinition()
         {
             AttributeName = nameof(Change.Group),
             AttributeType = ScalarAttributeType.S,
         },
         new AttributeDefinition()
         {
             AttributeName = nameof(Change.Tidemark),
             AttributeType = ScalarAttributeType.N,
         }
     },
         new ProvisionedThroughput()
     {
         ReadCapacityUnits = 1, WriteCapacityUnits = 1
     });
 }