InitializeTable(string, List<KeySchemaElement>, List<AttributeDefinition>, List<GlobalSecondaryIndex>, string?, CancellationToken)
public Task InitializeTable(string tableName, List<KeySchemaElement> keys, List<AttributeDefinition> attributes, List<GlobalSecondaryIndex>? secondaryIndexes = null, string? ttlAttributeName = null, CancellationToken cancellationToken = default(CancellationToken)) Create a DynamoDB table if it doesn't exist
Parameters
tableNamestring- The name of the table
keysList<KeySchemaElement>- The keys definitions
attributesList<AttributeDefinition>- The attributes used on the key definition
secondaryIndexesList<GlobalSecondaryIndex>- (optional) The secondary index definitions
ttlAttributeNamestring?- (optional) The name of the item attribute that indicates the item TTL (if null, ttl won't be enabled)
cancellationTokenCancellationToken- The cancellation token.
