Class Resolver.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.Resolver.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<Resolver>
- Enclosing class:
- Resolver
@Stability(Experimental)
public static final class Resolver.Builder
extends Object
implements software.amazon.jsii.Builder<Resolver>
(experimental) A fluent builder for
Resolver
.-
Method Summary
Modifier and TypeMethodDescriptionapi
(IGraphqlApi api) (experimental) The API this resolver is attached to.build()
cachingConfig
(CachingConfig cachingConfig) (experimental) The caching configuration for this resolver.static Resolver.Builder
dataSource
(BaseDataSource dataSource) (experimental) The data source this resolver is using.(experimental) name of the GraphQL field in the given type this resolver is attached to.pipelineConfig
(List<? extends IAppsyncFunction> pipelineConfig) (experimental) configuration of the pipeline resolver.requestMappingTemplate
(MappingTemplate requestMappingTemplate) (experimental) The request mapping template for this resolver.responseMappingTemplate
(MappingTemplate responseMappingTemplate) (experimental) The response mapping template for this resolver.(experimental) name of the GraphQL type this resolver is attached to.
-
Method Details
-
create
@Stability(Experimental) public static Resolver.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
Resolver.Builder
.
-
fieldName
(experimental) name of the GraphQL field in the given type this resolver is attached to.- Parameters:
fieldName
- name of the GraphQL field in the given type this resolver is attached to. This parameter is required.- Returns:
this
-
typeName
(experimental) name of the GraphQL type this resolver is attached to.- Parameters:
typeName
- name of the GraphQL type this resolver is attached to. This parameter is required.- Returns:
this
-
cachingConfig
(experimental) The caching configuration for this resolver.Default: - No caching configuration
- Parameters:
cachingConfig
- The caching configuration for this resolver. This parameter is required.- Returns:
this
-
pipelineConfig
@Stability(Experimental) public Resolver.Builder pipelineConfig(List<? extends IAppsyncFunction> pipelineConfig) (experimental) configuration of the pipeline resolver.Default: - no pipeline resolver configuration An empty array | undefined sets resolver to be of kind, unit
- Parameters:
pipelineConfig
- configuration of the pipeline resolver. This parameter is required.- Returns:
this
-
requestMappingTemplate
@Stability(Experimental) public Resolver.Builder requestMappingTemplate(MappingTemplate requestMappingTemplate) (experimental) The request mapping template for this resolver.Default: - No mapping template
- Parameters:
requestMappingTemplate
- The request mapping template for this resolver. This parameter is required.- Returns:
this
-
responseMappingTemplate
@Stability(Experimental) public Resolver.Builder responseMappingTemplate(MappingTemplate responseMappingTemplate) (experimental) The response mapping template for this resolver.Default: - No mapping template
- Parameters:
responseMappingTemplate
- The response mapping template for this resolver. This parameter is required.- Returns:
this
-
dataSource
(experimental) The data source this resolver is using.Default: - No datasource
- Parameters:
dataSource
- The data source this resolver is using. This parameter is required.- Returns:
this
-
api
(experimental) The API this resolver is attached to.- Parameters:
api
- The API this resolver is attached to. This parameter is required.- Returns:
this
-
build
-