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 Resolver = Resolver' {
- typeName :: Maybe Text
- dataSourceName :: Maybe Text
- requestMappingTemplate :: Maybe Text
- kind :: Maybe ResolverKind
- resolverArn :: Maybe Text
- cachingConfig :: Maybe CachingConfig
- responseMappingTemplate :: Maybe Text
- fieldName :: Maybe Text
- syncConfig :: Maybe SyncConfig
- pipelineConfig :: Maybe PipelineConfig
- newResolver :: Resolver
- resolver_typeName :: Lens' Resolver (Maybe Text)
- resolver_dataSourceName :: Lens' Resolver (Maybe Text)
- resolver_requestMappingTemplate :: Lens' Resolver (Maybe Text)
- resolver_kind :: Lens' Resolver (Maybe ResolverKind)
- resolver_resolverArn :: Lens' Resolver (Maybe Text)
- resolver_cachingConfig :: Lens' Resolver (Maybe CachingConfig)
- resolver_responseMappingTemplate :: Lens' Resolver (Maybe Text)
- resolver_fieldName :: Lens' Resolver (Maybe Text)
- resolver_syncConfig :: Lens' Resolver (Maybe SyncConfig)
- resolver_pipelineConfig :: Lens' Resolver (Maybe PipelineConfig)
Documentation
Describes a resolver.
See: newResolver
smart constructor.
Resolver' | |
|
Instances
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:typeName:Resolver'
, resolver_typeName
- The resolver type name.
$sel:dataSourceName:Resolver'
, resolver_dataSourceName
- The resolver data source name.
$sel:requestMappingTemplate:Resolver'
, resolver_requestMappingTemplate
- The request mapping template.
$sel:kind:Resolver'
, resolver_kind
- The resolver type.
- UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. A UNIT resolver enables you to execute a GraphQL query against a single data source.
- PIPELINE: A PIPELINE resolver type. A PIPELINE resolver enables
you to execute a series of
Function
in a serial manner. You can use a pipeline resolver to execute a GraphQL query against multiple data sources.
$sel:resolverArn:Resolver'
, resolver_resolverArn
- The resolver ARN.
$sel:cachingConfig:Resolver'
, resolver_cachingConfig
- The caching configuration for the resolver.
$sel:responseMappingTemplate:Resolver'
, resolver_responseMappingTemplate
- The response mapping template.
$sel:fieldName:Resolver'
, resolver_fieldName
- The resolver field name.
$sel:syncConfig:Resolver'
, resolver_syncConfig
- The SyncConfig
for a resolver attached to a versioned datasource.
$sel:pipelineConfig:Resolver'
, resolver_pipelineConfig
- The PipelineConfig
.
resolver_requestMappingTemplate :: Lens' Resolver (Maybe Text) Source #
The request mapping template.
resolver_kind :: Lens' Resolver (Maybe ResolverKind) Source #
The resolver type.
- UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. A UNIT resolver enables you to execute a GraphQL query against a single data source.
- PIPELINE: A PIPELINE resolver type. A PIPELINE resolver enables
you to execute a series of
Function
in a serial manner. You can use a pipeline resolver to execute a GraphQL query against multiple data sources.
resolver_cachingConfig :: Lens' Resolver (Maybe CachingConfig) Source #
The caching configuration for the resolver.
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 datasource.
resolver_pipelineConfig :: Lens' Resolver (Maybe PipelineConfig) Source #
The PipelineConfig
.