The following code examples show how to use DescribeTimeToLive
.
- AWS CLI
-
To view Time to Live settings for a table
The following
describe-time-to-live
example displays Time to Live settings for theMusicCollection
table.aws dynamodb describe-time-to-live \ --table-name
MusicCollection
Output:
{ "TimeToLiveDescription": { "TimeToLiveStatus": "ENABLED", "AttributeName": "ttl" } }
For more information, see Time to Live in the Amazon DynamoDB Developer Guide.
-
For API details, see DescribeTimeToLive
in AWS CLI Command Reference.
-
For a complete list of AWS SDK developer guides and code examples, see Using DynamoDB with an AWS SDK. This topic also includes information about getting started and details about previous SDK versions.