AWS::AppSync::FunctionConfigurationAn example resource schema demonstrating some basic constructs and validation rules.
14 configurable properties. 3 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
ApiId | string | RequiredCreate-only |
DataSourceName | string | Required |
Name | string | Required |
Code | string | |
CodeS3Location | string | Write-only |
Description | string | |
FunctionVersion | string | |
MaxBatchSize | integer | |
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 |
|---|---|---|
FunctionArn | string | The ARN for the function generated by the service |
FunctionId | string | The unique identifier for the function generated by the service |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::AppSync::FunctionConfiguration
Resources:
MyResource:
Type: AWS::AppSync::FunctionConfiguration
Properties:
ApiId: "my-apiid"
DataSourceName: "my-datasourcename"
Name: "my-name"
Description: !Ref "AWS::StackName"Permissions CloudFormation needs in your IAM role to manage this resource.
s3:GetObjectappsync:CreateFunctionappsync:GetFunctions3:GetObjectappsync:UpdateFunctionappsync:DeleteFunctionappsync:ListFunctionsEverything you need to know about AppSync on one page. HD quality, print-friendly.
Download Free InfographicFunctionArnThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
ApiId