@aws-solutions-constructs/aws-cloudfront-s3 2.58.0 → 2.59.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 (82) hide show
  1. package/.jsii +77 -30
  2. package/README.md +10 -7
  3. package/lib/index.d.ts +32 -17
  4. package/lib/index.js +33 -3
  5. package/package.json +5 -5
  6. package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js +16 -2
  7. package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/asset.2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4/index.js +1 -0
  8. package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.assets.json +15 -2
  9. package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.template.json +340 -15
  10. package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/manifest.json +37 -19
  11. package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/tree.json +342 -63
  12. package/test/integ.cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js +16 -2
  13. package/test/integ.cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/asset.2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4/index.js +1 -0
  14. package/test/integ.cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.assets.json +15 -2
  15. package/test/integ.cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.template.json +340 -15
  16. package/test/integ.cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/manifest.json +37 -1
  17. package/test/integ.cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/tree.json +318 -39
  18. package/test/integ.cfts3-bucket-with-http-origin.js.snapshot/cfts3-bucket-with-http-origin.assets.json +2 -2
  19. package/test/integ.cfts3-bucket-with-http-origin.js.snapshot/cfts3-bucket-with-http-origin.template.json +0 -7
  20. package/test/integ.cfts3-bucket-with-http-origin.js.snapshot/manifest.json +1 -1
  21. package/test/integ.cfts3-bucket-with-http-origin.js.snapshot/tree.json +31 -38
  22. package/test/integ.cfts3-cmk-provided-as-bucket-prop.js +13 -1
  23. package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/asset.2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4/index.js +1 -0
  24. package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/cfts3-cmk-provided-as-bucket-prop.assets.json +15 -2
  25. package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/cfts3-cmk-provided-as-bucket-prop.template.json +274 -13
  26. package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/manifest.json +27 -15
  27. package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/tree.json +279 -63
  28. package/test/integ.cfts3-custom-headers.js +5 -1
  29. package/test/integ.cfts3-custom-headers.js.snapshot/asset.2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4/index.js +1 -0
  30. package/test/integ.cfts3-custom-headers.js.snapshot/cfts3-custom-headers.assets.json +5 -5
  31. package/test/integ.cfts3-custom-headers.js.snapshot/cfts3-custom-headers.template.json +1 -8
  32. package/test/integ.cfts3-custom-headers.js.snapshot/manifest.json +1 -1
  33. package/test/integ.cfts3-custom-headers.js.snapshot/tree.json +48 -55
  34. package/test/integ.cfts3-custom-originPath.js +5 -1
  35. package/test/integ.cfts3-custom-originPath.js.snapshot/asset.2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4/index.js +1 -0
  36. package/test/integ.cfts3-custom-originPath.js.snapshot/cfts3-custom-originPath.assets.json +5 -5
  37. package/test/integ.cfts3-custom-originPath.js.snapshot/cfts3-custom-originPath.template.json +1 -8
  38. package/test/integ.cfts3-custom-originPath.js.snapshot/manifest.json +1 -1
  39. package/test/integ.cfts3-custom-originPath.js.snapshot/tree.json +46 -53
  40. package/test/integ.cfts3-customLoggingBuckets.js +6 -2
  41. package/test/integ.cfts3-customLoggingBuckets.js.snapshot/asset.2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4/index.js +1 -0
  42. package/test/integ.cfts3-customLoggingBuckets.js.snapshot/cfts3-customLoggingBuckets.assets.json +5 -5
  43. package/test/integ.cfts3-customLoggingBuckets.js.snapshot/cfts3-customLoggingBuckets.template.json +1 -21
  44. package/test/integ.cfts3-customLoggingBuckets.js.snapshot/manifest.json +1 -1
  45. package/test/integ.cfts3-customLoggingBuckets.js.snapshot/tree.json +46 -66
  46. package/test/integ.cfts3-existing-bucket.js +5 -1
  47. package/test/integ.cfts3-existing-bucket.js.snapshot/asset.2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4/index.js +1 -0
  48. package/test/integ.cfts3-existing-bucket.js.snapshot/cfts3-existing-bucket.assets.json +5 -5
  49. package/test/integ.cfts3-existing-bucket.js.snapshot/cfts3-existing-bucket.template.json +1 -8
  50. package/test/integ.cfts3-existing-bucket.js.snapshot/manifest.json +1 -1
  51. package/test/integ.cfts3-existing-bucket.js.snapshot/tree.json +51 -58
  52. package/test/integ.cfts3-no-arguments.js +5 -1
  53. package/test/integ.cfts3-no-arguments.js.snapshot/asset.2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4/index.js +1 -0
  54. package/test/integ.cfts3-no-arguments.js.snapshot/cfts3-no-arguments.assets.json +5 -5
  55. package/test/integ.cfts3-no-arguments.js.snapshot/cfts3-no-arguments.template.json +1 -8
  56. package/test/integ.cfts3-no-arguments.js.snapshot/manifest.json +1 -1
  57. package/test/integ.cfts3-no-arguments.js.snapshot/tree.json +46 -53
  58. package/test/integ.cfts3-no-logging.js +56 -0
  59. package/test/integ.cfts3-no-logging.js.snapshot/asset.2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4/index.js +1 -0
  60. package/test/integ.cfts3-no-logging.js.snapshot/cdk.out +1 -0
  61. package/test/integ.cfts3-no-logging.js.snapshot/cfts3-no-logging.assets.json +32 -0
  62. package/test/integ.cfts3-no-logging.js.snapshot/cfts3-no-logging.template.json +434 -0
  63. package/test/integ.cfts3-no-logging.js.snapshot/cfts3nologgingIntegDefaultTestDeployAssert18393DDB.assets.json +19 -0
  64. package/test/integ.cfts3-no-logging.js.snapshot/cfts3nologgingIntegDefaultTestDeployAssert18393DDB.template.json +36 -0
  65. package/test/integ.cfts3-no-logging.js.snapshot/integ.json +12 -0
  66. package/test/integ.cfts3-no-logging.js.snapshot/manifest.json +155 -0
  67. package/test/integ.cfts3-no-logging.js.snapshot/tree.json +506 -0
  68. package/test/integ.cfts3-no-security-headers.js +5 -1
  69. package/test/integ.cfts3-no-security-headers.js.snapshot/asset.2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4/index.js +1 -0
  70. package/test/integ.cfts3-no-security-headers.js.snapshot/cfts3-no-security-headers.assets.json +5 -5
  71. package/test/integ.cfts3-no-security-headers.js.snapshot/cfts3-no-security-headers.template.json +1 -8
  72. package/test/integ.cfts3-no-security-headers.js.snapshot/manifest.json +1 -1
  73. package/test/integ.cfts3-no-security-headers.js.snapshot/tree.json +44 -51
  74. package/test/test.cloudfront-s3.test.js +288 -52
  75. package/test/integ.cfts3-bucket-with-http-origin.js +0 -47
  76. package/test/integ.cfts3-custom-headers.js.snapshot/asset.b7f33614a69548d6bafe224d751a7ef238cde19097415e553fe8b63a4c8fd8a6/index.js +0 -1
  77. package/test/integ.cfts3-custom-originPath.js.snapshot/asset.b7f33614a69548d6bafe224d751a7ef238cde19097415e553fe8b63a4c8fd8a6/index.js +0 -1
  78. package/test/integ.cfts3-customLoggingBuckets.js.snapshot/asset.b7f33614a69548d6bafe224d751a7ef238cde19097415e553fe8b63a4c8fd8a6/index.js +0 -1
  79. package/test/integ.cfts3-existing-bucket.js.snapshot/asset.b7f33614a69548d6bafe224d751a7ef238cde19097415e553fe8b63a4c8fd8a6/index.js +0 -1
  80. package/test/integ.cfts3-no-arguments.js.snapshot/asset.b7f33614a69548d6bafe224d751a7ef238cde19097415e553fe8b63a4c8fd8a6/index.js +0 -1
  81. package/test/integ.cfts3-no-security-headers.js.snapshot/asset.b7f33614a69548d6bafe224d751a7ef238cde19097415e553fe8b63a4c8fd8a6/index.js +0 -1
  82. /package/test/{integ.cfts3-bucket-with-http-origin.d.ts → integ.cfts3-no-logging.d.ts} +0 -0
