-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnTable_TimeToLiveSpecificationProperty.go
33 lines (30 loc) · 1.6 KB
/
CfnTable_TimeToLiveSpecificationProperty.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package awsdynamodb
// 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 "github.com/aws/aws-cdk-go/awscdk"
//
// timeToLiveSpecificationProperty := &TimeToLiveSpecificationProperty{
// Enabled: jsii.Boolean(false),
//
// // the properties below are optional
// AttributeName: jsii.String("attributeName"),
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-timetolivespecification.html
//
type CfnTable_TimeToLiveSpecificationProperty struct {
// Indicates whether TTL is to be enabled (true) or disabled (false) on the table.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-timetolivespecification.html#cfn-dynamodb-table-timetolivespecification-enabled
//
Enabled interface{} `field:"required" json:"enabled" yaml:"enabled"`
// The name of the TTL attribute used to store the expiration time for items in the table.
//
// > - The `AttributeName` property 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.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-timetolivespecification.html#cfn-dynamodb-table-timetolivespecification-attributename
//
AttributeName *string `field:"optional" json:"attributeName" yaml:"attributeName"`
}