Amazon AppSync · Example Payload

Appsync Function Configuration Example

Retrieves a post by ID

Amazon AppSyncGraphQLAPI ManagementServerless

Appsync Function Configuration Example is an example object payload from Amazon AppSync, with 12 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

functionIdfunctionArnnamedescriptiondataSourceNamerequestMappingTemplateresponseMappingTemplatefunctionVersionsyncConfigmaxBatchSizeruntimecode

Example Payload

Raw ↑
{
  "functionId": "abc123456789",
  "functionArn": "arn:aws:appsync:us-east-1:123456789012:apis/abc123/functions/abc123456789",
  "name": "GetPostFunction",
  "description": "Retrieves a post by ID",
  "dataSourceName": "MyDynamoDBDataSource",
  "requestMappingTemplate": "{\"version\":\"2018-05-29\",\"operation\":\"GetItem\"}",
  "responseMappingTemplate": "$util.toJson($ctx.result)",
  "functionVersion": "2018-05-29",
  "syncConfig": "example-string",
  "maxBatchSize": 0,
  "runtime": "example-string",
  "code": ""
}