@@ -51,13 +51,13 @@
51
51
  },
52
52
  "constructInfo": {
53
53
  "fqn": "aws-cdk-lib.aws_kms.CfnKey",
54
- "version": "2.138.0"
54
+ "version": "2.143.0"
55
55
  }
56
56
  }
57
57
  },
58
58
  "constructInfo": {
59
59
  "fqn": "aws-cdk-lib.aws_kms.Key",
60
- "version": "2.138.0"
60
+ "version": "2.143.0"
61
61
  }
62
62
  },
63
63
  "existing-s3-bucket-encrypted-with-cmkS3LoggingBucket": {
@@ -85,6 +85,12 @@
85
85
  "ignorePublicAcls": true,
86
86
  "restrictPublicBuckets": true
87
87
  },
88
+ "tags": [
89
+ {
90
+ "key": "aws-cdk:auto-delete-objects",
91
+ "value": "true"
92
+ }
93
+ ],
88
94
  "versioningConfiguration": {
89
95
  "status": "Enabled"
90
96
  }
@@ -92,7 +98,7 @@
92
98
  },
93
99
  "constructInfo": {
94
100
  "fqn": "aws-cdk-lib.aws_s3.CfnBucket",
95
- "version": "2.138.0"
101
+ "version": "2.143.0"
96
102
  }
97
103
  },
98
104
  "Policy": {
@@ -144,6 +150,45 @@
144
150
  }
