@aws-solutions-constructs/resources 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 (30) hide show
  1. package/.jsii +43 -4
  2. package/lib/template-writer-custom-resource/index.d.ts +1 -0
  3. package/lib/template-writer-custom-resource/index.js +7 -2
  4. package/package.json +6 -6
  5. package/test/integ.key-policy-updater.js.snapshot/cdk.out +1 -1
  6. package/test/integ.key-policy-updater.js.snapshot/integ.json +1 -1
  7. package/test/integ.key-policy-updater.js.snapshot/key-policy-updater.assets.json +3 -3
  8. package/test/integ.key-policy-updater.js.snapshot/key-policy-updater.template.json +50 -45
  9. package/test/integ.key-policy-updater.js.snapshot/keypolicyupdaterIntegDefaultTestDeployAssert2855331B.assets.json +1 -1
  10. package/test/integ.key-policy-updater.js.snapshot/manifest.json +97 -55
  11. package/test/integ.key-policy-updater.js.snapshot/tree.json +1 -1035
  12. package/test/integ.template-writer-from-asset.js.snapshot/{asset.37a6f0964e9c5c4133e01db00bbcaebc6da2a25a21e27aa0f87add1eb65546e7 → asset.b670072ae403f5d0f7c4ac0413a63bb9f093a32fd1620d0908d53ce809c7575d}/index.d.ts +1 -0
  13. package/test/integ.template-writer-from-asset.js.snapshot/{asset.37a6f0964e9c5c4133e01db00bbcaebc6da2a25a21e27aa0f87add1eb65546e7 → asset.b670072ae403f5d0f7c4ac0413a63bb9f093a32fd1620d0908d53ce809c7575d}/index.js +7 -2
  14. package/test/integ.template-writer-from-asset.js.snapshot/cdk.out +1 -1
  15. package/test/integ.template-writer-from-asset.js.snapshot/integ.json +1 -1
  16. package/test/integ.template-writer-from-asset.js.snapshot/manifest.json +96 -54
  17. package/test/integ.template-writer-from-asset.js.snapshot/template-writer-from-asset.assets.json +6 -6
  18. package/test/integ.template-writer-from-asset.js.snapshot/template-writer-from-asset.template.json +51 -46
  19. package/test/integ.template-writer-from-asset.js.snapshot/templatewriterfromassetIntegDefaultTestDeployAssert3AE00E9B.assets.json +1 -1
  20. package/test/integ.template-writer-from-asset.js.snapshot/tree.json +1 -857
  21. package/test/integ.template-writer-from-large-asset.js.snapshot/{asset.37a6f0964e9c5c4133e01db00bbcaebc6da2a25a21e27aa0f87add1eb65546e7 → asset.b670072ae403f5d0f7c4ac0413a63bb9f093a32fd1620d0908d53ce809c7575d}/index.d.ts +1 -0
  22. package/test/integ.template-writer-from-large-asset.js.snapshot/{asset.37a6f0964e9c5c4133e01db00bbcaebc6da2a25a21e27aa0f87add1eb65546e7 → asset.b670072ae403f5d0f7c4ac0413a63bb9f093a32fd1620d0908d53ce809c7575d}/index.js +7 -2
  23. package/test/integ.template-writer-from-large-asset.js.snapshot/cdk.out +1 -1
  24. package/test/integ.template-writer-from-large-asset.js.snapshot/integ.json +1 -1
  25. package/test/integ.template-writer-from-large-asset.js.snapshot/manifest.json +96 -54
  26. package/test/integ.template-writer-from-large-asset.js.snapshot/template-writer-from-large-asset.assets.json +6 -6
  27. package/test/integ.template-writer-from-large-asset.js.snapshot/template-writer-from-large-asset.template.json +51 -46
  28. package/test/integ.template-writer-from-large-asset.js.snapshot/templatewriterfromlargeassetIntegDefaultTestDeployAssertA02D2FEC.assets.json +1 -1
  29. package/test/integ.template-writer-from-large-asset.js.snapshot/tree.json +1 -859
  30. package/test/template-writer.test.js +37 -1
