@aws-solutions-constructs/aws-apigateway-lambda 2.50.0 → 2.52.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/.eslintignore +5 -1
  2. package/.jsii +50 -5
  3. package/integ.config.json +7 -0
  4. package/lib/index.js +1 -1
  5. package/package.json +12 -11
  6. package/test/integ.apilam-deployFunction.js +5 -2
  7. package/test/integ.apilam-deployFunction.js.snapshot/apilam-deployFunction.assets.json +32 -0
  8. package/test/integ.apilam-deployFunction.js.snapshot/apilam-deployFunction.template.json +632 -0
  9. package/test/integ.apilam-deployFunction.js.snapshot/apilamdeployFunctionIntegDefaultTestDeployAssert281C111D.assets.json +19 -0
  10. package/test/integ.apilam-deployFunction.js.snapshot/apilamdeployFunctionIntegDefaultTestDeployAssert281C111D.template.json +36 -0
  11. package/test/integ.apilam-deployFunction.js.snapshot/asset.0904d3723480fed2daf7885caa427b930881caae6879d1e6b0d395020173ef6f/index.js +21 -0
  12. package/test/integ.apilam-deployFunction.js.snapshot/cdk.out +1 -0
  13. package/test/integ.apilam-deployFunction.js.snapshot/integ.json +12 -0
  14. package/test/integ.apilam-deployFunction.js.snapshot/manifest.json +215 -0
  15. package/test/integ.apilam-deployFunction.js.snapshot/tree.json +927 -0
  16. package/test/integ.apilam-existingFunction.js +5 -2
  17. package/test/integ.apilam-existingFunction.js.snapshot/apilam-existingFunction.assets.json +32 -0
  18. package/test/integ.apilam-existingFunction.js.snapshot/apilam-existingFunction.template.json +632 -0
  19. package/test/integ.apilam-existingFunction.js.snapshot/apilamexistingFunctionIntegDefaultTestDeployAssert4238FD03.assets.json +19 -0
  20. package/test/integ.apilam-existingFunction.js.snapshot/apilamexistingFunctionIntegDefaultTestDeployAssert4238FD03.template.json +36 -0
  21. package/test/integ.apilam-existingFunction.js.snapshot/asset.0904d3723480fed2daf7885caa427b930881caae6879d1e6b0d395020173ef6f/index.js +21 -0
  22. package/test/integ.apilam-existingFunction.js.snapshot/cdk.out +1 -0
  23. package/test/integ.apilam-existingFunction.js.snapshot/integ.json +12 -0
  24. package/test/integ.apilam-existingFunction.js.snapshot/manifest.json +215 -0
  25. package/test/integ.apilam-existingFunction.js.snapshot/tree.json +927 -0
  26. package/test/integ.apilam-deployFunction.expected.json +0 -632
  27. package/test/integ.apilam-existingFunction.expected.json +0 -632