145
151
  ]
146
152
  },
153
+ {
154
+ "Action": [
155
+ "s3:DeleteObject*",
156
+ "s3:GetBucket*",
157
+ "s3:List*",
158
+ "s3:PutBucketPolicy"
159
+ ],
160
+ "Effect": "Allow",
161
+ "Principal": {
162
+ "AWS": {
163
+ "Fn::GetAtt": [
164
+ "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092",
165
+ "Arn"
166
+ ]
167
+ }
168
+ },
169
+ "Resource": [
170
+ {
171
+ "Fn::GetAtt": [
172
+ "existings3bucketencryptedwithcmkS3LoggingBucket2B2DE39B",
173
+ "Arn"
174
+ ]
175
+ },
176
+ {
177
+ "Fn::Join": [
178
+ "",
179
+ [
180
+ {
181
+ "Fn::GetAtt": [
182
+ "existings3bucketencryptedwithcmkS3LoggingBucket2B2DE39B",
183
+ "Arn"
184
+ ]
185
+ },
186
+ "/*"
187
+ ]
188
+ ]
189
+ }
190
+ ]
191
+ },
147
192
  {
148
193
  "Action": "s3:PutObject",
149
194
  "Condition": {
@@ -187,19 +232,71 @@
187
232
  },
188
233
  "constructInfo": {
189
234
  "fqn": "aws-cdk-lib.aws_s3.CfnBucketPolicy",
190
- "version": "2.138.0"
235
+ "version": "2.143.0"
191
236
  }
192
237
  }
193
238
  },
194
239
  "constructInfo": {
195
240
  "fqn": "aws-cdk-lib.aws_s3.BucketPolicy",
196
- "version": "2.138.0"
241
+ "version": "2.143.0"
242
+ }
243
+ },
244
+ "AutoDeleteObjectsCustomResource": {
245
+ "id": "AutoDeleteObjectsCustomResource",
246
+ "path": "cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket/existing-s3-bucket-encrypted-with-cmkS3LoggingBucket/AutoDeleteObjectsCustomResource",
247
+ "children": {
248
+ "Default": {
249
+ "id": "Default",
250
+ "path": "cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket/existing-s3-bucket-encrypted-with-cmkS3LoggingBucket/AutoDeleteObjectsCustomResource/Default",
251
+ "constructInfo": {
252
+ "fqn": "aws-cdk-lib.CfnResource",
253
+ "version": "2.143.0"
254
+ }
255
+ }
256
+ },
257
+ "constructInfo": {
258
+ "fqn": "aws-cdk-lib.CustomResource",
259
+ "version": "2.143.0"
197
260
  }
198
261
  }
199
262
  },
200
263
  "constructInfo": {
201
264
  "fqn": "aws-cdk-lib.aws_s3.Bucket",
202
- "version": "2.138.0"
265
+ "version": "2.143.0"
266
+ }
267
+ },
268
+ "Custom::S3AutoDeleteObjectsCustomResourceProvider": {
269
+ "id": "Custom::S3AutoDeleteObjectsCustomResourceProvider",
270
+ "path": "cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket/Custom::S3AutoDeleteObjectsCustomResourceProvider",
271
+ "children": {
272
+ "Staging": {
273
+ "id": "Staging",
274
+ "path": "cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket/Custom::S3AutoDeleteObjectsCustomResourceProvider/Staging",
275
+ "constructInfo": {
276
+ "fqn": "aws-cdk-lib.AssetStaging",
277
+ "version": "2.143.0"
278
+ }
279
+ },
280
+ "Role": {
281
+ "id": "Role",
282
+ "path": "cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role",
283
+ "constructInfo": {
284
+ "fqn": "aws-cdk-lib.CfnResource",
285
+ "version": "2.143.0"
286
+ }
287
+ },
288
+ "Handler": {
289
+ "id": "Handler",
290
+ "path": "cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler",
291
+ "constructInfo": {
292
+ "fqn": "aws-cdk-lib.CfnResource",
293
+ "version": "2.143.0"
294
+ }
295
+ }
296
+ },
297
+ "constructInfo": {
298
+ "fqn": "aws-cdk-lib.CustomResourceProviderBase",
299
+ "version": "2.143.0"
203
300
  }
204
301
  },
205
302
  "existing-s3-bucket-encrypted-with-cmkS3Bucket": {
@@ -251,6 +348,12 @@
251
348
  "ignorePublicAcls": true,
252
349
  "restrictPublicBuckets": true
253
350
  },
351
+ "tags": [
352
+ {
353
+ "key": "aws-cdk:auto-delete-objects",
354
+ "value": "true"
355
+ }
356
+ ],
254
357
  "versioningConfiguration": {
255
358
  "status": "Enabled"
256
359
  }
@@ -258,7 +361,7 @@
258
361
  },
