ResolverProps

class aws_cdk.aws_appsync.ResolverProps(*, field_name, type_name, pipeline_config=None, request_mapping_template=None, response_mapping_template=None, api, data_source=None)

Bases: aws_cdk.aws_appsync.BaseResolverProps

(experimental) Additional properties for an AppSync resolver like GraphQL API reference and datasource.

Parameters
  • field_name (str) – (experimental) name of the GraphQL field in the given type this resolver is attached to.

  • type_name (str) – (experimental) name of the GraphQL type this resolver is attached to.

  • pipeline_config (Optional[List[str]]) – (experimental) configuration of the pipeline resolver. Default: - no pipeline resolver configuration An empty array | undefined sets resolver to be of kind, unit

  • request_mapping_template (Optional[MappingTemplate]) – (experimental) The request mapping template for this resolver. Default: - No mapping template

  • response_mapping_template (Optional[MappingTemplate]) – (experimental) The response mapping template for this resolver. Default: - No mapping template

  • api (IGraphqlApi) – (experimental) The API this resolver is attached to.

  • data_source (Optional[BaseDataSource]) – (experimental) The data source this resolver is using. Default: - No datasource

Stability

experimental

Attributes

api

(experimental) The API this resolver is attached to.

Stability

experimental

Return type

IGraphqlApi

data_source

(experimental) The data source this resolver is using.

Default
  • No datasource

Stability

experimental

Return type

Optional[BaseDataSource]

field_name

(experimental) name of the GraphQL field in the given type this resolver is attached to.

Stability

experimental

Return type

str

pipeline_config

(experimental) configuration of the pipeline resolver.

Default

  • no pipeline resolver configuration

An empty array | undefined sets resolver to be of kind, unit

Stability

experimental

Return type

Optional[List[str]]

request_mapping_template

(experimental) The request mapping template for this resolver.

Default
  • No mapping template

Stability

experimental

Return type

Optional[MappingTemplate]

response_mapping_template

(experimental) The response mapping template for this resolver.

Default
  • No mapping template

Stability

experimental

Return type

Optional[MappingTemplate]

type_name

(experimental) name of the GraphQL type this resolver is attached to.

Stability

experimental

Return type

str