AWS::AppSync::ResolverThe 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 submit and the stack's current template. To cause this resource to be updated you must change a property value for this resource in the CFNshort template. Changing the S3 file content without changing a property value will not result in an update operation. See [Update Behaviors of Stack Resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html) in the *User Guide*.
17 configurable properties. 3 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
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 |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
ResolverArn | string | - |
A minimal template with required properties and common optional ones.
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"Permissions CloudFormation needs in your IAM role to manage this resource.
s3:GetObjectappsync:CreateResolverappsync:GetResolverappsync:GetResolvers3:GetObjectappsync:UpdateResolverappsync:DeleteResolverappsync:ListResolversEverything you need to know about AppSync on one page. HD quality, print-friendly.
Download Free InfographicResolverArnThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
ApiIdFieldNameTypeName