There are more AWS SDK examples available in the AWS Doc SDK Examples
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.
-