@aws-solutions-constructs/aws-cloudfront-s3 2.85.6 → 2.87.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 (91) hide show
  1. package/.jsii +83 -5
  2. package/lib/index.js +13 -2
  3. package/package.json +8 -8
  4. package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js +2 -2
  5. package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/cdk.out +1 -1
  6. package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.assets.json +7 -7
  7. package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.template.json +42 -145
  8. package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/cfts3bucketencryptedwithcmkprovidedasexistingbucketIntegDefaultTestDeployAssertF6031114.assets.json +2 -2
  9. package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/integ.json +2 -2
  10. package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/manifest.json +474 -9
  11. package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/tree.json +1 -1
  12. package/test/integ.cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js +2 -2
  13. package/test/integ.cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/cdk.out +1 -1
  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 +5 -5
  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 +37 -136
  16. package/test/integ.cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/cfts3bucketencryptedwithmanagedkeyprovidedasexistingbucketIntegDefaultTestDeployAssert03A82C16.assets.json +2 -2
  17. package/test/integ.cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/integ.json +2 -2
  18. package/test/integ.cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/manifest.json +472 -9
  19. package/test/integ.cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/tree.json +1 -1
  20. package/test/integ.cfts3-cmk-provided-as-bucket-prop.js +2 -1
  21. package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/cdk.out +1 -1
  22. package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/cfts3-cmk-provided-as-bucket-prop.assets.json +7 -7
  23. package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/cfts3-cmk-provided-as-bucket-prop.template.json +42 -145
  24. package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/cfts3cmkprovidedasbucketpropIntegDefaultTestDeployAssert38E63D55.assets.json +2 -2
  25. package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/integ.json +2 -2
  26. package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/manifest.json +474 -9
  27. package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/tree.json +1 -1
  28. package/test/integ.cfts3-custom-headers.js +2 -1
  29. package/test/integ.cfts3-custom-headers.js.snapshot/cdk.out +1 -1
  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 +37 -136
  32. package/test/integ.cfts3-custom-headers.js.snapshot/cfts3customheadersIntegDefaultTestDeployAssert6EEC9973.assets.json +2 -2
  33. package/test/integ.cfts3-custom-headers.js.snapshot/integ.json +2 -2
  34. package/test/integ.cfts3-custom-headers.js.snapshot/manifest.json +472 -9
  35. package/test/integ.cfts3-custom-headers.js.snapshot/tree.json +1 -1
  36. package/test/integ.cfts3-custom-originPath.js +2 -1
  37. package/test/integ.cfts3-custom-originPath.js.snapshot/cdk.out +1 -1
  38. package/test/integ.cfts3-custom-originPath.js.snapshot/cfts3-custom-originPath.assets.json +5 -5
  39. package/test/integ.cfts3-custom-originPath.js.snapshot/cfts3-custom-originPath.template.json +37 -136
  40. package/test/integ.cfts3-custom-originPath.js.snapshot/cfts3customoriginPathIntegDefaultTestDeployAssert61F499B2.assets.json +2 -2
  41. package/test/integ.cfts3-custom-originPath.js.snapshot/integ.json +2 -2
  42. package/test/integ.cfts3-custom-originPath.js.snapshot/manifest.json +472 -9
  43. package/test/integ.cfts3-custom-originPath.js.snapshot/tree.json +1 -1
  44. package/test/integ.cfts3-customLoggingBuckets.js +2 -1
  45. package/test/integ.cfts3-customLoggingBuckets.js.snapshot/cdk.out +1 -1
  46. package/test/integ.cfts3-customLoggingBuckets.js.snapshot/cfts3-customLoggingBuckets.assets.json +5 -5
  47. package/test/integ.cfts3-customLoggingBuckets.js.snapshot/cfts3-customLoggingBuckets.template.json +37 -136
  48. package/test/integ.cfts3-customLoggingBuckets.js.snapshot/cfts3customLoggingBucketsIntegDefaultTestDeployAssert4D171F9F.assets.json +2 -2
  49. package/test/integ.cfts3-customLoggingBuckets.js.snapshot/integ.json +2 -2
  50. package/test/integ.cfts3-customLoggingBuckets.js.snapshot/manifest.json +472 -9
  51. package/test/integ.cfts3-customLoggingBuckets.js.snapshot/tree.json +1 -1
  52. package/test/integ.cfts3-existing-bucket.js +2 -2
  53. package/test/integ.cfts3-existing-bucket.js.snapshot/cdk.out +1 -1
  54. package/test/integ.cfts3-existing-bucket.js.snapshot/cfts3-existing-bucket.assets.json +5 -5
  55. package/test/integ.cfts3-existing-bucket.js.snapshot/cfts3-existing-bucket.template.json +37 -136
  56. package/test/integ.cfts3-existing-bucket.js.snapshot/cfts3existingbucketIntegDefaultTestDeployAssertA6D4EB49.assets.json +2 -2
  57. package/test/integ.cfts3-existing-bucket.js.snapshot/integ.json +2 -2
  58. package/test/integ.cfts3-existing-bucket.js.snapshot/manifest.json +472 -9
  59. package/test/integ.cfts3-existing-bucket.js.snapshot/tree.json +1 -1
  60. package/test/integ.cfts3-no-arguments.js +2 -1
  61. package/test/integ.cfts3-no-arguments.js.snapshot/cdk.out +1 -1
  62. package/test/integ.cfts3-no-arguments.js.snapshot/cfts3-no-arguments.assets.json +5 -5
  63. package/test/integ.cfts3-no-arguments.js.snapshot/cfts3-no-arguments.template.json +37 -136
  64. package/test/integ.cfts3-no-arguments.js.snapshot/cfts3noargumentsIntegDefaultTestDeployAssertBA5AFA25.assets.json +2 -2
  65. package/test/integ.cfts3-no-arguments.js.snapshot/integ.json +2 -2
  66. package/test/integ.cfts3-no-arguments.js.snapshot/manifest.json +472 -9
  67. package/test/integ.cfts3-no-arguments.js.snapshot/tree.json +1 -1
  68. package/test/integ.cfts3-no-cloudfront-s3-access-logs.js +2 -1
  69. package/test/integ.cfts3-no-cloudfront-s3-access-logs.js.snapshot/cdk.out +1 -1
  70. package/test/integ.cfts3-no-cloudfront-s3-access-logs.js.snapshot/cfts3-no-cloudfront-s3-access-logs.assets.json +5 -5
  71. package/test/integ.cfts3-no-cloudfront-s3-access-logs.js.snapshot/cfts3-no-cloudfront-s3-access-logs.template.json +37 -136
  72. package/test/integ.cfts3-no-cloudfront-s3-access-logs.js.snapshot/cfts3nocloudfronts3accesslogsIntegDefaultTestDeployAssertAD28C87A.assets.json +2 -2
  73. package/test/integ.cfts3-no-cloudfront-s3-access-logs.js.snapshot/integ.json +2 -2
  74. package/test/integ.cfts3-no-cloudfront-s3-access-logs.js.snapshot/manifest.json +472 -9
  75. package/test/integ.cfts3-no-cloudfront-s3-access-logs.js.snapshot/tree.json +1 -1
  76. package/test/integ.cfts3-no-logging.js +2 -1
  77. package/test/integ.cfts3-no-logging.js.snapshot/cdk.out +1 -1
  78. package/test/integ.cfts3-no-logging.js.snapshot/cfts3-no-logging.assets.json +5 -5
  79. package/test/integ.cfts3-no-logging.js.snapshot/cfts3-no-logging.template.json +37 -136
  80. package/test/integ.cfts3-no-logging.js.snapshot/cfts3nologgingIntegDefaultTestDeployAssert18393DDB.assets.json +2 -2
  81. package/test/integ.cfts3-no-logging.js.snapshot/integ.json +2 -2
  82. package/test/integ.cfts3-no-logging.js.snapshot/manifest.json +472 -9
  83. package/test/integ.cfts3-no-logging.js.snapshot/tree.json +1 -1
  84. package/test/integ.cfts3-no-security-headers.js +2 -1
  85. package/test/integ.cfts3-no-security-headers.js.snapshot/cdk.out +1 -1
  86. package/test/integ.cfts3-no-security-headers.js.snapshot/cfts3-no-security-headers.assets.json +5 -5
  87. package/test/integ.cfts3-no-security-headers.js.snapshot/cfts3-no-security-headers.template.json +37 -136
  88. package/test/integ.cfts3-no-security-headers.js.snapshot/cfts3nosecurityheadersIntegDefaultTestDeployAssert38FE05BE.assets.json +2 -2
  89. package/test/integ.cfts3-no-security-headers.js.snapshot/integ.json +2 -2
  90. package/test/integ.cfts3-no-security-headers.js.snapshot/manifest.json +472 -9
  91. package/test/integ.cfts3-no-security-headers.js.snapshot/tree.json +1 -1
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "41.0.0",
2
+ "version": "45.0.0",
3
3
  "files": {
4
4
  "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6": {
5
5
  "displayName": "cfts3-no-logging/Custom::S3AutoDeleteObjectsCustomResourceProvider Code",
@@ -8,23 +8,23 @@
8
8
  "packaging": "zip"
9
9
  },
10
10
  "destinations": {
11
- "current_account-current_region": {
11
+ "current_account-current_region-e31788a2": {
12
12
  "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
13
13
  "objectKey": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip",
14
14
  "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
15
15
  }
16
16
  }
17
17
  },
18
- "0d09fd29a41c7d208e8a39a898b5adf0f3d6b373137562be601de366b9abf0b0": {
18
+ "7dc181626728b13094a10252b87a4a75425a362d170c3b9aacf4dde21cd370e8": {
19
19
  "displayName": "cfts3-no-logging Template",
20
20
  "source": {
21
21
  "path": "cfts3-no-logging.template.json",
22
22
  "packaging": "file"
23
23
  },
24
24
  "destinations": {
25
- "current_account-current_region": {
25
+ "current_account-current_region-0705a6ee": {
26
26
  "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
27
- "objectKey": "0d09fd29a41c7d208e8a39a898b5adf0f3d6b373137562be601de366b9abf0b0.json",
27
+ "objectKey": "7dc181626728b13094a10252b87a4a75425a362d170c3b9aacf4dde21cd370e8.json",
28
28
  "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
29
29
  }
30
30
  }
@@ -179,6 +179,42 @@
179
179
  ]
180
180
  ]
181
181
  }
182
+ },
183
+ {
184
+ "Action": "s3:ListBucket",
185
+ "Condition": {
186
+ "StringEquals": {
187
+ "AWS:SourceArn": {
188
+ "Fn::Join": [
189
+ "",
190
+ [
191
+ "arn:",
192
+ {
193
+ "Ref": "AWS::Partition"
194
+ },
195
+ ":cloudfront::",
196
+ {
197
+ "Ref": "AWS::AccountId"
198
+ },
199
+ ":distribution/",
200
+ {
201
+ "Ref": "testcloudfronts3CloudFrontDistribution0565DEE8"
202
+ }
203
+ ]
204
+ ]
205
+ }
206
+ }
207
+ },
208
+ "Effect": "Allow",
209
+ "Principal": {
210
+ "Service": "cloudfront.amazonaws.com"
211
+ },
212
+ "Resource": {
213
+ "Fn::GetAtt": [
214
+ "testcloudfronts3S3BucketE0C5F76E",
215
+ "Arn"
216
+ ]
217
+ }
182
218
  }
