title: AWS Cloudformation APIGateway Encountered unsupported property IntegrationResponses when trying to set static header value
body: <p>I am trying to set my Header Mappings on the Method Execution of an AWS APIGateway using Cloudformation.</p>
  
  <p>Here is what I want my end state to be:
  <a href="https://i.stack.imgur.com/IN7nH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IN7nH.png" alt="enter image description here"></a></p>
  
  <p>Here is the Cloudformation JSON Template snippet I am trying to use:</p>
  
  <pre><code>   "AlertDetailMock": {
    "Type": "AWS::ApiGateway::Method",
    "Properties": {
      "RestApiId": {
        "Ref": "RestApi"
      },
      "ResourceId": {
        "Ref": "AlertDetailResource"
      },
      "HttpMethod": "OPTIONS",
      "AuthorizationType": "NONE",
      "Integration": {
        "Type": "MOCK",
        "RequestTemplates": {
          "application/json": "{\"statusCode\": 200}"
        }
      },
      "IntegrationResponses": [
        {
          "ResponseTemplates": {
            "application/json": ""
          },
          "ResponseParameters": {
            "method.response.header.Access-Control-Allow-Origin": "\\'*\\'",
            "method.response.header.Access-Control-Allow-Methods": "\\'GET,OPTIONS\\'",
            "method.response.header.Access-Control-Allow-Headers": "\\'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token\\'"
          },
          "StatusCode": 200
        }
      ],
      "MethodResponses": [
        {
          "ResponseModels": {
            "application/json": {
              "Ref": "AlertDetailsModel"
            }
          },
          "ResponseParameters": {
            "method.response.header.Access-Control-Allow-Origin": true,
            "method.response.header.Access-Control-Allow-Methods": true,
            "method.response.header.Access-Control-Allow-Headers": true
          },
          "StatusCode": 200
        }
      ]
    }
  },
  </code></pre>
  
  <p>When I run the template I get the following error:  </p>
  
  <pre><code>    14:23:06 UTC-0400   CREATE_FAILED   AWS::ApiGateway::Method AlertDetailMock Encountered unsupported property IntegrationResponses
  </code></pre>
  
  <p>The documentation <a href="https://docs.aws.amazon.com/apigateway/latest/developerguide/request-response-data-mappings.html" rel="nofollow noreferrer">here</a> says: </p>
  
  <blockquote>
    <p>Static value  'STATIC_VALUE'. The STATIC_VALUE is a string literal and must be enclosed within a pair of single quotes.</p>
  </blockquote>
  
  <p>I have tried every combination of escape that I could think of to no avail.</p>