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

__init__(*, field_name, type_name, pipeline_config=None, request_mapping_template=None, response_mapping_template=None, api, data_source=None)

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

Parameters
  • field_name (str) – name of the GraphQL fiel din the given type this resolver is attached to.

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

  • pipeline_config (Union[IResolvable, None, PipelineConfigProperty]) – configuration of the pipeline resolver. Default: - create a UNIT resolver

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

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

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

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

stability :stability: experimental

Return type

None

Attributes

api

The API this resolver is attached to.

stability :stability: experimental

Return type

GraphQLApi

data_source

The data source this resolver is using.

default :default: - No datasource

stability :stability: experimental

Return type

Optional[BaseDataSource]

field_name

name of the GraphQL fiel din the given type this resolver is attached to.

stability :stability: experimental

Return type

str

pipeline_config

configuration of the pipeline resolver.

default :default: - create a UNIT resolver

stability :stability: experimental

Return type

Union[IResolvable, None, PipelineConfigProperty]

request_mapping_template

The request mapping template for this resolver.

default :default: - No mapping template

stability :stability: experimental

Return type

Optional[MappingTemplate]

response_mapping_template

The response mapping template for this resolver.

default :default: - No mapping template

stability :stability: experimental

Return type

Optional[MappingTemplate]

type_name

name of the GraphQL type this resolver is attached to.

stability :stability: experimental

Return type

str