Enum MultiRegionConsistency
java.lang.Object
java.lang.Enum<MultiRegionConsistency>
software.amazon.awscdk.services.dynamodb.MultiRegionConsistency
- All Implemented Interfaces:
Serializable
,Comparable<MultiRegionConsistency>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)",
date="2025-08-20T12:34:41.289Z")
@Stability(Stable)
public enum MultiRegionConsistency
extends Enum<MultiRegionConsistency>
Global table multi-region consistency mode.
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 mrscTable = TableV2.Builder.create(stack, "MRSCTable") .partitionKey(Attribute.builder().name("pk").type(AttributeType.STRING).build()) .multiRegionConsistency(MultiRegionConsistency.STRONG) .replicas(List.of(ReplicaTableProps.builder().region("us-east-1").build(), ReplicaTableProps.builder().region("us-east-2").build())) .build();
- 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 TypeMethodDescriptionstatic MultiRegionConsistency
Returns the enum constant of this type with the specified name.static MultiRegionConsistency[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
EVENTUAL
Default consistency mode for Global Tables.Multi-region eventual consistency.
-
STRONG
Multi-region strong consistency.
-
-
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
-