@Stability(value=Stable) public static final class TableOptions.Builder extends Object implements software.amazon.jsii.Builder<TableOptions>
TableOptions| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public TableOptions.Builder billingMode(BillingMode billingMode)
TableOptions.getBillingMode()billingMode - Specify how you are charged for read and write throughput and how you manage capacity.this@Stability(value=Stable) public TableOptions.Builder contributorInsightsEnabled(Boolean contributorInsightsEnabled)
TableOptions.getContributorInsightsEnabled()contributorInsightsEnabled - Whether CloudWatch contributor insights is enabled.this@Stability(value=Stable) public TableOptions.Builder encryption(TableEncryption encryption)
TableOptions.getEncryption()encryption - Whether server-side encryption with an AWS managed customer master key is enabled.
This property cannot be set if serverSideEncryption is set.
NOTE: if you set this to
CUSTOMER_MANAGEDandencryptionKeyis not specified, the key that the Tablet generates for you will be created with default permissions. If you are using CDKv2, these permissions will be sufficient to enable the key for use with DynamoDB tables. If you are using CDKv1, make sure the feature flag@aws-cdk/aws-kms:defaultKeyPoliciesis set totruein yourcdk.json.
this@Stability(value=Stable) public TableOptions.Builder encryptionKey(IKey encryptionKey)
TableOptions.getEncryptionKey()encryptionKey - External KMS key to use for table encryption.
This property can only be set if encryption is set to TableEncryption.CUSTOMER_MANAGED.this@Stability(value=Stable) public TableOptions.Builder pointInTimeRecovery(Boolean pointInTimeRecovery)
TableOptions.getPointInTimeRecovery()pointInTimeRecovery - Whether point-in-time recovery is enabled.this@Stability(value=Stable) public TableOptions.Builder readCapacity(Number readCapacity)
TableOptions.getReadCapacity()readCapacity - The read capacity for the table.
Careful if you add Global Secondary Indexes, as
those will share the table's provisioned throughput.
Can only be provided if billingMode is Provisioned.
this@Stability(value=Stable) public TableOptions.Builder removalPolicy(RemovalPolicy removalPolicy)
TableOptions.getRemovalPolicy()removalPolicy - The removal policy to apply to the DynamoDB Table.this@Stability(value=Stable) public TableOptions.Builder replicationRegions(List<String> replicationRegions)
TableOptions.getReplicationRegions()replicationRegions - Regions where replica tables will be created.this@Stability(value=Stable) public TableOptions.Builder replicationTimeout(Duration replicationTimeout)
TableOptions.getReplicationTimeout()replicationTimeout - The timeout for a table replication operation in a single region.this@Stability(value=Stable) public TableOptions.Builder stream(StreamViewType stream)
TableOptions.getStream()stream - When an item in the table is modified, StreamViewType determines what information is written to the stream for this table.this@Stability(value=Stable) public TableOptions.Builder tableClass(TableClass tableClass)
TableOptions.getTableClass()tableClass - Specify the table class.this@Stability(value=Stable) public TableOptions.Builder timeToLiveAttribute(String timeToLiveAttribute)
TableOptions.getTimeToLiveAttribute()timeToLiveAttribute - The name of TTL attribute.this@Stability(value=Stable) public TableOptions.Builder waitForReplicationToFinish(Boolean waitForReplicationToFinish)
TableOptions.getWaitForReplicationToFinish()waitForReplicationToFinish - Indicates whether CloudFormation stack waits for replication to finish.
If set to false, the CloudFormation resource will mark the resource as
created and replication will be completed asynchronously. This property is
ignored if replicationRegions property is not set.
DO NOT UNSET this property if adding/removing multiple replicationRegions in one deployment, as CloudFormation only supports one region replication at a time. CDK overcomes this limitation by waiting for replication to finish before starting new replicationRegion.
this@Stability(value=Stable) public TableOptions.Builder writeCapacity(Number writeCapacity)
TableOptions.getWriteCapacity()writeCapacity - The write capacity for the table.
Careful if you add Global Secondary Indexes, as
those will share the table's provisioned throughput.
Can only be provided if billingMode is Provisioned.
this@Stability(value=Stable) public TableOptions.Builder partitionKey(Attribute partitionKey)
SchemaOptions.getPartitionKey()partitionKey - Partition key attribute definition. This parameter is required.this@Stability(value=Stable) public TableOptions.Builder sortKey(Attribute sortKey)
SchemaOptions.getSortKey()sortKey - Sort key attribute definition.this@Stability(value=Stable) public TableOptions build()
build in interface software.amazon.jsii.Builder<TableOptions>TableOptionsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.