Amazon AppSync · Example Payload

Appsync Create Function Request Example

Retrieves a post from DynamoDB

Amazon AppSyncGraphQLAPI ManagementServerless

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

Top-level fields

namedescriptiondataSourceNamerequestMappingTemplateresponseMappingTemplatefunctionVersionsyncConfigmaxBatchSizeruntimecode

Example Payload

Raw ↑
{
  "name": "GetPostFunction",
  "description": "Retrieves a post from DynamoDB",
  "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": ""
}