public static interface CreateResolverRequest.Builder extends AppSyncRequest.Builder, SdkPojo, CopyableBuilder<CreateResolverRequest.Builder,CreateResolverRequest>
| Modifier and Type | Method and Description |
|---|---|
CreateResolverRequest.Builder |
apiId(String apiId)
The ID for the GraphQL API for which the resolver is being created.
|
CreateResolverRequest.Builder |
cachingConfig(CachingConfig cachingConfig)
The caching configuration for the resolver.
|
default CreateResolverRequest.Builder |
cachingConfig(Consumer<CachingConfig.Builder> cachingConfig)
The caching configuration for the resolver.
|
CreateResolverRequest.Builder |
code(String code)
The
resolver code that contains the request and response functions. |
CreateResolverRequest.Builder |
dataSourceName(String dataSourceName)
The name of the data source for which the resolver is being created.
|
CreateResolverRequest.Builder |
fieldName(String fieldName)
The name of the field to attach the resolver to.
|
CreateResolverRequest.Builder |
kind(ResolverKind kind)
The resolver type.
|
CreateResolverRequest.Builder |
kind(String kind)
The resolver type.
|
CreateResolverRequest.Builder |
maxBatchSize(Integer maxBatchSize)
The maximum batching size for a resolver.
|
CreateResolverRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
CreateResolverRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
default CreateResolverRequest.Builder |
pipelineConfig(Consumer<PipelineConfig.Builder> pipelineConfig)
The
PipelineConfig. |
CreateResolverRequest.Builder |
pipelineConfig(PipelineConfig pipelineConfig)
The
PipelineConfig. |
CreateResolverRequest.Builder |
requestMappingTemplate(String requestMappingTemplate)
The mapping template to use for requests.
|
CreateResolverRequest.Builder |
responseMappingTemplate(String responseMappingTemplate)
The mapping template to use for responses from the data source.
|
CreateResolverRequest.Builder |
runtime(AppSyncRuntime runtime)
Sets the value of the Runtime property for this object.
|
default CreateResolverRequest.Builder |
runtime(Consumer<AppSyncRuntime.Builder> runtime)
Sets the value of the Runtime property for this object.
|
default CreateResolverRequest.Builder |
syncConfig(Consumer<SyncConfig.Builder> syncConfig)
The
SyncConfig for a resolver attached to a versioned data source. |
CreateResolverRequest.Builder |
syncConfig(SyncConfig syncConfig)
The
SyncConfig for a resolver attached to a versioned data source. |
CreateResolverRequest.Builder |
typeName(String typeName)
The name of the
Type. |
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildCreateResolverRequest.Builder apiId(String apiId)
The ID for the GraphQL API for which the resolver is being created.
apiId - The ID for the GraphQL API for which the resolver is being created.CreateResolverRequest.Builder typeName(String typeName)
The name of the Type.
typeName - The name of the Type.CreateResolverRequest.Builder fieldName(String fieldName)
The name of the field to attach the resolver to.
fieldName - The name of the field to attach the resolver to.CreateResolverRequest.Builder dataSourceName(String dataSourceName)
The name of the data source for which the resolver is being created.
dataSourceName - The name of the data source for which the resolver is being created.CreateResolverRequest.Builder requestMappingTemplate(String requestMappingTemplate)
The mapping template to use for requests.
A resolver uses a request mapping template to convert a GraphQL expression into a format that a data source can understand. Mapping templates are written in Apache Velocity Template Language (VTL).
VTL request mapping templates are optional when using an Lambda data source. For all other data sources, VTL request and response mapping templates are required.
requestMappingTemplate - The mapping template to use for requests.
A resolver uses a request mapping template to convert a GraphQL expression into a format that a data source can understand. Mapping templates are written in Apache Velocity Template Language (VTL).
VTL request mapping templates are optional when using an Lambda data source. For all other data sources, VTL request and response mapping templates are required.
CreateResolverRequest.Builder responseMappingTemplate(String responseMappingTemplate)
The mapping template to use for responses from the data source.
responseMappingTemplate - The mapping template to use for responses from the data source.CreateResolverRequest.Builder kind(String kind)
The resolver type.
UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. You can use a UNIT resolver to run a GraphQL query against a single data source.
PIPELINE: A PIPELINE resolver type. You can use a PIPELINE resolver to invoke a series of
Function objects in a serial manner. You can use a pipeline resolver to run a GraphQL query
against multiple data sources.
kind - The resolver type.
UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. You can use a UNIT resolver to run a GraphQL query against a single data source.
PIPELINE: A PIPELINE resolver type. You can use a PIPELINE resolver to invoke a series of
Function objects in a serial manner. You can use a pipeline resolver to run a GraphQL
query against multiple data sources.
ResolverKind,
ResolverKindCreateResolverRequest.Builder kind(ResolverKind kind)
The resolver type.
UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. You can use a UNIT resolver to run a GraphQL query against a single data source.
PIPELINE: A PIPELINE resolver type. You can use a PIPELINE resolver to invoke a series of
Function objects in a serial manner. You can use a pipeline resolver to run a GraphQL query
against multiple data sources.
kind - The resolver type.
UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. You can use a UNIT resolver to run a GraphQL query against a single data source.
PIPELINE: A PIPELINE resolver type. You can use a PIPELINE resolver to invoke a series of
Function objects in a serial manner. You can use a pipeline resolver to run a GraphQL
query against multiple data sources.
ResolverKind,
ResolverKindCreateResolverRequest.Builder pipelineConfig(PipelineConfig pipelineConfig)
The PipelineConfig.
pipelineConfig - The PipelineConfig.default CreateResolverRequest.Builder pipelineConfig(Consumer<PipelineConfig.Builder> pipelineConfig)
The PipelineConfig.
PipelineConfig.Builder avoiding the need
to create one manually via PipelineConfig.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to pipelineConfig(PipelineConfig).
pipelineConfig - a consumer that will call methods on PipelineConfig.BuilderpipelineConfig(PipelineConfig)CreateResolverRequest.Builder syncConfig(SyncConfig syncConfig)
The SyncConfig for a resolver attached to a versioned data source.
syncConfig - The SyncConfig for a resolver attached to a versioned data source.default CreateResolverRequest.Builder syncConfig(Consumer<SyncConfig.Builder> syncConfig)
The SyncConfig for a resolver attached to a versioned data source.
SyncConfig.Builder avoiding the need to
create one manually via SyncConfig.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result
is passed to syncConfig(SyncConfig).
syncConfig - a consumer that will call methods on SyncConfig.BuildersyncConfig(SyncConfig)CreateResolverRequest.Builder cachingConfig(CachingConfig cachingConfig)
The caching configuration for the resolver.
cachingConfig - The caching configuration for the resolver.default CreateResolverRequest.Builder cachingConfig(Consumer<CachingConfig.Builder> cachingConfig)
The caching configuration for the resolver.
This is a convenience method that creates an instance of theCachingConfig.Builder avoiding the need
to create one manually via CachingConfig.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to cachingConfig(CachingConfig).
cachingConfig - a consumer that will call methods on CachingConfig.BuildercachingConfig(CachingConfig)CreateResolverRequest.Builder maxBatchSize(Integer maxBatchSize)
The maximum batching size for a resolver.
maxBatchSize - The maximum batching size for a resolver.CreateResolverRequest.Builder runtime(AppSyncRuntime runtime)
runtime - The new value for the Runtime property for this object.default CreateResolverRequest.Builder runtime(Consumer<AppSyncRuntime.Builder> runtime)
AppSyncRuntime.Builder avoiding the need
to create one manually via AppSyncRuntime.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to runtime(AppSyncRuntime).
runtime - a consumer that will call methods on AppSyncRuntime.Builderruntime(AppSyncRuntime)CreateResolverRequest.Builder code(String code)
The resolver code that contains the request and response functions. When code is used, the
runtime is required. The runtime value must be APPSYNC_JS.
code - The resolver code that contains the request and response functions. When code is used,
the runtime is required. The runtime value must be APPSYNC_JS.CreateResolverRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderCreateResolverRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2023. All rights reserved.