Interface CfnFunctionConfiguration.SyncConfigProperty

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

@Stability(Stable) public static interface CfnFunctionConfiguration.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 CfnFunctionConfiguration.SyncConfigProperty.Builder builder()
      Returns:
      a CfnFunctionConfiguration.SyncConfigProperty.Builder of CfnFunctionConfiguration.SyncConfigProperty