Examples of using Mapping template in English and their translations into Spanish
{-}
-
Official
-
Colloquial
returns uncompressed JSON payloads, any mapping template that's configured for an uncompressed JSON payload is applicable to the compressed payload.
The choices array in the output mapping template is mapped from the bins array with the root object in the original JSON data$inputRoot.
The mapping template assumes that the underlying data is of a JSON object.
API Gateway applies the mapping template, compresses the mapped payload,
API Gateway applies any mapping template that's configured for the integration response before compressing the payload.
see Use a Mapping Template to Override an API's Request
A stage variable can be used anywhere in a mapping template, as shown in the following examples.
You will set up a mapping template to map these to the JSON payload of the integration request.
This mapping template assumes that the method request payload is of the following format.
The resolver's request mapping template, written in text within the CloudFormation template. .
The JIU sent out a mapping template and received just 11 replies to the 14 sent out, despite numerous reminder requests.
The mapping template supplied here translates the greeter query string parameter to the greeter property of the JSON payload.
Replace the generated mapping script in the mapping template editor with the following.
Configure a 200 integration response to have the following body mapping template, for example.
In the template editor, type the following integration response body mapping template.
Using an integration request mapping template, you can inject application logic to decide which mock integration response to return based on certain conditions.
To create a mapping template override, use one or more of the following$context variables in a mapping template. .
The following is the input mapping template that corresponds to the original JSON data for the photos example.
Then, type the mapping template manually or choose Generate template to create one from a model template. .
API Gateway decompresses the payload, applies the mapping template, and passes the mapped request to the integration endpoint.