Write the following in case setting the static value to Integration response in API Gateway.
SomeMethod:
Type: AWS::ApiGateway::Method
Properties:
HttpMethod: POST
...
Integration:
Type: AWS
IntegrationHttpMethod: POST
...
IntegrationResponses:
- StatusCode: 200
SelectionPattern: "status:200"
ResponseParameters:
# OK
method.response.header.X-STATIC-HEADER: "'1'"
# NG
method.response.header.X-STATIC-HEADER: 1
# NG
method.response.header.X-STATIC-HEADER: "1"
Top comments (0)