Update Time To Live
POST {{aws_dynamodb_base_url}}/?Action=UpdateTimeToLive
The UpdateTimeToLive method enables or disables Time to Live (TTL) for the specified table. A successful UpdateTimeToLive call returns the current TimeToLiveSpecification. It can take up to one hour for the change to fully process. Any additional UpdateTimeToLive calls for the same table during this one hour duration result in a ValidationException.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
Action | string | The name of the table to be configured. |
Request Body
{"TableName"=>"Thread", "TimeToLiveSpecification"=>{"AttributeName"=>"string", "Enabled"=>1}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-Amz-Target | string | ||
Content-Type | string |
RESPONSES
status: OK
{"AccountMaxReadCapacityUnits":80000,"AccountMaxWriteCapacityUnits":80000,"TableMaxReadCapacityUnits":40000,"TableMaxWriteCapacityUnits":40000}