@aws-solutions-constructs/aws-cloudfront-apigateway-lambda 2.80.0 → 2.82.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 (31) hide show
  1. package/.jsii +44 -5
  2. package/lib/index.js +1 -1
  3. package/package.json +8 -8
  4. package/test/integ.cftaplam-customCloudfrontLoggingBucket.js.snapshot/cdk.out +1 -1
  5. package/test/integ.cftaplam-customCloudfrontLoggingBucket.js.snapshot/cftaplam-customCloudfrontLoggingBucket.assets.json +3 -3
  6. package/test/integ.cftaplam-customCloudfrontLoggingBucket.js.snapshot/cftaplam-customCloudfrontLoggingBucket.template.json +24 -35
  7. package/test/integ.cftaplam-customCloudfrontLoggingBucket.js.snapshot/cftaplamcustomCloudfrontLoggingBucketIntegDefaultTestDeployAssert35A683E0.assets.json +1 -1
  8. package/test/integ.cftaplam-customCloudfrontLoggingBucket.js.snapshot/integ.json +1 -1
  9. package/test/integ.cftaplam-customCloudfrontLoggingBucket.js.snapshot/manifest.json +47 -43
  10. package/test/integ.cftaplam-customCloudfrontLoggingBucket.js.snapshot/tree.json +1 -2002
  11. package/test/integ.cftaplam-no-arguments.js.snapshot/cdk.out +1 -1
  12. package/test/integ.cftaplam-no-arguments.js.snapshot/cftaplam-no-arguments.assets.json +3 -3
  13. package/test/integ.cftaplam-no-arguments.js.snapshot/cftaplam-no-arguments.template.json +24 -35
  14. package/test/integ.cftaplam-no-arguments.js.snapshot/cftaplamnoargumentsIntegDefaultTestDeployAssertACC32F59.assets.json +1 -1
  15. package/test/integ.cftaplam-no-arguments.js.snapshot/integ.json +1 -1
  16. package/test/integ.cftaplam-no-arguments.js.snapshot/manifest.json +47 -43
  17. package/test/integ.cftaplam-no-arguments.js.snapshot/tree.json +1 -2002
  18. package/test/integ.cftaplam-no-usage-plan.js.snapshot/cdk.out +1 -1
  19. package/test/integ.cftaplam-no-usage-plan.js.snapshot/cftaplam-no-usage-plan.assets.json +3 -3
  20. package/test/integ.cftaplam-no-usage-plan.js.snapshot/cftaplam-no-usage-plan.template.json +24 -35
  21. package/test/integ.cftaplam-no-usage-plan.js.snapshot/cftaplamnousageplanIntegDefaultTestDeployAssertABA4F4C5.assets.json +1 -1
  22. package/test/integ.cftaplam-no-usage-plan.js.snapshot/integ.json +1 -1
  23. package/test/integ.cftaplam-no-usage-plan.js.snapshot/manifest.json +44 -41
  24. package/test/integ.cftaplam-no-usage-plan.js.snapshot/tree.json +1 -1959
  25. package/test/integ.cftaplam-override-behavior.js.snapshot/cdk.out +1 -1
  26. package/test/integ.cftaplam-override-behavior.js.snapshot/cftaplam-override-behavior.assets.json +3 -3
  27. package/test/integ.cftaplam-override-behavior.js.snapshot/cftaplam-override-behavior.template.json +24 -35
  28. package/test/integ.cftaplam-override-behavior.js.snapshot/cftaplamoverridebehaviorIntegDefaultTestDeployAssert3DC30427.assets.json +1 -1
  29. package/test/integ.cftaplam-override-behavior.js.snapshot/integ.json +1 -1
  30. package/test/integ.cftaplam-override-behavior.js.snapshot/manifest.json +47 -43
  31. package/test/integ.cftaplam-override-behavior.js.snapshot/tree.json +1 -2117
