Database Reference
In-Depth Information
new KeySchemaElement
{
AttributeName = "yop",
KeyType = "RANGE"
}
},
// Create provision throughput settings
ProvisionedThroughput = new ProvisionedThroughput
{
ReadCapacityUnits = 10,
WriteCapacityUnits = 10
},
TableName = "Book"
};
// Invoke CreateTable method
var response =
dynamoDBClient.CreateTable(createTableRequest);
Update table
Just like creating a table, you can also update the already created table; DynamoDB al-
lows us to only update the provision throughput and global secondary index configura-
tions:
// Create instance of updateTableRequest
var udpateTableRequest = new UpdateTableRequest()
{
TableName = "Book",
// Create provision throughput instance with updated read
and write units
ProvisionedThroughput = new ProvisionedThroughput()
{
ReadCapacityUnits = 30,
WriteCapacityUnits = 30
}
};
Search WWH ::




Custom Search