Interface CfnTable.TimeToLiveSpecificationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnTable.TimeToLiveSpecificationProperty.Jsii$Proxy
- Enclosing class:
CfnTable
@Stability(Stable)
public static interface CfnTable.TimeToLiveSpecificationProperty
extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.dynamodb.*;
TimeToLiveSpecificationProperty timeToLiveSpecificationProperty = TimeToLiveSpecificationProperty.builder()
.enabled(false)
// the properties below are optional
.attributeName("attributeName")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnTable.TimeToLiveSpecificationPropertystatic final classAn implementation forCfnTable.TimeToLiveSpecificationProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getEnabled
Indicates whether TTL is to be enabled (true) or disabled (false) on the table.Returns union: either
BooleanorIResolvable- See Also:
-
getAttributeName
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.
- See Also:
- The
-
builder
-