Resolver
¶
Source code in docs_src/capo_appsync/types/resolver.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 resolver 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 request mapping template.
resolver_arn
instance-attribute
¶
resolver_arn: NotRequired[String]
The resolver Amazon Resource Name (ARN).
response_mapping_template
instance-attribute
¶
response_mapping_template: NotRequired[MappingTemplate]
The response mapping template.
sync_config
instance-attribute
¶
sync_config: NotRequired[SyncConfig]
The SyncConfig for a resolver attached to a versioned data source.