259
362
  "constructInfo": {
260
363
  "fqn": "aws-cdk-lib.aws_s3.CfnBucket",
261
- "version": "2.138.0"
364
+ "version": "2.143.0"
262
365
  }
263
366
  },
264
367
  "Policy": {
@@ -310,6 +413,45 @@
310
413
  }
311
414
  ]
312
415
  },
416
+ {
417
+ "Action": [
418
+ "s3:DeleteObject*",
419
+ "s3:GetBucket*",
420
+ "s3:List*",
421
+ "s3:PutBucketPolicy"
422
+ ],
423
+ "Effect": "Allow",
424
+ "Principal": {
425
+ "AWS": {
426
+ "Fn::GetAtt": [
427
+ "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092",
428
+ "Arn"
429
+ ]
430
+ }
431
+ },
432
+ "Resource": [
433
+ {
434
+ "Fn::GetAtt": [
435
+ "existings3bucketencryptedwithcmkS3BucketCC461491",
436
+ "Arn"
437
+ ]
438
+ },
439
+ {
440
+ "Fn::Join": [
441
+ "",
442
+ [
443
+ {
444
+ "Fn::GetAtt": [
445
+ "existings3bucketencryptedwithcmkS3BucketCC461491",
446
+ "Arn"
447
+ ]
448
+ },
449
+ "/*"
450
+ ]
451
+ ]
452
+ }
453
+ ]
454
+ },
313
455
  {
314
456
  "Action": "s3:GetObject",
315
457
  "Condition": {
@@ -357,19 +499,37 @@
357
499
  },
358
500
  "constructInfo": {
359
501
  "fqn": "aws-cdk-lib.aws_s3.CfnBucketPolicy",
360
- "version": "2.138.0"
502
+ "version": "2.143.0"
361
503
  }
362
504
  }
363
505
  },
364
506
  "constructInfo": {
365
507
  "fqn": "aws-cdk-lib.aws_s3.BucketPolicy",
366
- "version": "2.138.0"
508
+ "version": "2.143.0"
509
+ }
510
+ },
511
+ "AutoDeleteObjectsCustomResource": {
512
+ "id": "AutoDeleteObjectsCustomResource",
513
+ "path": "cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket/existing-s3-bucket-encrypted-with-cmkS3Bucket/AutoDeleteObjectsCustomResource",
514
+ "children": {
515
+ "Default": {
516
+ "id": "Default",
517
+ "path": "cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket/existing-s3-bucket-encrypted-with-cmkS3Bucket/AutoDeleteObjectsCustomResource/Default",
518
+ "constructInfo": {
519
+ "fqn": "aws-cdk-lib.CfnResource",
520
+ "version": "2.143.0"
521
+ }
522
+ }
523
+ },
524
+ "constructInfo": {
525
+ "fqn": "aws-cdk-lib.CustomResource",
526
+ "version": "2.143.0"
367
527
  }
368
528
  }
369
529
  },
370
530
  "constructInfo": {
371
531
  "fqn": "aws-cdk-lib.aws_s3.Bucket",
372
- "version": "2.138.0"
532
+ "version": "2.143.0"
373
533
  }
374
534
  },
375
535
  "test-cloudfront-s3-cmk-encryption-key": {
@@ -395,19 +555,18 @@
395
555
  }
396
556
  ]
397
557
  },
398
- "ownershipControls": {
399
- "rules": [
400
- {
401
- "objectOwnership": "ObjectWriter"
402
- }
403
- ]
404
- },
405
558
  "publicAccessBlockConfiguration": {
406
559
  "blockPublicAcls": true,
407
560
  "blockPublicPolicy": true,
408
561
  "ignorePublicAcls": true,
409
562
  "restrictPublicBuckets": true
410
563
  },
564
+ "tags": [
565
+ {
566
+ "key": "aws-cdk:auto-delete-objects",
567
+ "value": "true"
568
+ }
569
+ ],
411
570
  "versioningConfiguration": {
412
571
  "status": "Enabled"
413
572
  }
@@ -415,7 +574,7 @@
415
574
  },
416
575
  "constructInfo": {
417
576
  "fqn": "aws-cdk-lib.aws_s3.CfnBucket",
418
- "version": "2.138.0"
577
+ "version": "2.143.0"
419
578
  }
420
579
  },
421
580
  "Policy": {
@@ -467,6 +626,45 @@
467
626
  }
468
627
  ]
469
628
  },