@@ -0,0 +1,927 @@
1
+ {
2
+ "version": "tree-0.1",
3
+ "tree": {
4
+ "id": "App",
5
+ "path": "",
6
+ "children": {
7
+ "apilam-deployFunction": {
8
+ "id": "apilam-deployFunction",
9
+ "path": "apilam-deployFunction",
10
+ "children": {
11
+ "test-apigateway-lambda": {
12
+ "id": "test-apigateway-lambda",
13
+ "path": "apilam-deployFunction/test-apigateway-lambda",
14
+ "children": {
15
+ "LambdaFunctionServiceRole": {
16
+ "id": "LambdaFunctionServiceRole",
17
+ "path": "apilam-deployFunction/test-apigateway-lambda/LambdaFunctionServiceRole",
18
+ "children": {
19
+ "ImportLambdaFunctionServiceRole": {
20
+ "id": "ImportLambdaFunctionServiceRole",
21
+ "path": "apilam-deployFunction/test-apigateway-lambda/LambdaFunctionServiceRole/ImportLambdaFunctionServiceRole",
22
+ "constructInfo": {
23
+ "fqn": "aws-cdk-lib.Resource",
24
+ "version": "2.118.0"
25
+ }
26
+ },
27
+ "Resource": {
28
+ "id": "Resource",
29
+ "path": "apilam-deployFunction/test-apigateway-lambda/LambdaFunctionServiceRole/Resource",
30
+ "attributes": {
31
+ "aws:cdk:cloudformation:type": "AWS::IAM::Role",
32
+ "aws:cdk:cloudformation:props": {
33
+ "assumeRolePolicyDocument": {
34
+ "Statement": [
35
+ {
36
+ "Action": "sts:AssumeRole",
37
+ "Effect": "Allow",
38
+ "Principal": {
39
+ "Service": "lambda.amazonaws.com"
40
+ }
41
+ }
42
+ ],
43
+ "Version": "2012-10-17"
44
+ },
45
+ "policies": [
46
+ {
47
+ "policyName": "LambdaFunctionServiceRolePolicy",
48
+ "policyDocument": {
49
+ "Statement": [
50
+ {
51
+ "Action": [
52
+ "logs:CreateLogGroup",
53
+ "logs:CreateLogStream",
54
+ "logs:PutLogEvents"
55
+ ],
56
+ "Effect": "Allow",
57
+ "Resource": {
58
+ "Fn::Join": [
59
+ "",
60
+ [
61
+ "arn:",
62
+ {
63
+ "Ref": "AWS::Partition"
64
+ },
65
+ ":logs:",
66
+ {
67
+ "Ref": "AWS::Region"
68
+ },
69
+ ":",
70
+ {
71
+ "Ref": "AWS::AccountId"
72
+ },
73
+ ":log-group:/aws/lambda/*"
74
+ ]
75
+ ]
76
+ }
77
+ }
78
+ ],
79
+ "Version": "2012-10-17"
80
+ }
81
+ }
82
+ ]
83
+ }
84
+ },
85
+ "constructInfo": {
86
+ "fqn": "aws-cdk-lib.aws_iam.CfnRole",
87
+ "version": "2.118.0"
88
+ }
89
+ },
90
+ "DefaultPolicy": {
91
+ "id": "DefaultPolicy",
92
+ "path": "apilam-deployFunction/test-apigateway-lambda/LambdaFunctionServiceRole/DefaultPolicy",
93
+ "children": {
94
+ "Resource": {
95
+ "id": "Resource",
96
+ "path": "apilam-deployFunction/test-apigateway-lambda/LambdaFunctionServiceRole/DefaultPolicy/Resource",
97
+ "attributes": {
98
+ "aws:cdk:cloudformation:type": "AWS::IAM::Policy",
99
+ "aws:cdk:cloudformation:props": {
100
+ "policyDocument": {
101
+ "Statement": [
102
+ {
103
+ "Action": [
104
+ "xray:PutTelemetryRecords",
105
+ "xray:PutTraceSegments"
106
+ ],
107
+ "Effect": "Allow",
108
+ "Resource": "*"
109
+ }
110
+ ],
111
+ "Version": "2012-10-17"
112
+ },
113
+ "policyName": "testapigatewaylambdaLambdaFunctionServiceRoleDefaultPolicyA5D0BE32",
114
+ "roles": [
115
+ {
116
+ "Ref": "testapigatewaylambdaLambdaFunctionServiceRole5CD2E9F7"
117
+ }
118
+ ]
119
+ }
120
+ },
121
+ "constructInfo": {
122
+ "fqn": "aws-cdk-lib.aws_iam.CfnPolicy",
123
+ "version": "2.118.0"
124
+ }
125
+ }
126
+ },
127
+ "constructInfo": {
128
+ "fqn": "aws-cdk-lib.aws_iam.Policy",
129
+ "version": "2.118.0"
130
+ }
131
+ }
132
+ },
133
+ "constructInfo": {
134
+ "fqn": "aws-cdk-lib.aws_iam.Role",
135
+ "version": "2.118.0"
136
+ }
137
+ },
138
+ "LambdaFunction": {
139
+ "id": "LambdaFunction",
140
+ "path": "apilam-deployFunction/test-apigateway-lambda/LambdaFunction",
141
+ "children": {
142
+ "Code": {
143
+ "id": "Code",
144
+ "path": "apilam-deployFunction/test-apigateway-lambda/LambdaFunction/Code",
145
+ "children": {
146
+ "Stage": {
147
+ "id": "Stage",
148
+ "path": "apilam-deployFunction/test-apigateway-lambda/LambdaFunction/Code/Stage",
149
+ "constructInfo": {
150
+ "fqn": "aws-cdk-lib.AssetStaging",
151
+ "version": "2.118.0"
152
+ }
153
+ },
154
+ "AssetBucket": {
155
+ "id": "AssetBucket",
156
+ "path": "apilam-deployFunction/test-apigateway-lambda/LambdaFunction/Code/AssetBucket",
157
+ "constructInfo": {
158
+ "fqn": "aws-cdk-lib.aws_s3.BucketBase",
159
+ "version": "2.118.0"
160
+ }
161
+ }
162
+ },
163
+ "constructInfo": {
164
+ "fqn": "aws-cdk-lib.aws_s3_assets.Asset",
165
+ "version": "2.118.0"
166
+ }
167
+ },
168
+ "Resource": {
169
+ "id": "Resource",
170
+ "path": "apilam-deployFunction/test-apigateway-lambda/LambdaFunction/Resource",
171
+ "attributes": {
172
+ "aws:cdk:cloudformation:type": "AWS::Lambda::Function",
173
+ "aws:cdk:cloudformation:props": {
174
+ "code": {
175
+ "s3Bucket": {
176
+ "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
177
+ },
178
+ "s3Key": "0904d3723480fed2daf7885caa427b930881caae6879d1e6b0d395020173ef6f.zip"
179
+ },
180
+ "environment": {
181
+ "variables": {
182
+ "AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1"
183
+ }
184
+ },
185
+ "handler": "index.handler",
186
+ "role": {
187
+ "Fn::GetAtt": [
188
+ "testapigatewaylambdaLambdaFunctionServiceRole5CD2E9F7",
189
+ "Arn"
190
+ ]
191
+ },
192
+ "runtime": "nodejs16.x",
193
+ "tracingConfig": {
194
+ "mode": "Active"
195
+ }
196
+ }
197
+ },
198
+ "constructInfo": {
199
+ "fqn": "aws-cdk-lib.aws_lambda.CfnFunction",
200
+ "version": "2.118.0"
201
+ }
202
+ }
203
+ },
204
+ "constructInfo": {
205
+ "fqn": "aws-cdk-lib.aws_lambda.Function",
206
+ "version": "2.118.0"
207
+ }
208
+ },
209
+ "ApiAccessLogGroup": {
210
+ "id": "ApiAccessLogGroup",
211
+ "path": "apilam-deployFunction/test-apigateway-lambda/ApiAccessLogGroup",
212
+ "children": {
213
+ "Resource": {
214
+ "id": "Resource",
215
+ "path": "apilam-deployFunction/test-apigateway-lambda/ApiAccessLogGroup/Resource",
216
+ "attributes": {
217
+ "aws:cdk:cloudformation:type": "AWS::Logs::LogGroup",
218
+ "aws:cdk:cloudformation:props": {}
219
+ },
220
+ "constructInfo": {
221
+ "fqn": "aws-cdk-lib.aws_logs.CfnLogGroup",
222
+ "version": "2.118.0"
223
+ }
224
+ }
225
+ },
226
+ "constructInfo": {
227
+ "fqn": "aws-cdk-lib.aws_logs.LogGroup",
228
+ "version": "2.118.0"
229
+ }
230
+ },
231
+ "LambdaRestApi": {
232
+ "id": "LambdaRestApi",
233
+ "path": "apilam-deployFunction/test-apigateway-lambda/LambdaRestApi",
234
+ "children": {
235
+ "Resource": {
236
+ "id": "Resource",
237
+ "path": "apilam-deployFunction/test-apigateway-lambda/LambdaRestApi/Resource",
238
+ "attributes": {
239
+ "aws:cdk:cloudformation:type": "AWS::ApiGateway::RestApi",
240
+ "aws:cdk:cloudformation:props": {
241
+ "endpointConfiguration": {
242
+ "types": [
243
+ "EDGE"
244
+ ]
245
+ },
246
+ "name": "LambdaRestApi"
247
+ }
248
+ },
249
+ "constructInfo": {
250
+ "fqn": "aws-cdk-lib.aws_apigateway.CfnRestApi",
251
+ "version": "2.118.0"
252
+ }
253
+ },
254
+ "Deployment": {
255
+ "id": "Deployment",
256
+ "path": "apilam-deployFunction/test-apigateway-lambda/LambdaRestApi/Deployment",
257
+ "children": {
258
+ "Resource": {
259
+ "id": "Resource",
260
+ "path": "apilam-deployFunction/test-apigateway-lambda/LambdaRestApi/Deployment/Resource",
261
+ "attributes": {
262
+ "aws:cdk:cloudformation:type": "AWS::ApiGateway::Deployment",
263
+ "aws:cdk:cloudformation:props": {
264
+ "description": "Automatically created by the RestApi construct",
265
+ "restApiId": {
266
+ "Ref": "testapigatewaylambdaLambdaRestApiE957E944"
267
+ }
268
+ }
269
+ },
270
+ "constructInfo": {
271
+ "fqn": "aws-cdk-lib.aws_apigateway.CfnDeployment",
272
+ "version": "2.118.0"
273
+ }
274
+ }
275
+ },
276
+ "constructInfo": {
277
+ "fqn": "aws-cdk-lib.aws_apigateway.Deployment",
278
+ "version": "2.118.0"
279
+ }
280
+ },
281
+ "DeploymentStage.prod": {
282
+ "id": "DeploymentStage.prod",
283
+ "path": "apilam-deployFunction/test-apigateway-lambda/LambdaRestApi/DeploymentStage.prod",
284
+ "children": {
285
+ "Resource": {
286
+ "id": "Resource",
287
+ "path": "apilam-deployFunction/test-apigateway-lambda/LambdaRestApi/DeploymentStage.prod/Resource",
288
+ "attributes": {
289
+ "aws:cdk:cloudformation:type": "AWS::ApiGateway::Stage",
290
+ "aws:cdk:cloudformation:props": {
291
+ "accessLogSetting": {
292
+ "destinationArn": {
293
+ "Fn::GetAtt": [
294
+ "testapigatewaylambdaApiAccessLogGroupEB3253A2",
295
+ "Arn"
296
+ ]
297
+ },
298
+ "format": "{\"requestId\":\"$context.requestId\",\"ip\":\"$context.identity.sourceIp\",\"user\":\"$context.identity.user\",\"caller\":\"$context.identity.caller\",\"requestTime\":\"$context.requestTime\",\"httpMethod\":\"$context.httpMethod\",\"resourcePath\":\"$context.resourcePath\",\"status\":\"$context.status\",\"protocol\":\"$context.protocol\",\"responseLength\":\"$context.responseLength\"}"
299
+ },
300
+ "deploymentId": {
301
+ "Ref": "testapigatewaylambdaLambdaRestApiDeployment85334BB3a1765c45928980e423727978265730d1"
302
+ },
303
+ "methodSettings": [
304
+ {
305
+ "httpMethod": "*",
306
+ "resourcePath": "/*",
307
+ "dataTraceEnabled": false,
308
+ "loggingLevel": "INFO"
309
+ }
310
+ ],
311
+ "restApiId": {
312
+ "Ref": "testapigatewaylambdaLambdaRestApiE957E944"
313
+ },
314
+ "stageName": "prod",
315
+ "tracingEnabled": true
316
+ }
317
+ },
318
+ "constructInfo": {
319
+ "fqn": "aws-cdk-lib.aws_apigateway.CfnStage",
320
+ "version": "2.118.0"
321
+ }
322
+ }
323
+ },
324
+ "constructInfo": {
325
+ "fqn": "aws-cdk-lib.aws_apigateway.Stage",
326
+ "version": "2.118.0"
327
+ }
328
+ },
329
+ "Endpoint": {
330
+ "id": "Endpoint",
331
+ "path": "apilam-deployFunction/test-apigateway-lambda/LambdaRestApi/Endpoint",
332
+ "constructInfo": {
333
+ "fqn": "aws-cdk-lib.CfnOutput",
334
+ "version": "2.118.0"
335
+ }
336
+ },
337
+ "Default": {
338
+ "id": "Default",
339
+ "path": "apilam-deployFunction/test-apigateway-lambda/LambdaRestApi/Default",
340
+ "children": {
341
+ "{proxy+}": {
342
+ "id": "{proxy+}",
343
+ "path": "apilam-deployFunction/test-apigateway-lambda/LambdaRestApi/Default/{proxy+}",
344
+ "children": {
345
+ "Resource": {
346
+ "id": "Resource",
347
+ "path": "apilam-deployFunction/test-apigateway-lambda/LambdaRestApi/Default/{proxy+}/Resource",
348
+ "attributes": {
349
+ "aws:cdk:cloudformation:type": "AWS::ApiGateway::Resource",
350
+ "aws:cdk:cloudformation:props": {
351
+ "parentId": {
352
+ "Fn::GetAtt": [
353
+ "testapigatewaylambdaLambdaRestApiE957E944",
354
+ "RootResourceId"
355
+ ]
356
+ },
357
+ "pathPart": "{proxy+}",
358
+ "restApiId": {
359
+ "Ref": "testapigatewaylambdaLambdaRestApiE957E944"
360
+ }
361
+ }
362
+ },
363
+ "constructInfo": {
364
+ "fqn": "aws-cdk-lib.aws_apigateway.CfnResource",
365
+ "version": "2.118.0"
366
+ }
367
+ },
368
+ "ANY": {
369
+ "id": "ANY",
370
+ "path": "apilam-deployFunction/test-apigateway-lambda/LambdaRestApi/Default/{proxy+}/ANY",
371
+ "children": {
372
+ "ApiPermission.apilamdeployFunctiontestapigatewaylambdaLambdaRestApiAF929C5F.ANY..{proxy+}": {
373
+ "id": "ApiPermission.apilamdeployFunctiontestapigatewaylambdaLambdaRestApiAF929C5F.ANY..{proxy+}",
374
+ "path": "apilam-deployFunction/test-apigateway-lambda/LambdaRestApi/Default/{proxy+}/ANY/ApiPermission.apilamdeployFunctiontestapigatewaylambdaLambdaRestApiAF929C5F.ANY..{proxy+}",
375
+ "attributes": {
376
+ "aws:cdk:cloudformation:type": "AWS::Lambda::Permission",
377
+ "aws:cdk:cloudformation:props": {
378
+ "action": "lambda:InvokeFunction",
379
+ "functionName": {
380
+ "Fn::GetAtt": [
381
+ "testapigatewaylambdaLambdaFunction18FF222F",
382
+ "Arn"
383
+ ]
384
+ },
385
+ "principal": "apigateway.amazonaws.com",
386
+ "sourceArn": {
387
+ "Fn::Join": [
388
+ "",
389
+ [
390
+ "arn:",
391
+ {
392
+ "Ref": "AWS::Partition"
393
+ },
394
+ ":execute-api:",
395
+ {
396
+ "Ref": "AWS::Region"
397
+ },
398
+ ":",
399
+ {
400
+ "Ref": "AWS::AccountId"
401
+ },
402
+ ":",
403
+ {
404
+ "Ref": "testapigatewaylambdaLambdaRestApiE957E944"
405
+ },
406
+ "/",
407
+ {
408
+ "Ref": "testapigatewaylambdaLambdaRestApiDeploymentStageprod4EBF7247"
409
+ },
410
+ "/*/*"
411
+ ]
412
+ ]
413
+ }
414
+ }
415
+ },
416
+ "constructInfo": {
417
+ "fqn": "aws-cdk-lib.aws_lambda.CfnPermission",
418
+ "version": "2.118.0"
419
+ }
420
+ },
421
+ "ApiPermission.Test.apilamdeployFunctiontestapigatewaylambdaLambdaRestApiAF929C5F.ANY..{proxy+}": {
422
+ "id": "ApiPermission.Test.apilamdeployFunctiontestapigatewaylambdaLambdaRestApiAF929C5F.ANY..{proxy+}",
423
+ "path": "apilam-deployFunction/test-apigateway-lambda/LambdaRestApi/Default/{proxy+}/ANY/ApiPermission.Test.apilamdeployFunctiontestapigatewaylambdaLambdaRestApiAF929C5F.ANY..{proxy+}",
424
+ "attributes": {
425
+ "aws:cdk:cloudformation:type": "AWS::Lambda::Permission",
426
+ "aws:cdk:cloudformation:props": {
427
+ "action": "lambda:InvokeFunction",
428
+ "functionName": {
429
+ "Fn::GetAtt": [
430
+ "testapigatewaylambdaLambdaFunction18FF222F",
431
+ "Arn"
432
+ ]
433
+ },
434
+ "principal": "apigateway.amazonaws.com",
435
+ "sourceArn": {
436
+ "Fn::Join": [
437
+ "",
438
+ [
439
+ "arn:",
440
+ {
441
+ "Ref": "AWS::Partition"
442
+ },
443
+ ":execute-api:",
444
+ {
445
+ "Ref": "AWS::Region"
446
+ },
447
+ ":",
448
+ {
449
+ "Ref": "AWS::AccountId"
450
+ },
451
+ ":",
452
+ {
453
+ "Ref": "testapigatewaylambdaLambdaRestApiE957E944"
454
+ },
455
+ "/test-invoke-stage/*/*"
456
+ ]
457
+ ]
458
+ }
459
+ }
460
+ },
461
+ "constructInfo": {
462
+ "fqn": "aws-cdk-lib.aws_lambda.CfnPermission",
463
+ "version": "2.118.0"
464
+ }
465
+ },
466
+ "Resource": {
467
+ "id": "Resource",
468
+ "path": "apilam-deployFunction/test-apigateway-lambda/LambdaRestApi/Default/{proxy+}/ANY/Resource",
469
+ "attributes": {
470
+ "aws:cdk:cloudformation:type": "AWS::ApiGateway::Method",
471
+ "aws:cdk:cloudformation:props": {
472
+ "authorizationType": "AWS_IAM",
473
+ "httpMethod": "ANY",
474
+ "integration": {
475
+ "type": "AWS_PROXY",
476
+ "uri": {
477
+ "Fn::Join": [
478
+ "",
479
+ [
480
+ "arn:",
481
+ {
482
+ "Ref": "AWS::Partition"
483
+ },
484
+ ":apigateway:",
485
+ {
486
+ "Ref": "AWS::Region"
487
+ },
488
+ ":lambda:path/2015-03-31/functions/",
489
+ {
490
+ "Fn::GetAtt": [
491
+ "testapigatewaylambdaLambdaFunction18FF222F",
492
+ "Arn"
493
+ ]
494
+ },
495
+ "/invocations"
496
+ ]
497
+ ]
498
+ },
499
+ "integrationHttpMethod": "POST"
500
+ },
501
+ "resourceId": {
502
+ "Ref": "testapigatewaylambdaLambdaRestApiproxy2C2C544E"
503
+ },
504
+ "restApiId": {
505
+ "Ref": "testapigatewaylambdaLambdaRestApiE957E944"
506
+ }
507
+ }
508
+ },
509
+ "constructInfo": {
510
+ "fqn": "aws-cdk-lib.aws_apigateway.CfnMethod",
511
+ "version": "2.118.0"
512
+ }
513
+ }
514
+ },
515
+ "constructInfo": {
516
+ "fqn": "aws-cdk-lib.aws_apigateway.Method",
517
+ "version": "2.118.0"
518
+ }
519
+ }
520
+ },
521
+ "constructInfo": {
522
+ "fqn": "aws-cdk-lib.aws_apigateway.ProxyResource",
523
+ "version": "2.118.0"
524
+ }
525
+ },
526
+ "ANY": {
527
+ "id": "ANY",
528
+ "path": "apilam-deployFunction/test-apigateway-lambda/LambdaRestApi/Default/ANY",
529
+ "children": {
530
+ "ApiPermission.apilamdeployFunctiontestapigatewaylambdaLambdaRestApiAF929C5F.ANY..": {
531
+ "id": "ApiPermission.apilamdeployFunctiontestapigatewaylambdaLambdaRestApiAF929C5F.ANY..",
532
+ "path": "apilam-deployFunction/test-apigateway-lambda/LambdaRestApi/Default/ANY/ApiPermission.apilamdeployFunctiontestapigatewaylambdaLambdaRestApiAF929C5F.ANY..",
533
+ "attributes": {
534
+ "aws:cdk:cloudformation:type": "AWS::Lambda::Permission",
535
+ "aws:cdk:cloudformation:props": {
536
+ "action": "lambda:InvokeFunction",
537
+ "functionName": {
538
+ "Fn::GetAtt": [
539
+ "testapigatewaylambdaLambdaFunction18FF222F",
540
+ "Arn"
541
+ ]
542
+ },
543
+ "principal": "apigateway.amazonaws.com",
544
+ "sourceArn": {
545
+ "Fn::Join": [
546
+ "",
547
+ [
548
+ "arn:",
549
+ {
550
+ "Ref": "AWS::Partition"
551
+ },
552
+ ":execute-api:",
553
+ {
554
+ "Ref": "AWS::Region"
555
+ },
556
+ ":",
557
+ {
558
+ "Ref": "AWS::AccountId"
559
+ },
560
+ ":",
561
+ {
562
+ "Ref": "testapigatewaylambdaLambdaRestApiE957E944"
563
+ },
564
+ "/",
565
+ {
566
+ "Ref": "testapigatewaylambdaLambdaRestApiDeploymentStageprod4EBF7247"
567
+ },
568
+ "/*/"
569
+ ]
570
+ ]
571
+ }
572
+ }
573
+ },
574
+ "constructInfo": {
575
+ "fqn": "aws-cdk-lib.aws_lambda.CfnPermission",
576
+ "version": "2.118.0"
577
+ }
578
+ },
579
+ "ApiPermission.Test.apilamdeployFunctiontestapigatewaylambdaLambdaRestApiAF929C5F.ANY..": {
580
+ "id": "ApiPermission.Test.apilamdeployFunctiontestapigatewaylambdaLambdaRestApiAF929C5F.ANY..",
581
+ "path": "apilam-deployFunction/test-apigateway-lambda/LambdaRestApi/Default/ANY/ApiPermission.Test.apilamdeployFunctiontestapigatewaylambdaLambdaRestApiAF929C5F.ANY..",
582
+ "attributes": {
583
+ "aws:cdk:cloudformation:type": "AWS::Lambda::Permission",
584
+ "aws:cdk:cloudformation:props": {
585
+ "action": "lambda:InvokeFunction",
586
+ "functionName": {
587
+ "Fn::GetAtt": [
588
+ "testapigatewaylambdaLambdaFunction18FF222F",
589
+ "Arn"
590
+ ]
591
+ },
592
+ "principal": "apigateway.amazonaws.com",
593
+ "sourceArn": {
594
+ "Fn::Join": [
595
+ "",
596
+ [
597
+ "arn:",
598
+ {
599
+ "Ref": "AWS::Partition"
600
+ },
601
+ ":execute-api:",
602
+ {
603
+ "Ref": "AWS::Region"
604
+ },
605
+ ":",
606
+ {
607
+ "Ref": "AWS::AccountId"
608
+ },
609
+ ":",
610
+ {
611
+ "Ref": "testapigatewaylambdaLambdaRestApiE957E944"
612
+ },
613
+ "/test-invoke-stage/*/"
614
+ ]
615
+ ]
616
+ }
617
+ }
618
+ },
619
+ "constructInfo": {
620
+ "fqn": "aws-cdk-lib.aws_lambda.CfnPermission",
621
+ "version": "2.118.0"
622
+ }
623
+ },
624
+ "Resource": {
625
+ "id": "Resource",
626
+ "path": "apilam-deployFunction/test-apigateway-lambda/LambdaRestApi/Default/ANY/Resource",
627
+ "attributes": {
628
+ "aws:cdk:cloudformation:type": "AWS::ApiGateway::Method",
629
+ "aws:cdk:cloudformation:props": {
630
+ "authorizationType": "AWS_IAM",
631
+ "httpMethod": "ANY",
632
+ "integration": {
633
+ "type": "AWS_PROXY",
634
+ "uri": {
635
+ "Fn::Join": [
636
+ "",
637
+ [
638
+ "arn:",
639
+ {
640
+ "Ref": "AWS::Partition"
641
+ },
642
+ ":apigateway:",
643
+ {
644
+ "Ref": "AWS::Region"
645
+ },
646
+ ":lambda:path/2015-03-31/functions/",
647
+ {
648
+ "Fn::GetAtt": [
649
+ "testapigatewaylambdaLambdaFunction18FF222F",
650
+ "Arn"
651
+ ]
652
+ },
653
+ "/invocations"
654
+ ]
655
+ ]
656
+ },
657
+ "integrationHttpMethod": "POST"
658
+ },
659
+ "resourceId": {
660
+ "Fn::GetAtt": [
661
+ "testapigatewaylambdaLambdaRestApiE957E944",
662
+ "RootResourceId"
663
+ ]
664
+ },
665
+ "restApiId": {
666
+ "Ref": "testapigatewaylambdaLambdaRestApiE957E944"
667
+ }
668
+ }
669
+ },
670
+ "constructInfo": {
671
+ "fqn": "aws-cdk-lib.aws_apigateway.CfnMethod",
672
+ "version": "2.118.0"
673
+ }
674
+ }
675
+ },
676
+ "constructInfo": {
677
+ "fqn": "aws-cdk-lib.aws_apigateway.Method",
678
+ "version": "2.118.0"
679
+ }
680
+ }
681
+ },
682
+ "constructInfo": {
683
+ "fqn": "aws-cdk-lib.aws_apigateway.ResourceBase",
684
+ "version": "2.118.0"
685
+ }
686
+ },
687
+ "UsagePlan": {
688
+ "id": "UsagePlan",
689
+ "path": "apilam-deployFunction/test-apigateway-lambda/LambdaRestApi/UsagePlan",
690
+ "children": {
691
+ "Resource": {
692
+ "id": "Resource",
693
+ "path": "apilam-deployFunction/test-apigateway-lambda/LambdaRestApi/UsagePlan/Resource",
694
+ "attributes": {
695
+ "aws:cdk:cloudformation:type": "AWS::ApiGateway::UsagePlan",
696
+ "aws:cdk:cloudformation:props": {
697
+ "apiStages": [
698
+ {
699
+ "apiId": {
700
+ "Ref": "testapigatewaylambdaLambdaRestApiE957E944"
701
+ },
702
+ "stage": {
703
+ "Ref": "testapigatewaylambdaLambdaRestApiDeploymentStageprod4EBF7247"
704
+ },
705
+ "throttle": {}
706
+ }
707
+ ]
708
+ }
709
+ },
710
+ "constructInfo": {
711
+ "fqn": "aws-cdk-lib.aws_apigateway.CfnUsagePlan",
712
+ "version": "2.118.0"
713
+ }
714
+ }
715
+ },
716
+ "constructInfo": {
717
+ "fqn": "aws-cdk-lib.aws_apigateway.UsagePlan",
718
+ "version": "2.118.0"
719
+ }
720
+ }
721
+ },
722
+ "constructInfo": {
723
+ "fqn": "aws-cdk-lib.aws_apigateway.LambdaRestApi",
724
+ "version": "2.118.0"
725
+ }
726
+ },
727
+ "LambdaRestApiCloudWatchRole": {
728
+ "id": "LambdaRestApiCloudWatchRole",
729
+ "path": "apilam-deployFunction/test-apigateway-lambda/LambdaRestApiCloudWatchRole",
730
+ "children": {
731
+ "ImportLambdaRestApiCloudWatchRole": {
732
+ "id": "ImportLambdaRestApiCloudWatchRole",
733
+ "path": "apilam-deployFunction/test-apigateway-lambda/LambdaRestApiCloudWatchRole/ImportLambdaRestApiCloudWatchRole",
734
+ "constructInfo": {
735
+ "fqn": "aws-cdk-lib.Resource",
736
+ "version": "2.118.0"
737
+ }
738
+ },
739
+ "Resource": {
740
+ "id": "Resource",
741
+ "path": "apilam-deployFunction/test-apigateway-lambda/LambdaRestApiCloudWatchRole/Resource",
742
+ "attributes": {
743
+ "aws:cdk:cloudformation:type": "AWS::IAM::Role",
744
+ "aws:cdk:cloudformation:props": {
745
+ "assumeRolePolicyDocument": {
746
+ "Statement": [
747
+ {
748
+ "Action": "sts:AssumeRole",
749
+ "Effect": "Allow",
750
+ "Principal": {
751
+ "Service": "apigateway.amazonaws.com"
752
+ }
753
+ }
754
+ ],
755
+ "Version": "2012-10-17"
756
+ },
757
+ "policies": [
758
+ {
759
+ "policyName": "LambdaRestApiCloudWatchRolePolicy",
760
+ "policyDocument": {
761
+ "Statement": [
762
+ {
763
+ "Action": [
764
+ "logs:CreateLogGroup",
765
+ "logs:CreateLogStream",
766
+ "logs:DescribeLogGroups",
767
+ "logs:DescribeLogStreams",
768
+ "logs:FilterLogEvents",
769
+ "logs:GetLogEvents",
770
+ "logs:PutLogEvents"
771
+ ],
772
+ "Effect": "Allow",
773
+ "Resource": {
774
+ "Fn::Join": [
775
+ "",
776
+ [
777
+ "arn:",
778
+ {
779
+ "Ref": "AWS::Partition"
780
+ },
781
+ ":logs:",
782
+ {
783
+ "Ref": "AWS::Region"
784
+ },
785
+ ":",
786
+ {
787
+ "Ref": "AWS::AccountId"
788
+ },
789
+ ":*"
790
+ ]
791
+ ]
792
+ }
793
+ }
794
+ ],
795
+ "Version": "2012-10-17"
796
+ }
797
+ }
798
+ ]
799
+ }
800
+ },
801
+ "constructInfo": {
802
+ "fqn": "aws-cdk-lib.aws_iam.CfnRole",
803
+ "version": "2.118.0"
804
+ }
805
+ }
806
+ },
807
+ "constructInfo": {
808
+ "fqn": "aws-cdk-lib.aws_iam.Role",
809
+ "version": "2.118.0"
810
+ }
811
+ },
812
+ "LambdaRestApiAccount": {
813
+ "id": "LambdaRestApiAccount",
814
+ "path": "apilam-deployFunction/test-apigateway-lambda/LambdaRestApiAccount",
815
+ "attributes": {
816
+ "aws:cdk:cloudformation:type": "AWS::ApiGateway::Account",
817
+ "aws:cdk:cloudformation:props": {
818
+ "cloudWatchRoleArn": {
819
+ "Fn::GetAtt": [
820
+ "testapigatewaylambdaLambdaRestApiCloudWatchRole6D45E039",
821
+ "Arn"
822
+ ]
823
+ }
824
+ }
825
+ },
826
+ "constructInfo": {
827
+ "fqn": "aws-cdk-lib.aws_apigateway.CfnAccount",
828
+ "version": "2.118.0"
829
+ }
830
+ }
831
+ },
832
+ "constructInfo": {
833
+ "fqn": "@aws-solutions-constructs/aws-apigateway-lambda.ApiGatewayToLambda",
834
+ "version": "2.50.0"
835
+ }
836
+ },
837
+ "Integ": {
838
+ "id": "Integ",
839
+ "path": "apilam-deployFunction/Integ",
840
+ "children": {
841
+ "DefaultTest": {
842
+ "id": "DefaultTest",
843
+ "path": "apilam-deployFunction/Integ/DefaultTest",
844
+ "children": {
845
+ "Default": {
846
+ "id": "Default",
847
+ "path": "apilam-deployFunction/Integ/DefaultTest/Default",
848
+ "constructInfo": {
849
+ "fqn": "constructs.Construct",
850
+ "version": "10.0.0"
851
+ }
852
+ },
853
+ "DeployAssert": {
854
+ "id": "DeployAssert",
855
+ "path": "apilam-deployFunction/Integ/DefaultTest/DeployAssert",
856
+ "children": {
857
+ "BootstrapVersion": {
858
+ "id": "BootstrapVersion",
859
+ "path": "apilam-deployFunction/Integ/DefaultTest/DeployAssert/BootstrapVersion",
860
+ "constructInfo": {
861
+ "fqn": "aws-cdk-lib.CfnParameter",
862
+ "version": "2.118.0"
863
+ }
864
+ },
865
+ "CheckBootstrapVersion": {
866
+ "id": "CheckBootstrapVersion",
867
+ "path": "apilam-deployFunction/Integ/DefaultTest/DeployAssert/CheckBootstrapVersion",
868
+ "constructInfo": {
869
+ "fqn": "aws-cdk-lib.CfnRule",
870
+ "version": "2.118.0"
871
+ }
872
+ }
873
+ },
874
+ "constructInfo": {
875
+ "fqn": "aws-cdk-lib.Stack",
876
+ "version": "2.118.0"
877
+ }
878
+ }
879
+ },
880
+ "constructInfo": {
881
+ "fqn": "@aws-cdk/integ-tests-alpha.IntegTestCase",
882
+ "version": "2.118.0-alpha.0"
883
+ }
884
+ }
885
+ },
886
+ "constructInfo": {
887
+ "fqn": "@aws-cdk/integ-tests-alpha.IntegTest",
888
+ "version": "2.118.0-alpha.0"
889
+ }
890
+ },
891
+ "BootstrapVersion": {
892
+ "id": "BootstrapVersion",
893
+ "path": "apilam-deployFunction/BootstrapVersion",
894
+ "constructInfo": {
895
+ "fqn": "aws-cdk-lib.CfnParameter",
896
+ "version": "2.118.0"
897
+ }
898
+ },
899
+ "CheckBootstrapVersion": {
900
+ "id": "CheckBootstrapVersion",
901
+ "path": "apilam-deployFunction/CheckBootstrapVersion",
902
+ "constructInfo": {
903
+ "fqn": "aws-cdk-lib.CfnRule",
904
+ "version": "2.118.0"
905
+ }
906
+ }
907
+ },
908
+ "constructInfo": {
909
+ "fqn": "aws-cdk-lib.Stack",
910
+ "version": "2.118.0"
911
+ }
912
+ },
913
+ "Tree": {
914
+ "id": "Tree",
915
+ "path": "Tree",
916
+ "constructInfo": {
917
+ "fqn": "constructs.Construct",
918
+ "version": "10.0.0"
919
+ }
920
+ }
921
+ },
922
+ "constructInfo": {
923
+ "fqn": "aws-cdk-lib.App",
924
+ "version": "2.118.0"
925
+ }
926
+ }
927
+ }