title: AWS API Gateway Method Response in CloudFormation - Output passthrough: No
body: <p>I am trying to configure the Integration Response - Output Passthrough as No. I have configure the parameter PassthroughBehavior as NEVER, however it doesn´t change the output as desired.</p>
  <p><img src="https://i.stack.imgur.com/qT0kX.png" alt="How it is deployed with my yaml" /></p>
  <p><img src="https://i.stack.imgur.com/MQjJW.png" alt="Desired configuration" /></p>
  <p>Here is my method resource (in YAML):</p>
  <pre><code>  apiresourcemsactualizartrxtransaccionesv1actualizarTransaccionesoptions:
      Type: 'AWS::ApiGateway::Method'
      Properties:
        RestApiId: !Ref apigateway
        ResourceId: !Ref apiresourcemsactualizartrxtransaccionesv1actualizarTransacciones
        HttpMethod: OPTIONS
        AuthorizationType: NONE
        RequestParameters:
          method.request.path.proxy: true
        Integration: 
          PassthroughBehavior: NEVER
          Type: MOCK
          IntegrationHttpMethod: OPTIONS
          IntegrationResponses: 
            - 
              StatusCode: 200
              ResponseParameters:
                method.response.header.Access-Control-Allow-Headers: &quot;'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token'&quot;
                method.response.header.Access-Control-Allow-Methods: &quot;'OPTIONS,PATCH'&quot;
                method.response.header.Access-Control-Allow-Origin: &quot;'*'&quot;
        MethodResponses:
          -
            StatusCode: 200
            ResponseModels:
              application/json: Empty
            ResponseParameters:
              method.response.header.Access-Control-Allow-Headers: true
              method.response.header.Access-Control-Allow-Methods: true
              method.response.header.Access-Control-Allow-Origin: true
      DependsOn: apiresourcemsactualizartrxtransaccionesv1actualizarTransacciones
  </code></pre>
  <p>Thank you very much for the help in advance.</p>