File tree Expand file tree Collapse file tree 1 file changed +29
-3
lines changed Expand file tree Collapse file tree 1 file changed +29
-3
lines changed Original file line number Diff line number Diff line change @@ -30,8 +30,28 @@ Resources:
3030 title : MultiTenant API
3131 version : 1.0.0
3232 paths :
33+ /{proxy+} :
34+ x-amazon-apigateway-any-method :
35+ parameters :
36+ - name : tenant-id
37+ in : query
38+ required : true
39+ schema :
40+ type : string
41+ - name : proxy
42+ in : path
43+ required : true
44+ schema :
45+ type : string
46+ x-amazon-apigateway-request-validator : params-only
47+ x-amazon-apigateway-integration :
48+ type : aws_proxy
49+ httpMethod : POST
50+ uri : !Sub arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${MultiTenantLambda.Arn}/invocations
51+ requestParameters :
52+ integration.request.header.X-Amz-Tenant-Id : method.request.querystring.tenant-id
3353 / :
34- get :
54+ x-amazon-apigateway-any-method :
3555 parameters :
3656 - name : tenant-id
3757 in : query
@@ -71,12 +91,18 @@ Resources:
7191 # use `LOG_LEVEL: trace` for detailed input event information
7292 LOG_LEVEL : trace
7393 Events :
74- GetRoot :
94+ RootPath :
7595 Type : Api
7696 Properties :
7797 RestApiId : !Ref MultiTenantApi
7898 Path : /
79- Method : GET
99+ Method : ANY
100+ ProxyPath :
101+ Type : Api
102+ Properties :
103+ RestApiId : !Ref MultiTenantApi
104+ Path : /{proxy+}
105+ Method : ANY
80106
81107 # Permission for API Gateway to invoke Lambda
82108 MultiTenantLambdaPermission :
You can’t perform that action at this time.
0 commit comments