Enum GlobalTableSettingsReplicationMode
java.lang.Object
java.lang.Enum<GlobalTableSettingsReplicationMode>
software.amazon.awscdk.services.dynamodb.GlobalTableSettingsReplicationMode
- All Implemented Interfaces:
Serializable,Comparable<GlobalTableSettingsReplicationMode>,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.126.0 (build 206d44b)",
date="2026-02-23T18:58:17.236Z")
@Stability(Stable)
public enum GlobalTableSettingsReplicationMode
extends Enum<GlobalTableSettingsReplicationMode>
The replication mode for global table settings across multiple accounts.
Note: In a multi-account global table, you cannot make changes to a synchronized setting using CDK.
Example:
import software.amazon.awscdk.*;
App app = new App();
// Source table in Account A
Stack sourceStack = Stack.Builder.create(app, "SourceStack")
.env(Environment.builder().region("us-east-1").account("111111111111").build())
.build();
// Region us-west-2
TableV2 sourceTable = TableV2.Builder.create(sourceStack, "SourceTable")
.tableName("MyMultiAccountTable")
.partitionKey(Attribute.builder().name("pk").type(AttributeType.STRING).build())
.globalTableSettingsReplicationMode(GlobalTableSettingsReplicationMode.ALL)
.build();
// After replica is deployed, update source stack with the ARN
sourceTable.grants.multiAccountReplicationTo("arn:aws:dynamodb:us-east-1:222222222222:table/MyMultiAccountTable");
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static GlobalTableSettingsReplicationMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ALL
All synchronizable settings are replicated across all replicas.Synchronizable settings include: billing mode, provisioned throughput, auto-scaling, on-demand throughput, warm throughput, TTL, streams view type, and GSIs.
Note: Some settings are always synchronized (key schema, LSIs) and some are never synchronized (table class, SSE, deletion protection, PITR, tags, resource policy, CCI).
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-