Paws::DynamoDB::UpdateTable - Arguments for method UpdateTable on Paws::DynamoDB
This class represents the parameters used for calling the method UpdateTable on the Amazon DynamoDB service. Use the attributes of this class as arguments to method UpdateTable.
You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateTable.
my $dynamodb = Paws->service('DynamoDB'); # To modify a table's provisioned throughput # This example increases the provisioned read and write capacity on the Music # table. my $UpdateTableOutput = $dynamodb->UpdateTable( 'ProvisionedThroughput' => { 'ReadCapacityUnits' => 10, 'WriteCapacityUnits' => 10 }, 'TableName' => 'MusicCollection' ); # Results: my $TableDescription = $UpdateTableOutput->TableDescription; # Returns a L<Paws::DynamoDB::UpdateTableOutput> object.
Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see https://docs.aws.amazon.com/goto/WebAPI/dynamodb/UpdateTable
An array of attributes that describe the key schema for the table and indexes. If you are adding a new global secondary index to the table, AttributeDefinitions must include the key element(s) of the new index.
AttributeDefinitions
Controls how you are charged for read and write throughput and how you manage capacity. When switching from pay-per-request to provisioned capacity, initial provisioned capacity values must be set. The initial provisioned capacity values are estimated based on the consumed read and write capacity of your table and global secondary indexes over the past 30 minutes.
PROVISIONED - We recommend using PROVISIONED for predictable workloads. PROVISIONED sets the billing mode to Provisioned Mode (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.ReadWriteCapacityMode.html#HowItWorks.ProvisionedThroughput.Manual).
PROVISIONED
PAY_PER_REQUEST - We recommend using PAY_PER_REQUEST for unpredictable workloads. PAY_PER_REQUEST sets the billing mode to On-Demand Mode (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.ReadWriteCapacityMode.html#HowItWorks.OnDemand).
PAY_PER_REQUEST
Valid values are: "PROVISIONED", "PAY_PER_REQUEST"
"PROVISIONED"
"PAY_PER_REQUEST"
An array of one or more global secondary indexes for the table. For each index in the array, you can request one action:
Create - add a new global secondary index to the table.
Create
Update - modify the provisioned throughput settings of an existing global secondary index.
Update
Delete - remove a global secondary index from the table.
Delete
You can create or delete only one global secondary index per UpdateTable operation.
UpdateTable
For more information, see Managing Global Secondary Indexes (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GSI.OnlineOps.html) in the Amazon DynamoDB Developer Guide.
The new provisioned throughput settings for the specified table or index.
A list of replica update actions (create, delete, or update) for the table.
This property only applies to Version 2019.11.21 (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/globaltables.V2.html) of global tables.
The new server-side encryption settings for the specified table.
Represents the DynamoDB Streams configuration for the table.
You receive a ResourceInUseException if you try to enable a stream on a table that already has a stream, or if you try to disable a stream on a table that doesn't have a stream.
ResourceInUseException
The name of the table to be updated.
This class forms part of Paws, documenting arguments for method UpdateTable in Paws::DynamoDB
The source code is located here: https://github.com/pplu/aws-sdk-perl
Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
To install Paws, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Paws
CPAN shell
perl -MCPAN -e shell install Paws
For more information on module installation, please visit the detailed CPAN module installation guide.