Container for the parameters to the UpdateTable operation.
Updates the provisioned throughput for the given table.
Setting the throughput for a table helps you manage performance and is part of the Provisioned Throughput feature of Amazon DynamoDB.
Declaration Syntax
C# |
public class UpdateTableRequest : AmazonWebServiceRequest
Members
All Members | Constructors | Methods | Properties | ||
Icon | Member | Description |
---|---|---|
UpdateTableRequest()()()() | Initializes a new instance of the UpdateTableRequest class | |
Equals(Object) | (Inherited from Object.) | |
GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType()()()() | Gets the type of the current instance. (Inherited from Object.) | |
ProvisionedThroughput |
Provisioned throughput reserves the required read and write resources for your table in terms of ReadCapacityUnits and
WriteCapacityUnits. Values for provisioned throughput depend upon your expected read/write rates, item size, and consistency. Provide
the expected number of read and write operations, assuming an item size of 1k and strictly consistent reads. For 2k item size, double the
value. For 3k, triple the value, etc. Eventually-consistent reads consume half the resources of strictly consistent reads.
| |
TableName |
The name of the table you want to update. Allowed characters are a-z, A-Z, 0-9, _ (underscore), -
(hyphen) and . (period).
Constraints: | |
ToString()()()() | Returns a string that represents the current object. (Inherited from Object.) | |
WithProvisionedThroughput(ProvisionedThroughput) | Obsolete.
Sets the ProvisionedThroughput property
| |
WithTableName(String) | Obsolete.
Sets the TableName property
|
Examples
This example shows how to update the throughput settings of a table. New throughput will be 40 ReadCapacityUnits and 50 WriteCapacityUnits.
CopyUpdateTable sample
// Create a client AmazonDynamoDBClient client = new AmazonDynamoDBClient(); // Define new table throughput: // Table will now have capacity of 40 reads and 50 writes ProvisionedThroughput throughput = new ProvisionedThroughput { ReadCapacityUnits = 40, WriteCapacityUnits = 50 }; // Compose the UpdateTable request UpdateTableRequest request = new UpdateTableRequest { TableName = "SampleTable", ProvisionedThroughput = throughput }; // View new table properties TableDescription tableDescription = client.UpdateTable(request).UpdateTableResult.TableDescription; Console.WriteLine("Table name: {0}", tableDescription.TableName); Console.WriteLine("Throughput: Reads = {0}, Writes = {1}", tableDescription.ProvisionedThroughput.ReadCapacityUnits, tableDescription.ProvisionedThroughput.WriteCapacityUnits);
Inheritance Hierarchy
Object | ||
AmazonWebServiceRequest | ||
UpdateTableRequest |
See Also