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:
  • Enum Constant Details

    • EVENTUAL

      @Stability(Stable) public static final MultiRegionConsistency EVENTUAL
      Default consistency mode for Global Tables.

      Multi-region eventual consistency.

    • STRONG

      @Stability(Stable) public static final MultiRegionConsistency STRONG
      Multi-region strong consistency.
  • Method Details

    • values

      public static MultiRegionConsistency[] 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

      public static MultiRegionConsistency valueOf(String name)
      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 name
      NullPointerException - if the argument is null