Resolver

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

Bases: aws_cdk.core.Construct

An AppSync resolver.

stability :stability: experimental

__init__(scope, id, *, api, data_source=None, field_name, type_name, pipeline_config=None, request_mapping_template=None, response_mapping_template=None)
Parameters
  • scope (Construct) –

  • id (str) –

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

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

  • 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

Return type

None

Methods

to_string()

Returns a string representation of this construct.

Return type

str

Attributes

arn

the ARN of the resolver.

stability :stability: experimental

Return type

str

node

The construct tree node associated with this construct.

Return type

ConstructNode

Static Methods

classmethod is_construct(x)

Return whether the given object is a Construct.

Parameters

x (Any) –

Return type

bool