Skip to content

SyncConfig

Source code in docs_src/capo_appsync/types/sync_config.py
class SyncConfig(TypedDict, closed=True):
    conflict_handler: NotRequired[
        "capo_appsync.types.conflict_handler_type.ConflictHandlerType"
    ]
    """<p>The Conflict Resolution strategy to perform in the event of a conflict.</p> <ul> <li> <p> <b>OPTIMISTIC_CONCURRENCY</b>: Resolve conflicts by rejecting mutations when versions don't match the latest version at the server.</p> </li> <li> <p> <b>AUTOMERGE</b>: Resolve conflicts with the Automerge conflict resolution strategy.</p> </li> <li> <p> <b>LAMBDA</b>: Resolve conflicts with an Lambda function supplied in the <code>LambdaConflictHandlerConfig</code>.</p> </li> </ul>"""
    conflict_detection: NotRequired[
        "capo_appsync.types.conflict_detection_type.ConflictDetectionType"
    ]
    """<p>The Conflict Detection strategy to use.</p> <ul> <li> <p> <b>VERSION</b>: Detect conflicts based on object versions for this resolver.</p> </li> <li> <p> <b>NONE</b>: Do not detect conflicts when invoking this resolver.</p> </li> </ul>"""
    lambda_conflict_handler_config: NotRequired[
        "capo_appsync.types.lambda_conflict_handler_config.LambdaConflictHandlerConfig"
    ]
    """<p>The <code>LambdaConflictHandlerConfig</code> when configuring <code>LAMBDA</code> as the Conflict Handler.</p>"""

conflict_detection instance-attribute

conflict_detection: NotRequired[ConflictDetectionType]

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.

conflict_handler instance-attribute

conflict_handler: NotRequired[ConflictHandlerType]

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 Lambda function supplied in the LambdaConflictHandlerConfig.

lambda_conflict_handler_config instance-attribute

lambda_conflict_handler_config: NotRequired[LambdaConflictHandlerConfig]

The LambdaConflictHandlerConfig when configuring LAMBDA as the Conflict Handler.