Interface TableOptionsV2

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Subinterfaces:
ReplicaTableProps, TablePropsV2
All Known Implementing Classes:
ReplicaTableProps.Jsii$Proxy, TableOptionsV2.Jsii$Proxy, TablePropsV2.Jsii$Proxy

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-17T05:10:09.409Z") @Stability(Stable) public interface TableOptionsV2 extends software.amazon.jsii.JsiiSerializable
Options used to configure a DynamoDB 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.*;
 import software.amazon.awscdk.services.kinesis.*;
 Stream stream;
 TableOptionsV2 tableOptionsV2 = TableOptionsV2.builder()
         .contributorInsights(false)
         .deletionProtection(false)
         .kinesisStream(stream)
         .pointInTimeRecovery(false)
         .tableClass(TableClass.STANDARD)
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build();
 
  • Method Details

    • getContributorInsights

      @Stability(Stable) @Nullable default Boolean getContributorInsights()
      Whether CloudWatch contributor insights is enabled.

      Default: false

    • getDeletionProtection

      @Stability(Stable) @Nullable default Boolean getDeletionProtection()
      Whether deletion protection is enabled.

      Default: false

    • getKinesisStream

      @Stability(Stable) @Nullable default IStream getKinesisStream()
      Kinesis Data Stream to capture item level changes.

      Default: - no Kinesis Data Stream

    • getPointInTimeRecovery

      @Stability(Stable) @Nullable default Boolean getPointInTimeRecovery()
      Whether point-in-time recovery is enabled.

      Default: false

    • getTableClass

      @Stability(Stable) @Nullable default TableClass getTableClass()
      The table class.

      Default: TableClass.STANDARD

    • getTags

      @Stability(Stable) @Nullable default List<CfnTag> getTags()
      Tags to be applied to the table or replica table.

      Default: - no tags

    • builder

      @Stability(Stable) static TableOptionsV2.Builder builder()
      Returns:
      a TableOptionsV2.Builder of TableOptionsV2