@@ -1,1959 +1 @@
1
- {
2
- "version": "tree-0.1",
3
- "tree": {
4
- "id": "App",
5
- "path": "",
6
- "children": {
7
- "cftaplam-no-usage-plan": {
8
- "id": "cftaplam-no-usage-plan",
9
- "path": "cftaplam-no-usage-plan",
10
- "children": {
11
- "cftaplam-no-usage-plan-authorizerAuthFunction": {
12
- "id": "cftaplam-no-usage-plan-authorizerAuthFunction",
13
- "path": "cftaplam-no-usage-plan/cftaplam-no-usage-plan-authorizerAuthFunction",
14
- "children": {
15
- "ServiceRole": {
16
- "id": "ServiceRole",
17
- "path": "cftaplam-no-usage-plan/cftaplam-no-usage-plan-authorizerAuthFunction/ServiceRole",
18
- "children": {
19
- "ImportServiceRole": {
20
- "id": "ImportServiceRole",
21
- "path": "cftaplam-no-usage-plan/cftaplam-no-usage-plan-authorizerAuthFunction/ServiceRole/ImportServiceRole",
22
- "constructInfo": {
23
- "fqn": "aws-cdk-lib.Resource",
24
- "version": "2.179.0",
25
- "metadata": [
26
- "*"
27
- ]
28
- }
29
- },
30
- "Resource": {
31
- "id": "Resource",
32
- "path": "cftaplam-no-usage-plan/cftaplam-no-usage-plan-authorizerAuthFunction/ServiceRole/Resource",
33
- "attributes": {
34
- "aws:cdk:cloudformation:type": "AWS::IAM::Role",
35
- "aws:cdk:cloudformation:props": {
36
- "assumeRolePolicyDocument": {
37
- "Statement": [
38
- {
39
- "Action": "sts:AssumeRole",
40
- "Effect": "Allow",
41
- "Principal": {
42
- "Service": "lambda.amazonaws.com"
43
- }
44
- }
45
- ],
46
- "Version": "2012-10-17"
47
- },
48
- "managedPolicyArns": [
49
- {
50
- "Fn::Join": [
51
- "",
52
- [
53
- "arn:",
54
- {
55
- "Ref": "AWS::Partition"
56
- },
57
- ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
58
- ]
59
- ]
60
- }
61
- ]
62
- }
63
- },
64
- "constructInfo": {
65
- "fqn": "aws-cdk-lib.aws_iam.CfnRole",
66
- "version": "2.179.0"
67
- }
68
- }
69
- },
70
- "constructInfo": {
71
- "fqn": "aws-cdk-lib.aws_iam.Role",
72
- "version": "2.179.0",
73
- "metadata": [
74
- {
75
- "assumedBy": {
76
- "principalAccount": "*",
77
- "assumeRoleAction": "*"
78
- },
79
- "managedPolicies": [
80
- {
81
- "managedPolicyArn": "*"
82
- }
83
- ]
84
- }
85
- ]
86
- }
87
- },
88
- "Code": {
89
- "id": "Code",
90
- "path": "cftaplam-no-usage-plan/cftaplam-no-usage-plan-authorizerAuthFunction/Code",
91
- "children": {
92
- "Stage": {
93
- "id": "Stage",
94
- "path": "cftaplam-no-usage-plan/cftaplam-no-usage-plan-authorizerAuthFunction/Code/Stage",
95
- "constructInfo": {
96
- "fqn": "aws-cdk-lib.AssetStaging",
97
- "version": "2.179.0"
98
- }
99
- },
100
- "AssetBucket": {
101
- "id": "AssetBucket",
102
- "path": "cftaplam-no-usage-plan/cftaplam-no-usage-plan-authorizerAuthFunction/Code/AssetBucket",
103
- "constructInfo": {
104
- "fqn": "aws-cdk-lib.aws_s3.BucketBase",
105
- "version": "2.179.0",
106
- "metadata": []
107
- }
108
- }
109
- },
110
- "constructInfo": {
111
- "fqn": "aws-cdk-lib.aws_s3_assets.Asset",
112
- "version": "2.179.0"
113
- }
114
- },
115
- "Resource": {
116
- "id": "Resource",
117
- "path": "cftaplam-no-usage-plan/cftaplam-no-usage-plan-authorizerAuthFunction/Resource",
118
- "attributes": {
119
- "aws:cdk:cloudformation:type": "AWS::Lambda::Function",
120
- "aws:cdk:cloudformation:props": {
121
- "code": {
122
- "s3Bucket": {
123
- "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
124
- },
125
- "s3Key": "3a18fd3de4803f72260a058823accffd4f8d69986c6862a23cd86265f6cafa0f.zip"
126
- },
127
- "handler": ".handler",
128
- "role": {
129
- "Fn::GetAtt": [
130
- "cftaplamnousageplanauthorizerAuthFunctionServiceRoleD960FE23",
131
- "Arn"
132
- ]
133
- },
134
- "runtime": "nodejs20.x"
135
- }
136
- },
137
- "constructInfo": {
138
- "fqn": "aws-cdk-lib.aws_lambda.CfnFunction",
139
- "version": "2.179.0"
140
- }
141
- },
142
- "cftaplamnousageplancftaplamnousageplanauthorizerB8C63521:Permissions": {
143
- "id": "cftaplamnousageplancftaplamnousageplanauthorizerB8C63521:Permissions",
144
- "path": "cftaplam-no-usage-plan/cftaplam-no-usage-plan-authorizerAuthFunction/cftaplamnousageplancftaplamnousageplanauthorizerB8C63521:Permissions",
145
- "attributes": {
146
- "aws:cdk:cloudformation:type": "AWS::Lambda::Permission",
147
- "aws:cdk:cloudformation:props": {
148
- "action": "lambda:InvokeFunction",
149
- "functionName": {
150
- "Fn::GetAtt": [
151
- "cftaplamnousageplanauthorizerAuthFunctionC756EB1A",
152
- "Arn"
153
- ]
154
- },
155
- "principal": "apigateway.amazonaws.com",
156
- "sourceArn": {
157
- "Fn::Join": [
158
- "",
159
- [
160
- "arn:",
161
- {
162
- "Ref": "AWS::Partition"
163
- },
164
- ":execute-api:",
165
- {
166
- "Ref": "AWS::Region"
167
- },
168
- ":",
169
- {
170
- "Ref": "AWS::AccountId"
171
- },
172
- ":",
173
- {
174
- "Ref": "testcloudfrontapigatewaylambdaLambdaRestApi6A4CBD44"
175
- },
176
- "/authorizers/",
177
- {
178
- "Ref": "cftaplamnousageplanauthorizerB177A4F9"
179
- }
180
- ]
181
- ]
182
- }
183
- }
184
- },
185
- "constructInfo": {
186
- "fqn": "aws-cdk-lib.aws_lambda.CfnPermission",
187
- "version": "2.179.0"
188
- }
189
- }
190
- },
191
- "constructInfo": {
192
- "fqn": "aws-cdk-lib.aws_lambda.Function",
193
- "version": "2.179.0",
194
- "metadata": [
195
- {
196
- "code": "*",
197
- "runtime": "*",
198
- "handler": "*"
199
- }
200
- ]
201
- }
202
- },
203
- "cftaplam-no-usage-plan-authorizer": {
204
- "id": "cftaplam-no-usage-plan-authorizer",
205
- "path": "cftaplam-no-usage-plan/cftaplam-no-usage-plan-authorizer",
206
- "children": {
207
- "Resource": {
208
- "id": "Resource",
209
- "path": "cftaplam-no-usage-plan/cftaplam-no-usage-plan-authorizer/Resource",
210
- "attributes": {
211
- "aws:cdk:cloudformation:type": "AWS::ApiGateway::Authorizer",
212
- "aws:cdk:cloudformation:props": {
213
- "authorizerResultTtlInSeconds": 300,
214
- "authorizerUri": {
215
- "Fn::Join": [
216
- "",
217
- [
218
- "arn:",
219
- {
220
- "Fn::Select": [
221
- 1,
222
- {
223
- "Fn::Split": [
224
- ":",
225
- {
226
- "Fn::GetAtt": [
227
- "cftaplamnousageplanauthorizerAuthFunctionC756EB1A",
228
- "Arn"
229
- ]
230
- }
231
- ]
232
- }
233
- ]
234
- },
235
- ":apigateway:",
236
- {
237
- "Fn::Select": [
238
- 3,
239
- {
240
- "Fn::Split": [
241
- ":",
242
- {
243
- "Fn::GetAtt": [
244
- "cftaplamnousageplanauthorizerAuthFunctionC756EB1A",
245
- "Arn"
246
- ]
247
- }
248
- ]
249
- }
250
- ]
251
- },
252
- ":lambda:path/2015-03-31/functions/",
253
- {
254
- "Fn::GetAtt": [
255
- "cftaplamnousageplanauthorizerAuthFunctionC756EB1A",
256
- "Arn"
257
- ]
258
- },
259
- "/invocations"
260
- ]
261
- ]
262
- },
263
- "identitySource": "method.request.header.Authorization",
264
- "name": "cftaplamnousageplancftaplamnousageplanauthorizerB8C63521",
265
- "restApiId": {
266
- "Ref": "testcloudfrontapigatewaylambdaLambdaRestApi6A4CBD44"
267
- },
268
- "type": "REQUEST"
269
- }
270
- },
271
- "constructInfo": {
272
- "fqn": "aws-cdk-lib.aws_apigateway.CfnAuthorizer",
273
- "version": "2.179.0"
274
- }
275
- }
276
- },
277
- "constructInfo": {
278
- "fqn": "aws-cdk-lib.aws_apigateway.RequestAuthorizer",
279
- "version": "2.179.0",
280
- "metadata": [
281
- "*"
282
- ]
283
- }
284
- },
285
- "test-cloudfront-apigateway-lambda": {
286
- "id": "test-cloudfront-apigateway-lambda",
287
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda",
288
- "children": {
289
- "LambdaFunctionServiceRole": {
290
- "id": "LambdaFunctionServiceRole",
291
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaFunctionServiceRole",
292
- "children": {
293
- "ImportLambdaFunctionServiceRole": {
294
- "id": "ImportLambdaFunctionServiceRole",
295
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaFunctionServiceRole/ImportLambdaFunctionServiceRole",
296
- "constructInfo": {
297
- "fqn": "aws-cdk-lib.Resource",
298
- "version": "2.179.0",
299
- "metadata": [
300
- "*"
301
- ]
302
- }
303
- },
304
- "Resource": {
305
- "id": "Resource",
306
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaFunctionServiceRole/Resource",
307
- "attributes": {
308
- "aws:cdk:cloudformation:type": "AWS::IAM::Role",
309
- "aws:cdk:cloudformation:props": {
310
- "assumeRolePolicyDocument": {
311
- "Statement": [
312
- {
313
- "Action": "sts:AssumeRole",
314
- "Effect": "Allow",
315
- "Principal": {
316
- "Service": "lambda.amazonaws.com"
317
- }
318
- }
319
- ],
320
- "Version": "2012-10-17"
321
- },
322
- "policies": [
323
- {
324
- "policyName": "LambdaFunctionServiceRolePolicy",
325
- "policyDocument": {
326
- "Statement": [
327
- {
328
- "Action": [
329
- "logs:CreateLogGroup",
330
- "logs:CreateLogStream",
331
- "logs:PutLogEvents"
332
- ],
333
- "Effect": "Allow",
334
- "Resource": {
335
- "Fn::Join": [
336
- "",
337
- [
338
- "arn:",
339
- {
340
- "Ref": "AWS::Partition"
341
- },
342
- ":logs:",
343
- {
344
- "Ref": "AWS::Region"
345
- },
346
- ":",
347
- {
348
- "Ref": "AWS::AccountId"
349
- },
350
- ":log-group:/aws/lambda/*"
351
- ]
352
- ]
353
- }
354
- }
355
- ],
356
- "Version": "2012-10-17"
357
- }
358
- }
359
- ]
360
- }
361
- },
362
- "constructInfo": {
363
- "fqn": "aws-cdk-lib.aws_iam.CfnRole",
364
- "version": "2.179.0"
365
- }
366
- },
367
- "DefaultPolicy": {
368
- "id": "DefaultPolicy",
369
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaFunctionServiceRole/DefaultPolicy",
370
- "children": {
371
- "Resource": {
372
- "id": "Resource",
373
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaFunctionServiceRole/DefaultPolicy/Resource",
374
- "attributes": {
375
- "aws:cdk:cloudformation:type": "AWS::IAM::Policy",
376
- "aws:cdk:cloudformation:props": {
377
- "policyDocument": {
378
- "Statement": [
379
- {
380
- "Action": [
381
- "xray:PutTelemetryRecords",
382
- "xray:PutTraceSegments"
383
- ],
384
- "Effect": "Allow",
385
- "Resource": "*"
386
- }
387
- ],
388
- "Version": "2012-10-17"
389
- },
390
- "policyName": "testcloudfrontapigatewaylambdaLambdaFunctionServiceRoleDefaultPolicyDB7FF8EB",
391
- "roles": [
392
- {
393
- "Ref": "testcloudfrontapigatewaylambdaLambdaFunctionServiceRoleCB74590F"
394
- }
395
- ]
396
- }
397
- },
398
- "constructInfo": {
399
- "fqn": "aws-cdk-lib.aws_iam.CfnPolicy",
400
- "version": "2.179.0"
401
- }
402
- }
403
- },
404
- "constructInfo": {
405
- "fqn": "aws-cdk-lib.aws_iam.Policy",
406
- "version": "2.179.0",
407
- "metadata": [
408
- "*",
409
- {
410
- "attachToRole": [
411
- "*"
412
- ]
413
- },
414
- {
415
- "attachToRole": [
416
- "*"
417
- ]
418
- },
419
- {
420
- "addStatements": [
421
- {}
422
- ]
423
- }
424
- ]
425
- }
426
- }
427
- },
428
- "constructInfo": {
429
- "fqn": "aws-cdk-lib.aws_iam.Role",
430
- "version": "2.179.0",
431
- "metadata": [
432
- {
433
- "assumedBy": {
434
- "principalAccount": "*",
435
- "assumeRoleAction": "*"
436
- },
437
- "inlinePolicies": "*"
438
- },
439
- {
440
- "addToPrincipalPolicy": [
441
- {}
442
- ]
443
- },
444
- {
445
- "attachInlinePolicy": [
446
- "*"
447
- ]
448
- },
449
- {
450
- "attachInlinePolicy": [
451
- "*"
452
- ]
453
- }
454
- ]
455
- }
456
- },
457
- "LambdaFunction": {
458
- "id": "LambdaFunction",
459
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaFunction",
460
- "children": {
461
- "Code": {
462
- "id": "Code",
463
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaFunction/Code",
464
- "children": {
465
- "Stage": {
466
- "id": "Stage",
467
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaFunction/Code/Stage",
468
- "constructInfo": {
469
- "fqn": "aws-cdk-lib.AssetStaging",
470
- "version": "2.179.0"
471
- }
472
- },
473
- "AssetBucket": {
474
- "id": "AssetBucket",
475
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaFunction/Code/AssetBucket",
476
- "constructInfo": {
477
- "fqn": "aws-cdk-lib.aws_s3.BucketBase",
478
- "version": "2.179.0",
479
- "metadata": []
480
- }
481
- }
482
- },
483
- "constructInfo": {
484
- "fqn": "aws-cdk-lib.aws_s3_assets.Asset",
485
- "version": "2.179.0"
486
- }
487
- },
488
- "Resource": {
489
- "id": "Resource",
490
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaFunction/Resource",
491
- "attributes": {
492
- "aws:cdk:cloudformation:type": "AWS::Lambda::Function",
493
- "aws:cdk:cloudformation:props": {
494
- "code": {
495
- "s3Bucket": {
496
- "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
497
- },
498
- "s3Key": "3a18fd3de4803f72260a058823accffd4f8d69986c6862a23cd86265f6cafa0f.zip"
499
- },
500
- "environment": {
501
- "variables": {
502
- "AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1"
503
- }
504
- },
505
- "handler": "index.handler",
506
- "role": {
507
- "Fn::GetAtt": [
508
- "testcloudfrontapigatewaylambdaLambdaFunctionServiceRoleCB74590F",
509
- "Arn"
510
- ]
511
- },
512
- "runtime": "nodejs20.x",
513
- "tracingConfig": {
514
- "mode": "Active"
515
- }
516
- }
517
- },
518
- "constructInfo": {
519
- "fqn": "aws-cdk-lib.aws_lambda.CfnFunction",
520
- "version": "2.179.0"
521
- }
522
- }
523
- },
524
- "constructInfo": {
525
- "fqn": "aws-cdk-lib.aws_lambda.Function",
526
- "version": "2.179.0",
527
- "metadata": [
528
- {
529
- "role": "*",
530
- "tracing": "Active",
531
- "code": "*",
532
- "runtime": "*",
533
- "handler": "*"
534
- },
535
- {
536
- "addEnvironment": [
537
- "*",
538
- "*",
539
- {
540
- "removeInEdge": true
541
- }
542
- ]
543
- }
544
- ]
545
- }
546
- },
547
- "ApiAccessLogGroup": {
548
- "id": "ApiAccessLogGroup",
549
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/ApiAccessLogGroup",
550
- "children": {
551
- "Resource": {
552
- "id": "Resource",
553
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/ApiAccessLogGroup/Resource",
554
- "attributes": {
555
- "aws:cdk:cloudformation:type": "AWS::Logs::LogGroup",
556
- "aws:cdk:cloudformation:props": {}
557
- },
558
- "constructInfo": {
559
- "fqn": "aws-cdk-lib.aws_logs.CfnLogGroup",
560
- "version": "2.179.0"
561
- }
562
- }
563
- },
564
- "constructInfo": {
565
- "fqn": "aws-cdk-lib.aws_logs.LogGroup",
566
- "version": "2.179.0",
567
- "metadata": [
568
- {
569
- "retention": 9999
570
- }
571
- ]
572
- }
573
- },
574
- "LambdaRestApi": {
575
- "id": "LambdaRestApi",
576
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaRestApi",
577
- "children": {
578
- "Resource": {
579
- "id": "Resource",
580
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaRestApi/Resource",
581
- "attributes": {
582
- "aws:cdk:cloudformation:type": "AWS::ApiGateway::RestApi",
583
- "aws:cdk:cloudformation:props": {
584
- "endpointConfiguration": {
585
- "types": [
586
- "REGIONAL"
587
- ]
588
- },
589
- "name": "LambdaRestApi"
590
- }
591
- },
592
- "constructInfo": {
593
- "fqn": "aws-cdk-lib.aws_apigateway.CfnRestApi",
594
- "version": "2.179.0"
595
- }
596
- },
597
- "Deployment": {
598
- "id": "Deployment",
599
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaRestApi/Deployment",
600
- "children": {
601
- "Resource": {
602
- "id": "Resource",
603
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaRestApi/Deployment/Resource",
604
- "attributes": {
605
- "aws:cdk:cloudformation:type": "AWS::ApiGateway::Deployment",
606
- "aws:cdk:cloudformation:props": {
607
- "description": "Automatically created by the RestApi construct",
608
- "restApiId": {
609
- "Ref": "testcloudfrontapigatewaylambdaLambdaRestApi6A4CBD44"
610
- }
611
- }
612
- },
613
- "constructInfo": {
614
- "fqn": "aws-cdk-lib.aws_apigateway.CfnDeployment",
615
- "version": "2.179.0"
616
- }
617
- }
618
- },
619
- "constructInfo": {
620
- "fqn": "aws-cdk-lib.aws_apigateway.Deployment",
621
- "version": "2.179.0",
622
- "metadata": [
623
- {
624
- "description": "*",
625
- "api": "*",
626
- "retainDeployments": "*"
627
- },
628
- {
629
- "addToLogicalId": [
630
- {}
631
- ]
632
- },
633
- {
634
- "addToLogicalId": [
635
- {}
636
- ]
637
- },
638
- {
639
- "addToLogicalId": [
640
- {}
641
- ]
642
- },
643
- {
644
- "addToLogicalId": [
645
- {}
646
- ]
647
- },
648
- {
649
- "addToLogicalId": [
650
- {}
651
- ]
652
- }
653
- ]
654
- }
655
- },
656
- "DeploymentStage.prod": {
657
- "id": "DeploymentStage.prod",
658
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaRestApi/DeploymentStage.prod",
659
- "children": {
660
- "Resource": {
661
- "id": "Resource",
662
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaRestApi/DeploymentStage.prod/Resource",
663
- "attributes": {
664
- "aws:cdk:cloudformation:type": "AWS::ApiGateway::Stage",
665
- "aws:cdk:cloudformation:props": {
666
- "accessLogSetting": {
667
- "destinationArn": {
668
- "Fn::GetAtt": [
669
- "testcloudfrontapigatewaylambdaApiAccessLogGroup97EB2E40",
670
- "Arn"
671
- ]
672
- },
673
- "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\"}"
674
- },
675
- "deploymentId": {
676
- "Ref": "testcloudfrontapigatewaylambdaLambdaRestApiDeployment0C4661C0d9c4123459f0cf4d3f3c0bde215f7fe1"
677
- },
678
- "methodSettings": [
679
- {
680
- "httpMethod": "*",
681
- "resourcePath": "/*",
682
- "dataTraceEnabled": false,
683
- "loggingLevel": "INFO"
684
- }
685
- ],
686
- "restApiId": {
687
- "Ref": "testcloudfrontapigatewaylambdaLambdaRestApi6A4CBD44"
688
- },
689
- "stageName": "prod",
690
- "tracingEnabled": true
691
- }
692
- },
693
- "constructInfo": {
694
- "fqn": "aws-cdk-lib.aws_apigateway.CfnStage",
695
- "version": "2.179.0"
696
- }
697
- }
698
- },
699
- "constructInfo": {
700
- "fqn": "aws-cdk-lib.aws_apigateway.Stage",
701
- "version": "2.179.0",
702
- "metadata": [
703
- {
704
- "deployment": "*",
705
- "accessLogDestination": "*",
706
- "accessLogFormat": "*",
707
- "loggingLevel": "INFO",
708
- "dataTraceEnabled": false,
709
- "tracingEnabled": true
710
- }
711
- ]
712
- }
713
- },
714
- "Endpoint": {
715
- "id": "Endpoint",
716
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaRestApi/Endpoint",
717
- "constructInfo": {
718
- "fqn": "aws-cdk-lib.CfnOutput",
719
- "version": "2.179.0"
720
- }
721
- },
722
- "Default": {
723
- "id": "Default",
724
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaRestApi/Default",
725
- "children": {
726
- "{proxy+}": {
727
- "id": "{proxy+}",
728
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaRestApi/Default/{proxy+}",
729
- "children": {
730
- "Resource": {
731
- "id": "Resource",
732
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaRestApi/Default/{proxy+}/Resource",
733
- "attributes": {
734
- "aws:cdk:cloudformation:type": "AWS::ApiGateway::Resource",
735
- "aws:cdk:cloudformation:props": {
736
- "parentId": {
737
- "Fn::GetAtt": [
738
- "testcloudfrontapigatewaylambdaLambdaRestApi6A4CBD44",
739
- "RootResourceId"
740
- ]
741
- },
742
- "pathPart": "{proxy+}",
743
- "restApiId": {
744
- "Ref": "testcloudfrontapigatewaylambdaLambdaRestApi6A4CBD44"
745
- }
746
- }
747
- },
748
- "constructInfo": {
749
- "fqn": "aws-cdk-lib.aws_apigateway.CfnResource",
750
- "version": "2.179.0"
751
- }
752
- },
753
- "ANY": {
754
- "id": "ANY",
755
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaRestApi/Default/{proxy+}/ANY",
756
- "children": {
757
- "ApiPermission.cftaplamnousageplantestcloudfrontapigatewaylambdaLambdaRestApiB0E151E3.ANY..{proxy+}": {
758
- "id": "ApiPermission.cftaplamnousageplantestcloudfrontapigatewaylambdaLambdaRestApiB0E151E3.ANY..{proxy+}",
759
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaRestApi/Default/{proxy+}/ANY/ApiPermission.cftaplamnousageplantestcloudfrontapigatewaylambdaLambdaRestApiB0E151E3.ANY..{proxy+}",
760
- "attributes": {
761
- "aws:cdk:cloudformation:type": "AWS::Lambda::Permission",
762
- "aws:cdk:cloudformation:props": {
763
- "action": "lambda:InvokeFunction",
764
- "functionName": {
765
- "Fn::GetAtt": [
766
- "testcloudfrontapigatewaylambdaLambdaFunction17A55E65",
767
- "Arn"
768
- ]
769
- },
770
- "principal": "apigateway.amazonaws.com",
771
- "sourceArn": {
772
- "Fn::Join": [
773
- "",
774
- [
775
- "arn:",
776
- {
777
- "Ref": "AWS::Partition"
778
- },
779
- ":execute-api:",
780
- {
781
- "Ref": "AWS::Region"
782
- },
783
- ":",
784
- {
785
- "Ref": "AWS::AccountId"
786
- },
787
- ":",
788
- {
789
- "Ref": "testcloudfrontapigatewaylambdaLambdaRestApi6A4CBD44"
790
- },
791
- "/",
792
- {
793
- "Ref": "testcloudfrontapigatewaylambdaLambdaRestApiDeploymentStageprod4617A7B7"
794
- },
795
- "/*/*"
796
- ]
797
- ]
798
- }
799
- }
800
- },
801
- "constructInfo": {
802
- "fqn": "aws-cdk-lib.aws_lambda.CfnPermission",
803
- "version": "2.179.0"
804
- }
805
- },
806
- "ApiPermission.Test.cftaplamnousageplantestcloudfrontapigatewaylambdaLambdaRestApiB0E151E3.ANY..{proxy+}": {
807
- "id": "ApiPermission.Test.cftaplamnousageplantestcloudfrontapigatewaylambdaLambdaRestApiB0E151E3.ANY..{proxy+}",
808
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaRestApi/Default/{proxy+}/ANY/ApiPermission.Test.cftaplamnousageplantestcloudfrontapigatewaylambdaLambdaRestApiB0E151E3.ANY..{proxy+}",
809
- "attributes": {
810
- "aws:cdk:cloudformation:type": "AWS::Lambda::Permission",
811
- "aws:cdk:cloudformation:props": {
812
- "action": "lambda:InvokeFunction",
813
- "functionName": {
814
- "Fn::GetAtt": [
815
- "testcloudfrontapigatewaylambdaLambdaFunction17A55E65",
816
- "Arn"
817
- ]
818
- },
819
- "principal": "apigateway.amazonaws.com",
820
- "sourceArn": {
821
- "Fn::Join": [
822
- "",
823
- [
824
- "arn:",
825
- {
826
- "Ref": "AWS::Partition"
827
- },
828
- ":execute-api:",
829
- {
830
- "Ref": "AWS::Region"
831
- },
832
- ":",
833
- {
834
- "Ref": "AWS::AccountId"
835
- },
836
- ":",
837
- {
838
- "Ref": "testcloudfrontapigatewaylambdaLambdaRestApi6A4CBD44"
839
- },
840
- "/test-invoke-stage/*/*"
841
- ]
842
- ]
843
- }
844
- }
845
- },
846
- "constructInfo": {
847
- "fqn": "aws-cdk-lib.aws_lambda.CfnPermission",
848
- "version": "2.179.0"
849
- }
850
- },
851
- "Resource": {
852
- "id": "Resource",
853
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaRestApi/Default/{proxy+}/ANY/Resource",
854
- "attributes": {
855
- "aws:cdk:cloudformation:type": "AWS::ApiGateway::Method",
856
- "aws:cdk:cloudformation:props": {
857
- "authorizationType": "CUSTOM",
858
- "authorizerId": {
859
- "Ref": "cftaplamnousageplanauthorizerB177A4F9"
860
- },
861
- "httpMethod": "ANY",
862
- "integration": {
863
- "type": "AWS_PROXY",
864
- "uri": {
865
- "Fn::Join": [
866
- "",
867
- [
868
- "arn:",
869
- {
870
- "Ref": "AWS::Partition"
871
- },
872
- ":apigateway:",
873
- {
874
- "Ref": "AWS::Region"
875
- },
876
- ":lambda:path/2015-03-31/functions/",
877
- {
878
- "Fn::GetAtt": [
879
- "testcloudfrontapigatewaylambdaLambdaFunction17A55E65",
880
- "Arn"
881
- ]
882
- },
883
- "/invocations"
884
- ]
885
- ]
886
- },
887
- "integrationHttpMethod": "POST"
888
- },
889
- "resourceId": {
890
- "Ref": "testcloudfrontapigatewaylambdaLambdaRestApiproxyBC09D86F"
891
- },
892
- "restApiId": {
893
- "Ref": "testcloudfrontapigatewaylambdaLambdaRestApi6A4CBD44"
894
- }
895
- }
896
- },
897
- "constructInfo": {
898
- "fqn": "aws-cdk-lib.aws_apigateway.CfnMethod",
899
- "version": "2.179.0"
900
- }
901
- }
902
- },
903
- "constructInfo": {
904
- "fqn": "aws-cdk-lib.aws_apigateway.Method",
905
- "version": "2.179.0",
906
- "metadata": [
907
- {
908
- "resource": "*",
909
- "httpMethod": "*",
910
- "integration": "*",
911
- "options": "*"
912
- }
913
- ]
914
- }
915
- }
916
- },
917
- "constructInfo": {
918
- "fqn": "aws-cdk-lib.aws_apigateway.ProxyResource",
919
- "version": "2.179.0",
920
- "metadata": [
921
- {
922
- "defaultIntegration": "*",
923
- "defaultMethodOptions": "*"
924
- },
925
- {},
926
- {
927
- "addMethod": [
928
- "*"
929
- ]
930
- }
931
- ]
932
- }
933
- },
934
- "ANY": {
935
- "id": "ANY",
936
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaRestApi/Default/ANY",
937
- "children": {
938
- "ApiPermission.cftaplamnousageplantestcloudfrontapigatewaylambdaLambdaRestApiB0E151E3.ANY..": {
939
- "id": "ApiPermission.cftaplamnousageplantestcloudfrontapigatewaylambdaLambdaRestApiB0E151E3.ANY..",
940
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaRestApi/Default/ANY/ApiPermission.cftaplamnousageplantestcloudfrontapigatewaylambdaLambdaRestApiB0E151E3.ANY..",
941
- "attributes": {
942
- "aws:cdk:cloudformation:type": "AWS::Lambda::Permission",
943
- "aws:cdk:cloudformation:props": {
944
- "action": "lambda:InvokeFunction",
945
- "functionName": {
946
- "Fn::GetAtt": [
947
- "testcloudfrontapigatewaylambdaLambdaFunction17A55E65",
948
- "Arn"
949
- ]
950
- },
951
- "principal": "apigateway.amazonaws.com",
952
- "sourceArn": {
953
- "Fn::Join": [
954
- "",
955
- [
956
- "arn:",
957
- {
958
- "Ref": "AWS::Partition"
959
- },
960
- ":execute-api:",
961
- {
962
- "Ref": "AWS::Region"
963
- },
964
- ":",
965
- {
966
- "Ref": "AWS::AccountId"
967
- },
968
- ":",
969
- {
970
- "Ref": "testcloudfrontapigatewaylambdaLambdaRestApi6A4CBD44"
971
- },
972
- "/",
973
- {
974
- "Ref": "testcloudfrontapigatewaylambdaLambdaRestApiDeploymentStageprod4617A7B7"
975
- },
976
- "/*/"
977
- ]
978
- ]
979
- }
980
- }
981
- },
982
- "constructInfo": {
983
- "fqn": "aws-cdk-lib.aws_lambda.CfnPermission",
984
- "version": "2.179.0"
985
- }
986
- },
987
- "ApiPermission.Test.cftaplamnousageplantestcloudfrontapigatewaylambdaLambdaRestApiB0E151E3.ANY..": {
988
- "id": "ApiPermission.Test.cftaplamnousageplantestcloudfrontapigatewaylambdaLambdaRestApiB0E151E3.ANY..",
989
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaRestApi/Default/ANY/ApiPermission.Test.cftaplamnousageplantestcloudfrontapigatewaylambdaLambdaRestApiB0E151E3.ANY..",
990
- "attributes": {
991
- "aws:cdk:cloudformation:type": "AWS::Lambda::Permission",
992
- "aws:cdk:cloudformation:props": {
993
- "action": "lambda:InvokeFunction",
994
- "functionName": {
995
- "Fn::GetAtt": [
996
- "testcloudfrontapigatewaylambdaLambdaFunction17A55E65",
997
- "Arn"
998
- ]
999
- },
1000
- "principal": "apigateway.amazonaws.com",
1001
- "sourceArn": {
1002
- "Fn::Join": [
1003
- "",
1004
- [
1005
- "arn:",
1006
- {
1007
- "Ref": "AWS::Partition"
1008
- },
1009
- ":execute-api:",
1010
- {
1011
- "Ref": "AWS::Region"
1012
- },
1013
- ":",
1014
- {
1015
- "Ref": "AWS::AccountId"
1016
- },
1017
- ":",
1018
- {
1019
- "Ref": "testcloudfrontapigatewaylambdaLambdaRestApi6A4CBD44"
1020
- },
1021
- "/test-invoke-stage/*/"
1022
- ]
1023
- ]
1024
- }
1025
- }
1026
- },
1027
- "constructInfo": {
1028
- "fqn": "aws-cdk-lib.aws_lambda.CfnPermission",
1029
- "version": "2.179.0"
1030
- }
1031
- },
1032
- "Resource": {
1033
- "id": "Resource",
1034
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaRestApi/Default/ANY/Resource",
1035
- "attributes": {
1036
- "aws:cdk:cloudformation:type": "AWS::ApiGateway::Method",
1037
- "aws:cdk:cloudformation:props": {
1038
- "authorizationType": "CUSTOM",
1039
- "authorizerId": {
1040
- "Ref": "cftaplamnousageplanauthorizerB177A4F9"
1041
- },
1042
- "httpMethod": "ANY",
1043
- "integration": {
1044
- "type": "AWS_PROXY",
1045
- "uri": {
1046
- "Fn::Join": [
1047
- "",
1048
- [
1049
- "arn:",
1050
- {
1051
- "Ref": "AWS::Partition"
1052
- },
1053
- ":apigateway:",
1054
- {
1055
- "Ref": "AWS::Region"
1056
- },
1057
- ":lambda:path/2015-03-31/functions/",
1058
- {
1059
- "Fn::GetAtt": [
1060
- "testcloudfrontapigatewaylambdaLambdaFunction17A55E65",
1061
- "Arn"
1062
- ]
1063
- },
1064
- "/invocations"
1065
- ]
1066
- ]
1067
- },
1068
- "integrationHttpMethod": "POST"
1069
- },
1070
- "resourceId": {
1071
- "Fn::GetAtt": [
1072
- "testcloudfrontapigatewaylambdaLambdaRestApi6A4CBD44",
1073
- "RootResourceId"
1074
- ]
1075
- },
1076
- "restApiId": {
1077
- "Ref": "testcloudfrontapigatewaylambdaLambdaRestApi6A4CBD44"
1078
- }
1079
- }
1080
- },
1081
- "constructInfo": {
1082
- "fqn": "aws-cdk-lib.aws_apigateway.CfnMethod",
1083
- "version": "2.179.0"
1084
- }
1085
- }
1086
- },
1087
- "constructInfo": {
1088
- "fqn": "aws-cdk-lib.aws_apigateway.Method",
1089
- "version": "2.179.0",
1090
- "metadata": [
1091
- {
1092
- "resource": "*",
1093
- "httpMethod": "*",
1094
- "integration": "*",
1095
- "options": "*"
1096
- }
1097
- ]
1098
- }
1099
- }
1100
- },
1101
- "constructInfo": {
1102
- "fqn": "aws-cdk-lib.aws_apigateway.ResourceBase",
1103
- "version": "2.179.0",
1104
- "metadata": [
1105
- "*"
1106
- ]
1107
- }
1108
- }
1109
- },
1110
- "constructInfo": {
1111
- "fqn": "aws-cdk-lib.aws_apigateway.LambdaRestApi",
1112
- "version": "2.179.0",
1113
- "metadata": [
1114
- {
1115
- "defaultIntegration": "*",
1116
- "endpointConfiguration": {
1117
- "types": [
1118
- "REGIONAL"
1119
- ]
1120
- },
1121
- "cloudWatchRole": false,
1122
- "deployOptions": {
1123
- "accessLogDestination": "*",
1124
- "accessLogFormat": "*",
1125
- "loggingLevel": "INFO",
1126
- "dataTraceEnabled": false,
1127
- "tracingEnabled": true
1128
- },
1129
- "defaultMethodOptions": {
1130
- "authorizationType": "*",
1131
- "authorizer": "*"
1132
- },
1133
- "handler": "*"
1134
- },
1135
- {
1136
- "endpointConfiguration": {
1137
- "types": [
1138
- "REGIONAL"
1139
- ]
1140
- },
1141
- "cloudWatchRole": false,
1142
- "deployOptions": {
1143
- "accessLogDestination": "*",
1144
- "accessLogFormat": "*",
1145
- "loggingLevel": "INFO",
1146
- "dataTraceEnabled": false,
1147
- "tracingEnabled": true
1148
- },
1149
- "defaultMethodOptions": {
1150
- "authorizationType": "*",
1151
- "authorizer": "*"
1152
- },
1153
- "handler": "*"
1154
- }
1155
- ]
1156
- }
1157
- },
1158
- "LambdaRestApiCloudWatchRole": {
1159
- "id": "LambdaRestApiCloudWatchRole",
1160
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaRestApiCloudWatchRole",
1161
- "children": {
1162
- "ImportLambdaRestApiCloudWatchRole": {
1163
- "id": "ImportLambdaRestApiCloudWatchRole",
1164
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaRestApiCloudWatchRole/ImportLambdaRestApiCloudWatchRole",
1165
- "constructInfo": {
1166
- "fqn": "aws-cdk-lib.Resource",
1167
- "version": "2.179.0",
1168
- "metadata": [
1169
- "*"
1170
- ]
1171
- }
1172
- },
1173
- "Resource": {
1174
- "id": "Resource",
1175
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaRestApiCloudWatchRole/Resource",
1176
- "attributes": {
1177
- "aws:cdk:cloudformation:type": "AWS::IAM::Role",
1178
- "aws:cdk:cloudformation:props": {
1179
- "assumeRolePolicyDocument": {
1180
- "Statement": [
1181
- {
1182
- "Action": "sts:AssumeRole",
1183
- "Effect": "Allow",
1184
- "Principal": {
1185
- "Service": "apigateway.amazonaws.com"
1186
- }
1187
- }
1188
- ],
1189
- "Version": "2012-10-17"
1190
- },
1191
- "policies": [
1192
- {
1193
- "policyName": "LambdaRestApiCloudWatchRolePolicy",
1194
- "policyDocument": {
1195
- "Statement": [
1196
- {
1197
- "Action": [
1198
- "logs:CreateLogGroup",
1199
- "logs:CreateLogStream",
1200
- "logs:DescribeLogGroups",
1201
- "logs:DescribeLogStreams",
1202
- "logs:FilterLogEvents",
1203
- "logs:GetLogEvents",
1204
- "logs:PutLogEvents"
1205
- ],
1206
- "Effect": "Allow",
1207
- "Resource": {
1208
- "Fn::Join": [
1209
- "",
1210
- [
1211
- "arn:",
1212
- {
1213
- "Ref": "AWS::Partition"
1214
- },
1215
- ":logs:",
1216
- {
1217
- "Ref": "AWS::Region"
1218
- },
1219
- ":",
1220
- {
1221
- "Ref": "AWS::AccountId"
1222
- },
1223
- ":*"
1224
- ]
1225
- ]
1226
- }
1227
- }
1228
- ],
1229
- "Version": "2012-10-17"
1230
- }
1231
- }
1232
- ]
1233
- }
1234
- },
1235
- "constructInfo": {
1236
- "fqn": "aws-cdk-lib.aws_iam.CfnRole",
1237
- "version": "2.179.0"
1238
- }
1239
- }
1240
- },
1241
- "constructInfo": {
1242
- "fqn": "aws-cdk-lib.aws_iam.Role",
1243
- "version": "2.179.0",
1244
- "metadata": [
1245
- {
1246
- "assumedBy": {
1247
- "principalAccount": "*",
1248
- "assumeRoleAction": "*"
1249
- },
1250
- "inlinePolicies": "*"
1251
- }
1252
- ]
1253
- }
1254
- },
1255
- "LambdaRestApiAccount": {
1256
- "id": "LambdaRestApiAccount",
1257
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaRestApiAccount",
1258
- "attributes": {
1259
- "aws:cdk:cloudformation:type": "AWS::ApiGateway::Account",
1260
- "aws:cdk:cloudformation:props": {
1261
- "cloudWatchRoleArn": {
1262
- "Fn::GetAtt": [
1263
- "testcloudfrontapigatewaylambdaLambdaRestApiCloudWatchRole7A327F48",
1264
- "Arn"
1265
- ]
1266
- }
1267
- }
1268
- },
1269
- "constructInfo": {
1270
- "fqn": "aws-cdk-lib.aws_apigateway.CfnAccount",
1271
- "version": "2.179.0"
1272
- }
1273
- },
1274
- "CloudFrontToApiGateway": {
1275
- "id": "CloudFrontToApiGateway",
1276
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/CloudFrontToApiGateway",
1277
- "children": {
1278
- "SetHttpSecurityHeaders": {
1279
- "id": "SetHttpSecurityHeaders",
1280
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/CloudFrontToApiGateway/SetHttpSecurityHeaders",
1281
- "children": {
1282
- "Resource": {
1283
- "id": "Resource",
1284
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/CloudFrontToApiGateway/SetHttpSecurityHeaders/Resource",
1285
- "attributes": {
1286
- "aws:cdk:cloudformation:type": "AWS::CloudFront::Function",
1287
- "aws:cdk:cloudformation:props": {
1288
- "autoPublish": true,
1289
- "functionCode": "function handler(event) { var response = event.response; var headers = response.headers; headers['strict-transport-security'] = { value: 'max-age=63072000; includeSubdomains; preload'}; headers['content-security-policy'] = { value: \"default-src 'none'; img-src 'self'; script-src 'self'; style-src 'self'; object-src 'none'\"}; headers['x-content-type-options'] = { value: 'nosniff'}; headers['x-frame-options'] = {value: 'DENY'}; headers['x-xss-protection'] = {value: '1; mode=block'}; return response; }",
1290
- "functionConfig": {
1291
- "comment": "SetHttpSecurityHeadersc86ff048e47765694444f7bb321137eed6f5db5665",
1292
- "runtime": "cloudfront-js-1.0"
1293
- },
1294
- "name": "SetHttpSecurityHeadersc86ff048e47765694444f7bb321137eed6f5db5665"
1295
- }
1296
- },
1297
- "constructInfo": {
1298
- "fqn": "aws-cdk-lib.aws_cloudfront.CfnFunction",
1299
- "version": "2.179.0"
1300
- }
1301
- }
1302
- },
1303
- "constructInfo": {
1304
- "fqn": "aws-cdk-lib.aws_cloudfront.Function",
1305
- "version": "2.179.0",
1306
- "metadata": [
1307
- {
1308
- "functionName": "*",
1309
- "code": "*"
1310
- }
1311
- ]
1312
- }
1313
- },
1314
- "CloudfrontLoggingBucketAccessLog": {
1315
- "id": "CloudfrontLoggingBucketAccessLog",
1316
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/CloudFrontToApiGateway/CloudfrontLoggingBucketAccessLog",
1317
- "children": {
1318
- "Resource": {
1319
- "id": "Resource",
1320
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/CloudFrontToApiGateway/CloudfrontLoggingBucketAccessLog/Resource",
1321
- "attributes": {
1322
- "aws:cdk:cloudformation:type": "AWS::S3::Bucket",
1323
- "aws:cdk:cloudformation:props": {
1324
- "bucketEncryption": {
1325
- "serverSideEncryptionConfiguration": [
1326
- {
1327
- "serverSideEncryptionByDefault": {
1328
- "sseAlgorithm": "AES256"
1329
- }
1330
- }
1331
- ]
1332
- },
1333
- "publicAccessBlockConfiguration": {
1334
- "blockPublicAcls": true,
1335
- "blockPublicPolicy": true,
1336
- "ignorePublicAcls": true,
1337
- "restrictPublicBuckets": true
1338
- },
1339
- "versioningConfiguration": {
1340
- "status": "Enabled"
1341
- }
1342
- }
1343
- },
1344
- "constructInfo": {
1345
- "fqn": "aws-cdk-lib.aws_s3.CfnBucket",
1346
- "version": "2.179.0"
1347
- }
1348
- },
1349
- "Policy": {
1350
- "id": "Policy",
1351
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/CloudFrontToApiGateway/CloudfrontLoggingBucketAccessLog/Policy",
1352
- "children": {
1353
- "Resource": {
1354
- "id": "Resource",
1355
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/CloudFrontToApiGateway/CloudfrontLoggingBucketAccessLog/Policy/Resource",
1356
- "attributes": {
1357
- "aws:cdk:cloudformation:type": "AWS::S3::BucketPolicy",
1358
- "aws:cdk:cloudformation:props": {
1359
- "bucket": {
1360
- "Ref": "testcloudfrontapigatewaylambdaCloudFrontToApiGatewayCloudfrontLoggingBucketAccessLog347EED57"
1361
- },
1362
- "policyDocument": {
1363
- "Statement": [
1364
- {
1365
- "Action": "s3:*",
1366
- "Condition": {
1367
- "Bool": {
1368
- "aws:SecureTransport": "false"
1369
- }
1370
- },
1371
- "Effect": "Deny",
1372
- "Principal": {
1373
- "AWS": "*"
1374
- },
1375
- "Resource": [
1376
- {
1377
- "Fn::GetAtt": [
1378
- "testcloudfrontapigatewaylambdaCloudFrontToApiGatewayCloudfrontLoggingBucketAccessLog347EED57",
1379
- "Arn"
1380
- ]
1381
- },
1382
- {
1383
- "Fn::Join": [
1384
- "",
1385
- [
1386
- {
1387
- "Fn::GetAtt": [
1388
- "testcloudfrontapigatewaylambdaCloudFrontToApiGatewayCloudfrontLoggingBucketAccessLog347EED57",
1389
- "Arn"
1390
- ]
1391
- },
1392
- "/*"
1393
- ]
1394
- ]
1395
- }
1396
- ]
1397
- },
1398
- {
1399
- "Action": "s3:PutObject",
1400
- "Condition": {
1401
- "ArnLike": {
1402
- "aws:SourceArn": {
1403
- "Fn::GetAtt": [
1404
- "testcloudfrontapigatewaylambdaCloudFrontToApiGatewayCloudfrontLoggingBucket7F467421",
1405
- "Arn"
1406
- ]
1407
- }
1408
- },
1409
- "StringEquals": {
1410
- "aws:SourceAccount": {
1411
- "Ref": "AWS::AccountId"
1412
- }
1413
- }
1414
- },
1415
- "Effect": "Allow",
1416
- "Principal": {
1417
- "Service": "logging.s3.amazonaws.com"
1418
- },
1419
- "Resource": {
1420
- "Fn::Join": [
1421
- "",
1422
- [
1423
- {
1424
- "Fn::GetAtt": [
1425
- "testcloudfrontapigatewaylambdaCloudFrontToApiGatewayCloudfrontLoggingBucketAccessLog347EED57",
1426
- "Arn"
1427
- ]
1428
- },
1429
- "/*"
1430
- ]
1431
- ]
1432
- }
1433
- }
1434
- ],
1435
- "Version": "2012-10-17"
1436
- }
1437
- }
1438
- },
1439
- "constructInfo": {
1440
- "fqn": "aws-cdk-lib.aws_s3.CfnBucketPolicy",
1441
- "version": "2.179.0"
1442
- }
1443
- }
1444
- },
1445
- "constructInfo": {
1446
- "fqn": "aws-cdk-lib.aws_s3.BucketPolicy",
1447
- "version": "2.179.0",
1448
- "metadata": [
1449
- {
1450
- "bucket": "*"
1451
- }
1452
- ]
1453
- }
1454
- }
1455
- },
1456
- "constructInfo": {
1457
- "fqn": "aws-cdk-lib.aws_s3.Bucket",
1458
- "version": "2.179.0",
1459
- "metadata": [
1460
- {
1461
- "encryption": "S3_MANAGED",
1462
- "versioned": true,
1463
- "blockPublicAccess": "*",
1464
- "removalPolicy": "retain",
1465
- "enforceSSL": true
1466
- }
1467
- ]
1468
- }
1469
- },
1470
- "CloudfrontLoggingBucket": {
1471
- "id": "CloudfrontLoggingBucket",
1472
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/CloudFrontToApiGateway/CloudfrontLoggingBucket",
1473
- "children": {
1474
- "Resource": {
1475
- "id": "Resource",
1476
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/CloudFrontToApiGateway/CloudfrontLoggingBucket/Resource",
1477
- "attributes": {
1478
- "aws:cdk:cloudformation:type": "AWS::S3::Bucket",
1479
- "aws:cdk:cloudformation:props": {
1480
- "bucketEncryption": {
1481
- "serverSideEncryptionConfiguration": [
1482
- {
1483
- "serverSideEncryptionByDefault": {
1484
- "sseAlgorithm": "AES256"
1485
- }
1486
- }
1487
- ]
1488
- },
1489
- "loggingConfiguration": {
1490
- "destinationBucketName": {
1491
- "Ref": "testcloudfrontapigatewaylambdaCloudFrontToApiGatewayCloudfrontLoggingBucketAccessLog347EED57"
1492
- }
1493
- },
1494
- "ownershipControls": {
1495
- "rules": [
1496
- {
1497
- "objectOwnership": "ObjectWriter"
1498
- }
1499
- ]
1500
- },
1501
- "publicAccessBlockConfiguration": {
1502
- "blockPublicAcls": true,
1503
- "blockPublicPolicy": true,
1504
- "ignorePublicAcls": true,
1505
- "restrictPublicBuckets": true
1506
- },
1507
- "tags": [
1508
- {
1509
- "key": "aws-cdk:auto-delete-objects",
1510
- "value": "true"
1511
- }
1512
- ],
1513
- "versioningConfiguration": {
1514
- "status": "Enabled"
1515
- }
1516
- }
1517
- },
1518
- "constructInfo": {
1519
- "fqn": "aws-cdk-lib.aws_s3.CfnBucket",
1520
- "version": "2.179.0"
1521
- }
1522
- },
1523
- "Policy": {
1524
- "id": "Policy",
1525
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/CloudFrontToApiGateway/CloudfrontLoggingBucket/Policy",
1526
- "children": {
1527
- "Resource": {
1528
- "id": "Resource",
1529
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/CloudFrontToApiGateway/CloudfrontLoggingBucket/Policy/Resource",
1530
- "attributes": {
1531
- "aws:cdk:cloudformation:type": "AWS::S3::BucketPolicy",
1532
- "aws:cdk:cloudformation:props": {
1533
- "bucket": {
1534
- "Ref": "testcloudfrontapigatewaylambdaCloudFrontToApiGatewayCloudfrontLoggingBucket7F467421"
1535
- },
1536
- "policyDocument": {
1537
- "Statement": [
1538
- {
1539
- "Action": "s3:*",
1540
- "Condition": {
1541
- "Bool": {
1542
- "aws:SecureTransport": "false"
1543
- }
1544
- },
1545
- "Effect": "Deny",
1546
- "Principal": {
1547
- "AWS": "*"
1548
- },
1549
- "Resource": [
1550
- {
1551
- "Fn::GetAtt": [
1552
- "testcloudfrontapigatewaylambdaCloudFrontToApiGatewayCloudfrontLoggingBucket7F467421",
1553
- "Arn"
1554
- ]
1555
- },
1556
- {
1557
- "Fn::Join": [
1558
- "",
1559
- [
1560
- {
1561
- "Fn::GetAtt": [
1562
- "testcloudfrontapigatewaylambdaCloudFrontToApiGatewayCloudfrontLoggingBucket7F467421",
1563
- "Arn"
1564
- ]
1565
- },
1566
- "/*"
1567
- ]
1568
- ]
1569
- }
1570
- ]
1571
- },
1572
- {
1573
- "Action": [
1574
- "s3:DeleteObject*",
1575
- "s3:GetBucket*",
1576
- "s3:List*",
1577
- "s3:PutBucketPolicy"
1578
- ],
1579
- "Effect": "Allow",
1580
- "Principal": {
1581
- "AWS": {
1582
- "Fn::GetAtt": [
1583
- "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092",
1584
- "Arn"
1585
- ]
1586
- }
1587
- },
1588
- "Resource": [
1589
- {
1590
- "Fn::GetAtt": [
1591
- "testcloudfrontapigatewaylambdaCloudFrontToApiGatewayCloudfrontLoggingBucket7F467421",
1592
- "Arn"
1593
- ]
1594
- },
1595
- {
1596
- "Fn::Join": [
1597
- "",
1598
- [
1599
- {
1600
- "Fn::GetAtt": [
1601
- "testcloudfrontapigatewaylambdaCloudFrontToApiGatewayCloudfrontLoggingBucket7F467421",
1602
- "Arn"
1603
- ]
1604
- },
1605
- "/*"
1606
- ]
1607
- ]
1608
- }
1609
- ]
1610
- }
1611
- ],
1612
- "Version": "2012-10-17"
1613
- }
1614
- }
1615
- },
1616
- "constructInfo": {
1617
- "fqn": "aws-cdk-lib.aws_s3.CfnBucketPolicy",
1618
- "version": "2.179.0"
1619
- }
1620
- }
1621
- },
1622
- "constructInfo": {
1623
- "fqn": "aws-cdk-lib.aws_s3.BucketPolicy",
1624
- "version": "2.179.0",
1625
- "metadata": [
1626
- {
1627
- "bucket": "*"
1628
- }
1629
- ]
1630
- }
1631
- },
1632
- "AutoDeleteObjectsCustomResource": {
1633
- "id": "AutoDeleteObjectsCustomResource",
1634
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/CloudFrontToApiGateway/CloudfrontLoggingBucket/AutoDeleteObjectsCustomResource",
1635
- "children": {
1636
- "Default": {
1637
- "id": "Default",
1638
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/CloudFrontToApiGateway/CloudfrontLoggingBucket/AutoDeleteObjectsCustomResource/Default",
1639
- "constructInfo": {
1640
- "fqn": "aws-cdk-lib.CfnResource",
1641
- "version": "2.179.0"
1642
- }
1643
- }
1644
- },
1645
- "constructInfo": {
1646
- "fqn": "aws-cdk-lib.CustomResource",
1647
- "version": "2.179.0",
1648
- "metadata": [
1649
- "*"
1650
- ]
1651
- }
1652
- }
1653
- },
1654
- "constructInfo": {
1655
- "fqn": "aws-cdk-lib.aws_s3.Bucket",
1656
- "version": "2.179.0",
1657
- "metadata": [
1658
- {
1659
- "encryption": "S3_MANAGED",
1660
- "versioned": true,
1661
- "blockPublicAccess": "*",
1662
- "removalPolicy": "destroy",
1663
- "enforceSSL": true,
1664
- "autoDeleteObjects": true,
1665
- "objectOwnership": "ObjectWriter",
1666
- "serverAccessLogsBucket": "*"
1667
- }
1668
- ]
1669
- }
1670
- },
1671
- "CloudFrontDistribution": {
1672
- "id": "CloudFrontDistribution",
1673
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/CloudFrontToApiGateway/CloudFrontDistribution",
1674
- "children": {
1675
- "Origin1": {
1676
- "id": "Origin1",
1677
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/CloudFrontToApiGateway/CloudFrontDistribution/Origin1",
1678
- "constructInfo": {
1679
- "fqn": "constructs.Construct",
1680
- "version": "10.4.2"
1681
- }
1682
- },
1683
- "Resource": {
1684
- "id": "Resource",
1685
- "path": "cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/CloudFrontToApiGateway/CloudFrontDistribution/Resource",
1686
- "attributes": {
1687
- "aws:cdk:cloudformation:type": "AWS::CloudFront::Distribution",
1688
- "aws:cdk:cloudformation:props": {
1689
- "distributionConfig": {
1690
- "enabled": true,
1691
- "origins": [
1692
- {
1693
- "domainName": {
1694
- "Fn::Select": [
1695
- 0,
1696
- {
1697
- "Fn::Split": [
1698
- "/",
1699
- {
1700
- "Fn::Select": [
1701
- 1,
1702
- {
1703
- "Fn::Split": [
1704
- "://",
1705
- {
1706
- "Fn::Join": [
1707
- "",
1708
- [
1709
- "https://",
1710
- {
1711
- "Ref": "testcloudfrontapigatewaylambdaLambdaRestApi6A4CBD44"
1712
- },
1713
- ".execute-api.",
1714
- {
1715
- "Ref": "AWS::Region"
1716
- },
1717
- ".",
1718
- {
1719
- "Ref": "AWS::URLSuffix"
1720
- },
1721
- "/",
1722
- {
1723
- "Ref": "testcloudfrontapigatewaylambdaLambdaRestApiDeploymentStageprod4617A7B7"
1724
- },
1725
- "/"
1726
- ]
1727
- ]
1728
- }
1729
- ]
1730
- }
1731
- ]
1732
- }
1733
- ]
1734
- }
1735
- ]
1736
- },
1737
- "id": "cftaplamnousageplantestcloudfrontapigatewaylambdaCloudFrontToApiGatewayCloudFrontDistributionOrigin1079FB863",
1738
- "originPath": {
1739
- "Fn::Join": [
1740
- "",
1741
- [
1742
- "/",
1743
- {
1744
- "Ref": "testcloudfrontapigatewaylambdaLambdaRestApiDeploymentStageprod4617A7B7"
1745
- }
1746
- ]
1747
- ]
1748
- },
1749
- "customOriginConfig": {
1750
- "originSslProtocols": [
1751
- "TLSv1.2"
1752
- ],
1753
- "originProtocolPolicy": "https-only"
1754
- }
1755
- }
1756
- ],
1757
- "defaultCacheBehavior": {
1758
- "pathPattern": "*",
1759
- "targetOriginId": "cftaplamnousageplantestcloudfrontapigatewaylambdaCloudFrontToApiGatewayCloudFrontDistributionOrigin1079FB863",
1760
- "cachePolicyId": "658327ea-f89d-4fab-a63d-7e88639e58f6",
1761
- "compress": true,
1762
- "viewerProtocolPolicy": "redirect-to-https",
1763
- "functionAssociations": [
1764
- {
1765
- "functionArn": {
1766
- "Fn::GetAtt": [
1767
- "testcloudfrontapigatewaylambdaCloudFrontToApiGatewaySetHttpSecurityHeaders6945414A",
1768
- "FunctionARN"
1769
- ]
1770
- },
1771
- "eventType": "viewer-response"
1772
- }
1773
- ]
1774
- },
1775
- "httpVersion": "http2",
1776
- "ipv6Enabled": true,
1777
- "logging": {
1778
- "bucket": {
1779
- "Fn::GetAtt": [
1780
- "testcloudfrontapigatewaylambdaCloudFrontToApiGatewayCloudfrontLoggingBucket7F467421",
1781
- "RegionalDomainName"
1782
- ]
1783
- }
1784
- }
1785
- }
1786
- }
1787
- },
1788
- "constructInfo": {
1789
- "fqn": "aws-cdk-lib.aws_cloudfront.CfnDistribution",
1790
- "version": "2.179.0"
1791
- }
1792
- }
1793
- },
1794
- "constructInfo": {
1795
- "fqn": "aws-cdk-lib.aws_cloudfront.Distribution",
1796
- "version": "2.179.0",
1797
- "metadata": [
1798
- {
1799
- "defaultBehavior": {
1800
- "origin": "*",
1801
- "functionAssociations": [
1802
- {
1803
- "eventType": "viewer-response",
1804
- "function": "*"
1805
- }
1806
- ],
1807
- "viewerProtocolPolicy": "redirect-to-https"
1808
- },
1809
- "enableLogging": true,
1810
- "logBucket": "*"
1811
- }
1812
- ]
1813
- }
1814
- }
1815
- },
1816
- "constructInfo": {
1817
- "fqn": "@aws-solutions-constructs/aws-cloudfront-apigateway.CloudFrontToApiGateway",
1818
- "version": "2.79.1"
1819
- }
1820
- }
1821
- },
1822
- "constructInfo": {
1823
- "fqn": "@aws-solutions-constructs/aws-cloudfront-apigateway-lambda.CloudFrontToApiGatewayToLambda",
1824
- "version": "2.79.1"
1825
- }
1826
- },
1827
- "LatestNodeRuntimeMap": {
1828
- "id": "LatestNodeRuntimeMap",
1829
- "path": "cftaplam-no-usage-plan/LatestNodeRuntimeMap",
1830
- "constructInfo": {
1831
- "fqn": "aws-cdk-lib.CfnMapping",
1832
- "version": "2.179.0"
1833
- }
1834
- },
1835
- "Custom::S3AutoDeleteObjectsCustomResourceProvider": {
1836
- "id": "Custom::S3AutoDeleteObjectsCustomResourceProvider",
1837
- "path": "cftaplam-no-usage-plan/Custom::S3AutoDeleteObjectsCustomResourceProvider",
1838
- "children": {
1839
- "Staging": {
1840
- "id": "Staging",
1841
- "path": "cftaplam-no-usage-plan/Custom::S3AutoDeleteObjectsCustomResourceProvider/Staging",
1842
- "constructInfo": {
1843
- "fqn": "aws-cdk-lib.AssetStaging",
1844
- "version": "2.179.0"
1845
- }
1846
- },
1847
- "Role": {
1848
- "id": "Role",
1849
- "path": "cftaplam-no-usage-plan/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role",
1850
- "constructInfo": {
1851
- "fqn": "aws-cdk-lib.CfnResource",
1852
- "version": "2.179.0"
1853
- }
1854
- },
1855
- "Handler": {
1856
- "id": "Handler",
1857
- "path": "cftaplam-no-usage-plan/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler",
1858
- "constructInfo": {
1859
- "fqn": "aws-cdk-lib.CfnResource",
1860
- "version": "2.179.0"
1861
- }
1862
- }
1863
- },
1864
- "constructInfo": {
1865
- "fqn": "aws-cdk-lib.CustomResourceProviderBase",
1866
- "version": "2.179.0"
1867
- }
1868
- },
1869
- "Integ": {
1870
- "id": "Integ",
1871
- "path": "cftaplam-no-usage-plan/Integ",
1872
- "children": {
1873
- "DefaultTest": {
1874
- "id": "DefaultTest",
1875
- "path": "cftaplam-no-usage-plan/Integ/DefaultTest",
1876
- "children": {
1877
- "Default": {
1878
- "id": "Default",
1879
- "path": "cftaplam-no-usage-plan/Integ/DefaultTest/Default",
1880
- "constructInfo": {
1881
- "fqn": "constructs.Construct",
1882
- "version": "10.4.2"
1883
- }
1884
- },
1885
- "DeployAssert": {
1886
- "id": "DeployAssert",
1887
- "path": "cftaplam-no-usage-plan/Integ/DefaultTest/DeployAssert",
1888
- "children": {
1889
- "BootstrapVersion": {
1890
- "id": "BootstrapVersion",
1891
- "path": "cftaplam-no-usage-plan/Integ/DefaultTest/DeployAssert/BootstrapVersion",
1892
- "constructInfo": {
1893
- "fqn": "aws-cdk-lib.CfnParameter",
1894
- "version": "2.179.0"
1895
- }
1896
- },
1897
- "CheckBootstrapVersion": {
1898
- "id": "CheckBootstrapVersion",
1899
- "path": "cftaplam-no-usage-plan/Integ/DefaultTest/DeployAssert/CheckBootstrapVersion",
1900
- "constructInfo": {
1901
- "fqn": "aws-cdk-lib.CfnRule",
1902
- "version": "2.179.0"
1903
- }
1904
- }
1905
- },
1906
- "constructInfo": {
1907
- "fqn": "aws-cdk-lib.Stack",
1908
- "version": "2.179.0"
1909
- }
1910
- }
1911
- },
1912
- "constructInfo": {
1913
- "fqn": "@aws-cdk/integ-tests-alpha.IntegTestCase",
1914
- "version": "2.179.0-alpha.0"
1915
- }
1916
- }
1917
- },
1918
- "constructInfo": {
1919
- "fqn": "@aws-cdk/integ-tests-alpha.IntegTest",
1920
- "version": "2.179.0-alpha.0"
1921
- }
1922
- },
1923
- "BootstrapVersion": {
1924
- "id": "BootstrapVersion",
1925
- "path": "cftaplam-no-usage-plan/BootstrapVersion",
1926
- "constructInfo": {
1927
- "fqn": "aws-cdk-lib.CfnParameter",
1928
- "version": "2.179.0"
1929
- }
1930
- },
1931
- "CheckBootstrapVersion": {
1932
- "id": "CheckBootstrapVersion",
1933
- "path": "cftaplam-no-usage-plan/CheckBootstrapVersion",
1934
- "constructInfo": {
1935
- "fqn": "aws-cdk-lib.CfnRule",
1936
- "version": "2.179.0"
1937
- }
1938
- }
1939
- },
1940
- "constructInfo": {
1941
- "fqn": "aws-cdk-lib.Stack",
1942
- "version": "2.179.0"
1943
- }
1944
- },
1945
- "Tree": {
1946
- "id": "Tree",
1947
- "path": "Tree",
1948
- "constructInfo": {
1949
- "fqn": "constructs.Construct",
1950
- "version": "10.4.2"
1951
- }
1952
- }
1953
- },
1954
- "constructInfo": {
1955
- "fqn": "aws-cdk-lib.App",
1956
- "version": "2.179.0"
1957
- }
1958
- }
1959
- }
1
+ {"version":"tree-0.1","tree":{"id":"App","path":"","children":{"cftaplam-no-usage-plan":{"id":"cftaplam-no-usage-plan","path":"cftaplam-no-usage-plan","children":{"cftaplam-no-usage-plan-authorizerAuthFunction":{"id":"cftaplam-no-usage-plan-authorizerAuthFunction","path":"cftaplam-no-usage-plan/cftaplam-no-usage-plan-authorizerAuthFunction","children":{"ServiceRole":{"id":"ServiceRole","path":"cftaplam-no-usage-plan/cftaplam-no-usage-plan-authorizerAuthFunction/ServiceRole","children":{"ImportServiceRole":{"id":"ImportServiceRole","path":"cftaplam-no-usage-plan/cftaplam-no-usage-plan-authorizerAuthFunction/ServiceRole/ImportServiceRole","constructInfo":{"fqn":"aws-cdk-lib.Resource","version":"2.186.0","metadata":["*"]}},"Resource":{"id":"Resource","path":"cftaplam-no-usage-plan/cftaplam-no-usage-plan-authorizerAuthFunction/ServiceRole/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::IAM::Role","aws:cdk:cloudformation:props":{"assumeRolePolicyDocument":{"Statement":[{"Action":"sts:AssumeRole","Effect":"Allow","Principal":{"Service":"lambda.amazonaws.com"}}],"Version":"2012-10-17"},"managedPolicyArns":[{"Fn::Join":["",["arn:",{"Ref":"AWS::Partition"},":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"]]}]}},"constructInfo":{"fqn":"aws-cdk-lib.aws_iam.CfnRole","version":"2.186.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_iam.Role","version":"2.186.0","metadata":[{"assumedBy":{"principalAccount":"*","assumeRoleAction":"*"},"managedPolicies":[{"managedPolicyArn":"*"}]}]}},"Code":{"id":"Code","path":"cftaplam-no-usage-plan/cftaplam-no-usage-plan-authorizerAuthFunction/Code","children":{"Stage":{"id":"Stage","path":"cftaplam-no-usage-plan/cftaplam-no-usage-plan-authorizerAuthFunction/Code/Stage","constructInfo":{"fqn":"aws-cdk-lib.AssetStaging","version":"2.186.0"}},"AssetBucket":{"id":"AssetBucket","path":"cftaplam-no-usage-plan/cftaplam-no-usage-plan-authorizerAuthFunction/Code/AssetBucket","constructInfo":{"fqn":"aws-cdk-lib.aws_s3.BucketBase","version":"2.186.0","metadata":[]}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_s3_assets.Asset","version":"2.186.0"}},"Resource":{"id":"Resource","path":"cftaplam-no-usage-plan/cftaplam-no-usage-plan-authorizerAuthFunction/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::Lambda::Function","aws:cdk:cloudformation:props":{"code":{"s3Bucket":{"Fn::Sub":"cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"},"s3Key":"3a18fd3de4803f72260a058823accffd4f8d69986c6862a23cd86265f6cafa0f.zip"},"handler":".handler","role":{"Fn::GetAtt":["cftaplamnousageplanauthorizerAuthFunctionServiceRoleD960FE23","Arn"]},"runtime":"nodejs20.x"}},"constructInfo":{"fqn":"aws-cdk-lib.aws_lambda.CfnFunction","version":"2.186.0"}},"cftaplamnousageplancftaplamnousageplanauthorizerB8C63521:Permissions":{"id":"cftaplamnousageplancftaplamnousageplanauthorizerB8C63521:Permissions","path":"cftaplam-no-usage-plan/cftaplam-no-usage-plan-authorizerAuthFunction/cftaplamnousageplancftaplamnousageplanauthorizerB8C63521:Permissions","attributes":{"aws:cdk:cloudformation:type":"AWS::Lambda::Permission","aws:cdk:cloudformation:props":{"action":"lambda:InvokeFunction","functionName":{"Fn::GetAtt":["cftaplamnousageplanauthorizerAuthFunctionC756EB1A","Arn"]},"principal":"apigateway.amazonaws.com","sourceArn":{"Fn::Join":["",["arn:",{"Ref":"AWS::Partition"},":execute-api:",{"Ref":"AWS::Region"},":",{"Ref":"AWS::AccountId"},":",{"Ref":"testcloudfrontapigatewaylambdaLambdaRestApi6A4CBD44"},"/authorizers/",{"Ref":"cftaplamnousageplanauthorizerB177A4F9"}]]}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_lambda.CfnPermission","version":"2.186.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_lambda.Function","version":"2.186.0","metadata":[{"code":"*","runtime":"*","handler":"*"}]}},"cftaplam-no-usage-plan-authorizer":{"id":"cftaplam-no-usage-plan-authorizer","path":"cftaplam-no-usage-plan/cftaplam-no-usage-plan-authorizer","children":{"Resource":{"id":"Resource","path":"cftaplam-no-usage-plan/cftaplam-no-usage-plan-authorizer/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::ApiGateway::Authorizer","aws:cdk:cloudformation:props":{"authorizerResultTtlInSeconds":300,"authorizerUri":{"Fn::Join":["",["arn:",{"Fn::Select":[1,{"Fn::Split":[":",{"Fn::GetAtt":["cftaplamnousageplanauthorizerAuthFunctionC756EB1A","Arn"]}]}]},":apigateway:",{"Fn::Select":[3,{"Fn::Split":[":",{"Fn::GetAtt":["cftaplamnousageplanauthorizerAuthFunctionC756EB1A","Arn"]}]}]},":lambda:path/2015-03-31/functions/",{"Fn::GetAtt":["cftaplamnousageplanauthorizerAuthFunctionC756EB1A","Arn"]},"/invocations"]]},"identitySource":"method.request.header.Authorization","name":"cftaplamnousageplancftaplamnousageplanauthorizerB8C63521","restApiId":{"Ref":"testcloudfrontapigatewaylambdaLambdaRestApi6A4CBD44"},"type":"REQUEST"}},"constructInfo":{"fqn":"aws-cdk-lib.aws_apigateway.CfnAuthorizer","version":"2.186.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_apigateway.RequestAuthorizer","version":"2.186.0","metadata":["*"]}},"test-cloudfront-apigateway-lambda":{"id":"test-cloudfront-apigateway-lambda","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda","children":{"LambdaFunctionServiceRole":{"id":"LambdaFunctionServiceRole","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaFunctionServiceRole","children":{"ImportLambdaFunctionServiceRole":{"id":"ImportLambdaFunctionServiceRole","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaFunctionServiceRole/ImportLambdaFunctionServiceRole","constructInfo":{"fqn":"aws-cdk-lib.Resource","version":"2.186.0","metadata":["*"]}},"Resource":{"id":"Resource","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaFunctionServiceRole/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::IAM::Role","aws:cdk:cloudformation:props":{"assumeRolePolicyDocument":{"Statement":[{"Action":"sts:AssumeRole","Effect":"Allow","Principal":{"Service":"lambda.amazonaws.com"}}],"Version":"2012-10-17"},"policies":[{"policyName":"LambdaFunctionServiceRolePolicy","policyDocument":{"Statement":[{"Action":["logs:CreateLogGroup","logs:CreateLogStream","logs:PutLogEvents"],"Effect":"Allow","Resource":{"Fn::Join":["",["arn:",{"Ref":"AWS::Partition"},":logs:",{"Ref":"AWS::Region"},":",{"Ref":"AWS::AccountId"},":log-group:/aws/lambda/*"]]}}],"Version":"2012-10-17"}}]}},"constructInfo":{"fqn":"aws-cdk-lib.aws_iam.CfnRole","version":"2.186.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_iam.Role","version":"2.186.0","metadata":[{"assumedBy":{"principalAccount":"*","assumeRoleAction":"*"},"inlinePolicies":"*"},{"attachInlinePolicy":["*"]},{"attachInlinePolicy":["*"]}]}},"LambdaFunction":{"id":"LambdaFunction","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaFunction","children":{"Code":{"id":"Code","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaFunction/Code","children":{"Stage":{"id":"Stage","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaFunction/Code/Stage","constructInfo":{"fqn":"aws-cdk-lib.AssetStaging","version":"2.186.0"}},"AssetBucket":{"id":"AssetBucket","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaFunction/Code/AssetBucket","constructInfo":{"fqn":"aws-cdk-lib.aws_s3.BucketBase","version":"2.186.0","metadata":[]}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_s3_assets.Asset","version":"2.186.0"}},"Resource":{"id":"Resource","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaFunction/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::Lambda::Function","aws:cdk:cloudformation:props":{"code":{"s3Bucket":{"Fn::Sub":"cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"},"s3Key":"3a18fd3de4803f72260a058823accffd4f8d69986c6862a23cd86265f6cafa0f.zip"},"environment":{"variables":{"AWS_NODEJS_CONNECTION_REUSE_ENABLED":"1"}},"handler":"index.handler","role":{"Fn::GetAtt":["testcloudfrontapigatewaylambdaLambdaFunctionServiceRoleCB74590F","Arn"]},"runtime":"nodejs20.x","tracingConfig":{"mode":"Active"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_lambda.CfnFunction","version":"2.186.0"}},"inlinePolicyAddedToExecutionRole-0":{"id":"inlinePolicyAddedToExecutionRole-0","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaFunction/inlinePolicyAddedToExecutionRole-0","children":{"Resource":{"id":"Resource","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaFunction/inlinePolicyAddedToExecutionRole-0/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::IAM::Policy","aws:cdk:cloudformation:props":{"policyDocument":{"Statement":[{"Action":["xray:PutTelemetryRecords","xray:PutTraceSegments"],"Effect":"Allow","Resource":"*"}],"Version":"2012-10-17"},"policyName":"testcloudfrontapigatewaylambdaLambdaFunctioninlinePolicyAddedToExecutionRole010F5D55C","roles":[{"Ref":"testcloudfrontapigatewaylambdaLambdaFunctionServiceRoleCB74590F"}]}},"constructInfo":{"fqn":"aws-cdk-lib.aws_iam.CfnPolicy","version":"2.186.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_iam.Policy","version":"2.186.0","metadata":[{"statements":"*"},{"addStatements":[{}]},{"attachToRole":["*"]},{"attachToRole":["*"]}]}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_lambda.Function","version":"2.186.0","metadata":[{"role":"*","tracing":"Active","code":"*","runtime":"*","handler":"*"},{"addEnvironment":["*","*",{"removeInEdge":true}]}]}},"ApiAccessLogGroup":{"id":"ApiAccessLogGroup","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/ApiAccessLogGroup","children":{"Resource":{"id":"Resource","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/ApiAccessLogGroup/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::Logs::LogGroup","aws:cdk:cloudformation:props":{}},"constructInfo":{"fqn":"aws-cdk-lib.aws_logs.CfnLogGroup","version":"2.186.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_logs.LogGroup","version":"2.186.0","metadata":[{"retention":9999}]}},"LambdaRestApi":{"id":"LambdaRestApi","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaRestApi","children":{"Resource":{"id":"Resource","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaRestApi/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::ApiGateway::RestApi","aws:cdk:cloudformation:props":{"endpointConfiguration":{"types":["REGIONAL"]},"name":"LambdaRestApi"}},"constructInfo":{"fqn":"aws-cdk-lib.aws_apigateway.CfnRestApi","version":"2.186.0"}},"Deployment":{"id":"Deployment","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaRestApi/Deployment","children":{"Resource":{"id":"Resource","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaRestApi/Deployment/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::ApiGateway::Deployment","aws:cdk:cloudformation:props":{"description":"Automatically created by the RestApi construct","restApiId":{"Ref":"testcloudfrontapigatewaylambdaLambdaRestApi6A4CBD44"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_apigateway.CfnDeployment","version":"2.186.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_apigateway.Deployment","version":"2.186.0","metadata":[{"description":"*","api":"*","retainDeployments":"*"},{"addToLogicalId":[{}]},{"addToLogicalId":[{}]},{"addToLogicalId":[{}]},{"addToLogicalId":[{}]},{"addToLogicalId":[{}]}]}},"DeploymentStage.prod":{"id":"DeploymentStage.prod","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaRestApi/DeploymentStage.prod","children":{"Resource":{"id":"Resource","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaRestApi/DeploymentStage.prod/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::ApiGateway::Stage","aws:cdk:cloudformation:props":{"accessLogSetting":{"destinationArn":{"Fn::GetAtt":["testcloudfrontapigatewaylambdaApiAccessLogGroup97EB2E40","Arn"]},"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\"}"},"deploymentId":{"Ref":"testcloudfrontapigatewaylambdaLambdaRestApiDeployment0C4661C0d9c4123459f0cf4d3f3c0bde215f7fe1"},"methodSettings":[{"httpMethod":"*","resourcePath":"/*","dataTraceEnabled":false,"loggingLevel":"INFO"}],"restApiId":{"Ref":"testcloudfrontapigatewaylambdaLambdaRestApi6A4CBD44"},"stageName":"prod","tracingEnabled":true}},"constructInfo":{"fqn":"aws-cdk-lib.aws_apigateway.CfnStage","version":"2.186.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_apigateway.Stage","version":"2.186.0","metadata":[{"deployment":"*","accessLogDestination":"*","accessLogFormat":"*","loggingLevel":"INFO","dataTraceEnabled":false,"tracingEnabled":true}]}},"Endpoint":{"id":"Endpoint","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaRestApi/Endpoint","constructInfo":{"fqn":"aws-cdk-lib.CfnOutput","version":"2.186.0"}},"Default":{"id":"Default","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaRestApi/Default","children":{"{proxy+}":{"id":"{proxy+}","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaRestApi/Default/{proxy+}","children":{"Resource":{"id":"Resource","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaRestApi/Default/{proxy+}/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::ApiGateway::Resource","aws:cdk:cloudformation:props":{"parentId":{"Fn::GetAtt":["testcloudfrontapigatewaylambdaLambdaRestApi6A4CBD44","RootResourceId"]},"pathPart":"{proxy+}","restApiId":{"Ref":"testcloudfrontapigatewaylambdaLambdaRestApi6A4CBD44"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_apigateway.CfnResource","version":"2.186.0"}},"ANY":{"id":"ANY","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaRestApi/Default/{proxy+}/ANY","children":{"ApiPermission.cftaplamnousageplantestcloudfrontapigatewaylambdaLambdaRestApiB0E151E3.ANY..{proxy+}":{"id":"ApiPermission.cftaplamnousageplantestcloudfrontapigatewaylambdaLambdaRestApiB0E151E3.ANY..{proxy+}","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaRestApi/Default/{proxy+}/ANY/ApiPermission.cftaplamnousageplantestcloudfrontapigatewaylambdaLambdaRestApiB0E151E3.ANY..{proxy+}","attributes":{"aws:cdk:cloudformation:type":"AWS::Lambda::Permission","aws:cdk:cloudformation:props":{"action":"lambda:InvokeFunction","functionName":{"Fn::GetAtt":["testcloudfrontapigatewaylambdaLambdaFunction17A55E65","Arn"]},"principal":"apigateway.amazonaws.com","sourceArn":{"Fn::Join":["",["arn:",{"Ref":"AWS::Partition"},":execute-api:",{"Ref":"AWS::Region"},":",{"Ref":"AWS::AccountId"},":",{"Ref":"testcloudfrontapigatewaylambdaLambdaRestApi6A4CBD44"},"/",{"Ref":"testcloudfrontapigatewaylambdaLambdaRestApiDeploymentStageprod4617A7B7"},"/*/*"]]}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_lambda.CfnPermission","version":"2.186.0"}},"ApiPermission.Test.cftaplamnousageplantestcloudfrontapigatewaylambdaLambdaRestApiB0E151E3.ANY..{proxy+}":{"id":"ApiPermission.Test.cftaplamnousageplantestcloudfrontapigatewaylambdaLambdaRestApiB0E151E3.ANY..{proxy+}","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaRestApi/Default/{proxy+}/ANY/ApiPermission.Test.cftaplamnousageplantestcloudfrontapigatewaylambdaLambdaRestApiB0E151E3.ANY..{proxy+}","attributes":{"aws:cdk:cloudformation:type":"AWS::Lambda::Permission","aws:cdk:cloudformation:props":{"action":"lambda:InvokeFunction","functionName":{"Fn::GetAtt":["testcloudfrontapigatewaylambdaLambdaFunction17A55E65","Arn"]},"principal":"apigateway.amazonaws.com","sourceArn":{"Fn::Join":["",["arn:",{"Ref":"AWS::Partition"},":execute-api:",{"Ref":"AWS::Region"},":",{"Ref":"AWS::AccountId"},":",{"Ref":"testcloudfrontapigatewaylambdaLambdaRestApi6A4CBD44"},"/test-invoke-stage/*/*"]]}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_lambda.CfnPermission","version":"2.186.0"}},"Resource":{"id":"Resource","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaRestApi/Default/{proxy+}/ANY/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::ApiGateway::Method","aws:cdk:cloudformation:props":{"authorizationType":"CUSTOM","authorizerId":{"Ref":"cftaplamnousageplanauthorizerB177A4F9"},"httpMethod":"ANY","integration":{"type":"AWS_PROXY","uri":{"Fn::Join":["",["arn:",{"Ref":"AWS::Partition"},":apigateway:",{"Ref":"AWS::Region"},":lambda:path/2015-03-31/functions/",{"Fn::GetAtt":["testcloudfrontapigatewaylambdaLambdaFunction17A55E65","Arn"]},"/invocations"]]},"integrationHttpMethod":"POST"},"resourceId":{"Ref":"testcloudfrontapigatewaylambdaLambdaRestApiproxyBC09D86F"},"restApiId":{"Ref":"testcloudfrontapigatewaylambdaLambdaRestApi6A4CBD44"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_apigateway.CfnMethod","version":"2.186.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_apigateway.Method","version":"2.186.0","metadata":[{"resource":"*","httpMethod":"*","integration":"*","options":"*"}]}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_apigateway.ProxyResource","version":"2.186.0","metadata":[{"defaultIntegration":"*","defaultMethodOptions":"*"},{},{"addMethod":["*"]}]}},"ANY":{"id":"ANY","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaRestApi/Default/ANY","children":{"ApiPermission.cftaplamnousageplantestcloudfrontapigatewaylambdaLambdaRestApiB0E151E3.ANY..":{"id":"ApiPermission.cftaplamnousageplantestcloudfrontapigatewaylambdaLambdaRestApiB0E151E3.ANY..","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaRestApi/Default/ANY/ApiPermission.cftaplamnousageplantestcloudfrontapigatewaylambdaLambdaRestApiB0E151E3.ANY..","attributes":{"aws:cdk:cloudformation:type":"AWS::Lambda::Permission","aws:cdk:cloudformation:props":{"action":"lambda:InvokeFunction","functionName":{"Fn::GetAtt":["testcloudfrontapigatewaylambdaLambdaFunction17A55E65","Arn"]},"principal":"apigateway.amazonaws.com","sourceArn":{"Fn::Join":["",["arn:",{"Ref":"AWS::Partition"},":execute-api:",{"Ref":"AWS::Region"},":",{"Ref":"AWS::AccountId"},":",{"Ref":"testcloudfrontapigatewaylambdaLambdaRestApi6A4CBD44"},"/",{"Ref":"testcloudfrontapigatewaylambdaLambdaRestApiDeploymentStageprod4617A7B7"},"/*/"]]}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_lambda.CfnPermission","version":"2.186.0"}},"ApiPermission.Test.cftaplamnousageplantestcloudfrontapigatewaylambdaLambdaRestApiB0E151E3.ANY..":{"id":"ApiPermission.Test.cftaplamnousageplantestcloudfrontapigatewaylambdaLambdaRestApiB0E151E3.ANY..","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaRestApi/Default/ANY/ApiPermission.Test.cftaplamnousageplantestcloudfrontapigatewaylambdaLambdaRestApiB0E151E3.ANY..","attributes":{"aws:cdk:cloudformation:type":"AWS::Lambda::Permission","aws:cdk:cloudformation:props":{"action":"lambda:InvokeFunction","functionName":{"Fn::GetAtt":["testcloudfrontapigatewaylambdaLambdaFunction17A55E65","Arn"]},"principal":"apigateway.amazonaws.com","sourceArn":{"Fn::Join":["",["arn:",{"Ref":"AWS::Partition"},":execute-api:",{"Ref":"AWS::Region"},":",{"Ref":"AWS::AccountId"},":",{"Ref":"testcloudfrontapigatewaylambdaLambdaRestApi6A4CBD44"},"/test-invoke-stage/*/"]]}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_lambda.CfnPermission","version":"2.186.0"}},"Resource":{"id":"Resource","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaRestApi/Default/ANY/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::ApiGateway::Method","aws:cdk:cloudformation:props":{"authorizationType":"CUSTOM","authorizerId":{"Ref":"cftaplamnousageplanauthorizerB177A4F9"},"httpMethod":"ANY","integration":{"type":"AWS_PROXY","uri":{"Fn::Join":["",["arn:",{"Ref":"AWS::Partition"},":apigateway:",{"Ref":"AWS::Region"},":lambda:path/2015-03-31/functions/",{"Fn::GetAtt":["testcloudfrontapigatewaylambdaLambdaFunction17A55E65","Arn"]},"/invocations"]]},"integrationHttpMethod":"POST"},"resourceId":{"Fn::GetAtt":["testcloudfrontapigatewaylambdaLambdaRestApi6A4CBD44","RootResourceId"]},"restApiId":{"Ref":"testcloudfrontapigatewaylambdaLambdaRestApi6A4CBD44"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_apigateway.CfnMethod","version":"2.186.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_apigateway.Method","version":"2.186.0","metadata":[{"resource":"*","httpMethod":"*","integration":"*","options":"*"}]}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_apigateway.ResourceBase","version":"2.186.0","metadata":["*"]}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_apigateway.LambdaRestApi","version":"2.186.0","metadata":[{"defaultIntegration":"*","endpointConfiguration":{"types":["REGIONAL"]},"cloudWatchRole":false,"deployOptions":{"accessLogDestination":"*","accessLogFormat":"*","loggingLevel":"INFO","dataTraceEnabled":false,"tracingEnabled":true},"defaultMethodOptions":{"authorizationType":"*","authorizer":"*"},"handler":"*"},{"endpointConfiguration":{"types":["REGIONAL"]},"cloudWatchRole":false,"deployOptions":{"accessLogDestination":"*","accessLogFormat":"*","loggingLevel":"INFO","dataTraceEnabled":false,"tracingEnabled":true},"defaultMethodOptions":{"authorizationType":"*","authorizer":"*"},"handler":"*"}]}},"LambdaRestApiCloudWatchRole":{"id":"LambdaRestApiCloudWatchRole","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaRestApiCloudWatchRole","children":{"ImportLambdaRestApiCloudWatchRole":{"id":"ImportLambdaRestApiCloudWatchRole","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaRestApiCloudWatchRole/ImportLambdaRestApiCloudWatchRole","constructInfo":{"fqn":"aws-cdk-lib.Resource","version":"2.186.0","metadata":["*"]}},"Resource":{"id":"Resource","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaRestApiCloudWatchRole/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::IAM::Role","aws:cdk:cloudformation:props":{"assumeRolePolicyDocument":{"Statement":[{"Action":"sts:AssumeRole","Effect":"Allow","Principal":{"Service":"apigateway.amazonaws.com"}}],"Version":"2012-10-17"},"policies":[{"policyName":"LambdaRestApiCloudWatchRolePolicy","policyDocument":{"Statement":[{"Action":["logs:CreateLogGroup","logs:CreateLogStream","logs:DescribeLogGroups","logs:DescribeLogStreams","logs:FilterLogEvents","logs:GetLogEvents","logs:PutLogEvents"],"Effect":"Allow","Resource":{"Fn::Join":["",["arn:",{"Ref":"AWS::Partition"},":logs:",{"Ref":"AWS::Region"},":",{"Ref":"AWS::AccountId"},":*"]]}}],"Version":"2012-10-17"}}]}},"constructInfo":{"fqn":"aws-cdk-lib.aws_iam.CfnRole","version":"2.186.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_iam.Role","version":"2.186.0","metadata":[{"assumedBy":{"principalAccount":"*","assumeRoleAction":"*"},"inlinePolicies":"*"}]}},"LambdaRestApiAccount":{"id":"LambdaRestApiAccount","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/LambdaRestApiAccount","attributes":{"aws:cdk:cloudformation:type":"AWS::ApiGateway::Account","aws:cdk:cloudformation:props":{"cloudWatchRoleArn":{"Fn::GetAtt":["testcloudfrontapigatewaylambdaLambdaRestApiCloudWatchRole7A327F48","Arn"]}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_apigateway.CfnAccount","version":"2.186.0"}},"CloudFrontToApiGateway":{"id":"CloudFrontToApiGateway","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/CloudFrontToApiGateway","children":{"SetHttpSecurityHeaders":{"id":"SetHttpSecurityHeaders","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/CloudFrontToApiGateway/SetHttpSecurityHeaders","children":{"Resource":{"id":"Resource","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/CloudFrontToApiGateway/SetHttpSecurityHeaders/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::CloudFront::Function","aws:cdk:cloudformation:props":{"autoPublish":true,"functionCode":"function handler(event) { var response = event.response; var headers = response.headers; headers['strict-transport-security'] = { value: 'max-age=63072000; includeSubdomains; preload'}; headers['content-security-policy'] = { value: \"default-src 'none'; img-src 'self'; script-src 'self'; style-src 'self'; object-src 'none'\"}; headers['x-content-type-options'] = { value: 'nosniff'}; headers['x-frame-options'] = {value: 'DENY'}; headers['x-xss-protection'] = {value: '1; mode=block'}; return response; }","functionConfig":{"comment":"SetHttpSecurityHeadersc86ff048e47765694444f7bb321137eed6f5db5665","runtime":"cloudfront-js-1.0"},"name":"SetHttpSecurityHeadersc86ff048e47765694444f7bb321137eed6f5db5665"}},"constructInfo":{"fqn":"aws-cdk-lib.aws_cloudfront.CfnFunction","version":"2.186.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_cloudfront.Function","version":"2.186.0","metadata":[{"functionName":"*","code":"*"}]}},"CloudfrontLoggingBucketAccessLog":{"id":"CloudfrontLoggingBucketAccessLog","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/CloudFrontToApiGateway/CloudfrontLoggingBucketAccessLog","children":{"Resource":{"id":"Resource","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/CloudFrontToApiGateway/CloudfrontLoggingBucketAccessLog/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::S3::Bucket","aws:cdk:cloudformation:props":{"bucketEncryption":{"serverSideEncryptionConfiguration":[{"serverSideEncryptionByDefault":{"sseAlgorithm":"AES256"}}]},"publicAccessBlockConfiguration":{"blockPublicAcls":true,"blockPublicPolicy":true,"ignorePublicAcls":true,"restrictPublicBuckets":true},"versioningConfiguration":{"status":"Enabled"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_s3.CfnBucket","version":"2.186.0"}},"Policy":{"id":"Policy","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/CloudFrontToApiGateway/CloudfrontLoggingBucketAccessLog/Policy","children":{"Resource":{"id":"Resource","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/CloudFrontToApiGateway/CloudfrontLoggingBucketAccessLog/Policy/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::S3::BucketPolicy","aws:cdk:cloudformation:props":{"bucket":{"Ref":"testcloudfrontapigatewaylambdaCloudFrontToApiGatewayCloudfrontLoggingBucketAccessLog347EED57"},"policyDocument":{"Statement":[{"Action":"s3:*","Condition":{"Bool":{"aws:SecureTransport":"false"}},"Effect":"Deny","Principal":{"AWS":"*"},"Resource":[{"Fn::GetAtt":["testcloudfrontapigatewaylambdaCloudFrontToApiGatewayCloudfrontLoggingBucketAccessLog347EED57","Arn"]},{"Fn::Join":["",[{"Fn::GetAtt":["testcloudfrontapigatewaylambdaCloudFrontToApiGatewayCloudfrontLoggingBucketAccessLog347EED57","Arn"]},"/*"]]}]},{"Action":"s3:PutObject","Condition":{"ArnLike":{"aws:SourceArn":{"Fn::GetAtt":["testcloudfrontapigatewaylambdaCloudFrontToApiGatewayCloudfrontLoggingBucket7F467421","Arn"]}},"StringEquals":{"aws:SourceAccount":{"Ref":"AWS::AccountId"}}},"Effect":"Allow","Principal":{"Service":"logging.s3.amazonaws.com"},"Resource":{"Fn::Join":["",[{"Fn::GetAtt":["testcloudfrontapigatewaylambdaCloudFrontToApiGatewayCloudfrontLoggingBucketAccessLog347EED57","Arn"]},"/*"]]}}],"Version":"2012-10-17"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_s3.CfnBucketPolicy","version":"2.186.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_s3.BucketPolicy","version":"2.186.0","metadata":[{"bucket":"*"}]}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_s3.Bucket","version":"2.186.0","metadata":[{"encryption":"S3_MANAGED","versioned":true,"blockPublicAccess":"*","removalPolicy":"retain","enforceSSL":true}]}},"CloudfrontLoggingBucket":{"id":"CloudfrontLoggingBucket","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/CloudFrontToApiGateway/CloudfrontLoggingBucket","children":{"Resource":{"id":"Resource","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/CloudFrontToApiGateway/CloudfrontLoggingBucket/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::S3::Bucket","aws:cdk:cloudformation:props":{"bucketEncryption":{"serverSideEncryptionConfiguration":[{"serverSideEncryptionByDefault":{"sseAlgorithm":"AES256"}}]},"loggingConfiguration":{"destinationBucketName":{"Ref":"testcloudfrontapigatewaylambdaCloudFrontToApiGatewayCloudfrontLoggingBucketAccessLog347EED57"}},"ownershipControls":{"rules":[{"objectOwnership":"ObjectWriter"}]},"publicAccessBlockConfiguration":{"blockPublicAcls":true,"blockPublicPolicy":true,"ignorePublicAcls":true,"restrictPublicBuckets":true},"tags":[{"key":"aws-cdk:auto-delete-objects","value":"true"}],"versioningConfiguration":{"status":"Enabled"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_s3.CfnBucket","version":"2.186.0"}},"Policy":{"id":"Policy","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/CloudFrontToApiGateway/CloudfrontLoggingBucket/Policy","children":{"Resource":{"id":"Resource","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/CloudFrontToApiGateway/CloudfrontLoggingBucket/Policy/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::S3::BucketPolicy","aws:cdk:cloudformation:props":{"bucket":{"Ref":"testcloudfrontapigatewaylambdaCloudFrontToApiGatewayCloudfrontLoggingBucket7F467421"},"policyDocument":{"Statement":[{"Action":"s3:*","Condition":{"Bool":{"aws:SecureTransport":"false"}},"Effect":"Deny","Principal":{"AWS":"*"},"Resource":[{"Fn::GetAtt":["testcloudfrontapigatewaylambdaCloudFrontToApiGatewayCloudfrontLoggingBucket7F467421","Arn"]},{"Fn::Join":["",[{"Fn::GetAtt":["testcloudfrontapigatewaylambdaCloudFrontToApiGatewayCloudfrontLoggingBucket7F467421","Arn"]},"/*"]]}]},{"Action":["s3:DeleteObject*","s3:GetBucket*","s3:List*","s3:PutBucketPolicy"],"Effect":"Allow","Principal":{"AWS":{"Fn::GetAtt":["CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092","Arn"]}},"Resource":[{"Fn::GetAtt":["testcloudfrontapigatewaylambdaCloudFrontToApiGatewayCloudfrontLoggingBucket7F467421","Arn"]},{"Fn::Join":["",[{"Fn::GetAtt":["testcloudfrontapigatewaylambdaCloudFrontToApiGatewayCloudfrontLoggingBucket7F467421","Arn"]},"/*"]]}]}],"Version":"2012-10-17"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_s3.CfnBucketPolicy","version":"2.186.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_s3.BucketPolicy","version":"2.186.0","metadata":[{"bucket":"*"}]}},"AutoDeleteObjectsCustomResource":{"id":"AutoDeleteObjectsCustomResource","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/CloudFrontToApiGateway/CloudfrontLoggingBucket/AutoDeleteObjectsCustomResource","children":{"Default":{"id":"Default","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/CloudFrontToApiGateway/CloudfrontLoggingBucket/AutoDeleteObjectsCustomResource/Default","constructInfo":{"fqn":"aws-cdk-lib.CfnResource","version":"2.186.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.CustomResource","version":"2.186.0","metadata":["*"]}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_s3.Bucket","version":"2.186.0","metadata":[{"encryption":"S3_MANAGED","versioned":true,"blockPublicAccess":"*","removalPolicy":"destroy","enforceSSL":true,"autoDeleteObjects":true,"objectOwnership":"ObjectWriter","serverAccessLogsBucket":"*"}]}},"CloudFrontDistribution":{"id":"CloudFrontDistribution","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/CloudFrontToApiGateway/CloudFrontDistribution","children":{"Origin1":{"id":"Origin1","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/CloudFrontToApiGateway/CloudFrontDistribution/Origin1","constructInfo":{"fqn":"constructs.Construct","version":"10.4.2"}},"Resource":{"id":"Resource","path":"cftaplam-no-usage-plan/test-cloudfront-apigateway-lambda/CloudFrontToApiGateway/CloudFrontDistribution/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::CloudFront::Distribution","aws:cdk:cloudformation:props":{"distributionConfig":{"enabled":true,"origins":[{"domainName":{"Fn::Select":[0,{"Fn::Split":["/",{"Fn::Select":[1,{"Fn::Split":["://",{"Fn::Join":["",["https://",{"Ref":"testcloudfrontapigatewaylambdaLambdaRestApi6A4CBD44"},".execute-api.",{"Ref":"AWS::Region"},".",{"Ref":"AWS::URLSuffix"},"/",{"Ref":"testcloudfrontapigatewaylambdaLambdaRestApiDeploymentStageprod4617A7B7"},"/"]]}]}]}]}]},"id":"cftaplamnousageplantestcloudfrontapigatewaylambdaCloudFrontToApiGatewayCloudFrontDistributionOrigin1079FB863","originPath":{"Fn::Join":["",["/",{"Ref":"testcloudfrontapigatewaylambdaLambdaRestApiDeploymentStageprod4617A7B7"}]]},"customOriginConfig":{"originSslProtocols":["TLSv1.2"],"originProtocolPolicy":"https-only"}}],"defaultCacheBehavior":{"pathPattern":"*","targetOriginId":"cftaplamnousageplantestcloudfrontapigatewaylambdaCloudFrontToApiGatewayCloudFrontDistributionOrigin1079FB863","cachePolicyId":"658327ea-f89d-4fab-a63d-7e88639e58f6","compress":true,"viewerProtocolPolicy":"redirect-to-https","functionAssociations":[{"functionArn":{"Fn::GetAtt":["testcloudfrontapigatewaylambdaCloudFrontToApiGatewaySetHttpSecurityHeaders6945414A","FunctionARN"]},"eventType":"viewer-response"}]},"httpVersion":"http2","ipv6Enabled":true,"logging":{"bucket":{"Fn::GetAtt":["testcloudfrontapigatewaylambdaCloudFrontToApiGatewayCloudfrontLoggingBucket7F467421","RegionalDomainName"]}}}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_cloudfront.CfnDistribution","version":"2.186.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_cloudfront.Distribution","version":"2.186.0","metadata":[{"defaultBehavior":{"origin":"*","functionAssociations":[{"eventType":"viewer-response","function":"*"}],"viewerProtocolPolicy":"redirect-to-https"},"enableLogging":true,"logBucket":"*"}]}}},"constructInfo":{"fqn":"@aws-solutions-constructs/aws-cloudfront-apigateway.CloudFrontToApiGateway","version":"2.80.0"}}},"constructInfo":{"fqn":"@aws-solutions-constructs/aws-cloudfront-apigateway-lambda.CloudFrontToApiGatewayToLambda","version":"2.80.0"}},"LatestNodeRuntimeMap":{"id":"LatestNodeRuntimeMap","path":"cftaplam-no-usage-plan/LatestNodeRuntimeMap","constructInfo":{"fqn":"aws-cdk-lib.CfnMapping","version":"2.186.0"}},"Custom::S3AutoDeleteObjectsCustomResourceProvider":{"id":"Custom::S3AutoDeleteObjectsCustomResourceProvider","path":"cftaplam-no-usage-plan/Custom::S3AutoDeleteObjectsCustomResourceProvider","children":{"Staging":{"id":"Staging","path":"cftaplam-no-usage-plan/Custom::S3AutoDeleteObjectsCustomResourceProvider/Staging","constructInfo":{"fqn":"aws-cdk-lib.AssetStaging","version":"2.186.0"}},"Role":{"id":"Role","path":"cftaplam-no-usage-plan/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role","constructInfo":{"fqn":"aws-cdk-lib.CfnResource","version":"2.186.0"}},"Handler":{"id":"Handler","path":"cftaplam-no-usage-plan/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler","constructInfo":{"fqn":"aws-cdk-lib.CfnResource","version":"2.186.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.CustomResourceProviderBase","version":"2.186.0"}},"Integ":{"id":"Integ","path":"cftaplam-no-usage-plan/Integ","children":{"DefaultTest":{"id":"DefaultTest","path":"cftaplam-no-usage-plan/Integ/DefaultTest","children":{"Default":{"id":"Default","path":"cftaplam-no-usage-plan/Integ/DefaultTest/Default","constructInfo":{"fqn":"constructs.Construct","version":"10.4.2"}},"DeployAssert":{"id":"DeployAssert","path":"cftaplam-no-usage-plan/Integ/DefaultTest/DeployAssert","children":{"BootstrapVersion":{"id":"BootstrapVersion","path":"cftaplam-no-usage-plan/Integ/DefaultTest/DeployAssert/BootstrapVersion","constructInfo":{"fqn":"aws-cdk-lib.CfnParameter","version":"2.186.0"}},"CheckBootstrapVersion":{"id":"CheckBootstrapVersion","path":"cftaplam-no-usage-plan/Integ/DefaultTest/DeployAssert/CheckBootstrapVersion","constructInfo":{"fqn":"aws-cdk-lib.CfnRule","version":"2.186.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.Stack","version":"2.186.0"}}},"constructInfo":{"fqn":"@aws-cdk/integ-tests-alpha.IntegTestCase","version":"2.186.0-alpha.0"}}},"constructInfo":{"fqn":"@aws-cdk/integ-tests-alpha.IntegTest","version":"2.186.0-alpha.0"}},"BootstrapVersion":{"id":"BootstrapVersion","path":"cftaplam-no-usage-plan/BootstrapVersion","constructInfo":{"fqn":"aws-cdk-lib.CfnParameter","version":"2.186.0"}},"CheckBootstrapVersion":{"id":"CheckBootstrapVersion","path":"cftaplam-no-usage-plan/CheckBootstrapVersion","constructInfo":{"fqn":"aws-cdk-lib.CfnRule","version":"2.186.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.Stack","version":"2.186.0"}},"Tree":{"id":"Tree","path":"Tree","constructInfo":{"fqn":"constructs.Construct","version":"10.4.2"}}},"constructInfo":{"fqn":"aws-cdk-lib.App","version":"2.186.0"}}}