@@ -1,857 +1 @@
1
- {
2
- "version": "tree-0.1",
3
- "tree": {
4
- "id": "App",
5
- "path": "",
6
- "children": {
7
- "template-writer-from-asset": {
8
- "id": "template-writer-from-asset",
9
- "path": "template-writer-from-asset",
10
- "children": {
11
- "TemplateAsset": {
12
- "id": "TemplateAsset",
13
- "path": "template-writer-from-asset/TemplateAsset",
14
- "children": {
15
- "Stage": {
16
- "id": "Stage",
17
- "path": "template-writer-from-asset/TemplateAsset/Stage",
18
- "constructInfo": {
19
- "fqn": "aws-cdk-lib.AssetStaging",
20
- "version": "2.179.0"
21
- }
22
- },
23
- "AssetBucket": {
24
- "id": "AssetBucket",
25
- "path": "template-writer-from-asset/TemplateAsset/AssetBucket",
26
- "constructInfo": {
27
- "fqn": "aws-cdk-lib.aws_s3.BucketBase",
28
- "version": "2.179.0",
29
- "metadata": []
30
- }
31
- }
32
- },
33
- "constructInfo": {
34
- "fqn": "aws-cdk-lib.aws_s3_assets.Asset",
35
- "version": "2.179.0"
36
- }
37
- },
38
- "TestOutputAsset": {
39
- "id": "TestOutputAsset",
40
- "path": "template-writer-from-asset/TestOutputAsset",
41
- "children": {
42
- "Stage": {
43
- "id": "Stage",
44
- "path": "template-writer-from-asset/TestOutputAsset/Stage",
45
- "constructInfo": {
46
- "fqn": "aws-cdk-lib.AssetStaging",
47
- "version": "2.179.0"
48
- }
49
- },
50
- "AssetBucket": {
51
- "id": "AssetBucket",
52
- "path": "template-writer-from-asset/TestOutputAsset/AssetBucket",
53
- "constructInfo": {
54
- "fqn": "aws-cdk-lib.aws_s3.BucketBase",
55
- "version": "2.179.0",
56
- "metadata": []
57
- }
58
- }
59
- },
60
- "constructInfo": {
61
- "fqn": "aws-cdk-lib.aws_s3_assets.Asset",
62
- "version": "2.179.0"
63
- }
64
- },
65
- "LambdaFunctionServiceRole": {
66
- "id": "LambdaFunctionServiceRole",
67
- "path": "template-writer-from-asset/LambdaFunctionServiceRole",
68
- "children": {
69
- "ImportLambdaFunctionServiceRole": {
70
- "id": "ImportLambdaFunctionServiceRole",
71
- "path": "template-writer-from-asset/LambdaFunctionServiceRole/ImportLambdaFunctionServiceRole",
72
- "constructInfo": {
73
- "fqn": "aws-cdk-lib.Resource",
74
- "version": "2.179.0",
75
- "metadata": [
76
- "*"
77
- ]
78
- }
79
- },
80
- "Resource": {
81
- "id": "Resource",
82
- "path": "template-writer-from-asset/LambdaFunctionServiceRole/Resource",
83
- "attributes": {
84
- "aws:cdk:cloudformation:type": "AWS::IAM::Role",
85
- "aws:cdk:cloudformation:props": {
86
- "assumeRolePolicyDocument": {
87
- "Statement": [
88
- {
89
- "Action": "sts:AssumeRole",
90
- "Effect": "Allow",
91
- "Principal": {
92
- "Service": "lambda.amazonaws.com"
93
- }
94
- }
95
- ],
96
- "Version": "2012-10-17"
97
- },
98
- "policies": [
99
- {
100
- "policyName": "LambdaFunctionServiceRolePolicy",
101
- "policyDocument": {
102
- "Statement": [
103
- {
104
- "Action": [
105
- "logs:CreateLogGroup",
106
- "logs:CreateLogStream",
107
- "logs:PutLogEvents"
108
- ],
109
- "Effect": "Allow",
110
- "Resource": {
111
- "Fn::Join": [
112
- "",
113
- [
114
- "arn:",
115
- {
116
- "Ref": "AWS::Partition"
117
- },
118
- ":logs:",
119
- {
120
- "Ref": "AWS::Region"
121
- },
122
- ":",
123
- {
124
- "Ref": "AWS::AccountId"
125
- },
126
- ":log-group:/aws/lambda/*"
127
- ]
128
- ]
129
- }
130
- }
131
- ],
132
- "Version": "2012-10-17"
133
- }
134
- }
135
- ]
136
- }
137
- },
138
- "constructInfo": {
139
- "fqn": "aws-cdk-lib.aws_iam.CfnRole",
140
- "version": "2.179.0"
141
- }
142
- },
143
- "DefaultPolicy": {
144
- "id": "DefaultPolicy",
145
- "path": "template-writer-from-asset/LambdaFunctionServiceRole/DefaultPolicy",
146
- "children": {
147
- "Resource": {
148
- "id": "Resource",
149
- "path": "template-writer-from-asset/LambdaFunctionServiceRole/DefaultPolicy/Resource",
150
- "attributes": {
151
- "aws:cdk:cloudformation:type": "AWS::IAM::Policy",
152
- "aws:cdk:cloudformation:props": {
153
- "policyDocument": {
154
- "Statement": [
155
- {
156
- "Action": [
157
- "xray:PutTelemetryRecords",
158
- "xray:PutTraceSegments"
159
- ],
160
- "Effect": "Allow",
161
- "Resource": "*"
162
- }
163
- ],
164
- "Version": "2012-10-17"
165
- },
166
- "policyName": "LambdaFunctionServiceRoleDefaultPolicy126C8897",
167
- "roles": [
168
- {
169
- "Ref": "LambdaFunctionServiceRole0C4CDE0B"
170
- }
171
- ]
172
- }
173
- },
174
- "constructInfo": {
175
- "fqn": "aws-cdk-lib.aws_iam.CfnPolicy",
176
- "version": "2.179.0"
177
- }
178
- }
179
- },
180
- "constructInfo": {
181
- "fqn": "aws-cdk-lib.aws_iam.Policy",
182
- "version": "2.179.0",
183
- "metadata": [
184
- "*",
185
- {
186
- "attachToRole": [
187
- "*"
188
- ]
189
- },
190
- {
191
- "attachToRole": [
192
- "*"
193
- ]
194
- },
195
- {
196
- "addStatements": [
197
- {}
198
- ]
199
- }
200
- ]
201
- }
202
- }
203
- },
204
- "constructInfo": {
205
- "fqn": "aws-cdk-lib.aws_iam.Role",
206
- "version": "2.179.0",
207
- "metadata": [
208
- {
209
- "assumedBy": {
210
- "principalAccount": "*",
211
- "assumeRoleAction": "*"
212
- },
213
- "inlinePolicies": "*"
214
- },
215
- {
216
- "addToPrincipalPolicy": [
217
- {}
218
- ]
219
- },
220
- {
221
- "attachInlinePolicy": [
222
- "*"
223
- ]
224
- },
225
- {
226
- "attachInlinePolicy": [
227
- "*"
228
- ]
229
- },
230
- {
231
- "attachInlinePolicy": [
232
- "*"
233
- ]
234
- },
235
- {
236
- "attachInlinePolicy": [
237
- "*"
238
- ]
239
- }
240
- ]
241
- }
242
- },
243
- "LambdaFunction": {
244
- "id": "LambdaFunction",
245
- "path": "template-writer-from-asset/LambdaFunction",
246
- "children": {
247
- "Code": {
248
- "id": "Code",
249
- "path": "template-writer-from-asset/LambdaFunction/Code",
250
- "children": {
251
- "Stage": {
252
- "id": "Stage",
253
- "path": "template-writer-from-asset/LambdaFunction/Code/Stage",
254
- "constructInfo": {
255
- "fqn": "aws-cdk-lib.AssetStaging",
256
- "version": "2.179.0"
257
- }
258
- },
259
- "AssetBucket": {
260
- "id": "AssetBucket",
261
- "path": "template-writer-from-asset/LambdaFunction/Code/AssetBucket",
262
- "constructInfo": {
263
- "fqn": "aws-cdk-lib.aws_s3.BucketBase",
264
- "version": "2.179.0",
265
- "metadata": []
266
- }
267
- }
268
- },
269
- "constructInfo": {
270
- "fqn": "aws-cdk-lib.aws_s3_assets.Asset",
271
- "version": "2.179.0"
272
- }
273
- },
274
- "Resource": {
275
- "id": "Resource",
276
- "path": "template-writer-from-asset/LambdaFunction/Resource",
277
- "attributes": {
278
- "aws:cdk:cloudformation:type": "AWS::Lambda::Function",
279
- "aws:cdk:cloudformation:props": {
280
- "code": {
281
- "s3Bucket": {
282
- "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
283
- },
284
- "s3Key": "37a6f0964e9c5c4133e01db00bbcaebc6da2a25a21e27aa0f87add1eb65546e7.zip"
285
- },
286
- "environment": {
287
- "variables": {
288
- "AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1"
289
- }
290
- },
291
- "handler": "index.handler",
292
- "role": {
293
- "Fn::GetAtt": [
294
- "LambdaFunctionServiceRole0C4CDE0B",
295
- "Arn"
296
- ]
297
- },
298
- "runtime": "nodejs20.x",
299
- "tracingConfig": {
300
- "mode": "Active"
301
- }
302
- }
303
- },
304
- "constructInfo": {
305
- "fqn": "aws-cdk-lib.aws_lambda.CfnFunction",
306
- "version": "2.179.0"
307
- }
308
- }
309
- },
310
- "constructInfo": {
311
- "fqn": "aws-cdk-lib.aws_lambda.Function",
312
- "version": "2.179.0",
313
- "metadata": [
314
- {
315
- "role": "*",
316
- "tracing": "Active",
317
- "runtime": "*",
318
- "handler": "*",
319
- "code": "*",
320
- "timeout": "*",
321
- "memorySize": "*"
322
- },
323
- {
324
- "addEnvironment": [
325
- "*",
326
- "*",
327
- {
328
- "removeInEdge": true
329
- }
330
- ]
331
- }
332
- ]
333
- }
334
- },
335
- "TestTemplateWriterPolicy": {
336
- "id": "TestTemplateWriterPolicy",
337
- "path": "template-writer-from-asset/TestTemplateWriterPolicy",
338
- "children": {
339
- "Resource": {
340
- "id": "Resource",
341
- "path": "template-writer-from-asset/TestTemplateWriterPolicy/Resource",
342
- "attributes": {
343
- "aws:cdk:cloudformation:type": "AWS::IAM::Policy",
344
- "aws:cdk:cloudformation:props": {
345
- "policyDocument": {
346
- "Statement": [
347
- {
348
- "Action": "s3:GetObject",
349
- "Effect": "Allow",
350
- "Resource": {
351
- "Fn::Join": [
352
- "",
353
- [
354
- "arn:",
355
- {
356
- "Ref": "AWS::Partition"
357
- },
358
- ":s3:::",
359
- {
360
- "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
361
- },
362
- "/97cd237b0ae069fe0711bcc6a711e213fdaf0956421de5b964de9ccd0d2b23a1.97cd237b0ae069fe0711bcc6a711e213fdaf0956421de5b964de9ccd0d2b23a1"
363
- ]
364
- ]
365
- }
366
- },
367
- {
368
- "Action": "s3:PutObject",
369
- "Effect": "Allow",
370
- "Resource": {
371
- "Fn::Join": [
372
- "",
373
- [
374
- "arn:",
375
- {
376
- "Ref": "AWS::Partition"
377
- },
378
- ":s3:::",
379
- {
380
- "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
381
- },
382
- "/*"
383
- ]
384
- ]
385
- }
386
- }
387
- ],
388
- "Version": "2012-10-17"
389
- },
390
- "policyName": "TestTemplateWriterPolicy8177DE02",
391
- "roles": [
392
- {
393
- "Ref": "LambdaFunctionServiceRole0C4CDE0B"
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
- "statements": "*"
410
- },
411
- {
412
- "addStatements": [
413
- {}
414
- ]
415
- },
416
- {
417
- "addStatements": [
418
- {}
419
- ]
420
- },
421
- {
422
- "attachToRole": [
423
- "*"
424
- ]
425
- },
426
- {
427
- "attachToRole": [
428
- "*"
429
- ]
430
- }
431
- ]
432
- }
433
- },
434
- "TestTemplateWriterProvider": {
435
- "id": "TestTemplateWriterProvider",
436
- "path": "template-writer-from-asset/TestTemplateWriterProvider",
437
- "children": {
438
- "framework-onEvent": {
439
- "id": "framework-onEvent",
440
- "path": "template-writer-from-asset/TestTemplateWriterProvider/framework-onEvent",
441
- "children": {
442
- "ServiceRole": {
443
- "id": "ServiceRole",
444
- "path": "template-writer-from-asset/TestTemplateWriterProvider/framework-onEvent/ServiceRole",
445
- "children": {
446
- "ImportServiceRole": {
447
- "id": "ImportServiceRole",
448
- "path": "template-writer-from-asset/TestTemplateWriterProvider/framework-onEvent/ServiceRole/ImportServiceRole",
449
- "constructInfo": {
450
- "fqn": "aws-cdk-lib.Resource",
451
- "version": "2.179.0",
452
- "metadata": [
453
- "*"
454
- ]
455
- }
456
- },
457
- "Resource": {
458
- "id": "Resource",
459
- "path": "template-writer-from-asset/TestTemplateWriterProvider/framework-onEvent/ServiceRole/Resource",
460
- "attributes": {
461
- "aws:cdk:cloudformation:type": "AWS::IAM::Role",
462
- "aws:cdk:cloudformation:props": {
463
- "assumeRolePolicyDocument": {
464
- "Statement": [
465
- {
466
- "Action": "sts:AssumeRole",
467
- "Effect": "Allow",
468
- "Principal": {
469
- "Service": "lambda.amazonaws.com"
470
- }
471
- }
472
- ],
473
- "Version": "2012-10-17"
474
- },
475
- "managedPolicyArns": [
476
- {
477
- "Fn::Join": [
478
- "",
479
- [
480
- "arn:",
481
- {
482
- "Ref": "AWS::Partition"
483
- },
484
- ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
485
- ]
486
- ]
487
- }
488
- ]
489
- }
490
- },
491
- "constructInfo": {
492
- "fqn": "aws-cdk-lib.aws_iam.CfnRole",
493
- "version": "2.179.0"
494
- }
495
- },
496
- "DefaultPolicy": {
497
- "id": "DefaultPolicy",
498
- "path": "template-writer-from-asset/TestTemplateWriterProvider/framework-onEvent/ServiceRole/DefaultPolicy",
499
- "children": {
500
- "Resource": {
501
- "id": "Resource",
502
- "path": "template-writer-from-asset/TestTemplateWriterProvider/framework-onEvent/ServiceRole/DefaultPolicy/Resource",
503
- "attributes": {
504
- "aws:cdk:cloudformation:type": "AWS::IAM::Policy",
505
- "aws:cdk:cloudformation:props": {
506
- "policyDocument": {
507
- "Statement": [
508
- {
509
- "Action": "lambda:InvokeFunction",
510
- "Effect": "Allow",
511
- "Resource": [
512
- {
513
- "Fn::GetAtt": [
514
- "LambdaFunctionBF21E41F",
515
- "Arn"
516
- ]
517
- },
518
- {
519
- "Fn::Join": [
520
- "",
521
- [
522
- {
523
- "Fn::GetAtt": [
524
- "LambdaFunctionBF21E41F",
525
- "Arn"
526
- ]
527
- },
528
- ":*"
529
- ]
530
- ]
531
- }
532
- ]
533
- },
534
- {
535
- "Action": "lambda:GetFunction",
536
- "Effect": "Allow",
537
- "Resource": {
538
- "Fn::GetAtt": [
539
- "LambdaFunctionBF21E41F",
540
- "Arn"
541
- ]
542
- }
543
- }
544
- ],
545
- "Version": "2012-10-17"
546
- },
547
- "policyName": "TestTemplateWriterProviderframeworkonEventServiceRoleDefaultPolicy08B90D53",
548
- "roles": [
549
- {
550
- "Ref": "TestTemplateWriterProviderframeworkonEventServiceRoleED11CF9A"
551
- }
552
- ]
553
- }
554
- },
555
- "constructInfo": {
556
- "fqn": "aws-cdk-lib.aws_iam.CfnPolicy",
557
- "version": "2.179.0"
558
- }
559
- }
560
- },
561
- "constructInfo": {
562
- "fqn": "aws-cdk-lib.aws_iam.Policy",
563
- "version": "2.179.0",
564
- "metadata": [
565
- "*",
566
- {
567
- "attachToRole": [
568
- "*"
569
- ]
570
- },
571
- {
572
- "attachToRole": [
573
- "*"
574
- ]
575
- },
576
- {
577
- "addStatements": [
578
- {}
579
- ]
580
- },
581
- {
582
- "addStatements": [
583
- {}
584
- ]
585
- }
586
- ]
587
- }
588
- }
589
- },
590
- "constructInfo": {
591
- "fqn": "aws-cdk-lib.aws_iam.Role",
592
- "version": "2.179.0",
593
- "metadata": [
594
- {
595
- "assumedBy": {
596
- "principalAccount": "*",
597
- "assumeRoleAction": "*"
598
- },
599
- "managedPolicies": [
600
- {
601
- "managedPolicyArn": "*"
602
- }
603
- ]
604
- },
605
- {
606
- "addToPrincipalPolicy": [
607
- {}
608
- ]
609
- },
610
- {
611
- "attachInlinePolicy": [
612
- "*"
613
- ]
614
- },
615
- {
616
- "attachInlinePolicy": [
617
- "*"
618
- ]
619
- },
620
- {
621
- "addToPrincipalPolicy": [
622
- {}
623
- ]
624
- }
625
- ]
626
- }
627
- },
628
- "Code": {
629
- "id": "Code",
630
- "path": "template-writer-from-asset/TestTemplateWriterProvider/framework-onEvent/Code",
631
- "children": {
632
- "Stage": {
633
- "id": "Stage",
634
- "path": "template-writer-from-asset/TestTemplateWriterProvider/framework-onEvent/Code/Stage",
635
- "constructInfo": {
636
- "fqn": "aws-cdk-lib.AssetStaging",
637
- "version": "2.179.0"
638
- }
639
- },
640
- "AssetBucket": {
641
- "id": "AssetBucket",
642
- "path": "template-writer-from-asset/TestTemplateWriterProvider/framework-onEvent/Code/AssetBucket",
643
- "constructInfo": {
644
- "fqn": "aws-cdk-lib.aws_s3.BucketBase",
645
- "version": "2.179.0",
646
- "metadata": []
647
- }
648
- }
649
- },
650
- "constructInfo": {
651
- "fqn": "aws-cdk-lib.aws_s3_assets.Asset",
652
- "version": "2.179.0"
653
- }
654
- },
655
- "Resource": {
656
- "id": "Resource",
657
- "path": "template-writer-from-asset/TestTemplateWriterProvider/framework-onEvent/Resource",
658
- "attributes": {
659
- "aws:cdk:cloudformation:type": "AWS::Lambda::Function",
660
- "aws:cdk:cloudformation:props": {
661
- "code": {
662
- "s3Bucket": {
663
- "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
664
- },
665
- "s3Key": "bdc104ed9cab1b5b6421713c8155f0b753380595356f710400609664d3635eca.zip"
666
- },
667
- "description": "AWS CDK resource provider framework - onEvent (template-writer-from-asset/TestTemplateWriterProvider)",
668
- "environment": {
669
- "variables": {
670
- "USER_ON_EVENT_FUNCTION_ARN": {
671
- "Fn::GetAtt": [
672
- "LambdaFunctionBF21E41F",
673
- "Arn"
674
- ]
675
- }
676
- }
677
- },
678
- "handler": "framework.onEvent",
679
- "role": {
680
- "Fn::GetAtt": [
681
- "TestTemplateWriterProviderframeworkonEventServiceRoleED11CF9A",
682
- "Arn"
683
- ]
684
- },
685
- "runtime": {
686
- "Fn::FindInMap": [
687
- "LatestNodeRuntimeMap",
688
- {
689
- "Ref": "AWS::Region"
690
- },
691
- "value"
692
- ]
693
- },
694
- "timeout": 900
695
- }
696
- },
697
- "constructInfo": {
698
- "fqn": "aws-cdk-lib.aws_lambda.CfnFunction",
699
- "version": "2.179.0"
700
- }
701
- }
702
- },
703
- "constructInfo": {
704
- "fqn": "aws-cdk-lib.aws_lambda.Function",
705
- "version": "2.179.0",
706
- "metadata": [
707
- {
708
- "code": "*",
709
- "description": "*",
710
- "runtime": "*",
711
- "handler": "*",
712
- "timeout": "*",
713
- "logGroup": "*",
714
- "vpc": "*",
715
- "vpcSubnets": "*",
716
- "securityGroups": "*",
717
- "role": "*",
718
- "functionName": "*",
719
- "environmentEncryption": "*"
720
- },
721
- {
722
- "addEnvironment": [
723
- "*",
724
- "*"
725
- ]
726
- }
727
- ]
728
- }
729
- }
730
- },
731
- "constructInfo": {
732
- "fqn": "aws-cdk-lib.custom_resources.Provider",
733
- "version": "2.179.0"
734
- }
735
- },
736
- "LatestNodeRuntimeMap": {
737
- "id": "LatestNodeRuntimeMap",
738
- "path": "template-writer-from-asset/LatestNodeRuntimeMap",
739
- "constructInfo": {
740
- "fqn": "aws-cdk-lib.CfnMapping",
741
- "version": "2.179.0"
742
- }
743
- },
744
- "TestTemplateWriterCustomResource": {
745
- "id": "TestTemplateWriterCustomResource",
746
- "path": "template-writer-from-asset/TestTemplateWriterCustomResource",
747
- "children": {
748
- "Default": {
749
- "id": "Default",
750
- "path": "template-writer-from-asset/TestTemplateWriterCustomResource/Default",
751
- "constructInfo": {
752
- "fqn": "aws-cdk-lib.CfnResource",
753
- "version": "2.179.0"
754
- }
755
- }
756
- },
757
- "constructInfo": {
758
- "fqn": "aws-cdk-lib.CustomResource",
759
- "version": "2.179.0",
760
- "metadata": [
761
- "*",
762
- "*",
763
- "*"
764
- ]
765
- }
766
- },
767
- "Integ": {
768
- "id": "Integ",
769
- "path": "template-writer-from-asset/Integ",
770
- "children": {
771
- "DefaultTest": {
772
- "id": "DefaultTest",
773
- "path": "template-writer-from-asset/Integ/DefaultTest",
774
- "children": {
775
- "Default": {
776
- "id": "Default",
777
- "path": "template-writer-from-asset/Integ/DefaultTest/Default",
778
- "constructInfo": {
779
- "fqn": "constructs.Construct",
780
- "version": "10.4.2"
781
- }
782
- },
783
- "DeployAssert": {
784
- "id": "DeployAssert",
785
- "path": "template-writer-from-asset/Integ/DefaultTest/DeployAssert",
786
- "children": {
787
- "BootstrapVersion": {
788
- "id": "BootstrapVersion",
789
- "path": "template-writer-from-asset/Integ/DefaultTest/DeployAssert/BootstrapVersion",
790
- "constructInfo": {
791
- "fqn": "aws-cdk-lib.CfnParameter",
792
- "version": "2.179.0"
793
- }
794
- },
795
- "CheckBootstrapVersion": {
796
- "id": "CheckBootstrapVersion",
797
- "path": "template-writer-from-asset/Integ/DefaultTest/DeployAssert/CheckBootstrapVersion",
798
- "constructInfo": {
799
- "fqn": "aws-cdk-lib.CfnRule",
800
- "version": "2.179.0"
801
- }
802
- }
803
- },
804
- "constructInfo": {
805
- "fqn": "aws-cdk-lib.Stack",
806
- "version": "2.179.0"
807
- }
808
- }
809
- },
810
- "constructInfo": {
811
- "fqn": "@aws-cdk/integ-tests-alpha.IntegTestCase",
812
- "version": "2.179.0-alpha.0"
813
- }
814
- }
815
- },
816
- "constructInfo": {
817
- "fqn": "@aws-cdk/integ-tests-alpha.IntegTest",
818
- "version": "2.179.0-alpha.0"
819
- }
820
- },
821
- "BootstrapVersion": {
822
- "id": "BootstrapVersion",
823
- "path": "template-writer-from-asset/BootstrapVersion",
824
- "constructInfo": {
825
- "fqn": "aws-cdk-lib.CfnParameter",
826
- "version": "2.179.0"
827
- }
828
- },
829
- "CheckBootstrapVersion": {
830
- "id": "CheckBootstrapVersion",
831
- "path": "template-writer-from-asset/CheckBootstrapVersion",
832
- "constructInfo": {
833
- "fqn": "aws-cdk-lib.CfnRule",
834
- "version": "2.179.0"
835
- }
836
- }
837
- },
838
- "constructInfo": {
839
- "fqn": "aws-cdk-lib.Stack",
840
- "version": "2.179.0"
841
- }
842
- },
843
- "Tree": {
844
- "id": "Tree",
845
- "path": "Tree",
846
- "constructInfo": {
847
- "fqn": "constructs.Construct",
848
- "version": "10.4.2"
849
- }
850
- }
851
- },
852
- "constructInfo": {
853
- "fqn": "aws-cdk-lib.App",
854
- "version": "2.179.0"
855
- }
856
- }
857
- }
1
+ {"version":"tree-0.1","tree":{"id":"App","path":"","children":{"template-writer-from-asset":{"id":"template-writer-from-asset","path":"template-writer-from-asset","children":{"TemplateAsset":{"id":"TemplateAsset","path":"template-writer-from-asset/TemplateAsset","children":{"Stage":{"id":"Stage","path":"template-writer-from-asset/TemplateAsset/Stage","constructInfo":{"fqn":"aws-cdk-lib.AssetStaging","version":"2.186.0"}},"AssetBucket":{"id":"AssetBucket","path":"template-writer-from-asset/TemplateAsset/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"}},"TestOutputAsset":{"id":"TestOutputAsset","path":"template-writer-from-asset/TestOutputAsset","children":{"Stage":{"id":"Stage","path":"template-writer-from-asset/TestOutputAsset/Stage","constructInfo":{"fqn":"aws-cdk-lib.AssetStaging","version":"2.186.0"}},"AssetBucket":{"id":"AssetBucket","path":"template-writer-from-asset/TestOutputAsset/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"}},"LambdaFunctionServiceRole":{"id":"LambdaFunctionServiceRole","path":"template-writer-from-asset/LambdaFunctionServiceRole","children":{"ImportLambdaFunctionServiceRole":{"id":"ImportLambdaFunctionServiceRole","path":"template-writer-from-asset/LambdaFunctionServiceRole/ImportLambdaFunctionServiceRole","constructInfo":{"fqn":"aws-cdk-lib.Resource","version":"2.186.0","metadata":["*"]}},"Resource":{"id":"Resource","path":"template-writer-from-asset/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":["*"]},{"attachInlinePolicy":["*"]},{"attachInlinePolicy":["*"]}]}},"LambdaFunction":{"id":"LambdaFunction","path":"template-writer-from-asset/LambdaFunction","children":{"Code":{"id":"Code","path":"template-writer-from-asset/LambdaFunction/Code","children":{"Stage":{"id":"Stage","path":"template-writer-from-asset/LambdaFunction/Code/Stage","constructInfo":{"fqn":"aws-cdk-lib.AssetStaging","version":"2.186.0"}},"AssetBucket":{"id":"AssetBucket","path":"template-writer-from-asset/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":"template-writer-from-asset/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":"b670072ae403f5d0f7c4ac0413a63bb9f093a32fd1620d0908d53ce809c7575d.zip"},"environment":{"variables":{"AWS_NODEJS_CONNECTION_REUSE_ENABLED":"1"}},"handler":"index.handler","role":{"Fn::GetAtt":["LambdaFunctionServiceRole0C4CDE0B","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":"template-writer-from-asset/LambdaFunction/inlinePolicyAddedToExecutionRole-0","children":{"Resource":{"id":"Resource","path":"template-writer-from-asset/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":"LambdaFunctioninlinePolicyAddedToExecutionRole007875684","roles":[{"Ref":"LambdaFunctionServiceRole0C4CDE0B"}]}},"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","runtime":"*","handler":"*","code":"*","timeout":"*","memorySize":"*"},{"addEnvironment":["*","*",{"removeInEdge":true}]}]}},"TestTemplateWriterPolicy":{"id":"TestTemplateWriterPolicy","path":"template-writer-from-asset/TestTemplateWriterPolicy","children":{"Resource":{"id":"Resource","path":"template-writer-from-asset/TestTemplateWriterPolicy/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::IAM::Policy","aws:cdk:cloudformation:props":{"policyDocument":{"Statement":[{"Action":"s3:GetObject","Effect":"Allow","Resource":{"Fn::Join":["",["arn:",{"Ref":"AWS::Partition"},":s3:::",{"Fn::Sub":"cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"},"/97cd237b0ae069fe0711bcc6a711e213fdaf0956421de5b964de9ccd0d2b23a1.97cd237b0ae069fe0711bcc6a711e213fdaf0956421de5b964de9ccd0d2b23a1"]]}},{"Action":"s3:PutObject","Effect":"Allow","Resource":{"Fn::Join":["",["arn:",{"Ref":"AWS::Partition"},":s3:::",{"Fn::Sub":"cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"},"/*"]]}}],"Version":"2012-10-17"},"policyName":"TestTemplateWriterPolicy8177DE02","roles":[{"Ref":"LambdaFunctionServiceRole0C4CDE0B"}]}},"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":[{}]},{"addStatements":[{}]},{"attachToRole":["*"]},{"attachToRole":["*"]}]}},"TestTemplateWriterProvider":{"id":"TestTemplateWriterProvider","path":"template-writer-from-asset/TestTemplateWriterProvider","children":{"framework-onEvent":{"id":"framework-onEvent","path":"template-writer-from-asset/TestTemplateWriterProvider/framework-onEvent","children":{"ServiceRole":{"id":"ServiceRole","path":"template-writer-from-asset/TestTemplateWriterProvider/framework-onEvent/ServiceRole","children":{"ImportServiceRole":{"id":"ImportServiceRole","path":"template-writer-from-asset/TestTemplateWriterProvider/framework-onEvent/ServiceRole/ImportServiceRole","constructInfo":{"fqn":"aws-cdk-lib.Resource","version":"2.186.0","metadata":["*"]}},"Resource":{"id":"Resource","path":"template-writer-from-asset/TestTemplateWriterProvider/framework-onEvent/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"}},"DefaultPolicy":{"id":"DefaultPolicy","path":"template-writer-from-asset/TestTemplateWriterProvider/framework-onEvent/ServiceRole/DefaultPolicy","children":{"Resource":{"id":"Resource","path":"template-writer-from-asset/TestTemplateWriterProvider/framework-onEvent/ServiceRole/DefaultPolicy/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::IAM::Policy","aws:cdk:cloudformation:props":{"policyDocument":{"Statement":[{"Action":"lambda:InvokeFunction","Effect":"Allow","Resource":[{"Fn::GetAtt":["LambdaFunctionBF21E41F","Arn"]},{"Fn::Join":["",[{"Fn::GetAtt":["LambdaFunctionBF21E41F","Arn"]},":*"]]}]}],"Version":"2012-10-17"},"policyName":"TestTemplateWriterProviderframeworkonEventServiceRoleDefaultPolicy08B90D53","roles":[{"Ref":"TestTemplateWriterProviderframeworkonEventServiceRoleED11CF9A"}]}},"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":["*",{"attachToRole":["*"]},{"attachToRole":["*"]},{"addStatements":[{}]}]}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_iam.Role","version":"2.186.0","metadata":[{"assumedBy":{"principalAccount":"*","assumeRoleAction":"*"},"managedPolicies":[{"managedPolicyArn":"*"}]},{"addToPrincipalPolicy":[{}]},{"attachInlinePolicy":["*"]},{"attachInlinePolicy":["*"]},{"attachInlinePolicy":["*"]},{"attachInlinePolicy":["*"]}]}},"Code":{"id":"Code","path":"template-writer-from-asset/TestTemplateWriterProvider/framework-onEvent/Code","children":{"Stage":{"id":"Stage","path":"template-writer-from-asset/TestTemplateWriterProvider/framework-onEvent/Code/Stage","constructInfo":{"fqn":"aws-cdk-lib.AssetStaging","version":"2.186.0"}},"AssetBucket":{"id":"AssetBucket","path":"template-writer-from-asset/TestTemplateWriterProvider/framework-onEvent/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":"template-writer-from-asset/TestTemplateWriterProvider/framework-onEvent/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":"bdc104ed9cab1b5b6421713c8155f0b753380595356f710400609664d3635eca.zip"},"description":"AWS CDK resource provider framework - onEvent (template-writer-from-asset/TestTemplateWriterProvider)","environment":{"variables":{"USER_ON_EVENT_FUNCTION_ARN":{"Fn::GetAtt":["LambdaFunctionBF21E41F","Arn"]}}},"handler":"framework.onEvent","role":{"Fn::GetAtt":["TestTemplateWriterProviderframeworkonEventServiceRoleED11CF9A","Arn"]},"runtime":{"Fn::FindInMap":["LatestNodeRuntimeMap",{"Ref":"AWS::Region"},"value"]},"timeout":900}},"constructInfo":{"fqn":"aws-cdk-lib.aws_lambda.CfnFunction","version":"2.186.0"}},"inlinePolicyAddedToExecutionRole-0":{"id":"inlinePolicyAddedToExecutionRole-0","path":"template-writer-from-asset/TestTemplateWriterProvider/framework-onEvent/inlinePolicyAddedToExecutionRole-0","children":{"Resource":{"id":"Resource","path":"template-writer-from-asset/TestTemplateWriterProvider/framework-onEvent/inlinePolicyAddedToExecutionRole-0/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::IAM::Policy","aws:cdk:cloudformation:props":{"policyDocument":{"Statement":[{"Action":"lambda:GetFunction","Effect":"Allow","Resource":{"Fn::GetAtt":["LambdaFunctionBF21E41F","Arn"]}}],"Version":"2012-10-17"},"policyName":"TestTemplateWriterProviderframeworkonEventinlinePolicyAddedToExecutionRole08CC44E87","roles":[{"Ref":"TestTemplateWriterProviderframeworkonEventServiceRoleED11CF9A"}]}},"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":[{"code":"*","description":"*","runtime":"*","handler":"*","timeout":"*","logGroup":"*","vpc":"*","vpcSubnets":"*","securityGroups":"*","role":"*","functionName":"*","environmentEncryption":"*"},{"addEnvironment":["*","*"]}]}}},"constructInfo":{"fqn":"aws-cdk-lib.custom_resources.Provider","version":"2.186.0"}},"LatestNodeRuntimeMap":{"id":"LatestNodeRuntimeMap","path":"template-writer-from-asset/LatestNodeRuntimeMap","constructInfo":{"fqn":"aws-cdk-lib.CfnMapping","version":"2.186.0"}},"TestTemplateWriterCustomResource":{"id":"TestTemplateWriterCustomResource","path":"template-writer-from-asset/TestTemplateWriterCustomResource","children":{"Default":{"id":"Default","path":"template-writer-from-asset/TestTemplateWriterCustomResource/Default","constructInfo":{"fqn":"aws-cdk-lib.CfnResource","version":"2.186.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.CustomResource","version":"2.186.0","metadata":["*","*","*"]}},"Integ":{"id":"Integ","path":"template-writer-from-asset/Integ","children":{"DefaultTest":{"id":"DefaultTest","path":"template-writer-from-asset/Integ/DefaultTest","children":{"Default":{"id":"Default","path":"template-writer-from-asset/Integ/DefaultTest/Default","constructInfo":{"fqn":"constructs.Construct","version":"10.4.2"}},"DeployAssert":{"id":"DeployAssert","path":"template-writer-from-asset/Integ/DefaultTest/DeployAssert","children":{"BootstrapVersion":{"id":"BootstrapVersion","path":"template-writer-from-asset/Integ/DefaultTest/DeployAssert/BootstrapVersion","constructInfo":{"fqn":"aws-cdk-lib.CfnParameter","version":"2.186.0"}},"CheckBootstrapVersion":{"id":"CheckBootstrapVersion","path":"template-writer-from-asset/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":"template-writer-from-asset/BootstrapVersion","constructInfo":{"fqn":"aws-cdk-lib.CfnParameter","version":"2.186.0"}},"CheckBootstrapVersion":{"id":"CheckBootstrapVersion","path":"template-writer-from-asset/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"}}}