libZSservicesZSamazonka-appsyncZSamazonka-appsync
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.AppSync.Types.SyncConfig

Description

 
Synopsis

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.

Constructors

SyncConfig' 

Fields

  • conflictHandler :: Maybe ConflictHandlerType

    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.
  • 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 executing this resolver.
  • lambdaConflictHandlerConfig :: Maybe LambdaConflictHandlerConfig

    The LambdaConflictHandlerConfig when configuring LAMBDA as the Conflict Handler.

Instances

Instances details
Eq SyncConfig Source # 
Instance details

Defined in Amazonka.AppSync.Types.SyncConfig

Read SyncConfig Source # 
Instance details

Defined in Amazonka.AppSync.Types.SyncConfig

Show 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 #

NFData SyncConfig Source # 
Instance details

Defined in Amazonka.AppSync.Types.SyncConfig

Methods

rnf :: SyncConfig -> () #

Hashable SyncConfig Source # 
Instance details

Defined in Amazonka.AppSync.Types.SyncConfig

ToJSON SyncConfig Source # 
Instance details

Defined in Amazonka.AppSync.Types.SyncConfig

FromJSON 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" "libZSservicesZSamazonka-appsyncZSamazonka-appsync" 'False) (C1 ('MetaCons "SyncConfig'" 'PrefixI 'True) (S1 ('MetaSel ('Just "conflictHandler") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ConflictHandlerType)) :*: (S1 ('MetaSel ('Just "conflictDetection") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ConflictDetectionType)) :*: 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: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.