resolver
Gets an individual resolver
resource
Overview
Name | resolver |
Type | Resource |
Description | resolver |
Id | awscc.appsync.resolver |
Fields
Name | Datatype | Description |
---|---|---|
api_id | string | The APSYlong GraphQL API to which you want to attach this resolver. |
caching_config | object | The caching configuration for the resolver. |
code | string | 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_s3_location | string | The Amazon S3 endpoint. |
data_source_name | string | The resolver data source name. |
field_name | string | The GraphQL field on a type that invokes the resolver. |
kind | string | The resolver type.<br/> + *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.<br/> + *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. |
max_batch_size | integer | The maximum number of resolver request inputs that will be sent to a single LAMlong function in a ``BatchInvoke`` operation. |
pipeline_config | object | Functions linked with the pipeline resolver. |
request_mapping_template | string | The request mapping template.<br/> Request mapping templates are optional when using a Lambda data source. For all other data sources, a request mapping template is required. |
request_mapping_template_s3_location | string | The location of a request mapping template in an S3 bucket. Use this if you want to provision with a template file in S3 rather than embedding it in your CFNshort template. |
resolver_arn | string | |
response_mapping_template | string | The response mapping template. |
response_mapping_template_s3_location | string | The location of a response mapping template in an S3 bucket. Use this if you want to provision with a template file in S3 rather than embedding it in your CFNshort template. |
runtime | object | Describes a runtime used by an APSYlong resolver or APSYlong function. Specifies the name and version of the runtime to use. Note that if a runtime is specified, code must also be specified. |
sync_config | object | The ``SyncConfig`` for a resolver attached to a versioned data source. |
type_name | string | The GraphQL type that invokes this resolver. |
metrics_config | string | |
region | string | AWS region. |
Methods
Currently only SELECT
is supported for this resource resource.
Example
SELECT
region,
api_id,
caching_config,
code,
code_s3_location,
data_source_name,
field_name,
kind,
max_batch_size,
pipeline_config,
request_mapping_template,
request_mapping_template_s3_location,
resolver_arn,
response_mapping_template,
response_mapping_template_s3_location,
runtime,
sync_config,
type_name,
metrics_config
FROM awscc.appsync.resolver
WHERE data__Identifier = '<ResolverArn>';
Permissions
To operate on the resolver
resource, the following permissions are required:
Read
appsync:GetResolver
Update
s3:GetObject,
appsync:UpdateResolver
Delete
appsync:DeleteResolver