BaseResolverProps

class aws_cdk.aws_appsync.BaseResolverProps(*, field_name, type_name, pipeline_config=None, request_mapping_template=None, response_mapping_template=None)

Bases: object

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

Basic properties for an AppSync resolver.

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

stability :stability: experimental

Attributes

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