Skip to content

aws.appsync.list_resolvers

Example SQL Queries

SELECT * FROM
aws.appsync.list_resolvers
WHERE
"api_id" = 'VALUE'
AND "type_name" = 'VALUE';

Description

Lists the resolvers for a given API and type.

Table Definition

Column NameColumn Data Type
api_id Required Input Column

The API ID.

VARCHAR
type_name Required Input Column

The resolver type name.

VARCHAR
_aws_profile Input Column

The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role.

STRUCT(
"type" VARCHAR,
"name" VARCHAR,
"account_id" VARCHAR,
"via_profile_name" VARCHAR,
"assumed_role_arn" VARCHAR,
"organization" STRUCT(
"account_name" VARCHAR,
"id" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[],
"master_account" STRUCT(
"id" VARCHAR,
"email" VARCHAR
),
"parents" STRUCT(
"type" VARCHAR,
"id" VARCHAR,
"name" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[]
)[]
)
)
Show child fields
_aws_profile.account_id

The AWS account id

_aws_profile.assumed_role_arn

The ARN of the assumed role

_aws_profile.name

The unique name of the profile.

_aws_profile.organization

Information about this profile's membership in the AWS organization.

Show child fields
_aws_profile.organization.account_name

The name of account speciifed by the organization

_aws_profile.organization.id

The organization id

_aws_profile.organization.master_account
Show child fields
_aws_profile.organization.master_account.email

The organization master account email address

_aws_profile.organization.master_account.id

The organization master account id

_aws_profile.organization.parents[]
Show child fields
_aws_profile.organization.parents[].id

The id of the parent

_aws_profile.organization.parents[].name

The name of the parent

_aws_profile.organization.parents[].tags[]
Show child fields
_aws_profile.organization.parents[].tags[].key
_aws_profile.organization.parents[].tags[].value
_aws_profile.organization.parents[].type

The type of parent can be an organization unit or a root

_aws_profile.organization.tags[]
Show child fields
_aws_profile.organization.tags[].key
_aws_profile.organization.tags[].value
_aws_profile.type

The type of profile, either 'credentials' or 'assumed_role'

_aws_profile.via_profile_name

This IAM role for this profile is assumed by first utilizing another profile with this name to obtain credentials.

_aws_region Input Column

The AWS region to use.

VARCHAR
caching_config

The caching configuration for the resolver.

STRUCT(
"ttl" BIGINT,
"caching_keys" VARCHAR[]
)
Show child fields
caching_config.caching_keys[]
caching_config.ttl

The TTL in seconds for a resolver that has caching activated.

Valid values are 1–3,600 seconds.

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.

VARCHAR
data_source_name

The resolver data source name.

VARCHAR
field_name

The resolver field name.

VARCHAR
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.

VARCHAR
max_batch_size

The maximum batching size for a resolver.

BIGINT
metrics_config

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.

VARCHAR
pipeline_config

The PipelineConfig.

STRUCT(
"functions" VARCHAR[]
)
Show child fields
pipeline_config.functions[]
request_mapping_template

The request mapping template.

VARCHAR
resolver_arn

The resolver Amazon Resource Name (ARN).

VARCHAR
response_mapping_template

The response mapping template.

VARCHAR
runtime

Describes 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.

STRUCT(
"name" VARCHAR,
"runtime_version" VARCHAR
)
Show child fields
runtime.name

The name of the runtime to use. Currently, the only allowed value is APPSYNC_JS.

runtime.runtime_version

The version of the runtime to use. Currently, the only allowed version is 1.0.0.

sync_config

The SyncConfig for a resolver attached to a versioned data source.

STRUCT(
"conflict_handler" VARCHAR,
"conflict_detection" VARCHAR,
"lambda_conflict_handler_config" STRUCT(
"lambda_conflict_handler_arn" VARCHAR
)
)
Show child fields
sync_config.conflict_detection

The Conflict Detection strategy to use.

  • VERSION: Detect conflicts based on object versions for this resolver.

  • NONE: Do not detect conflicts when invoking this resolver.

sync_config.conflict_handler

The Conflict Resolution strategy to perform in the event of a conflict.

  • OPTIMISTIC_CONCURRENCY: Resolve conflicts by rejecting mutations when versions don't match the latest version at the server.

  • AUTOMERGE: Resolve conflicts with the Automerge conflict resolution strategy.

  • LAMBDA: Resolve conflicts with an Lambda function supplied in the LambdaConflictHandlerConfig.

sync_config.lambda_conflict_handler_config

The LambdaConflictHandlerConfig when configuring LAMBDA as the Conflict Handler.

Show child fields
sync_config.lambda_conflict_handler_config.lambda_conflict_handler_arn

The Amazon Resource Name (ARN) for the Lambda function to use as the Conflict Handler.