629
+ {
630
+ "Action": [
631
+ "s3:DeleteObject*",
632
+ "s3:GetBucket*",
633
+ "s3:List*",
634
+ "s3:PutBucketPolicy"
635
+ ],
636
+ "Effect": "Allow",
637
+ "Principal": {
638
+ "AWS": {
639
+ "Fn::GetAtt": [
640
+ "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092",
641
+ "Arn"
642
+ ]
643
+ }
644
+ },
645
+ "Resource": [
646
+ {
647
+ "Fn::GetAtt": [
648
+ "testcloudfronts3cmkencryptionkeyCloudfrontLoggingBucketAccessLog8863921C",
649
+ "Arn"
650
+ ]
651
+ },
652
+ {
653
+ "Fn::Join": [
654
+ "",
655
+ [
656
+ {
657
+ "Fn::GetAtt": [
658
+ "testcloudfronts3cmkencryptionkeyCloudfrontLoggingBucketAccessLog8863921C",
659
+ "Arn"
660
+ ]
661
+ },
662
+ "/*"
663
+ ]
664
+ ]
665
+ }
666
+ ]
667
+ },
470
668
  {
471
669
  "Action": "s3:PutObject",
472
670
  "Condition": {
@@ -510,19 +708,37 @@
510
708
  },
511
709
  "constructInfo": {
512
710
  "fqn": "aws-cdk-lib.aws_s3.CfnBucketPolicy",
513
- "version": "2.138.0"
711
+ "version": "2.143.0"
514
712
  }
515
713
  }
516
714
  },
517
715
  "constructInfo": {
518
716
  "fqn": "aws-cdk-lib.aws_s3.BucketPolicy",
519
- "version": "2.138.0"
717
+ "version": "2.143.0"
718
+ }
719
+ },
720
+ "AutoDeleteObjectsCustomResource": {
721
+ "id": "AutoDeleteObjectsCustomResource",
722
+ "path": "cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket/test-cloudfront-s3-cmk-encryption-key/CloudfrontLoggingBucketAccessLog/AutoDeleteObjectsCustomResource",
723
+ "children": {
724
+ "Default": {
725
+ "id": "Default",
726
+ "path": "cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket/test-cloudfront-s3-cmk-encryption-key/CloudfrontLoggingBucketAccessLog/AutoDeleteObjectsCustomResource/Default",
727
+ "constructInfo": {
728
+ "fqn": "aws-cdk-lib.CfnResource",
729
+ "version": "2.143.0"
730
+ }
731
+ }
732
+ },
733
+ "constructInfo": {
734
+ "fqn": "aws-cdk-lib.CustomResource",
735
+ "version": "2.143.0"
520
736
  }
521
737
  }
522
738
  },
523
739
  "constructInfo": {
524
740
  "fqn": "aws-cdk-lib.aws_s3.Bucket",
525
- "version": "2.138.0"
741
+ "version": "2.143.0"
526
742
  }
527
743
  },
528
744
  "CloudfrontLoggingBucket": {
@@ -562,6 +778,12 @@
562
778
  "ignorePublicAcls": true,
563
779
  "restrictPublicBuckets": true
564
780
  },
781
+ "tags": [
782
+ {
783
+ "key": "aws-cdk:auto-delete-objects",
784
+ "value": "true"
785
+ }
786
+ ],
565
787
  "versioningConfiguration": {
566
788
  "status": "Enabled"
567
789
  }
@@ -569,7 +791,7 @@
569
791
  },
570
792
  "constructInfo": {
571
793
  "fqn": "aws-cdk-lib.aws_s3.CfnBucket",
572
- "version": "2.138.0"
794
+ "version": "2.143.0"
573
795
  }
574
796
  },
575
797
  "Policy": {
@@ -620,6 +842,45 @@
620
842
  ]
621
843
  }
622
844
  ]
845
+ },
846
+ {
847
+ "Action": [
848
+ "s3:DeleteObject*",
849
+ "s3:GetBucket*",
850
+ "s3:List*",
851
+ "s3:PutBucketPolicy"
852
+ ],
853
+ "Effect": "Allow",
854
+ "Principal": {
855
+ "AWS": {
856
+ "Fn::GetAtt": [
857
+ "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092",
858
+ "Arn"
859
+ ]
860
+ }
861
+ },
862
+ "Resource": [
863
+ {
864
+ "Fn::GetAtt": [
865
+ "testcloudfronts3cmkencryptionkeyCloudfrontLoggingBucket7C1787CD",
866
+ "Arn"
867
+ ]
868
+ },
869
+ {
870
+ "Fn::Join": [
871
+ "",
872
+ [
873
+ {
874
+ "Fn::GetAtt": [
875
+ "testcloudfronts3cmkencryptionkeyCloudfrontLoggingBucket7C1787CD",
876
+ "Arn"
877
+ ]
878
+ },
879
+ "/*"
880
+ ]
881
+ ]
882
+ }
883
+ ]
623
884
  }
624
885
  ],
625
886
  "Version": "2012-10-17"
@@ -628,19 +889,37 @@
628
889
  },
629
890
  "constructInfo": {
630
891
  "fqn": "aws-cdk-lib.aws_s3.CfnBucketPolicy",
631
- "version": "2.138.0"
892
+ "version": "2.143.0"
632
893
  }
633
894
  }
634
895
  },
