@aws-solutions-constructs/resources 2.79.1 → 2.81.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 -43
  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 +6 -6
  8. package/test/integ.key-policy-updater.js.snapshot/key-policy-updater.template.json +55 -40
  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 +363 -6
  11. package/test/integ.key-policy-updater.js.snapshot/tree.json +1 -816
  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 +336 -6
  17. package/test/integ.template-writer-from-asset.js.snapshot/template-writer-from-asset.assets.json +9 -9
  18. package/test/integ.template-writer-from-asset.js.snapshot/template-writer-from-asset.template.json +56 -41
  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 -657
  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 +336 -6
  26. package/test/integ.template-writer-from-large-asset.js.snapshot/template-writer-from-large-asset.assets.json +9 -9
  27. package/test/integ.template-writer-from-large-asset.js.snapshot/template-writer-from-large-asset.template.json +56 -41
  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 -659
  30. package/test/template-writer.test.js +37 -1
@@ -1,657 +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.150.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.150.0"
29
- }
30
- }
31
- },
32
- "constructInfo": {
33
- "fqn": "aws-cdk-lib.aws_s3_assets.Asset",
34
- "version": "2.150.0"
35
- }
36
- },
37
- "TestOutputAsset": {
38
- "id": "TestOutputAsset",
39
- "path": "template-writer-from-asset/TestOutputAsset",
40
- "children": {
41
- "Stage": {
42
- "id": "Stage",
43
- "path": "template-writer-from-asset/TestOutputAsset/Stage",
44
- "constructInfo": {
45
- "fqn": "aws-cdk-lib.AssetStaging",
46
- "version": "2.150.0"
47
- }
48
- },
49
- "AssetBucket": {
50
- "id": "AssetBucket",
51
- "path": "template-writer-from-asset/TestOutputAsset/AssetBucket",
52
- "constructInfo": {
53
- "fqn": "aws-cdk-lib.aws_s3.BucketBase",
54
- "version": "2.150.0"
55
- }
56
- }
57
- },
58
- "constructInfo": {
59
- "fqn": "aws-cdk-lib.aws_s3_assets.Asset",
60
- "version": "2.150.0"
61
- }
62
- },
63
- "LambdaFunctionServiceRole": {
64
- "id": "LambdaFunctionServiceRole",
65
- "path": "template-writer-from-asset/LambdaFunctionServiceRole",
66
- "children": {
67
- "ImportLambdaFunctionServiceRole": {
68
- "id": "ImportLambdaFunctionServiceRole",
69
- "path": "template-writer-from-asset/LambdaFunctionServiceRole/ImportLambdaFunctionServiceRole",
70
- "constructInfo": {
71
- "fqn": "aws-cdk-lib.Resource",
72
- "version": "2.150.0"
73
- }
74
- },
75
- "Resource": {
76
- "id": "Resource",
77
- "path": "template-writer-from-asset/LambdaFunctionServiceRole/Resource",
78
- "attributes": {
79
- "aws:cdk:cloudformation:type": "AWS::IAM::Role",
80
- "aws:cdk:cloudformation:props": {
81
- "assumeRolePolicyDocument": {
82
- "Statement": [
83
- {
84
- "Action": "sts:AssumeRole",
85
- "Effect": "Allow",
86
- "Principal": {
87
- "Service": "lambda.amazonaws.com"
88
- }
89
- }
90
- ],
91
- "Version": "2012-10-17"
92
- },
93
- "policies": [
94
- {
95
- "policyName": "LambdaFunctionServiceRolePolicy",
96
- "policyDocument": {
97
- "Statement": [
98
- {
99
- "Action": [
100
- "logs:CreateLogGroup",
101
- "logs:CreateLogStream",
102
- "logs:PutLogEvents"
103
- ],
104
- "Effect": "Allow",
105
- "Resource": {
106
- "Fn::Join": [
107
- "",
108
- [
109
- "arn:",
110
- {
111
- "Ref": "AWS::Partition"
112
- },
113
- ":logs:",
114
- {
115
- "Ref": "AWS::Region"
116
- },
117
- ":",
118
- {
119
- "Ref": "AWS::AccountId"
120
- },
121
- ":log-group:/aws/lambda/*"
122
- ]
123
- ]
124
- }
125
- }
126
- ],
127
- "Version": "2012-10-17"
128
- }
129
- }
130
- ]
131
- }
132
- },
133
- "constructInfo": {
134
- "fqn": "aws-cdk-lib.aws_iam.CfnRole",
135
- "version": "2.150.0"
136
- }
137
- },
138
- "DefaultPolicy": {
139
- "id": "DefaultPolicy",
140
- "path": "template-writer-from-asset/LambdaFunctionServiceRole/DefaultPolicy",
141
- "children": {
142
- "Resource": {
143
- "id": "Resource",
144
- "path": "template-writer-from-asset/LambdaFunctionServiceRole/DefaultPolicy/Resource",
145
- "attributes": {
146
- "aws:cdk:cloudformation:type": "AWS::IAM::Policy",
147
- "aws:cdk:cloudformation:props": {
148
- "policyDocument": {
149
- "Statement": [
150
- {
151
- "Action": [
152
- "xray:PutTelemetryRecords",
153
- "xray:PutTraceSegments"
154
- ],
155
- "Effect": "Allow",
156
- "Resource": "*"
157
- }
158
- ],
159
- "Version": "2012-10-17"
160
- },
161
- "policyName": "LambdaFunctionServiceRoleDefaultPolicy126C8897",
162
- "roles": [
163
- {
164
- "Ref": "LambdaFunctionServiceRole0C4CDE0B"
165
- }
166
- ]
167
- }
168
- },
169
- "constructInfo": {
170
- "fqn": "aws-cdk-lib.aws_iam.CfnPolicy",
171
- "version": "2.150.0"
172
- }
173
- }
174
- },
175
- "constructInfo": {
176
- "fqn": "aws-cdk-lib.aws_iam.Policy",
177
- "version": "2.150.0"
178
- }
179
- }
180
- },
181
- "constructInfo": {
182
- "fqn": "aws-cdk-lib.aws_iam.Role",
183
- "version": "2.150.0"
184
- }
185
- },
186
- "LambdaFunction": {
187
- "id": "LambdaFunction",
188
- "path": "template-writer-from-asset/LambdaFunction",
189
- "children": {
190
- "Code": {
191
- "id": "Code",
192
- "path": "template-writer-from-asset/LambdaFunction/Code",
193
- "children": {
194
- "Stage": {
195
- "id": "Stage",
196
- "path": "template-writer-from-asset/LambdaFunction/Code/Stage",
197
- "constructInfo": {
198
- "fqn": "aws-cdk-lib.AssetStaging",
199
- "version": "2.150.0"
200
- }
201
- },
202
- "AssetBucket": {
203
- "id": "AssetBucket",
204
- "path": "template-writer-from-asset/LambdaFunction/Code/AssetBucket",
205
- "constructInfo": {
206
- "fqn": "aws-cdk-lib.aws_s3.BucketBase",
207
- "version": "2.150.0"
208
- }
209
- }
210
- },
211
- "constructInfo": {
212
- "fqn": "aws-cdk-lib.aws_s3_assets.Asset",
213
- "version": "2.150.0"
214
- }
215
- },
216
- "Resource": {
217
- "id": "Resource",
218
- "path": "template-writer-from-asset/LambdaFunction/Resource",
219
- "attributes": {
220
- "aws:cdk:cloudformation:type": "AWS::Lambda::Function",
221
- "aws:cdk:cloudformation:props": {
222
- "code": {
223
- "s3Bucket": {
224
- "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
225
- },
226
- "s3Key": "37a6f0964e9c5c4133e01db00bbcaebc6da2a25a21e27aa0f87add1eb65546e7.zip"
227
- },
228
- "environment": {
229
- "variables": {
230
- "AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1"
231
- }
232
- },
233
- "handler": "index.handler",
234
- "role": {
235
- "Fn::GetAtt": [
236
- "LambdaFunctionServiceRole0C4CDE0B",
237
- "Arn"
238
- ]
239
- },
240
- "runtime": "nodejs20.x",
241
- "tracingConfig": {
242
- "mode": "Active"
243
- }
244
- }
245
- },
246
- "constructInfo": {
247
- "fqn": "aws-cdk-lib.aws_lambda.CfnFunction",
248
- "version": "2.150.0"
249
- }
250
- }
251
- },
252
- "constructInfo": {
253
- "fqn": "aws-cdk-lib.aws_lambda.Function",
254
- "version": "2.150.0"
255
- }
256
- },
257
- "TestTemplateWriterPolicy": {
258
- "id": "TestTemplateWriterPolicy",
259
- "path": "template-writer-from-asset/TestTemplateWriterPolicy",
260
- "children": {
261
- "Resource": {
262
- "id": "Resource",
263
- "path": "template-writer-from-asset/TestTemplateWriterPolicy/Resource",
264
- "attributes": {
265
- "aws:cdk:cloudformation:type": "AWS::IAM::Policy",
266
- "aws:cdk:cloudformation:props": {
267
- "policyDocument": {
268
- "Statement": [
269
- {
270
- "Action": "s3:GetObject",
271
- "Effect": "Allow",
272
- "Resource": {
273
- "Fn::Join": [
274
- "",
275
- [
276
- "arn:",
277
- {
278
- "Ref": "AWS::Partition"
279
- },
280
- ":s3:::",
281
- {
282
- "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
283
- },
284
- "/97cd237b0ae069fe0711bcc6a711e213fdaf0956421de5b964de9ccd0d2b23a1.97cd237b0ae069fe0711bcc6a711e213fdaf0956421de5b964de9ccd0d2b23a1"
285
- ]
286
- ]
287
- }
288
- },
289
- {
290
- "Action": "s3:PutObject",
291
- "Effect": "Allow",
292
- "Resource": {
293
- "Fn::Join": [
294
- "",
295
- [
296
- "arn:",
297
- {
298
- "Ref": "AWS::Partition"
299
- },
300
- ":s3:::",
301
- {
302
- "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
303
- },
304
- "/*"
305
- ]
306
- ]
307
- }
308
- }
309
- ],
310
- "Version": "2012-10-17"
311
- },
312
- "policyName": "TestTemplateWriterPolicy8177DE02",
313
- "roles": [
314
- {
315
- "Ref": "LambdaFunctionServiceRole0C4CDE0B"
316
- }
317
- ]
318
- }
319
- },
320
- "constructInfo": {
321
- "fqn": "aws-cdk-lib.aws_iam.CfnPolicy",
322
- "version": "2.150.0"
323
- }
324
- }
325
- },
326
- "constructInfo": {
327
- "fqn": "aws-cdk-lib.aws_iam.Policy",
328
- "version": "2.150.0"
329
- }
330
- },
331
- "TestTemplateWriterProvider": {
332
- "id": "TestTemplateWriterProvider",
333
- "path": "template-writer-from-asset/TestTemplateWriterProvider",
334
- "children": {
335
- "framework-onEvent": {
336
- "id": "framework-onEvent",
337
- "path": "template-writer-from-asset/TestTemplateWriterProvider/framework-onEvent",
338
- "children": {
339
- "ServiceRole": {
340
- "id": "ServiceRole",
341
- "path": "template-writer-from-asset/TestTemplateWriterProvider/framework-onEvent/ServiceRole",
342
- "children": {
343
- "ImportServiceRole": {
344
- "id": "ImportServiceRole",
345
- "path": "template-writer-from-asset/TestTemplateWriterProvider/framework-onEvent/ServiceRole/ImportServiceRole",
346
- "constructInfo": {
347
- "fqn": "aws-cdk-lib.Resource",
348
- "version": "2.150.0"
349
- }
350
- },
351
- "Resource": {
352
- "id": "Resource",
353
- "path": "template-writer-from-asset/TestTemplateWriterProvider/framework-onEvent/ServiceRole/Resource",
354
- "attributes": {
355
- "aws:cdk:cloudformation:type": "AWS::IAM::Role",
356
- "aws:cdk:cloudformation:props": {
357
- "assumeRolePolicyDocument": {
358
- "Statement": [
359
- {
360
- "Action": "sts:AssumeRole",
361
- "Effect": "Allow",
362
- "Principal": {
363
- "Service": "lambda.amazonaws.com"
364
- }
365
- }
366
- ],
367
- "Version": "2012-10-17"
368
- },
369
- "managedPolicyArns": [
370
- {
371
- "Fn::Join": [
372
- "",
373
- [
374
- "arn:",
375
- {
376
- "Ref": "AWS::Partition"
377
- },
378
- ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
379
- ]
380
- ]
381
- }
382
- ]
383
- }
384
- },
385
- "constructInfo": {
386
- "fqn": "aws-cdk-lib.aws_iam.CfnRole",
387
- "version": "2.150.0"
388
- }
389
- },
390
- "DefaultPolicy": {
391
- "id": "DefaultPolicy",
392
- "path": "template-writer-from-asset/TestTemplateWriterProvider/framework-onEvent/ServiceRole/DefaultPolicy",
393
- "children": {
394
- "Resource": {
395
- "id": "Resource",
396
- "path": "template-writer-from-asset/TestTemplateWriterProvider/framework-onEvent/ServiceRole/DefaultPolicy/Resource",
397
- "attributes": {
398
- "aws:cdk:cloudformation:type": "AWS::IAM::Policy",
399
- "aws:cdk:cloudformation:props": {
400
- "policyDocument": {
401
- "Statement": [
402
- {
403
- "Action": "lambda:InvokeFunction",
404
- "Effect": "Allow",
405
- "Resource": [
406
- {
407
- "Fn::GetAtt": [
408
- "LambdaFunctionBF21E41F",
409
- "Arn"
410
- ]
411
- },
412
- {
413
- "Fn::Join": [
414
- "",
415
- [
416
- {
417
- "Fn::GetAtt": [
418
- "LambdaFunctionBF21E41F",
419
- "Arn"
420
- ]
421
- },
422
- ":*"
423
- ]
424
- ]
425
- }
426
- ]
427
- }
428
- ],
429
- "Version": "2012-10-17"
430
- },
431
- "policyName": "TestTemplateWriterProviderframeworkonEventServiceRoleDefaultPolicy08B90D53",
432
- "roles": [
433
- {
434
- "Ref": "TestTemplateWriterProviderframeworkonEventServiceRoleED11CF9A"
435
- }
436
- ]
437
- }
438
- },
439
- "constructInfo": {
440
- "fqn": "aws-cdk-lib.aws_iam.CfnPolicy",
441
- "version": "2.150.0"
442
- }
443
- }
444
- },
445
- "constructInfo": {
446
- "fqn": "aws-cdk-lib.aws_iam.Policy",
447
- "version": "2.150.0"
448
- }
449
- }
450
- },
451
- "constructInfo": {
452
- "fqn": "aws-cdk-lib.aws_iam.Role",
453
- "version": "2.150.0"
454
- }
455
- },
456
- "Code": {
457
- "id": "Code",
458
- "path": "template-writer-from-asset/TestTemplateWriterProvider/framework-onEvent/Code",
459
- "children": {
460
- "Stage": {
461
- "id": "Stage",
462
- "path": "template-writer-from-asset/TestTemplateWriterProvider/framework-onEvent/Code/Stage",
463
- "constructInfo": {
464
- "fqn": "aws-cdk-lib.AssetStaging",
465
- "version": "2.150.0"
466
- }
467
- },
468
- "AssetBucket": {
469
- "id": "AssetBucket",
470
- "path": "template-writer-from-asset/TestTemplateWriterProvider/framework-onEvent/Code/AssetBucket",
471
- "constructInfo": {
472
- "fqn": "aws-cdk-lib.aws_s3.BucketBase",
473
- "version": "2.150.0"
474
- }
475
- }
476
- },
477
- "constructInfo": {
478
- "fqn": "aws-cdk-lib.aws_s3_assets.Asset",
479
- "version": "2.150.0"
480
- }
481
- },
482
- "Resource": {
483
- "id": "Resource",
484
- "path": "template-writer-from-asset/TestTemplateWriterProvider/framework-onEvent/Resource",
485
- "attributes": {
486
- "aws:cdk:cloudformation:type": "AWS::Lambda::Function",
487
- "aws:cdk:cloudformation:props": {
488
- "code": {
489
- "s3Bucket": {
490
- "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
491
- },
492
- "s3Key": "d9861ea7a45affd23e47a614acb2fddc6e45c20a891284c958187dafbf9ee36b.zip"
493
- },
494
- "description": "AWS CDK resource provider framework - onEvent (template-writer-from-asset/TestTemplateWriterProvider)",
495
- "environment": {
496
- "variables": {
497
- "USER_ON_EVENT_FUNCTION_ARN": {
498
- "Fn::GetAtt": [
499
- "LambdaFunctionBF21E41F",
500
- "Arn"
501
- ]
502
- }
503
- }
504
- },
505
- "handler": "framework.onEvent",
506
- "role": {
507
- "Fn::GetAtt": [
508
- "TestTemplateWriterProviderframeworkonEventServiceRoleED11CF9A",
509
- "Arn"
510
- ]
511
- },
512
- "runtime": {
513
- "Fn::FindInMap": [
514
- "LatestNodeRuntimeMap",
515
- {
516
- "Ref": "AWS::Region"
517
- },
518
- "value"
519
- ]
520
- },
521
- "timeout": 900
522
- }
523
- },
524
- "constructInfo": {
525
- "fqn": "aws-cdk-lib.aws_lambda.CfnFunction",
526
- "version": "2.150.0"
527
- }
528
- }
529
- },
530
- "constructInfo": {
531
- "fqn": "aws-cdk-lib.aws_lambda.Function",
532
- "version": "2.150.0"
533
- }
534
- }
535
- },
536
- "constructInfo": {
537
- "fqn": "aws-cdk-lib.custom_resources.Provider",
538
- "version": "2.150.0"
539
- }
540
- },
541
- "LatestNodeRuntimeMap": {
542
- "id": "LatestNodeRuntimeMap",
543
- "path": "template-writer-from-asset/LatestNodeRuntimeMap",
544
- "constructInfo": {
545
- "fqn": "aws-cdk-lib.CfnMapping",
546
- "version": "2.150.0"
547
- }
548
- },
549
- "TestTemplateWriterCustomResource": {
550
- "id": "TestTemplateWriterCustomResource",
551
- "path": "template-writer-from-asset/TestTemplateWriterCustomResource",
552
- "children": {
553
- "Default": {
554
- "id": "Default",
555
- "path": "template-writer-from-asset/TestTemplateWriterCustomResource/Default",
556
- "constructInfo": {
557
- "fqn": "aws-cdk-lib.CfnResource",
558
- "version": "2.150.0"
559
- }
560
- }
561
- },
562
- "constructInfo": {
563
- "fqn": "aws-cdk-lib.CustomResource",
564
- "version": "2.150.0"
565
- }
566
- },
567
- "Integ": {
568
- "id": "Integ",
569
- "path": "template-writer-from-asset/Integ",
570
- "children": {
571
- "DefaultTest": {
572
- "id": "DefaultTest",
573
- "path": "template-writer-from-asset/Integ/DefaultTest",
574
- "children": {
575
- "Default": {
576
- "id": "Default",
577
- "path": "template-writer-from-asset/Integ/DefaultTest/Default",
578
- "constructInfo": {
579
- "fqn": "constructs.Construct",
580
- "version": "10.3.0"
581
- }
582
- },
583
- "DeployAssert": {
584
- "id": "DeployAssert",
585
- "path": "template-writer-from-asset/Integ/DefaultTest/DeployAssert",
586
- "children": {
587
- "BootstrapVersion": {
588
- "id": "BootstrapVersion",
589
- "path": "template-writer-from-asset/Integ/DefaultTest/DeployAssert/BootstrapVersion",
590
- "constructInfo": {
591
- "fqn": "aws-cdk-lib.CfnParameter",
592
- "version": "2.150.0"
593
- }
594
- },
595
- "CheckBootstrapVersion": {
596
- "id": "CheckBootstrapVersion",
597
- "path": "template-writer-from-asset/Integ/DefaultTest/DeployAssert/CheckBootstrapVersion",
598
- "constructInfo": {
599
- "fqn": "aws-cdk-lib.CfnRule",
600
- "version": "2.150.0"
601
- }
602
- }
603
- },
604
- "constructInfo": {
605
- "fqn": "aws-cdk-lib.Stack",
606
- "version": "2.150.0"
607
- }
608
- }
609
- },
610
- "constructInfo": {
611
- "fqn": "@aws-cdk/integ-tests-alpha.IntegTestCase",
612
- "version": "2.150.0-alpha.0"
613
- }
614
- }
615
- },
616
- "constructInfo": {
617
- "fqn": "@aws-cdk/integ-tests-alpha.IntegTest",
618
- "version": "2.150.0-alpha.0"
619
- }
620
- },
621
- "BootstrapVersion": {
622
- "id": "BootstrapVersion",
623
- "path": "template-writer-from-asset/BootstrapVersion",
624
- "constructInfo": {
625
- "fqn": "aws-cdk-lib.CfnParameter",
626
- "version": "2.150.0"
627
- }
628
- },
629
- "CheckBootstrapVersion": {
630
- "id": "CheckBootstrapVersion",
631
- "path": "template-writer-from-asset/CheckBootstrapVersion",
632
- "constructInfo": {
633
- "fqn": "aws-cdk-lib.CfnRule",
634
- "version": "2.150.0"
635
- }
636
- }
637
- },
638
- "constructInfo": {
639
- "fqn": "aws-cdk-lib.Stack",
640
- "version": "2.150.0"
641
- }
642
- },
643
- "Tree": {
644
- "id": "Tree",
645
- "path": "Tree",
646
- "constructInfo": {
647
- "fqn": "constructs.Construct",
648
- "version": "10.3.0"
649
- }
650
- }
651
- },
652
- "constructInfo": {
653
- "fqn": "aws-cdk-lib.App",
654
- "version": "2.150.0"
655
- }
656
- }
657
- }
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"}}}