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

Description

Updates a Resolver object.

Synopsis

Creating a Request

data UpdateResolver Source #

See: newUpdateResolver smart constructor.

Constructors

UpdateResolver' 

Fields

  • dataSourceName :: Maybe Text

    The new data source name.

  • requestMappingTemplate :: Maybe Text

    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.

  • kind :: Maybe ResolverKind

    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.
  • cachingConfig :: Maybe CachingConfig

    The caching configuration for the resolver.

  • responseMappingTemplate :: Maybe Text

    The new response mapping template.

  • syncConfig :: Maybe SyncConfig

    The SyncConfig for a resolver attached to a versioned datasource.

  • pipelineConfig :: Maybe PipelineConfig

    The PipelineConfig.

  • apiId :: Text

    The API ID.

  • typeName :: Text

    The new type name.

  • fieldName :: Text

    The new field name.

Instances

Instances details
Eq UpdateResolver Source # 
Instance details

Defined in Amazonka.AppSync.UpdateResolver

Read UpdateResolver Source # 
Instance details

Defined in Amazonka.AppSync.UpdateResolver

Show UpdateResolver Source # 
Instance details

Defined in Amazonka.AppSync.UpdateResolver

Generic UpdateResolver Source # 
Instance details

Defined in Amazonka.AppSync.UpdateResolver

Associated Types

type Rep UpdateResolver :: Type -> Type #

NFData UpdateResolver Source # 
Instance details

Defined in Amazonka.AppSync.UpdateResolver

Methods

rnf :: UpdateResolver -> () #

Hashable UpdateResolver Source # 
Instance details

Defined in Amazonka.AppSync.UpdateResolver

ToJSON UpdateResolver Source # 
Instance details

Defined in Amazonka.AppSync.UpdateResolver

AWSRequest UpdateResolver Source # 
Instance details

Defined in Amazonka.AppSync.UpdateResolver

Associated Types

type AWSResponse UpdateResolver #

ToHeaders UpdateResolver Source # 
Instance details

Defined in Amazonka.AppSync.UpdateResolver

ToPath UpdateResolver Source # 
Instance details

Defined in Amazonka.AppSync.UpdateResolver

ToQuery UpdateResolver Source # 
Instance details

Defined in Amazonka.AppSync.UpdateResolver

type Rep UpdateResolver Source # 
Instance details

Defined in Amazonka.AppSync.UpdateResolver

type AWSResponse UpdateResolver Source # 
Instance details

Defined in Amazonka.AppSync.UpdateResolver

newUpdateResolver Source #

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_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_syncConfig :: Lens' UpdateResolver (Maybe SyncConfig) Source #

The SyncConfig for a resolver attached to a versioned datasource.

Destructuring the Response

data UpdateResolverResponse Source #

See: newUpdateResolverResponse smart constructor.

Constructors

UpdateResolverResponse' 

Fields

Instances

Instances details
Eq UpdateResolverResponse Source # 
Instance details

Defined in Amazonka.AppSync.UpdateResolver

Read UpdateResolverResponse Source # 
Instance details

Defined in Amazonka.AppSync.UpdateResolver

Show UpdateResolverResponse Source # 
Instance details

Defined in Amazonka.AppSync.UpdateResolver

Generic UpdateResolverResponse Source # 
Instance details

Defined in Amazonka.AppSync.UpdateResolver

Associated Types

type Rep UpdateResolverResponse :: Type -> Type #

NFData UpdateResolverResponse Source # 
Instance details

Defined in Amazonka.AppSync.UpdateResolver

Methods

rnf :: UpdateResolverResponse -> () #

type Rep UpdateResolverResponse Source # 
Instance details

Defined in Amazonka.AppSync.UpdateResolver

type Rep UpdateResolverResponse = D1 ('MetaData "UpdateResolverResponse" "Amazonka.AppSync.UpdateResolver" "libZSservicesZSamazonka-appsyncZSamazonka-appsync" 'False) (C1 ('MetaCons "UpdateResolverResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "resolver") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Resolver)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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