635
896
  "constructInfo": {
636
897
  "fqn": "aws-cdk-lib.aws_s3.BucketPolicy",
637
- "version": "2.138.0"
898
+ "version": "2.143.0"
899
+ }
900
+ },
901
+ "AutoDeleteObjectsCustomResource": {
902
+ "id": "AutoDeleteObjectsCustomResource",
903
+ "path": "cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket/test-cloudfront-s3-cmk-encryption-key/CloudfrontLoggingBucket/AutoDeleteObjectsCustomResource",
904
+ "children": {
905
+ "Default": {
906
+ "id": "Default",
907
+ "path": "cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket/test-cloudfront-s3-cmk-encryption-key/CloudfrontLoggingBucket/AutoDeleteObjectsCustomResource/Default",
908
+ "constructInfo": {
909
+ "fqn": "aws-cdk-lib.CfnResource",
910
+ "version": "2.143.0"
911
+ }
912
+ }
913
+ },
914
+ "constructInfo": {
915
+ "fqn": "aws-cdk-lib.CustomResource",
916
+ "version": "2.143.0"
638
917
  }
639
918
  }
640
919
  },
641
920
  "constructInfo": {
642
921
  "fqn": "aws-cdk-lib.aws_s3.Bucket",
643
- "version": "2.138.0"
922
+ "version": "2.143.0"
644
923
  }
645
924
  },
646
925
  "CloudFrontOac": {
@@ -680,7 +959,7 @@
680
959
  },
681
960
  "constructInfo": {
682
961
  "fqn": "aws-cdk-lib.aws_cloudfront.CfnOriginAccessControl",
683
- "version": "2.138.0"
962
+ "version": "2.143.0"
684
963
  }
685
964
  },
686
965
  "CloudFrontDistribution": {
@@ -740,13 +1019,13 @@
740
1019
  },
741
1020
  "constructInfo": {
742
1021
  "fqn": "aws-cdk-lib.aws_cloudfront.CfnDistribution",
743
- "version": "2.138.0"
1022
+ "version": "2.143.0"
744
1023
  }
745
1024
  }
746
1025
  },
747
1026
  "constructInfo": {
748
1027
  "fqn": "aws-cdk-lib.aws_cloudfront.Distribution",
749
- "version": "2.138.0"
1028
+ "version": "2.143.0"
750
1029
  }
751
1030
  },
752
1031
  "LambdaFunctionServiceRole": {
@@ -758,7 +1037,7 @@
758
1037
  "path": "cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket/test-cloudfront-s3-cmk-encryption-key/LambdaFunctionServiceRole/ImportLambdaFunctionServiceRole",
759
1038
  "constructInfo": {
760
1039
  "fqn": "aws-cdk-lib.Resource",
761
- "version": "2.138.0"
1040
+ "version": "2.143.0"
762
1041
  }
763
1042
  },
764
1043
  "Resource": {
@@ -821,7 +1100,7 @@
821
1100
  },
822
1101
  "constructInfo": {
823
1102
  "fqn": "aws-cdk-lib.aws_iam.CfnRole",
824
- "version": "2.138.0"
1103
+ "version": "2.143.0"
825
1104
  }
826
1105
  },
827
1106
  "DefaultPolicy": {
@@ -857,19 +1136,19 @@
857
1136
  },
858
1137
  "constructInfo": {
859
1138
  "fqn": "aws-cdk-lib.aws_iam.CfnPolicy",
860
- "version": "2.138.0"
1139
+ "version": "2.143.0"
861
1140
  }
862
1141
  }
863
1142
  },
864
1143
  "constructInfo": {
865
1144
  "fqn": "aws-cdk-lib.aws_iam.Policy",
866
- "version": "2.138.0"
1145
+ "version": "2.143.0"
867
1146
  }
868
1147
  }
869
1148
  },
870
1149
  "constructInfo": {
871
1150
  "fqn": "aws-cdk-lib.aws_iam.Role",
872
- "version": "2.138.0"
1151
+ "version": "2.143.0"
873
1152
  }
874
1153
  },
875
1154
  "LambdaFunction": {
@@ -885,7 +1164,7 @@
885
1164
  "path": "cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket/test-cloudfront-s3-cmk-encryption-key/LambdaFunction/Code/Stage",
886
1165
  "constructInfo": {
887
1166
  "fqn": "aws-cdk-lib.AssetStaging",
888
- "version": "2.138.0"
1167
+ "version": "2.143.0"
889
1168
  }
890
1169
  },
891
1170
  "AssetBucket": {
@@ -893,13 +1172,13 @@
893
1172
  "path": "cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket/test-cloudfront-s3-cmk-encryption-key/LambdaFunction/Code/AssetBucket",
894
1173
  "constructInfo": {
895
1174
  "fqn": "aws-cdk-lib.aws_s3.BucketBase",
896
- "version": "2.138.0"
1175
+ "version": "2.143.0"
897
1176
  }
898
1177
  }
899
1178
  },
