Created
February 1, 2020 06:02
-
-
Save asishrs/1ec646f92f0aba877049cb32927d2e98 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ProxyResource: | |
Type: 'AWS::ApiGateway::Resource' | |
Properties: | |
RestApiId: !Ref ApiGatewayRestApi | |
ParentId: !GetAtt ApiGatewayRestApi.RootResourceId | |
PathPart: !Ref "apiResourcePath" | |
ProxyResourceANY: | |
Type: 'AWS::ApiGateway::Method' | |
Properties: | |
RestApiId: !Ref ApiGatewayRestApi | |
ResourceId: !Ref ProxyResource | |
HttpMethod: GET | |
ApiKeyRequired: true | |
AuthorizationType: NONE | |
OperationName: !Ref "apiResourcePath" | |
Integration: | |
Type: AWS_PROXY | |
IntegrationHttpMethod: POST | |
Uri: !Sub 'arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${LambdaFunction.Arn}/invocations' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment