From 6d026b1893d7341f74fddb378c707a2d17e5d8cb Mon Sep 17 00:00:00 2001 From: Gauthier Wallet Date: Tue, 24 Jan 2017 15:06:26 +0100 Subject: [PATCH] provider/aws: Added API GW documentation regarding request/response templates (#11380) * Added aws_api_gateway_integration request_templates in the documentation * Added aws_api_gateway_integration_response response_templates in the documentation --- .../aws/r/api_gateway_integration.html.markdown | 9 +++++++++ .../r/api_gateway_integration_response.html.markdown | 11 +++++++++++ 2 files changed, 20 insertions(+) diff --git a/website/source/docs/providers/aws/r/api_gateway_integration.html.markdown b/website/source/docs/providers/aws/r/api_gateway_integration.html.markdown index d2d5ac38f..2158106d1 100644 --- a/website/source/docs/providers/aws/r/api_gateway_integration.html.markdown +++ b/website/source/docs/providers/aws/r/api_gateway_integration.html.markdown @@ -36,6 +36,15 @@ resource "aws_api_gateway_integration" "MyDemoIntegration" { resource_id = "${aws_api_gateway_resource.MyDemoResource.id}" http_method = "${aws_api_gateway_method.MyDemoMethod.http_method}" type = "MOCK" + + # Transforms the incoming XML request to JSON + request_templates { + "application/xml" = < + + $inputRoot.body + +EOF + } } ```