amazonka-appsync-2.0: Amazon AppSync SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.AppSync.Types.SyncConfig

Description

 
Synopsis

Documentation

data SyncConfig Source #

Describes a Sync configuration for a resolver.

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

See: newSyncConfig smart constructor.

Constructors

SyncConfig' 

Fields

  • conflictDetection :: Maybe 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.
  • conflictHandler :: Maybe 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.
  • lambdaConflictHandlerConfig :: Maybe LambdaConflictHandlerConfig

    The LambdaConflictHandlerConfig when configuring LAMBDA as the Conflict Handler.

Instances

Instances details
FromJSON SyncConfig Source # 
Instance details

Defined in Amazonka.AppSync.Types.SyncConfig

ToJSON SyncConfig Source # 
Instance details

Defined in Amazonka.AppSync.Types.SyncConfig

Generic SyncConfig Source # 
Instance details

Defined in Amazonka.AppSync.Types.SyncConfig

Associated Types

type Rep SyncConfig :: Type -> Type #

Read SyncConfig Source # 
Instance details

Defined in Amazonka.AppSync.Types.SyncConfig

Show SyncConfig Source # 
Instance details

Defined in Amazonka.AppSync.Types.SyncConfig

NFData SyncConfig Source # 
Instance details

Defined in Amazonka.AppSync.Types.SyncConfig

Methods

rnf :: SyncConfig -> () #

Eq SyncConfig Source # 
Instance details

Defined in Amazonka.AppSync.Types.SyncConfig

Hashable SyncConfig Source # 
Instance details

Defined in Amazonka.AppSync.Types.SyncConfig

type Rep SyncConfig Source # 
Instance details

Defined in Amazonka.AppSync.Types.SyncConfig

type Rep SyncConfig = D1 ('MetaData "SyncConfig" "Amazonka.AppSync.Types.SyncConfig" "amazonka-appsync-2.0-4Pb6UqteLv1I9NIWaj90bg" 'False) (C1 ('MetaCons "SyncConfig'" 'PrefixI 'True) (S1 ('MetaSel ('Just "conflictDetection") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ConflictDetectionType)) :*: (S1 ('MetaSel ('Just "conflictHandler") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ConflictHandlerType)) :*: S1 ('MetaSel ('Just "lambdaConflictHandlerConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LambdaConflictHandlerConfig)))))

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: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 invoking this resolver.

$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 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.

$sel:lambdaConflictHandlerConfig:SyncConfig', syncConfig_lambdaConflictHandlerConfig - The LambdaConflictHandlerConfig when configuring LAMBDA as the Conflict Handler.

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 invoking this resolver.

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 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.

syncConfig_lambdaConflictHandlerConfig :: Lens' SyncConfig (Maybe LambdaConflictHandlerConfig) Source #

The LambdaConflictHandlerConfig when configuring LAMBDA as the Conflict Handler.