Interface CfnResolver.SyncConfigProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnResolver.SyncConfigProperty.Jsii$Proxy
Enclosing class:
CfnResolver

@Stability(Stable) public static interface CfnResolver.SyncConfigProperty extends software.amazon.jsii.JsiiSerializable
Describes a Sync configuration for a resolver.

Specifies which Conflict Detection strategy and Resolution strategy to use when the resolver is invoked.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.appsync.*;
 SyncConfigProperty syncConfigProperty = SyncConfigProperty.builder()
         .conflictDetection("conflictDetection")
         // the properties below are optional
         .conflictHandler("conflictHandler")
         .lambdaConflictHandlerConfig(LambdaConflictHandlerConfigProperty.builder()
                 .lambdaConflictHandlerArn("lambdaConflictHandlerArn")
                 .build())
         .build();
 
  • Method Details

    • getConflictDetection

      @Stability(Stable) @NotNull String getConflictDetection()
      The Conflict Detection strategy to use.

      • VERSION : Detect conflicts based on object versions for this resolver.
      • NONE : Do not detect conflicts when invoking this resolver.
    • getConflictHandler

      @Stability(Stable) @Nullable default String getConflictHandler()
      The Conflict Resolution strategy to perform in the event of a conflict.

      • OPTIMISTIC_CONCURRENCY : Resolve conflicts by rejecting mutations when versions don't match the latest version at the server.
      • AUTOMERGE : Resolve conflicts with the Automerge conflict resolution strategy.
      • LAMBDA : Resolve conflicts with an AWS Lambda function supplied in the LambdaConflictHandlerConfig .
    • getLambdaConflictHandlerConfig

      @Stability(Stable) @Nullable default Object getLambdaConflictHandlerConfig()
      The LambdaConflictHandlerConfig when configuring LAMBDA as the Conflict Handler.
    • builder

      @Stability(Stable) static CfnResolver.SyncConfigProperty.Builder builder()
      Returns:
      a CfnResolver.SyncConfigProperty.Builder of CfnResolver.SyncConfigProperty