ExtendedResolverProps¶
-
class
aws_cdk.aws_appsync.
ExtendedResolverProps
(*, field_name, type_name, caching_config=None, pipeline_config=None, request_mapping_template=None, response_mapping_template=None, data_source=None)¶ Bases:
aws_cdk.aws_appsync.BaseResolverProps
(experimental) Additional property for an AppSync resolver for data source reference.
- 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.caching_config (
Optional
[CachingConfig
]) – (experimental) The caching configuration for this resolver. Default: - No caching configurationpipeline_config (
Optional
[Sequence
[IAppsyncFunction
]]) – (experimental) configuration of the pipeline resolver. Default: - no pipeline resolver configuration An empty array | undefined sets resolver to be of kind, unitrequest_mapping_template (
Optional
[MappingTemplate
]) – (experimental) The request mapping template for this resolver. Default: - No mapping templateresponse_mapping_template (
Optional
[MappingTemplate
]) – (experimental) The response mapping template for this resolver. Default: - No mapping templatedata_source (
Optional
[BaseDataSource
]) – (experimental) The data source this resolver is using. Default: - No datasource
- Stability
experimental
- ExampleMetadata
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_appsync as appsync import aws_cdk.core as cdk # appsync_function: appsync.AppsyncFunction # base_data_source: appsync.BaseDataSource # mapping_template: appsync.MappingTemplate extended_resolver_props = appsync.ExtendedResolverProps( field_name="fieldName", type_name="typeName", # the properties below are optional caching_config=appsync.CachingConfig( ttl=cdk.Duration.minutes(30), # the properties below are optional caching_keys=["cachingKeys"] ), data_source=base_data_source, pipeline_config=[appsync_function], request_mapping_template=mapping_template, response_mapping_template=mapping_template )
Attributes
-
caching_config
¶ (experimental) The caching configuration for this resolver.
- Default
No caching configuration
- Stability
experimental
- Return type
Optional
[CachingConfig
]
-
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
[IAppsyncFunction
]]
-
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