183
219
  ],
184
220
  "Version": "2012-10-17"
@@ -364,15 +400,7 @@
364
400
  "Arn"
365
401
  ]
366
402
  },
367
- "Runtime": {
368
- "Fn::FindInMap": [
369
- "LatestNodeRuntimeMap",
370
- {
371
- "Ref": "AWS::Region"
372
- },
373
- "value"
374
- ]
375
- },
403
+ "Runtime": "nodejs22.x",
376
404
  "Description": {
377
405
  "Fn::Join": [
378
406
  "",
@@ -409,133 +437,6 @@
409
437
  }
410
438
  }
411
439
  },
412
- "Mappings": {
413
- "LatestNodeRuntimeMap": {
414
- "af-south-1": {
415
- "value": "nodejs20.x"
416
- },
417
- "ap-east-1": {
418
- "value": "nodejs20.x"
419
- },
420
- "ap-northeast-1": {
421
- "value": "nodejs20.x"
422
- },
423
- "ap-northeast-2": {
424
- "value": "nodejs20.x"
425
- },
426
- "ap-northeast-3": {
427
- "value": "nodejs20.x"
428
- },
429
- "ap-south-1": {
430
- "value": "nodejs20.x"
431
- },
432
- "ap-south-2": {
433
- "value": "nodejs20.x"
434
- },
435
- "ap-southeast-1": {
436
- "value": "nodejs20.x"
437
- },
438
- "ap-southeast-2": {
439
- "value": "nodejs20.x"
440
- },
441
- "ap-southeast-3": {
442
- "value": "nodejs20.x"
443
- },
444
- "ap-southeast-4": {
445
- "value": "nodejs20.x"
446
- },
447
- "ap-southeast-5": {
448
- "value": "nodejs20.x"
449
- },
450
- "ap-southeast-7": {
451
- "value": "nodejs20.x"
452
- },
453
- "ca-central-1": {
454
- "value": "nodejs20.x"
455
- },
456
- "ca-west-1": {
457
- "value": "nodejs20.x"
458
- },
459
- "cn-north-1": {
460
- "value": "nodejs20.x"
461
- },
462
- "cn-northwest-1": {
463
- "value": "nodejs20.x"
464
- },
465
- "eu-central-1": {
466
- "value": "nodejs20.x"
467
- },
468
- "eu-central-2": {
469
- "value": "nodejs20.x"
470
- },
471
- "eu-isoe-west-1": {
472
- "value": "nodejs18.x"
473
- },
474
- "eu-north-1": {
475
- "value": "nodejs20.x"
476
- },
477
- "eu-south-1": {
478
- "value": "nodejs20.x"
479
- },
480
- "eu-south-2": {
481
- "value": "nodejs20.x"
482
- },
483
- "eu-west-1": {
484
- "value": "nodejs20.x"
485
- },
486
- "eu-west-2": {
487
- "value": "nodejs20.x"
488
- },
489
- "eu-west-3": {
490
- "value": "nodejs20.x"
491
- },
492
- "il-central-1": {
493
- "value": "nodejs20.x"
494
- },
495
- "me-central-1": {
496
- "value": "nodejs20.x"
497
- },
498
- "me-south-1": {
499
- "value": "nodejs20.x"
500
- },
501
- "mx-central-1": {
502
- "value": "nodejs20.x"
503
- },
504
- "sa-east-1": {
505
- "value": "nodejs20.x"
506
- },
507
- "us-east-1": {
508
- "value": "nodejs20.x"
509
- },
510
- "us-east-2": {
511
- "value": "nodejs20.x"
512
- },
513
- "us-gov-east-1": {
514
- "value": "nodejs20.x"
515
- },
516
- "us-gov-west-1": {
517
- "value": "nodejs20.x"
518
- },
519
- "us-iso-east-1": {
520
- "value": "nodejs18.x"
521
- },
522
- "us-iso-west-1": {
523
- "value": "nodejs18.x"
524
- },
525
- "us-isob-east-1": {
526
- "value": "nodejs18.x"
527
- },
528
- "us-isob-west-1": {
529
- "value": "nodejs18.x"
530
- },
531
- "us-west-1": {
532
- "value": "nodejs20.x"
533
- },
534
- "us-west-2": {
535
- "value": "nodejs20.x"
536
- }
537
- }
538
- },
539
440
  "Parameters": {
540
441
  "BootstrapVersion": {
541
442
  "Type": "AWS::SSM::Parameter::Value<String>",
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "41.0.0",
2
+ "version": "45.0.0",
3
3
  "files": {
4
4
  "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22": {
5
5
  "displayName": "cfts3nologgingIntegDefaultTestDeployAssert18393DDB Template",
@@ -8,7 +8,7 @@
8
8
  "packaging": "file"
9
9
  },
10
10
  "destinations": {
11
- "current_account-current_region": {
11
+ "current_account-current_region-d8d86b35": {
12
12
  "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
13
13
  "objectKey": "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22.json",
14
14
  "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "41.0.0",
2
+ "version": "45.0.0",
3
3
  "testCases": {
4
4
  "cfts3-no-logging/Integ/DefaultTest": {
5
5
  "stacks": [
@@ -9,5 +9,5 @@
9
9
  "assertionStackName": "cfts3nologgingIntegDefaultTestDeployAssert18393DDB"
10
10
  }
11
11
  },
12
- "minimumCliVersion": "2.1005.0"
12
+ "minimumCliVersion": "2.1020.2"
13
13
  }