AWS Fundamentals Logo
AWS Fundamentals
AWS::AppSync::Resolver

AppSync Resolver

The AWS::AppSync::Resolver resource defines the logical GraphQL resolver that you attach to fields in a schema. Request and response templates for resolvers are written in Apache Velocity Template Language (VTL) format. For more information about resolvers, see [Resolver Mapping Template Reference](https://docs.aws.amazon.com/appsync/latest/devguide/resolver-mapping-template-reference.html). When you submit an update, CFNLong updates resources based on differences between what you submi...

Properties

17 configurable properties. 3 required. Click a row to see details.

Filter:
PropertyTypeFlags
ApiId
string
RequiredCreate-only
FieldName
string
RequiredCreate-only
TypeName
string
RequiredCreate-only
CachingConfig
CachingConfig
Code
string
CodeS3Location
string
Write-only
DataSourceName
string
Kind
string
MaxBatchSize
integer
MetricsConfig
string
PipelineConfig
PipelineConfig
RequestMappingTemplate
string
RequestMappingTemplateS3Location
string
Write-only
ResponseMappingTemplate
string
ResponseMappingTemplateS3Location
string
Write-only
Runtime
AppSyncRuntime
SyncConfig
SyncConfig

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
ResolverArnstring-

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::AppSync::Resolver

Resources:
  MyResource:
    Type: AWS::AppSync::Resolver
    Properties:
      TypeName: "my-typename"
      ApiId: "my-apiid"
      FieldName: "my-fieldname"

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

s3:GetObjectappsync:CreateResolverappsync:GetResolver

read

appsync:GetResolver

update

s3:GetObjectappsync:UpdateResolver

delete

appsync:DeleteResolver

list

appsync:ListResolvers

Get the AppSync Cheat Sheet

Everything you need to know about AppSync on one page. HD quality, print-friendly.

Download Free Infographic

Quick Facts

ServiceAppSync
Properties18
Required3
TaggingNot supported
Primary IDResolverArn

Supported Operations

CreateReadUpdateDeleteList

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

ApiIdFieldNameTypeName

External Links