Interface ReplicaTableProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,TableOptionsV2
- All Known Implementing Classes:
ReplicaTableProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:36.589Z")
@Stability(Stable)
public interface ReplicaTableProps
extends software.amazon.jsii.JsiiSerializable, TableOptionsV2
Properties used to configure a replica table.
Example:
import software.amazon.awscdk.*;
App app = new App();
Stack stack = Stack.Builder.create(app, "Stack").env(Environment.builder().region("us-west-2").build()).build();
TableV2 globalTable = TableV2.Builder.create(stack, "GlobalTable")
.partitionKey(Attribute.builder().name("pk").type(AttributeType.STRING).build())
.replicas(List.of(ReplicaTableProps.builder().region("us-east-1").build()))
.build();
globalTable.addReplica(ReplicaTableProps.builder().region("us-east-2").deletionProtection(true).build());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forReplicaTablePropsstatic final classAn implementation forReplicaTableProps -
Method Summary
Modifier and TypeMethodDescriptionstatic ReplicaTableProps.Builderbuilder()default Map<String, ReplicaGlobalSecondaryIndexOptions> Options used to configure global secondary index properties.default NumberThe maximum read request units.default CapacityThe read capacity.The region that the replica table will be created in.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods inherited from interface software.amazon.awscdk.services.dynamodb.TableOptionsV2
getContributorInsights, getContributorInsightsSpecification, getDeletionProtection, getKinesisStream, getPointInTimeRecovery, getPointInTimeRecoverySpecification, getResourcePolicy, getTableClass, getTags
-
Method Details
-
getRegion
The region that the replica table will be created in. -
getGlobalSecondaryIndexOptions
@Stability(Stable) @Nullable default Map<String,ReplicaGlobalSecondaryIndexOptions> getGlobalSecondaryIndexOptions()Options used to configure global secondary index properties.Default: - inherited from the primary table
-
getMaxReadRequestUnits
The maximum read request units.Note: This can only be configured if the primary table billing is PAY_PER_REQUEST.
Default: - inherited from the primary table
-
getReadCapacity
The read capacity.Note: This can only be configured if the primary table billing is provisioned.
Default: - inherited from the primary table
-
builder
- Returns:
- a
ReplicaTableProps.BuilderofReplicaTableProps
-