900
1179
  "constructInfo": {
901
1180
  "fqn": "aws-cdk-lib.aws_s3_assets.Asset",
902
- "version": "2.138.0"
1181
+ "version": "2.143.0"
903
1182
  }
904
1183
  },
905
1184
  "Resource": {
@@ -930,13 +1209,13 @@
930
1209
  },
931
1210
  "constructInfo": {
932
1211
  "fqn": "aws-cdk-lib.aws_lambda.CfnFunction",
933
- "version": "2.138.0"
1212
+ "version": "2.143.0"
934
1213
  }
935
1214
  }
936
1215
  },
937
1216
  "constructInfo": {
938
1217
  "fqn": "aws-cdk-lib.aws_lambda.Function",
939
- "version": "2.138.0"
1218
+ "version": "2.143.0"
940
1219
  }
941
1220
  },
942
1221
  "test-cloudfront-s3-cmk-encryption-keyResourceCmkPolicy": {
@@ -978,13 +1257,13 @@
978
1257
  },
979
1258
  "constructInfo": {
980
1259
  "fqn": "aws-cdk-lib.aws_iam.CfnPolicy",
981
- "version": "2.138.0"
1260
+ "version": "2.143.0"
982
1261
  }
983
1262
  }
984
1263
  },
985
1264
  "constructInfo": {
986
1265
  "fqn": "aws-cdk-lib.aws_iam.Policy",
987
- "version": "2.138.0"
1266
+ "version": "2.143.0"
988
1267
  }
989
1268
  },
990
1269
  "KmsKeyPolicyUpdateProvider": {
@@ -1004,7 +1283,7 @@
1004
1283
  "path": "cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket/test-cloudfront-s3-cmk-encryption-key/KmsKeyPolicyUpdateProvider/framework-onEvent/ServiceRole/ImportServiceRole",
1005
1284
  "constructInfo": {
1006
1285
  "fqn": "aws-cdk-lib.Resource",
1007
- "version": "2.138.0"
1286
+ "version": "2.143.0"
1008
1287
  }
1009
1288
  },
1010
1289
  "Resource": {
@@ -1043,7 +1322,7 @@
1043
1322
  },
1044
1323
  "constructInfo": {
1045
1324
  "fqn": "aws-cdk-lib.aws_iam.CfnRole",
1046
- "version": "2.138.0"
1325
+ "version": "2.143.0"
1047
1326
  }
1048
1327
  },
1049
1328
  "DefaultPolicy": {
@@ -1097,19 +1376,19 @@
1097
1376
  },
1098
1377
  "constructInfo": {
1099
1378
  "fqn": "aws-cdk-lib.aws_iam.CfnPolicy",
1100
- "version": "2.138.0"
1379
+ "version": "2.143.0"
1101
1380
  }
1102
1381
  }
1103
1382
  },
1104
1383
  "constructInfo": {
1105
1384
  "fqn": "aws-cdk-lib.aws_iam.Policy",
1106
- "version": "2.138.0"
1385
+ "version": "2.143.0"
1107
1386
  }
1108
1387
  }
1109
1388
  },
1110
1389
  "constructInfo": {
1111
1390
  "fqn": "aws-cdk-lib.aws_iam.Role",
1112
- "version": "2.138.0"
1391
+ "version": "2.143.0"
1113
1392
  }
1114
1393
  },
1115
1394
  "Code": {
@@ -1121,7 +1400,7 @@
1121
1400
  "path": "cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket/test-cloudfront-s3-cmk-encryption-key/KmsKeyPolicyUpdateProvider/framework-onEvent/Code/Stage",
1122
1401
  "constructInfo": {
1123
1402
  "fqn": "aws-cdk-lib.AssetStaging",
1124
- "version": "2.138.0"
1403
+ "version": "2.143.0"
1125
1404
  }
1126
1405
  },
1127
1406
  "AssetBucket": {
@@ -1129,13 +1408,13 @@
1129
1408
  "path": "cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket/test-cloudfront-s3-cmk-encryption-key/KmsKeyPolicyUpdateProvider/framework-onEvent/Code/AssetBucket",
1130
1409
  "constructInfo": {
1131
1410
  "fqn": "aws-cdk-lib.aws_s3.BucketBase",
1132
- "version": "2.138.0"
1411
+ "version": "2.143.0"
1133
1412
  }
1134
1413
  }
1135
1414
  },
1136
1415
  "constructInfo": {
1137
1416
  "fqn": "aws-cdk-lib.aws_s3_assets.Asset",
1138
- "version": "2.138.0"
1417
+ "version": "2.143.0"
1139
1418
  }
1140
1419
  },
1141
1420
  "Resource": {
@@ -1174,19 +1453,19 @@
1174
1453
  },
1175
1454
  "constructInfo": {
1176
1455
  "fqn": "aws-cdk-lib.aws_lambda.CfnFunction",
1177
- "version": "2.138.0"
1456
+ "version": "2.143.0"
1178
1457
  }
