SyncConfig - AWS AppSync

SyncConfig

Describes a Sync configuration for a resolver.

Contains information on which Conflict Detection as well as Resolution strategy should be performed when the resolver is invoked.

Contents

conflictDetection

The Conflict Detection strategy to use.

  • VERSION: Detect conflicts based on object versions for this resolver.

  • NONE: Do not detect conflicts when executing this resolver.

Type: String

Valid Values: VERSION | NONE

Required: No

conflictHandler

The Conflict Resolution strategy to perform in the event of a conflict.

  • OPTIMISTIC_CONCURRENCY: Resolve conflicts by rejecting mutations when versions do not match the latest version at the server.

  • AUTOMERGE: Resolve conflicts with the Automerge conflict resolution strategy.

  • LAMBDA: Resolve conflicts with a Lambda function supplied in the LambdaConflictHandlerConfig.

Type: String

Valid Values: OPTIMISTIC_CONCURRENCY | LAMBDA | AUTOMERGE | NONE

Required: No

lambdaConflictHandlerConfig

The LambdaConflictHandlerConfig when configuring LAMBDA as the Conflict Handler.

Type: LambdaConflictHandlerConfig object

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: