Skip to main content

resolvers_by_functions

Creates, updates, deletes, gets or lists a resolvers_by_functions resource.

Overview

Nameresolvers_by_functions
TypeResource
Idaws.appsync.resolvers_by_functions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
caching_configobjectThe caching configuration for a resolver that has caching activated.
codestringThe 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_namestringThe resolver data source name. (pattern: <code>[_A-Za-z][_0-9A-Za-z]*</code>)
field_namestringThe resolver field name. (pattern: <code>[_A-Za-z][_0-9A-Za-z]*</code>)
kindstringThe 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. (UNIT, PIPELINE)
max_batch_sizeintegerThe maximum batching size for a resolver.
metrics_configstringEnables 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. (ENABLED, DISABLED)
pipeline_configobjectThe pipeline configuration for a resolver of kind PIPELINE.
request_mapping_templatestringThe request mapping template. (pattern: <code>^.*$</code>)
resolver_arnstringThe resolver Amazon Resource Name (ARN).
response_mapping_templatestringThe response mapping template. (pattern: <code>^.*$</code>)
runtimeobjectDescribes a runtime used by an Amazon Web Services AppSync pipeline resolver or Amazon Web Services AppSync function. Specifies the name and version of the runtime to use. Note that if a runtime is specified, code must also be specified.
sync_configobjectDescribes a Sync configuration for a resolver. Specifies which Conflict Detection strategy and Resolution strategy to use when the resolver is invoked.
type_namestringThe resolver type name. (pattern: <code>[_A-Za-z][_0-9A-Za-z]*</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_resolvers_by_functionselectapi_id, function_id, regionnextToken, maxResultsList the resolvers that are associated with a specific function.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
api_idstringThe API ID.
function_idstringThe function ID.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results that you want the request to return.
nextTokenstringAn identifier that was returned from the previous call to this operation, which you can use to return the next set of items in the list.

SELECT examples

List the resolvers that are associated with a specific function.

SELECT
caching_config,
code,
data_source_name,
field_name,
kind,
max_batch_size,
metrics_config,
pipeline_config,
request_mapping_template,
resolver_arn,
response_mapping_template,
runtime,
sync_config,
type_name
FROM aws.appsync.resolvers_by_functions
WHERE api_id = '{{ api_id }}' -- required
AND function_id = '{{ function_id }}' -- required
AND region = '{{ region }}' -- required
AND nextToken = '{{ nextToken }}'
AND maxResults = '{{ maxResults }}'
;