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 |
Updates a Resolver
object.
Synopsis
- data UpdateResolver = UpdateResolver' {}
- newUpdateResolver :: Text -> Text -> Text -> UpdateResolver
- updateResolver_dataSourceName :: Lens' UpdateResolver (Maybe Text)
- updateResolver_requestMappingTemplate :: Lens' UpdateResolver (Maybe Text)
- updateResolver_kind :: Lens' UpdateResolver (Maybe ResolverKind)
- updateResolver_cachingConfig :: Lens' UpdateResolver (Maybe CachingConfig)
- updateResolver_responseMappingTemplate :: Lens' UpdateResolver (Maybe Text)
- updateResolver_syncConfig :: Lens' UpdateResolver (Maybe SyncConfig)
- updateResolver_pipelineConfig :: Lens' UpdateResolver (Maybe PipelineConfig)
- updateResolver_apiId :: Lens' UpdateResolver Text
- updateResolver_typeName :: Lens' UpdateResolver Text
- updateResolver_fieldName :: Lens' UpdateResolver Text
- data UpdateResolverResponse = UpdateResolverResponse' {
- resolver :: Maybe Resolver
- httpStatus :: Int
- newUpdateResolverResponse :: Int -> UpdateResolverResponse
- updateResolverResponse_resolver :: Lens' UpdateResolverResponse (Maybe Resolver)
- updateResolverResponse_httpStatus :: Lens' UpdateResolverResponse Int
Creating a Request
data UpdateResolver Source #
See: newUpdateResolver
smart constructor.
UpdateResolver' | |
|
Instances
:: Text | |
-> Text | |
-> Text | |
-> UpdateResolver |
Create a value of UpdateResolver
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:dataSourceName:UpdateResolver'
, updateResolver_dataSourceName
- The new data source name.
$sel:requestMappingTemplate:UpdateResolver'
, updateResolver_requestMappingTemplate
- The new request mapping template.
A resolver uses a request mapping template to convert a GraphQL expression into a format that a data source can understand. Mapping templates are written in Apache Velocity Template Language (VTL).
VTL request mapping templates are optional when using a Lambda data source. For all other data sources, VTL request and response mapping templates are required.
$sel:kind:UpdateResolver'
, updateResolver_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:cachingConfig:UpdateResolver'
, updateResolver_cachingConfig
- The caching configuration for the resolver.
$sel:responseMappingTemplate:UpdateResolver'
, updateResolver_responseMappingTemplate
- The new response mapping template.
$sel:syncConfig:UpdateResolver'
, updateResolver_syncConfig
- The SyncConfig
for a resolver attached to a versioned datasource.
$sel:pipelineConfig:UpdateResolver'
, updateResolver_pipelineConfig
- The PipelineConfig
.
$sel:apiId:UpdateResolver'
, updateResolver_apiId
- The API ID.
$sel:typeName:UpdateResolver'
, updateResolver_typeName
- The new type name.
$sel:fieldName:UpdateResolver'
, updateResolver_fieldName
- The new field name.
Request Lenses
updateResolver_dataSourceName :: Lens' UpdateResolver (Maybe Text) Source #
The new data source name.
updateResolver_requestMappingTemplate :: Lens' UpdateResolver (Maybe Text) Source #
The new request mapping template.
A resolver uses a request mapping template to convert a GraphQL expression into a format that a data source can understand. Mapping templates are written in Apache Velocity Template Language (VTL).
VTL request mapping templates are optional when using a Lambda data source. For all other data sources, VTL request and response mapping templates are required.
updateResolver_kind :: Lens' UpdateResolver (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.
updateResolver_cachingConfig :: Lens' UpdateResolver (Maybe CachingConfig) Source #
The caching configuration for the resolver.
updateResolver_responseMappingTemplate :: Lens' UpdateResolver (Maybe Text) Source #
The new response mapping template.
updateResolver_syncConfig :: Lens' UpdateResolver (Maybe SyncConfig) Source #
The SyncConfig
for a resolver attached to a versioned datasource.
updateResolver_pipelineConfig :: Lens' UpdateResolver (Maybe PipelineConfig) Source #
The PipelineConfig
.
updateResolver_apiId :: Lens' UpdateResolver Text Source #
The API ID.
updateResolver_typeName :: Lens' UpdateResolver Text Source #
The new type name.
updateResolver_fieldName :: Lens' UpdateResolver Text Source #
The new field name.
Destructuring the Response
data UpdateResolverResponse Source #
See: newUpdateResolverResponse
smart constructor.
UpdateResolverResponse' | |
|
Instances
newUpdateResolverResponse Source #
Create a value of UpdateResolverResponse
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:resolver:UpdateResolverResponse'
, updateResolverResponse_resolver
- The updated Resolver
object.
$sel:httpStatus:UpdateResolverResponse'
, updateResolverResponse_httpStatus
- The response's http status code.
Response Lenses
updateResolverResponse_resolver :: Lens' UpdateResolverResponse (Maybe Resolver) Source #
The updated Resolver
object.
updateResolverResponse_httpStatus :: Lens' UpdateResolverResponse Int Source #
The response's http status code.