Interface ResolverProps
- All Superinterfaces:
BaseResolverProps
,ExtendedResolverProps
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ResolverProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-05T03:43:38.924Z")
@Stability(Stable)
public interface ResolverProps
extends software.amazon.jsii.JsiiSerializable, ExtendedResolverProps
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()
The API this resolver is attached to.Methods inherited from interface software.amazon.awscdk.services.appsync.BaseResolverProps
getCachingConfig, getCode, getFieldName, getMaxBatchSize, getPipelineConfig, getRequestMappingTemplate, getResponseMappingTemplate, getRuntime, 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
The API this resolver is attached to. -
builder
- Returns:
- a
ResolverProps.Builder
ofResolverProps
-