Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data Resolver = Resolver' {
- cachingConfig :: Maybe CachingConfig
- code :: Maybe Text
- dataSourceName :: Maybe Text
- fieldName :: Maybe Text
- kind :: Maybe ResolverKind
- maxBatchSize :: Maybe Natural
- pipelineConfig :: Maybe PipelineConfig
- requestMappingTemplate :: Maybe Text
- resolverArn :: Maybe Text
- responseMappingTemplate :: Maybe Text
- runtime :: Maybe AppSyncRuntime
- syncConfig :: Maybe SyncConfig
- typeName :: Maybe Text
- newResolver :: Resolver
- resolver_cachingConfig :: Lens' Resolver (Maybe CachingConfig)
- resolver_code :: Lens' Resolver (Maybe Text)
- resolver_dataSourceName :: Lens' Resolver (Maybe Text)
- resolver_fieldName :: Lens' Resolver (Maybe Text)
- resolver_kind :: Lens' Resolver (Maybe ResolverKind)
- resolver_maxBatchSize :: Lens' Resolver (Maybe Natural)
- resolver_pipelineConfig :: Lens' Resolver (Maybe PipelineConfig)
- resolver_requestMappingTemplate :: Lens' Resolver (Maybe Text)
- resolver_resolverArn :: Lens' Resolver (Maybe Text)
- resolver_responseMappingTemplate :: Lens' Resolver (Maybe Text)
- resolver_runtime :: Lens' Resolver (Maybe AppSyncRuntime)
- resolver_syncConfig :: Lens' Resolver (Maybe SyncConfig)
- resolver_typeName :: Lens' Resolver (Maybe Text)
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: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_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_pipelineConfig :: Lens' Resolver (Maybe PipelineConfig) Source #
The PipelineConfig
.
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_runtime :: Lens' Resolver (Maybe AppSyncRuntime) Source #
Undocumented member.
resolver_syncConfig :: Lens' Resolver (Maybe SyncConfig) Source #
The SyncConfig
for a resolver attached to a versioned data source.