Skip to content

Commit e7ed496

Browse files
authored
Update template.yml (#70)
Signed-off-by: James Pether Sörling <pethers@users.noreply.github.com>
1 parent 709fb21 commit e7ed496

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

cloudformation/template.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -597,25 +597,25 @@ Resources:
597597
IntegrationHttpMethod: POST
598598
IntegrationResponses:
599599
- StatusCode: 200
600-
ResponseTemplates:
601-
application/json: ""
602-
ResponseParameters:
603-
method.response.header.Strict-Transport-Security: "'max-age=31536000; includeSubDomains'"
604-
method.response.header.X-Content-Type-Options: "'nosniff'"
605-
method.response.header.Cache-Control: "'no-store, no-cache, must-revalidate, private'"
606600
Type: AWS
607601
Uri: !Sub 'arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${Lambda.Arn}/invocations'
602+
# RequestValidatorId: !Ref ApiRequestValidator
603+
RequestModels:
604+
application/json:
605+
!Ref RequestModel
608606
MethodResponses:
609607
- StatusCode: 200
610-
ResponseModels:
611-
application/json: ""
612-
ResponseParameters:
613-
method.response.header.Strict-Transport-Security: true
614-
method.response.header.X-Content-Type-Options: true
615-
method.response.header.Cache-Control: true
616608
OperationName: 'lambda'
617609
ResourceId: !Ref ApiResource
618610
RestApiId: !Ref RestApi
611+
RequestModel:
612+
Type: AWS::ApiGateway::Model
613+
Properties:
614+
ContentType: 'application/json'
615+
RestApiId: !Ref RestApi
616+
Schema: {"$schema": "http://json-schema.org/draft-04/schema#",
617+
"title": "Stats",
618+
"type": "object" }
619619
ApiLoggingGroup:
620620
Type: "AWS::Logs::LogGroup"
621621
Properties:

0 commit comments

Comments
 (0)