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

KeyDatatypeRequiredDescription
ActionstringThe name of the table to be configured.

Request Body

{"TableName"=>"Thread", "TimeToLiveSpecification"=>{"AttributeName"=>"string", "Enabled"=>1}}

HEADERS

KeyDatatypeRequiredDescription
X-Amz-Targetstring
Content-Typestring

RESPONSES

status: OK

{"AccountMaxReadCapacityUnits":80000,"AccountMaxWriteCapacityUnits":80000,"TableMaxReadCapacityUnits":40000,"TableMaxWriteCapacityUnits":40000}