Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data SyncConfig = SyncConfig' {}
- newSyncConfig :: SyncConfig
- syncConfig_conflictHandler :: Lens' SyncConfig (Maybe ConflictHandlerType)
- syncConfig_conflictDetection :: Lens' SyncConfig (Maybe ConflictDetectionType)
- syncConfig_lambdaConflictHandlerConfig :: Lens' SyncConfig (Maybe LambdaConflictHandlerConfig)
Documentation
data SyncConfig Source #
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.
See: newSyncConfig
smart constructor.
SyncConfig' | |
|
Instances
newSyncConfig :: SyncConfig Source #
Create a value of SyncConfig
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:conflictHandler:SyncConfig'
, syncConfig_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.
$sel:conflictDetection:SyncConfig'
, syncConfig_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.
$sel:lambdaConflictHandlerConfig:SyncConfig'
, syncConfig_lambdaConflictHandlerConfig
- The LambdaConflictHandlerConfig
when configuring LAMBDA as the
Conflict Handler.
syncConfig_conflictHandler :: Lens' SyncConfig (Maybe ConflictHandlerType) Source #
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.
syncConfig_conflictDetection :: Lens' SyncConfig (Maybe ConflictDetectionType) Source #
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.
syncConfig_lambdaConflictHandlerConfig :: Lens' SyncConfig (Maybe LambdaConflictHandlerConfig) Source #
The LambdaConflictHandlerConfig
when configuring LAMBDA as the
Conflict Handler.