interface TimeToLiveSpecificationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.DynamoDB.Mixins.CfnTablePropsMixin.TimeToLiveSpecificationProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsdynamodb/mixins#CfnTablePropsMixin_TimeToLiveSpecificationProperty |
Java | software.amazon.awscdk.mixins.preview.services.dynamodb.mixins.CfnTablePropsMixin.TimeToLiveSpecificationProperty |
Python | aws_cdk.mixins_preview.aws_dynamodb.mixins.CfnTablePropsMixin.TimeToLiveSpecificationProperty |
TypeScript | @aws-cdk/mixins-preview » aws_dynamodb » mixins » CfnTablePropsMixin » TimeToLiveSpecificationProperty |
Represents the settings used to enable or disable Time to Live (TTL) for the specified table.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as dynamodb_mixins } from '@aws-cdk/mixins-preview/aws-dynamodb';
const timeToLiveSpecificationProperty: dynamodb_mixins.CfnTablePropsMixin.TimeToLiveSpecificationProperty = {
attributeName: 'attributeName',
enabled: false,
};
Properties
| Name | Type | Description |
|---|---|---|
| attribute | string | The name of the TTL attribute used to store the expiration time for items in the table. |
| enabled? | boolean | IResolvable | Indicates whether TTL is to be enabled (true) or disabled (false) on the table. |
attributeName?
Type:
string
(optional)
The name of the TTL attribute used to store the expiration time for items in the table.
- The
AttributeNameproperty is required when enabling the TTL, or when TTL is already enabled.- To update this property, you must first disable TTL and then enable TTL with the new attribute name.
enabled?
Type:
boolean | IResolvable
(optional)
Indicates whether TTL is to be enabled (true) or disabled (false) on the table.

.NET
Go
Java
Python
TypeScript