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

Description

 
Synopsis

Documentation

data Resolver Source #

Describes a resolver.

See: newResolver smart constructor.

Constructors

Resolver' 

Fields

Instances

Instances details
FromJSON Resolver Source # 
Instance details

Defined in Amazonka.AppSync.Types.Resolver

Generic Resolver Source # 
Instance details

Defined in Amazonka.AppSync.Types.Resolver

Associated Types

type Rep Resolver :: Type -> Type #

Methods

from :: Resolver -> Rep Resolver x #

to :: Rep Resolver x -> Resolver #

Read Resolver Source # 
Instance details

Defined in Amazonka.AppSync.Types.Resolver

Show Resolver Source # 
Instance details

Defined in Amazonka.AppSync.Types.Resolver

NFData Resolver Source # 
Instance details

Defined in Amazonka.AppSync.Types.Resolver

Methods

rnf :: Resolver -> () #

Eq Resolver Source # 
Instance details

Defined in Amazonka.AppSync.Types.Resolver

Hashable Resolver Source # 
Instance details

Defined in Amazonka.AppSync.Types.Resolver

Methods

hashWithSalt :: Int -> Resolver -> Int #

hash :: Resolver -> Int #

type Rep Resolver Source # 
Instance details

Defined in Amazonka.AppSync.Types.Resolver

type Rep Resolver = D1 ('MetaData "Resolver" "Amazonka.AppSync.Types.Resolver" "amazonka-appsync-2.0-4Pb6UqteLv1I9NIWaj90bg" 'False) (C1 ('MetaCons "Resolver'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "cachingConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CachingConfig)) :*: (S1 ('MetaSel ('Just "code") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "dataSourceName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "fieldName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "kind") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ResolverKind)) :*: S1 ('MetaSel ('Just "maxBatchSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))))) :*: ((S1 ('MetaSel ('Just "pipelineConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PipelineConfig)) :*: (S1 ('MetaSel ('Just "requestMappingTemplate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "resolverArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "responseMappingTemplate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "runtime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AppSyncRuntime))) :*: (S1 ('MetaSel ('Just "syncConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SyncConfig)) :*: S1 ('MetaSel ('Just "typeName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))))

newResolver :: Resolver Source #

Create a value of Resolver 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:cachingConfig:Resolver', resolver_cachingConfig - The caching configuration for the resolver.

$sel:code:Resolver', resolver_code - The resolver code that contains the request and response functions. When code is used, the runtime is required. The runtime value must be APPSYNC_JS.

$sel:dataSourceName:Resolver', resolver_dataSourceName - The resolver data source name.

$sel:fieldName:Resolver', resolver_fieldName - The resolver field name.

$sel:kind:Resolver', resolver_kind - The resolver type.

  • UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. You can use a UNIT resolver to run a GraphQL query against a single data source.
  • PIPELINE: A PIPELINE resolver type. You can use a PIPELINE resolver to invoke a series of Function objects in a serial manner. You can use a pipeline resolver to run a GraphQL query against multiple data sources.

$sel:maxBatchSize:Resolver', resolver_maxBatchSize - The maximum batching size for a resolver.

$sel:pipelineConfig:Resolver', resolver_pipelineConfig - The PipelineConfig.

$sel:requestMappingTemplate:Resolver', resolver_requestMappingTemplate - The request mapping template.

$sel:resolverArn:Resolver', resolver_resolverArn - The resolver Amazon Resource Name (ARN).

$sel:responseMappingTemplate:Resolver', resolver_responseMappingTemplate - The response mapping template.

$sel:runtime:Resolver', resolver_runtime - Undocumented member.

$sel:syncConfig:Resolver', resolver_syncConfig - The SyncConfig for a resolver attached to a versioned data source.

$sel:typeName:Resolver', resolver_typeName - The resolver type name.

resolver_cachingConfig :: Lens' Resolver (Maybe CachingConfig) Source #

The caching configuration for the resolver.

resolver_code :: Lens' Resolver (Maybe Text) Source #

The resolver code that contains the request and response functions. When code is used, the runtime is required. The runtime value must be APPSYNC_JS.

resolver_dataSourceName :: Lens' Resolver (Maybe Text) Source #

The resolver data source name.

resolver_fieldName :: Lens' Resolver (Maybe Text) Source #

The resolver field name.

resolver_kind :: Lens' Resolver (Maybe ResolverKind) Source #

The resolver type.

  • UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. You can use a UNIT resolver to run a GraphQL query against a single data source.
  • PIPELINE: A PIPELINE resolver type. You can use a PIPELINE resolver to invoke a series of Function objects in a serial manner. You can use a pipeline resolver to run a GraphQL query against multiple data sources.

resolver_maxBatchSize :: Lens' Resolver (Maybe Natural) Source #

The maximum batching size for a resolver.

resolver_requestMappingTemplate :: Lens' Resolver (Maybe Text) Source #

The request mapping template.

resolver_resolverArn :: Lens' Resolver (Maybe Text) Source #

The resolver Amazon Resource Name (ARN).

resolver_responseMappingTemplate :: Lens' Resolver (Maybe Text) Source #

The response mapping template.

resolver_syncConfig :: Lens' Resolver (Maybe SyncConfig) Source #

The SyncConfig for a resolver attached to a versioned data source.

resolver_typeName :: Lens' Resolver (Maybe Text) Source #

The resolver type name.