UpdateResolverRequest
¶
Source code in docs_src/capo_appsync/types/update_resolver_request.py
caching_config
instance-attribute
¶
caching_config: NotRequired[CachingConfig]
The caching configuration for the resolver.
code
instance-attribute
¶
code: NotRequired[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.
data_source_name
instance-attribute
¶
data_source_name: NotRequired[ResourceName]
The new data source name.
kind
instance-attribute
¶
kind: NotRequired[ResolverKind]
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
Functionobjects in a serial manner. You can use a pipeline resolver to run a GraphQL query against multiple data sources.
max_batch_size
instance-attribute
¶
max_batch_size: MaxBatchSize
The maximum batching size for a resolver.
metrics_config
instance-attribute
¶
metrics_config: NotRequired[ResolverLevelMetricsConfig]
Enables or disables enhanced resolver metrics for specified resolvers. Note that metricsConfig won't be used unless the resolverLevelMetricsBehavior value is set to PER_RESOLVER_METRICS. If the resolverLevelMetricsBehavior is set to FULL_REQUEST_RESOLVER_METRICS instead, metricsConfig will be ignored. However, you can still set its value.
metricsConfig can be ENABLED or DISABLED.
pipeline_config
instance-attribute
¶
pipeline_config: NotRequired[PipelineConfig]
The PipelineConfig.
request_mapping_template
instance-attribute
¶
request_mapping_template: NotRequired[MappingTemplate]
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.
response_mapping_template
instance-attribute
¶
response_mapping_template: NotRequired[MappingTemplate]
The new response mapping template.
sync_config
instance-attribute
¶
sync_config: NotRequired[SyncConfig]
The SyncConfig for a resolver attached to a versioned data source.