Interface ResolverProps
- All Superinterfaces:
BaseResolverProps,ExtendedResolverProps,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ResolverProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:49.572Z")
@Stability(Experimental)
public interface ResolverProps
extends software.amazon.jsii.JsiiSerializable, ExtendedResolverProps
(experimental) Additional property for an AppSync resolver for GraphQL API reference.
Example:
GraphqlApi api;
AppsyncFunction appsyncFunction;
Resolver pipelineResolver = Resolver.Builder.create(this, "pipeline")
.api(api)
.dataSource(api.addNoneDataSource("none"))
.typeName("typeName")
.fieldName("fieldName")
.requestMappingTemplate(MappingTemplate.fromFile("beforeRequest.vtl"))
.pipelineConfig(List.of(appsyncFunction))
.responseMappingTemplate(MappingTemplate.fromFile("afterResponse.vtl"))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forResolverPropsstatic final classAn implementation forResolverProps -
Method Summary
Modifier and TypeMethodDescriptionstatic ResolverProps.Builderbuilder()getApi()(experimental) The API this resolver is attached to.Methods inherited from interface software.amazon.awscdk.services.appsync.BaseResolverProps
getCachingConfig, getFieldName, getPipelineConfig, getRequestMappingTemplate, getResponseMappingTemplate, getTypeNameMethods inherited from interface software.amazon.awscdk.services.appsync.ExtendedResolverProps
getDataSourceMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getApi
(experimental) The API this resolver is attached to. -
builder
- Returns:
- a
ResolverProps.BuilderofResolverProps
-