public static interface UpdateResolverRequest.Builder extends AppSyncRequest.Builder, SdkPojo, CopyableBuilder<UpdateResolverRequest.Builder,UpdateResolverRequest>
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildUpdateResolverRequest.Builder apiId(String apiId)
The API ID.
apiId - The API ID.UpdateResolverRequest.Builder typeName(String typeName)
The new type name.
typeName - The new type name.UpdateResolverRequest.Builder fieldName(String fieldName)
The new field name.
fieldName - The new field name.UpdateResolverRequest.Builder dataSourceName(String dataSourceName)
The new data source name.
dataSourceName - The new data source name.UpdateResolverRequest.Builder requestMappingTemplate(String requestMappingTemplate)
The new request mapping template.
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 new request mapping template.
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.
UpdateResolverRequest.Builder responseMappingTemplate(String responseMappingTemplate)
The new response mapping template.
responseMappingTemplate - The new response mapping template.UpdateResolverRequest.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,
ResolverKindUpdateResolverRequest.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,
ResolverKindUpdateResolverRequest.Builder pipelineConfig(PipelineConfig pipelineConfig)
The PipelineConfig.
pipelineConfig - The PipelineConfig.default UpdateResolverRequest.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)UpdateResolverRequest.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 UpdateResolverRequest.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)UpdateResolverRequest.Builder cachingConfig(CachingConfig cachingConfig)
The caching configuration for the resolver.
cachingConfig - The caching configuration for the resolver.default UpdateResolverRequest.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)UpdateResolverRequest.Builder maxBatchSize(Integer maxBatchSize)
The maximum batching size for a resolver.
maxBatchSize - The maximum batching size for a resolver.UpdateResolverRequest.Builder runtime(AppSyncRuntime runtime)
runtime - The new value for the Runtime property for this object.default UpdateResolverRequest.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)UpdateResolverRequest.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.UpdateResolverRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderUpdateResolverRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2023. All rights reserved.