AppsyncFunctionProps
- class aws_cdk.aws_appsync.AppsyncFunctionProps(*, name, description=None, request_mapping_template=None, response_mapping_template=None, api, data_source)
Bases:
BaseAppsyncFunctionProps
(experimental) the CDK properties for AppSync Functions.
- Parameters:
name (
str
) – (experimental) the name of the AppSync Function.description (
Optional
[str
]) – (experimental) the description for this AppSync Function. Default: - no descriptionrequest_mapping_template (
Optional
[MappingTemplate
]) – (experimental) the request mapping template for the AppSync Function. Default: - no request mapping templateresponse_mapping_template (
Optional
[MappingTemplate
]) – (experimental) the response mapping template for the AppSync Function. Default: - no response mapping templateapi (
IGraphqlApi
) – (experimental) the GraphQL Api linked to this AppSync Function.data_source (
BaseDataSource
) – (experimental) the data source linked to this AppSync Function.
- Stability:
experimental
- ExampleMetadata:
infused
Example:
# api: appsync.GraphqlApi appsync_function = appsync.AppsyncFunction(self, "function", name="appsync_function", api=api, data_source=api.add_none_data_source("none"), request_mapping_template=appsync.MappingTemplate.from_file("request.vtl"), response_mapping_template=appsync.MappingTemplate.from_file("response.vtl") )
Attributes
- api
(experimental) the GraphQL Api linked to this AppSync Function.
- Stability:
experimental
- data_source
(experimental) the data source linked to this AppSync Function.
- Stability:
experimental
- description
(experimental) the description for this AppSync Function.
- Default:
no description
- Stability:
experimental
- name
(experimental) the name of the AppSync Function.
- Stability:
experimental
- request_mapping_template
(experimental) the request mapping template for the AppSync Function.
- Default:
no request mapping template
- Stability:
experimental
- response_mapping_template
(experimental) the response mapping template for the AppSync Function.
- Default:
no response mapping template
- Stability:
experimental