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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forResolverProps
static final class
An implementation forResolverProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic ResolverProps.Builder
builder()
getApi()
(experimental) The API this resolver is attached to.Methods inherited from interface software.amazon.awscdk.services.appsync.BaseResolverProps
getCachingConfig, getFieldName, getPipelineConfig, getRequestMappingTemplate, getResponseMappingTemplate, getTypeName
Methods inherited from interface software.amazon.awscdk.services.appsync.ExtendedResolverProps
getDataSource
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getApi
(experimental) The API this resolver is attached to. -
builder
- Returns:
- a
ResolverProps.Builder
ofResolverProps
-