1179
1458
  }
1180
1459
  },
1181
1460
  "constructInfo": {
1182
1461
  "fqn": "aws-cdk-lib.aws_lambda.Function",
1183
- "version": "2.138.0"
1462
+ "version": "2.143.0"
1184
1463
  }
1185
1464
  }
1186
1465
  },
1187
1466
  "constructInfo": {
1188
1467
  "fqn": "aws-cdk-lib.custom_resources.Provider",
1189
- "version": "2.138.0"
1468
+ "version": "2.143.0"
1190
1469
  }
1191
1470
  },
1192
1471
  "KmsKeyPolicyUpdater": {
@@ -1198,19 +1477,19 @@
1198
1477
  "path": "cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket/test-cloudfront-s3-cmk-encryption-key/KmsKeyPolicyUpdater/Default",
1199
1478
  "constructInfo": {
1200
1479
  "fqn": "aws-cdk-lib.CfnResource",
1201
- "version": "2.138.0"
1480
+ "version": "2.143.0"
1202
1481
  }
1203
1482
  }
1204
1483
  },
1205
1484
  "constructInfo": {
1206
1485
  "fqn": "aws-cdk-lib.CustomResource",
1207
- "version": "2.138.0"
1486
+ "version": "2.143.0"
1208
1487
  }
1209
1488
  }
1210
1489
  },
1211
1490
  "constructInfo": {
1212
1491
  "fqn": "@aws-solutions-constructs/aws-cloudfront-s3.CloudFrontToS3",
1213
- "version": "2.56.0"
1492
+ "version": "2.58.1"
1214
1493
  }
1215
1494
  },
1216
1495
  "Integ": {
@@ -1238,7 +1517,7 @@
1238
1517
  "path": "cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket/Integ/DefaultTest/DeployAssert/BootstrapVersion",
1239
1518
  "constructInfo": {
1240
1519
  "fqn": "aws-cdk-lib.CfnParameter",
1241
- "version": "2.138.0"
1520
+ "version": "2.143.0"
1242
1521
  }
1243
1522
  },
1244
1523
  "CheckBootstrapVersion": {
@@ -1246,25 +1525,25 @@
1246
1525
  "path": "cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket/Integ/DefaultTest/DeployAssert/CheckBootstrapVersion",
1247
1526
  "constructInfo": {
1248
1527
  "fqn": "aws-cdk-lib.CfnRule",
1249
- "version": "2.138.0"
1528
+ "version": "2.143.0"
1250
1529
  }
1251
1530
  }
1252
1531
  },
1253
1532
  "constructInfo": {
1254
1533
  "fqn": "aws-cdk-lib.Stack",
1255
- "version": "2.138.0"
1534
+ "version": "2.143.0"
1256
1535
  }
1257
1536
  }
1258
1537
  },
1259
1538
  "constructInfo": {
1260
1539
  "fqn": "@aws-cdk/integ-tests-alpha.IntegTestCase",
1261
- "version": "2.138.0-alpha.0"
1540
+ "version": "2.143.0-alpha.0"
1262
1541
  }
1263
1542
  }
1264
1543
  },
1265
1544
  "constructInfo": {
1266
1545
  "fqn": "@aws-cdk/integ-tests-alpha.IntegTest",
1267
- "version": "2.138.0-alpha.0"
1546
+ "version": "2.143.0-alpha.0"
1268
1547
  }
1269
1548
  },
1270
1549
  "BootstrapVersion": {
@@ -1272,7 +1551,7 @@
1272
1551
  "path": "cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket/BootstrapVersion",
1273
1552
  "constructInfo": {
1274
1553
  "fqn": "aws-cdk-lib.CfnParameter",
1275
- "version": "2.138.0"
1554
+ "version": "2.143.0"
1276
1555
  }
1277
1556
  },
1278
1557
  "CheckBootstrapVersion": {
@@ -1280,13 +1559,13 @@
1280
1559
  "path": "cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket/CheckBootstrapVersion",
1281
1560
  "constructInfo": {
1282
1561
  "fqn": "aws-cdk-lib.CfnRule",
1283
- "version": "2.138.0"
1562
+ "version": "2.143.0"
1284
1563
  }
1285
1564
  }
1286
1565
  },
1287
1566
  "constructInfo": {
1288
1567
  "fqn": "aws-cdk-lib.Stack",
1289
- "version": "2.138.0"
1568
+ "version": "2.143.0"
1290
1569
  }
1291
1570
  },
1292
1571
  "Tree": {
@@ -1300,7 +1579,7 @@
1300
1579
  },
1301
1580
  "constructInfo": {
1302
1581
  "fqn": "aws-cdk-lib.App",
1303
- "version": "2.138.0"
1582
+ "version": "2.143.0"
1304
1583
  }
1305
1584
  }
1306
1585
  }