| Modifier and Type | Method and Description |
|---|---|
Table.Builder |
billingMode(BillingMode billingMode)
(experimental) Specify how you are charged for read and write throughput and how you manage capacity.
|
Table |
build() |
Table.Builder |
contributorInsightsEnabled(Boolean contributorInsightsEnabled)
(experimental) Whether CloudWatch contributor insights is enabled.
|
static Table.Builder |
create(software.constructs.Construct scope,
String id) |
Table.Builder |
encryption(TableEncryption encryption)
(experimental) Whether server-side encryption with an AWS managed customer master key is enabled.
|
Table.Builder |
encryptionKey(IKey encryptionKey)
(experimental) External KMS key to use for table encryption.
|
Table.Builder |
partitionKey(Attribute partitionKey)
(experimental) Partition key attribute definition.
|
Table.Builder |
pointInTimeRecovery(Boolean pointInTimeRecovery)
(experimental) Whether point-in-time recovery is enabled.
|
Table.Builder |
readCapacity(Number readCapacity)
(experimental) The read capacity for the table.
|
Table.Builder |
removalPolicy(RemovalPolicy removalPolicy)
(experimental) The removal policy to apply to the DynamoDB Table.
|
Table.Builder |
replicationRegions(List<String> replicationRegions)
(experimental) Regions where replica tables will be created.
|
Table.Builder |
replicationTimeout(Duration replicationTimeout)
(experimental) The timeout for a table replication operation in a single region.
|
Table.Builder |
sortKey(Attribute sortKey)
(experimental) Table sort key attribute definition.
|
Table.Builder |
stream(StreamViewType stream)
(experimental) When an item in the table is modified, StreamViewType determines what information is written to the stream for this table.
|
Table.Builder |
tableName(String tableName)
(experimental) Enforces a particular physical table name.
|
Table.Builder |
timeToLiveAttribute(String timeToLiveAttribute)
(experimental) The name of TTL attribute.
|
Table.Builder |
writeCapacity(Number writeCapacity)
(experimental) The write capacity for the table.
|
@Stability(value=Experimental) public static Table.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.Table.Builder.@Stability(value=Experimental) public Table.Builder partitionKey(Attribute partitionKey)
partitionKey - Partition key attribute definition. This parameter is required.this@Stability(value=Experimental) public Table.Builder billingMode(BillingMode billingMode)
Default: PROVISIONED if `replicationRegions` is not specified, PAY_PER_REQUEST otherwise
billingMode - Specify how you are charged for read and write throughput and how you manage capacity. This parameter is required.this@Stability(value=Experimental) public Table.Builder contributorInsightsEnabled(Boolean contributorInsightsEnabled)
Default: false
contributorInsightsEnabled - Whether CloudWatch contributor insights is enabled. This parameter is required.this@Stability(value=Experimental) public Table.Builder encryption(TableEncryption encryption)
This property cannot be set if serverSideEncryption is set.
Default: - server-side encryption is enabled with an AWS owned customer master key
encryption - Whether server-side encryption with an AWS managed customer master key is enabled. This parameter is required.this@Stability(value=Experimental) public Table.Builder encryptionKey(IKey encryptionKey)
This property can only be set if encryption is set to TableEncryption.CUSTOMER_MANAGED.
Default: - If `encryption` is set to `TableEncryption.CUSTOMER_MANAGED` and this property is undefined, a new KMS key will be created and associated with this table.
encryptionKey - External KMS key to use for table encryption. This parameter is required.this@Stability(value=Experimental) public Table.Builder pointInTimeRecovery(Boolean pointInTimeRecovery)
Default: - point-in-time recovery is disabled
pointInTimeRecovery - Whether point-in-time recovery is enabled. This parameter is required.this@Stability(value=Experimental) public Table.Builder readCapacity(Number readCapacity)
Careful if you add Global Secondary Indexes, as those will share the table's provisioned throughput.
Can only be provided if billingMode is Provisioned.
Default: 5
readCapacity - The read capacity for the table. This parameter is required.this@Stability(value=Experimental) public Table.Builder removalPolicy(RemovalPolicy removalPolicy)
Default: RemovalPolicy.RETAIN
removalPolicy - The removal policy to apply to the DynamoDB Table. This parameter is required.this@Stability(value=Experimental) public Table.Builder replicationRegions(List<String> replicationRegions)
Default: - no replica tables are created
replicationRegions - Regions where replica tables will be created. This parameter is required.this@Stability(value=Experimental) public Table.Builder replicationTimeout(Duration replicationTimeout)
Default: Duration.minutes(30)
replicationTimeout - The timeout for a table replication operation in a single region. This parameter is required.this@Stability(value=Experimental) public Table.Builder sortKey(Attribute sortKey)
Default: no sort key
sortKey - Table sort key attribute definition. This parameter is required.this@Stability(value=Experimental) public Table.Builder stream(StreamViewType stream)
Default: - streams are disabled unless `replicationRegions` is specified
stream - When an item in the table is modified, StreamViewType determines what information is written to the stream for this table. This parameter is required.this@Stability(value=Experimental) public Table.Builder timeToLiveAttribute(String timeToLiveAttribute)
Default: - TTL is disabled
timeToLiveAttribute - The name of TTL attribute. This parameter is required.this@Stability(value=Experimental) public Table.Builder writeCapacity(Number writeCapacity)
Careful if you add Global Secondary Indexes, as those will share the table's provisioned throughput.
Can only be provided if billingMode is Provisioned.
Default: 5
writeCapacity - The write capacity for the table. This parameter is required.this@Stability(value=Experimental) public Table.Builder tableName(String tableName)
Default:
tableName - Enforces a particular physical table name. This parameter is required.thisCopyright © 2021. All rights reserved.