|
38 | 38 | "S3Bucket": {
|
39 | 39 | "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
|
40 | 40 | },
|
41 |
| - "S3Key": "3dc8c5549b88fef617feef923524902b3650973ae1159c9489ee8405344dd5a0.zip" |
| 41 | + "S3Key": "32958f9442f31389bed730b768bd21f066c7343a5d0e87b9cad92b365e9d3c37.zip" |
42 | 42 | },
|
| 43 | + "Handler": "index.handler", |
43 | 44 | "Role": {
|
44 | 45 | "Fn::GetAtt": [
|
45 | 46 | "MyAuthorizerFunctionServiceRole8A34C19E",
|
46 | 47 | "Arn"
|
47 | 48 | ]
|
48 | 49 | },
|
49 |
| - "Handler": "index.handler", |
50 |
| - "Runtime": "nodejs14.x" |
| 50 | + "Runtime": "nodejs16.x" |
51 | 51 | },
|
52 | 52 | "DependsOn": [
|
53 | 53 | "MyAuthorizerFunctionServiceRole8A34C19E"
|
|
191 | 191 | "MyRestApiDeploymentB555B582d83364d66d67f510f848797cd89349d5": {
|
192 | 192 | "Type": "AWS::ApiGateway::Deployment",
|
193 | 193 | "Properties": {
|
| 194 | + "Description": "Automatically created by the RestApi construct", |
194 | 195 | "RestApiId": {
|
195 | 196 | "Ref": "MyRestApi2D1F47A9"
|
196 |
| - }, |
197 |
| - "Description": "Automatically created by the RestApi construct" |
| 197 | + } |
198 | 198 | },
|
199 | 199 | "DependsOn": [
|
200 | 200 | "MyAuthorizer6575980E",
|
|
207 | 207 | "MyRestApiDeploymentStageprodC33B8E5F": {
|
208 | 208 | "Type": "AWS::ApiGateway::Stage",
|
209 | 209 | "Properties": {
|
210 |
| - "RestApiId": { |
211 |
| - "Ref": "MyRestApi2D1F47A9" |
212 |
| - }, |
213 | 210 | "DeploymentId": {
|
214 | 211 | "Ref": "MyRestApiDeploymentB555B582d83364d66d67f510f848797cd89349d5"
|
215 | 212 | },
|
| 213 | + "RestApiId": { |
| 214 | + "Ref": "MyRestApi2D1F47A9" |
| 215 | + }, |
216 | 216 | "StageName": "prod"
|
217 | 217 | },
|
218 | 218 | "DependsOn": [
|
|
222 | 222 | "MyRestApiANY05143F93": {
|
223 | 223 | "Type": "AWS::ApiGateway::Method",
|
224 | 224 | "Properties": {
|
225 |
| - "HttpMethod": "ANY", |
226 |
| - "ResourceId": { |
227 |
| - "Fn::GetAtt": [ |
228 |
| - "MyRestApi2D1F47A9", |
229 |
| - "RootResourceId" |
230 |
| - ] |
231 |
| - }, |
232 |
| - "RestApiId": { |
233 |
| - "Ref": "MyRestApi2D1F47A9" |
234 |
| - }, |
235 | 225 | "AuthorizationType": "CUSTOM",
|
236 | 226 | "AuthorizerId": {
|
237 | 227 | "Ref": "MyAuthorizer6575980E"
|
238 | 228 | },
|
| 229 | + "HttpMethod": "ANY", |
239 | 230 | "Integration": {
|
240 | 231 | "IntegrationResponses": [
|
241 | 232 | {
|
|
252 | 243 | {
|
253 | 244 | "StatusCode": "200"
|
254 | 245 | }
|
255 |
| - ] |
| 246 | + ], |
| 247 | + "ResourceId": { |
| 248 | + "Fn::GetAtt": [ |
| 249 | + "MyRestApi2D1F47A9", |
| 250 | + "RootResourceId" |
| 251 | + ] |
| 252 | + }, |
| 253 | + "RestApiId": { |
| 254 | + "Ref": "MyRestApi2D1F47A9" |
| 255 | + } |
256 | 256 | }
|
257 | 257 | },
|
258 | 258 | "MyRestApiauth918A22B9": {
|
|
273 | 273 | "MyRestApiauthANY12A3CAB7": {
|
274 | 274 | "Type": "AWS::ApiGateway::Method",
|
275 | 275 | "Properties": {
|
276 |
| - "HttpMethod": "ANY", |
277 |
| - "ResourceId": { |
278 |
| - "Ref": "MyRestApiauth918A22B9" |
279 |
| - }, |
280 |
| - "RestApiId": { |
281 |
| - "Ref": "MyRestApi2D1F47A9" |
282 |
| - }, |
283 | 276 | "AuthorizationType": "CUSTOM",
|
284 | 277 | "AuthorizerId": {
|
285 | 278 | "Ref": "MySecondAuthorizer25A69B96"
|
286 | 279 | },
|
| 280 | + "HttpMethod": "ANY", |
287 | 281 | "Integration": {
|
288 | 282 | "IntegrationResponses": [
|
289 | 283 | {
|
|
300 | 294 | {
|
301 | 295 | "StatusCode": "200"
|
302 | 296 | }
|
303 |
| - ] |
| 297 | + ], |
| 298 | + "ResourceId": { |
| 299 | + "Ref": "MyRestApiauth918A22B9" |
| 300 | + }, |
| 301 | + "RestApiId": { |
| 302 | + "Ref": "MyRestApi2D1F47A9" |
| 303 | + } |
304 | 304 | }
|
305 | 305 | },
|
306 | 306 | "MyAuthorizer6575980E": {
|
307 | 307 | "Type": "AWS::ApiGateway::Authorizer",
|
308 | 308 | "Properties": {
|
309 |
| - "Name": "RequestAuthorizerIntegMyAuthorizer5D9D41C5", |
310 |
| - "RestApiId": { |
311 |
| - "Ref": "MyRestApi2D1F47A9" |
312 |
| - }, |
313 |
| - "Type": "REQUEST", |
314 | 309 | "AuthorizerUri": {
|
315 | 310 | "Fn::Join": [
|
316 | 311 | "",
|
|
360 | 355 | ]
|
361 | 356 | ]
|
362 | 357 | },
|
363 |
| - "IdentitySource": "method.request.header.Authorization,method.request.querystring.allow" |
| 358 | + "IdentitySource": "method.request.header.Authorization,method.request.querystring.allow", |
| 359 | + "Name": "RequestAuthorizerIntegMyAuthorizer5D9D41C5", |
| 360 | + "RestApiId": { |
| 361 | + "Ref": "MyRestApi2D1F47A9" |
| 362 | + }, |
| 363 | + "Type": "REQUEST" |
364 | 364 | }
|
365 | 365 | },
|
366 | 366 | "MySecondAuthorizer25A69B96": {
|
367 | 367 | "Type": "AWS::ApiGateway::Authorizer",
|
368 | 368 | "Properties": {
|
369 |
| - "Name": "RequestAuthorizerIntegMySecondAuthorizerCCC4ECED", |
370 |
| - "RestApiId": { |
371 |
| - "Ref": "MyRestApi2D1F47A9" |
372 |
| - }, |
373 |
| - "Type": "REQUEST", |
374 | 369 | "AuthorizerUri": {
|
375 | 370 | "Fn::Join": [
|
376 | 371 | "",
|
|
420 | 415 | ]
|
421 | 416 | ]
|
422 | 417 | },
|
423 |
| - "IdentitySource": "method.request.header.Authorization,method.request.querystring.allow" |
| 418 | + "IdentitySource": "method.request.header.Authorization,method.request.querystring.allow", |
| 419 | + "Name": "RequestAuthorizerIntegMySecondAuthorizerCCC4ECED", |
| 420 | + "RestApiId": { |
| 421 | + "Ref": "MyRestApi2D1F47A9" |
| 422 | + }, |
| 423 | + "Type": "REQUEST" |
424 | 424 | }
|
425 | 425 | }
|
426 | 426 | },
|
|
0 commit comments