@aws-solutions-constructs/aws-cloudfront-s3 2.59.0 → 2.61.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 (63) hide show
  1. package/.jsii +46 -9
  2. package/lib/index.js +1 -1
  3. package/package.json +8 -8
  4. package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6/index.js +1 -0
  5. package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.assets.json +5 -5
  6. package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.template.json +134 -4
  7. package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/manifest.json +7 -1
  8. package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/tree.json +91 -70
  9. package/test/integ.cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6/index.js +1 -0
  10. 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
  11. 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 +119 -2
  12. package/test/integ.cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/manifest.json +7 -1
  13. package/test/integ.cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/tree.json +49 -41
  14. package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6/index.js +1 -0
  15. package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/cfts3-cmk-provided-as-bucket-prop.assets.json +5 -5
  16. package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/cfts3-cmk-provided-as-bucket-prop.template.json +134 -4
  17. package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/manifest.json +7 -1
  18. package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/tree.json +89 -68
  19. package/test/integ.cfts3-custom-headers.js.snapshot/asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6/index.js +1 -0
  20. package/test/integ.cfts3-custom-headers.js.snapshot/cfts3-custom-headers.assets.json +5 -5
  21. package/test/integ.cfts3-custom-headers.js.snapshot/cfts3-custom-headers.template.json +119 -2
  22. package/test/integ.cfts3-custom-headers.js.snapshot/manifest.json +7 -1
  23. package/test/integ.cfts3-custom-headers.js.snapshot/tree.json +53 -45
  24. package/test/integ.cfts3-custom-originPath.js.snapshot/asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6/index.js +1 -0
  25. package/test/integ.cfts3-custom-originPath.js.snapshot/cfts3-custom-originPath.assets.json +5 -5
  26. package/test/integ.cfts3-custom-originPath.js.snapshot/cfts3-custom-originPath.template.json +119 -2
  27. package/test/integ.cfts3-custom-originPath.js.snapshot/manifest.json +7 -1
  28. package/test/integ.cfts3-custom-originPath.js.snapshot/tree.json +51 -43
  29. package/test/integ.cfts3-customLoggingBuckets.js.snapshot/asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6/index.js +1 -0
  30. package/test/integ.cfts3-customLoggingBuckets.js.snapshot/cfts3-customLoggingBuckets.assets.json +5 -5
  31. package/test/integ.cfts3-customLoggingBuckets.js.snapshot/cfts3-customLoggingBuckets.template.json +119 -2
  32. package/test/integ.cfts3-customLoggingBuckets.js.snapshot/manifest.json +7 -1
  33. package/test/integ.cfts3-customLoggingBuckets.js.snapshot/tree.json +51 -43
  34. package/test/integ.cfts3-existing-bucket.js.snapshot/asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6/index.js +1 -0
  35. package/test/integ.cfts3-existing-bucket.js.snapshot/cfts3-existing-bucket.assets.json +5 -5
  36. package/test/integ.cfts3-existing-bucket.js.snapshot/cfts3-existing-bucket.template.json +119 -2
  37. package/test/integ.cfts3-existing-bucket.js.snapshot/manifest.json +7 -1
  38. package/test/integ.cfts3-existing-bucket.js.snapshot/tree.json +55 -47
  39. package/test/integ.cfts3-no-arguments.js.snapshot/asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6/index.js +1 -0
  40. package/test/integ.cfts3-no-arguments.js.snapshot/cfts3-no-arguments.assets.json +5 -5
  41. package/test/integ.cfts3-no-arguments.js.snapshot/cfts3-no-arguments.template.json +119 -2
  42. package/test/integ.cfts3-no-arguments.js.snapshot/manifest.json +7 -1
  43. package/test/integ.cfts3-no-arguments.js.snapshot/tree.json +51 -43
  44. package/test/integ.cfts3-no-logging.js.snapshot/asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6/index.js +1 -0
  45. package/test/integ.cfts3-no-logging.js.snapshot/cfts3-no-logging.assets.json +5 -5
  46. package/test/integ.cfts3-no-logging.js.snapshot/cfts3-no-logging.template.json +119 -2
  47. package/test/integ.cfts3-no-logging.js.snapshot/manifest.json +7 -1
  48. package/test/integ.cfts3-no-logging.js.snapshot/tree.json +33 -25
  49. package/test/integ.cfts3-no-security-headers.js.snapshot/asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6/index.js +1 -0
  50. package/test/integ.cfts3-no-security-headers.js.snapshot/cfts3-no-security-headers.assets.json +5 -5
  51. package/test/integ.cfts3-no-security-headers.js.snapshot/cfts3-no-security-headers.template.json +119 -2
  52. package/test/integ.cfts3-no-security-headers.js.snapshot/manifest.json +7 -1
  53. package/test/integ.cfts3-no-security-headers.js.snapshot/tree.json +49 -41
  54. package/test/integ.cfts3-bucket-encrypted-with-cmk-provided-as-existingbucket.js.snapshot/asset.2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4/index.js +0 -1
  55. package/test/integ.cfts3-bucket-encrypted-with-managed-key-provided-as-existingbucket.js.snapshot/asset.2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4/index.js +0 -1
  56. package/test/integ.cfts3-cmk-provided-as-bucket-prop.js.snapshot/asset.2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4/index.js +0 -1
  57. package/test/integ.cfts3-custom-headers.js.snapshot/asset.2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4/index.js +0 -1
  58. package/test/integ.cfts3-custom-originPath.js.snapshot/asset.2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4/index.js +0 -1
  59. package/test/integ.cfts3-customLoggingBuckets.js.snapshot/asset.2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4/index.js +0 -1
  60. package/test/integ.cfts3-existing-bucket.js.snapshot/asset.2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4/index.js +0 -1
  61. package/test/integ.cfts3-no-arguments.js.snapshot/asset.2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4/index.js +0 -1
  62. package/test/integ.cfts3-no-logging.js.snapshot/asset.2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4/index.js +0 -1
  63. package/test/integ.cfts3-no-security-headers.js.snapshot/asset.2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4/index.js +0 -1
@@ -889,7 +889,7 @@
889
889
  "S3Bucket": {
890
890
  "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
891
891
  },
892
- "S3Key": "2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4.zip"
892
+ "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip"
893
893
  },
894
894
  "Timeout": 900,
895
895
  "MemorySize": 128,
@@ -900,7 +900,15 @@
900
900
  "Arn"
901
901
  ]
902
902
  },
903
- "Runtime": "nodejs18.x",
903
+ "Runtime": {
904
+ "Fn::FindInMap": [
905
+ "LatestNodeRuntimeMap",
906
+ {
907
+ "Ref": "AWS::Region"
908
+ },
909
+ "value"
910
+ ]
911
+ },
904
912
  "Description": {
905
913
  "Fn::Join": [
906
914
  "",
@@ -937,6 +945,115 @@
937
945
  }
938
946
  }
939
947
  },
948
+ "Mappings": {
949
+ "LatestNodeRuntimeMap": {
950
+ "af-south-1": {
951
+ "value": "nodejs20.x"
952
+ },
953
+ "ap-east-1": {
954
+ "value": "nodejs20.x"
955
+ },
956
+ "ap-northeast-1": {
957
+ "value": "nodejs20.x"
958
+ },
959
+ "ap-northeast-2": {
960
+ "value": "nodejs20.x"
961
+ },
962
+ "ap-northeast-3": {
963
+ "value": "nodejs20.x"
964
+ },
965
+ "ap-south-1": {
966
+ "value": "nodejs20.x"
967
+ },
968
+ "ap-south-2": {
969
+ "value": "nodejs20.x"
970
+ },
971
+ "ap-southeast-1": {
972
+ "value": "nodejs20.x"
973
+ },
974
+ "ap-southeast-2": {
975
+ "value": "nodejs20.x"
976
+ },
977
+ "ap-southeast-3": {
978
+ "value": "nodejs20.x"
979
+ },
980
+ "ap-southeast-4": {
981
+ "value": "nodejs20.x"
982
+ },
983
+ "ca-central-1": {
984
+ "value": "nodejs20.x"
985
+ },
986
+ "cn-north-1": {
987
+ "value": "nodejs18.x"
988
+ },
989
+ "cn-northwest-1": {
990
+ "value": "nodejs18.x"
991
+ },
992
+ "eu-central-1": {
993
+ "value": "nodejs20.x"
994
+ },
995
+ "eu-central-2": {
996
+ "value": "nodejs20.x"
997
+ },
998
+ "eu-north-1": {
999
+ "value": "nodejs20.x"
1000
+ },
1001
+ "eu-south-1": {
1002
+ "value": "nodejs20.x"
1003
+ },
1004
+ "eu-south-2": {
1005
+ "value": "nodejs20.x"
1006
+ },
1007
+ "eu-west-1": {
1008
+ "value": "nodejs20.x"
1009
+ },
1010
+ "eu-west-2": {
1011
+ "value": "nodejs20.x"
1012
+ },
1013
+ "eu-west-3": {
1014
+ "value": "nodejs20.x"
1015
+ },
1016
+ "il-central-1": {
1017
+ "value": "nodejs20.x"
1018
+ },
1019
+ "me-central-1": {
1020
+ "value": "nodejs20.x"
1021
+ },
1022
+ "me-south-1": {
1023
+ "value": "nodejs20.x"
1024
+ },
1025
+ "sa-east-1": {
1026
+ "value": "nodejs20.x"
1027
+ },
1028
+ "us-east-1": {
1029
+ "value": "nodejs20.x"
1030
+ },
1031
+ "us-east-2": {
1032
+ "value": "nodejs20.x"
1033
+ },
1034
+ "us-gov-east-1": {
1035
+ "value": "nodejs18.x"
1036
+ },
1037
+ "us-gov-west-1": {
1038
+ "value": "nodejs18.x"
1039
+ },
1040
+ "us-iso-east-1": {
1041
+ "value": "nodejs18.x"
1042
+ },
1043
+ "us-iso-west-1": {
1044
+ "value": "nodejs18.x"
1045
+ },
1046
+ "us-isob-east-1": {
1047
+ "value": "nodejs18.x"
1048
+ },
1049
+ "us-west-1": {
1050
+ "value": "nodejs20.x"
1051
+ },
1052
+ "us-west-2": {
1053
+ "value": "nodejs20.x"
1054
+ }
1055
+ }
1056
+ },
940
1057
  "Parameters": {
941
1058
  "BootstrapVersion": {
942
1059
  "Type": "AWS::SSM::Parameter::Value<String>",
@@ -66,7 +66,7 @@
66
66
  "validateOnSynth": false,
67
67
  "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}",
68
68
  "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}",
69
- "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e1d604a1ce62c31db7d1aeac06dd965b571030bfdff170852b841196a3ba5bdd.json",
69
+ "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c7f8abe83848738ecc477035de709f04301f6515f764df535e91408c4f04e7d5.json",
70
70
  "requiresBootstrapStackVersion": 6,
71
71
  "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version",
72
72
  "additionalDependencies": [
@@ -178,6 +178,12 @@
178
178
  "data": "testcloudfronts3CloudFrontDistribution0565DEE8"
179
179
  }
180
180
  ],
181
+ "/cfts3-custom-headers/LatestNodeRuntimeMap": [
182
+ {
183
+ "type": "aws:cdk:logicalId",
184
+ "data": "LatestNodeRuntimeMap"
185
+ }
186
+ ],
181
187
  "/cfts3-custom-headers/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role": [
182
188
  {
183
189
  "type": "aws:cdk:logicalId",
@@ -49,13 +49,13 @@
49
49
  },
50
50
  "constructInfo": {
51
51
  "fqn": "aws-cdk-lib.aws_cloudfront.CfnFunction",
52
- "version": "2.143.0"
52
+ "version": "2.147.3"
53
53
  }
54
54
  }
55
55
  },
56
56
  "constructInfo": {
57
57
  "fqn": "aws-cdk-lib.aws_cloudfront.Function",
58
- "version": "2.143.0"
58
+ "version": "2.147.3"
59
59
  }
60
60
  },
61
61
  "test-cloudfront-s3": {
@@ -100,7 +100,7 @@
100
100
  },
101
101
  "constructInfo": {
102
102
  "fqn": "aws-cdk-lib.aws_s3.CfnBucket",
103
- "version": "2.143.0"
103
+ "version": "2.147.3"
104
104
  }
105
105
  },
106
106
  "Policy": {
@@ -234,13 +234,13 @@
234
234
  },
235
235
  "constructInfo": {
236
236
  "fqn": "aws-cdk-lib.aws_s3.CfnBucketPolicy",
237
- "version": "2.143.0"
237
+ "version": "2.147.3"
238
238
  }
239
239
  }
240
240
  },
241
241
  "constructInfo": {
242
242
  "fqn": "aws-cdk-lib.aws_s3.BucketPolicy",
243
- "version": "2.143.0"
243
+ "version": "2.147.3"
244
244
  }
245
245
  },
246
246
  "AutoDeleteObjectsCustomResource": {
@@ -252,19 +252,19 @@
252
252
  "path": "cfts3-custom-headers/test-cloudfront-s3/S3LoggingBucket/AutoDeleteObjectsCustomResource/Default",
253
253
  "constructInfo": {
254
254
  "fqn": "aws-cdk-lib.CfnResource",
255
- "version": "2.143.0"
255
+ "version": "2.147.3"
256
256
  }
257
257
  }
258
258
  },
259
259
  "constructInfo": {
260
260
  "fqn": "aws-cdk-lib.CustomResource",
261
- "version": "2.143.0"
261
+ "version": "2.147.3"
262
262
  }
263
263
  }
264
264
  },
265
265
  "constructInfo": {
266
266
  "fqn": "aws-cdk-lib.aws_s3.Bucket",
267
- "version": "2.143.0"
267
+ "version": "2.147.3"
268
268
  }
269
269
  },
270
270
  "S3Bucket": {
@@ -323,7 +323,7 @@
323
323
  },
324
324
  "constructInfo": {
325
325
  "fqn": "aws-cdk-lib.aws_s3.CfnBucket",
326
- "version": "2.143.0"
326
+ "version": "2.147.3"
327
327
  }
328
328
  },
329
329
  "Policy": {
@@ -461,13 +461,13 @@
461
461
  },
462
462
  "constructInfo": {
463
463
  "fqn": "aws-cdk-lib.aws_s3.CfnBucketPolicy",
464
- "version": "2.143.0"
464
+ "version": "2.147.3"
465
465
  }
466
466
  }
467
467
  },
468
468
  "constructInfo": {
469
469
  "fqn": "aws-cdk-lib.aws_s3.BucketPolicy",
470
- "version": "2.143.0"
470
+ "version": "2.147.3"
471
471
  }
472
472
  },
473
473
  "AutoDeleteObjectsCustomResource": {
@@ -479,19 +479,19 @@
479
479
  "path": "cfts3-custom-headers/test-cloudfront-s3/S3Bucket/AutoDeleteObjectsCustomResource/Default",
480
480
  "constructInfo": {
481
481
  "fqn": "aws-cdk-lib.CfnResource",
482
- "version": "2.143.0"
482
+ "version": "2.147.3"
483
483
  }
484
484
  }
485
485
  },
486
486
  "constructInfo": {
487
487
  "fqn": "aws-cdk-lib.CustomResource",
488
- "version": "2.143.0"
488
+ "version": "2.147.3"
489
489
  }
490
490
  }
491
491
  },
492
492
  "constructInfo": {
493
493
  "fqn": "aws-cdk-lib.aws_s3.Bucket",
494
- "version": "2.143.0"
494
+ "version": "2.147.3"
495
495
  }
496
496
  },
497
497
  "SetHttpSecurityHeaders": {
@@ -515,13 +515,13 @@
515
515
  },
516
516
  "constructInfo": {
517
517
  "fqn": "aws-cdk-lib.aws_cloudfront.CfnFunction",
518
- "version": "2.143.0"
518
+ "version": "2.147.3"
519
519
  }
520
520
  }
521
521
  },
522
522
  "constructInfo": {
523
523
  "fqn": "aws-cdk-lib.aws_cloudfront.Function",
524
- "version": "2.143.0"
524
+ "version": "2.147.3"
525
525
  }
526
526
  },
527
527
  "CloudfrontLoggingBucketAccessLog": {
@@ -562,7 +562,7 @@
562
562
  },
563
563
  "constructInfo": {
564
564
  "fqn": "aws-cdk-lib.aws_s3.CfnBucket",
565
- "version": "2.143.0"
565
+ "version": "2.147.3"
566
566
  }
567
567
  },
568
568
  "Policy": {
@@ -696,13 +696,13 @@
696
696
  },
697
697
  "constructInfo": {
698
698
  "fqn": "aws-cdk-lib.aws_s3.CfnBucketPolicy",
699
- "version": "2.143.0"
699
+ "version": "2.147.3"
700
700
  }
701
701
  }
702
702
  },
703
703
  "constructInfo": {
704
704
  "fqn": "aws-cdk-lib.aws_s3.BucketPolicy",
705
- "version": "2.143.0"
705
+ "version": "2.147.3"
706
706
  }
707
707
  },
708
708
  "AutoDeleteObjectsCustomResource": {
@@ -714,19 +714,19 @@
714
714
  "path": "cfts3-custom-headers/test-cloudfront-s3/CloudfrontLoggingBucketAccessLog/AutoDeleteObjectsCustomResource/Default",
715
715
  "constructInfo": {
716
716
  "fqn": "aws-cdk-lib.CfnResource",
717
- "version": "2.143.0"
717
+ "version": "2.147.3"
718
718
  }
719
719
  }
720
720
  },
721
721
  "constructInfo": {
722
722
  "fqn": "aws-cdk-lib.CustomResource",
723
- "version": "2.143.0"
723
+ "version": "2.147.3"
724
724
  }
725
725
  }
726
726
  },
727
727
  "constructInfo": {
728
728
  "fqn": "aws-cdk-lib.aws_s3.Bucket",
729
- "version": "2.143.0"
729
+ "version": "2.147.3"
730
730
  }
731
731
  },
732
732
  "CloudfrontLoggingBucket": {
@@ -779,7 +779,7 @@
779
779
  },
780
780
  "constructInfo": {
781
781
  "fqn": "aws-cdk-lib.aws_s3.CfnBucket",
782
- "version": "2.143.0"
782
+ "version": "2.147.3"
783
783
  }
784
784
  },
785
785
  "Policy": {
@@ -877,13 +877,13 @@
877
877
  },
878
878
  "constructInfo": {
879
879
  "fqn": "aws-cdk-lib.aws_s3.CfnBucketPolicy",
880
- "version": "2.143.0"
880
+ "version": "2.147.3"
881
881
  }
882
882
  }
883
883
  },
884
884
  "constructInfo": {
885
885
  "fqn": "aws-cdk-lib.aws_s3.BucketPolicy",
886
- "version": "2.143.0"
886
+ "version": "2.147.3"
887
887
  }
888
888
  },
889
889
  "AutoDeleteObjectsCustomResource": {
@@ -895,19 +895,19 @@
895
895
  "path": "cfts3-custom-headers/test-cloudfront-s3/CloudfrontLoggingBucket/AutoDeleteObjectsCustomResource/Default",
896
896
  "constructInfo": {
897
897
  "fqn": "aws-cdk-lib.CfnResource",
898
- "version": "2.143.0"
898
+ "version": "2.147.3"
899
899
  }
900
900
  }
901
901
  },
902
902
  "constructInfo": {
903
903
  "fqn": "aws-cdk-lib.CustomResource",
904
- "version": "2.143.0"
904
+ "version": "2.147.3"
905
905
  }
906
906
  }
907
907
  },
908
908
  "constructInfo": {
909
909
  "fqn": "aws-cdk-lib.aws_s3.Bucket",
910
- "version": "2.143.0"
910
+ "version": "2.147.3"
911
911
  }
912
912
  },
913
913
  "CloudFrontOac": {
@@ -947,7 +947,7 @@
947
947
  },
948
948
  "constructInfo": {
949
949
  "fqn": "aws-cdk-lib.aws_cloudfront.CfnOriginAccessControl",
950
- "version": "2.143.0"
950
+ "version": "2.147.3"
951
951
  }
952
952
  },
953
953
  "CloudFrontDistribution": {
@@ -1018,19 +1018,27 @@
1018
1018
  },
1019
1019
  "constructInfo": {
1020
1020
  "fqn": "aws-cdk-lib.aws_cloudfront.CfnDistribution",
1021
- "version": "2.143.0"
1021
+ "version": "2.147.3"
1022
1022
  }
1023
1023
  }
1024
1024
  },
1025
1025
  "constructInfo": {
1026
1026
  "fqn": "aws-cdk-lib.aws_cloudfront.Distribution",
1027
- "version": "2.143.0"
1027
+ "version": "2.147.3"
1028
1028
  }
1029
1029
  }
1030
1030
  },
1031
1031
  "constructInfo": {
1032
1032
  "fqn": "@aws-solutions-constructs/aws-cloudfront-s3.CloudFrontToS3",
1033
- "version": "2.58.1"
1033
+ "version": "2.60.0"
1034
+ }
1035
+ },
1036
+ "LatestNodeRuntimeMap": {
1037
+ "id": "LatestNodeRuntimeMap",
1038
+ "path": "cfts3-custom-headers/LatestNodeRuntimeMap",
1039
+ "constructInfo": {
1040
+ "fqn": "aws-cdk-lib.CfnMapping",
1041
+ "version": "2.147.3"
1034
1042
  }
1035
1043
  },
1036
1044
  "Custom::S3AutoDeleteObjectsCustomResourceProvider": {
@@ -1042,7 +1050,7 @@
1042
1050
  "path": "cfts3-custom-headers/Custom::S3AutoDeleteObjectsCustomResourceProvider/Staging",
1043
1051
  "constructInfo": {
1044
1052
  "fqn": "aws-cdk-lib.AssetStaging",
1045
- "version": "2.143.0"
1053
+ "version": "2.147.3"
1046
1054
  }
1047
1055
  },
1048
1056
  "Role": {
@@ -1050,7 +1058,7 @@
1050
1058
  "path": "cfts3-custom-headers/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role",
1051
1059
  "constructInfo": {
1052
1060
  "fqn": "aws-cdk-lib.CfnResource",
1053
- "version": "2.143.0"
1061
+ "version": "2.147.3"
1054
1062
  }
1055
1063
  },
1056
1064
  "Handler": {
@@ -1058,13 +1066,13 @@
1058
1066
  "path": "cfts3-custom-headers/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler",
1059
1067
  "constructInfo": {
1060
1068
  "fqn": "aws-cdk-lib.CfnResource",
1061
- "version": "2.143.0"
1069
+ "version": "2.147.3"
1062
1070
  }
1063
1071
  }
1064
1072
  },
1065
1073
  "constructInfo": {
1066
1074
  "fqn": "aws-cdk-lib.CustomResourceProviderBase",
1067
- "version": "2.143.0"
1075
+ "version": "2.147.3"
1068
1076
  }
1069
1077
  },
1070
1078
  "Integ": {
@@ -1092,7 +1100,7 @@
1092
1100
  "path": "cfts3-custom-headers/Integ/DefaultTest/DeployAssert/BootstrapVersion",
1093
1101
  "constructInfo": {
1094
1102
  "fqn": "aws-cdk-lib.CfnParameter",
1095
- "version": "2.143.0"
1103
+ "version": "2.147.3"
1096
1104
  }
1097
1105
  },
1098
1106
  "CheckBootstrapVersion": {
@@ -1100,25 +1108,25 @@
1100
1108
  "path": "cfts3-custom-headers/Integ/DefaultTest/DeployAssert/CheckBootstrapVersion",
1101
1109
  "constructInfo": {
1102
1110
  "fqn": "aws-cdk-lib.CfnRule",
1103
- "version": "2.143.0"
1111
+ "version": "2.147.3"
1104
1112
  }
1105
1113
  }
1106
1114
  },
1107
1115
  "constructInfo": {
1108
1116
  "fqn": "aws-cdk-lib.Stack",
1109
- "version": "2.143.0"
1117
+ "version": "2.147.3"
1110
1118
  }
1111
1119
  }
1112
1120
  },
1113
1121
  "constructInfo": {
1114
1122
  "fqn": "@aws-cdk/integ-tests-alpha.IntegTestCase",
1115
- "version": "2.143.0-alpha.0"
1123
+ "version": "2.147.3-alpha.0"
1116
1124
  }
1117
1125
  }
1118
1126
  },
1119
1127
  "constructInfo": {
1120
1128
  "fqn": "@aws-cdk/integ-tests-alpha.IntegTest",
1121
- "version": "2.143.0-alpha.0"
1129
+ "version": "2.147.3-alpha.0"
1122
1130
  }
1123
1131
  },
1124
1132
  "BootstrapVersion": {
@@ -1126,7 +1134,7 @@
1126
1134
  "path": "cfts3-custom-headers/BootstrapVersion",
1127
1135
  "constructInfo": {
1128
1136
  "fqn": "aws-cdk-lib.CfnParameter",
1129
- "version": "2.143.0"
1137
+ "version": "2.147.3"
1130
1138
  }
1131
1139
  },
1132
1140
  "CheckBootstrapVersion": {
@@ -1134,13 +1142,13 @@
1134
1142
  "path": "cfts3-custom-headers/CheckBootstrapVersion",
1135
1143
  "constructInfo": {
1136
1144
  "fqn": "aws-cdk-lib.CfnRule",
1137
- "version": "2.143.0"
1145
+ "version": "2.147.3"
1138
1146
  }
1139
1147
  }
1140
1148
  },
1141
1149
  "constructInfo": {
1142
1150
  "fqn": "aws-cdk-lib.Stack",
1143
- "version": "2.143.0"
1151
+ "version": "2.147.3"
1144
1152
  }
1145
1153
  },
1146
1154
  "Tree": {
@@ -1154,7 +1162,7 @@
1154
1162
  },
1155
1163
  "constructInfo": {
1156
1164
  "fqn": "aws-cdk-lib.App",
1157
- "version": "2.143.0"
1165
+ "version": "2.147.3"
1158
1166
  }
1159
1167
  }
1160
1168
  }
@@ -0,0 +1 @@
1
+ "use strict";var f=Object.create,i=Object.defineProperty,I=Object.getOwnPropertyDescriptor,C=Object.getOwnPropertyNames,w=Object.getPrototypeOf,P=Object.prototype.hasOwnProperty,A=(t,e)=>{for(var o in e)i(t,o,{get:e[o],enumerable:!0})},d=(t,e,o,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of C(e))!P.call(t,s)&&s!==o&&i(t,s,{get:()=>e[s],enumerable:!(r=I(e,s))||r.enumerable});return t},l=(t,e,o)=>(o=t!=null?f(w(t)):{},d(e||!t||!t.__esModule?i(o,"default",{value:t,enumerable:!0}):o,t)),B=t=>d(i({},"__esModule",{value:!0}),t),q={};A(q,{autoDeleteHandler:()=>S,handler:()=>H}),module.exports=B(q);var h=require("@aws-sdk/client-s3"),y=l(require("https")),m=l(require("url")),a={sendHttpRequest:D,log:T,includeStackTraces:!0,userHandlerIndex:"./index"},p="AWSCDK::CustomResourceProviderFramework::CREATE_FAILED",L="AWSCDK::CustomResourceProviderFramework::MISSING_PHYSICAL_ID";function R(t){return async(e,o)=>{let r={...e,ResponseURL:"..."};if(a.log(JSON.stringify(r,void 0,2)),e.RequestType==="Delete"&&e.PhysicalResourceId===p){a.log("ignoring DELETE event caused by a failed CREATE event"),await u("SUCCESS",e);return}try{let s=await t(r,o),n=k(e,s);await u("SUCCESS",n)}catch(s){let n={...e,Reason:a.includeStackTraces?s.stack:s.message};n.PhysicalResourceId||(e.RequestType==="Create"?(a.log("CREATE failed, responding with a marker physical resource id so that the subsequent DELETE will be ignored"),n.PhysicalResourceId=p):a.log(`ERROR: Malformed event. "PhysicalResourceId" is required: ${JSON.stringify(e)}`)),await u("FAILED",n)}}}function k(t,e={}){let o=e.PhysicalResourceId??t.PhysicalResourceId??t.RequestId;if(t.RequestType==="Delete"&&o!==t.PhysicalResourceId)throw new Error(`DELETE: cannot change the physical resource ID from "${t.PhysicalResourceId}" to "${e.PhysicalResourceId}" during deletion`);return{...t,...e,PhysicalResourceId:o}}async function u(t,e){let o={Status:t,Reason:e.Reason??t,StackId:e.StackId,RequestId:e.RequestId,PhysicalResourceId:e.PhysicalResourceId||L,LogicalResourceId:e.LogicalResourceId,NoEcho:e.NoEcho,Data:e.Data},r=m.parse(e.ResponseURL),s=`${r.protocol}//${r.hostname}/${r.pathname}?***`;a.log("submit response to cloudformation",s,o);let n=JSON.stringify(o),E={hostname:r.hostname,path:r.path,method:"PUT",headers:{"content-type":"","content-length":Buffer.byteLength(n,"utf8")}};await O({attempts:5,sleep:1e3},a.sendHttpRequest)(E,n)}async function D(t,e){return new Promise((o,r)=>{try{let s=y.request(t,n=>{n.resume(),!n.statusCode||n.statusCode>=400?r(new Error(`Unsuccessful HTTP response: ${n.statusCode}`)):o()});s.on("error",r),s.write(e),s.end()}catch(s){r(s)}})}function T(t,...e){console.log(t,...e)}function O(t,e){return async(...o)=>{let r=t.attempts,s=t.sleep;for(;;)try{return await e(...o)}catch(n){if(r--<=0)throw n;await b(Math.floor(Math.random()*s)),s*=2}}}async function b(t){return new Promise(e=>setTimeout(e,t))}var g="aws-cdk:auto-delete-objects",x=JSON.stringify({Version:"2012-10-17",Statement:[]}),c=new h.S3({}),H=R(S);async function S(t){switch(t.RequestType){case"Create":return;case"Update":return{PhysicalResourceId:(await F(t)).PhysicalResourceId};case"Delete":return N(t.ResourceProperties?.BucketName)}}async function F(t){let e=t,o=e.OldResourceProperties?.BucketName;return{PhysicalResourceId:e.ResourceProperties?.BucketName??o}}async function _(t){try{let e=(await c.getBucketPolicy({Bucket:t}))?.Policy??x,o=JSON.parse(e);o.Statement.push({Principal:"*",Effect:"Deny",Action:["s3:PutObject"],Resource:[`arn:aws:s3:::${t}/*`]}),await c.putBucketPolicy({Bucket:t,Policy:JSON.stringify(o)})}catch(e){if(e.name==="NoSuchBucket")throw e;console.log(`Could not set new object deny policy on bucket '${t}' prior to deletion.`)}}async function U(t){let e;do{e=await c.listObjectVersions({Bucket:t});let o=[...e.Versions??[],...e.DeleteMarkers??[]];if(o.length===0)return;let r=o.map(s=>({Key:s.Key,VersionId:s.VersionId}));await c.deleteObjects({Bucket:t,Delete:{Objects:r}})}while(e?.IsTruncated)}async function N(t){if(!t)throw new Error("No BucketName was provided.");try{if(!await W(t)){console.log(`Bucket does not have '${g}' tag, skipping cleaning.`);return}await _(t),await U(t)}catch(e){if(e.name==="NoSuchBucket"){console.log(`Bucket '${t}' does not exist.`);return}throw e}}async function W(t){return(await c.getBucketTagging({Bucket:t})).TagSet?.some(o=>o.Key===g&&o.Value==="true")}
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "version": "36.0.0",
3
3
  "files": {
4
- "2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4": {
4
+ "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6": {
5
5
  "source": {
6
- "path": "asset.2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4",
6
+ "path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6",
7
7
  "packaging": "zip"
8
8
  },
9
9
  "destinations": {
10
10
  "current_account-current_region": {
11
11
  "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
12
- "objectKey": "2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4.zip",
12
+ "objectKey": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip",
13
13
  "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
14
14
  }
15
15
  }
16
16
  },
17
- "f09d15493c40e759f7324a499555aaa362c003b1865a4c2d94cfd6efe637a732": {
17
+ "dc86110403531fedd01fbbe10d81b4792ac9def3c281c6a4c279c22dad26a464": {
18
18
  "source": {
19
19
  "path": "cfts3-custom-originPath.template.json",
20
20
  "packaging": "file"
@@ -22,7 +22,7 @@
22
22
  "destinations": {
23
23
  "current_account-current_region": {
24
24
  "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
25
- "objectKey": "f09d15493c40e759f7324a499555aaa362c003b1865a4c2d94cfd6efe637a732.json",
25
+ "objectKey": "dc86110403531fedd01fbbe10d81b4792ac9def3c281c6a4c279c22dad26a464.json",
26
26
  "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
27
27
  }
28
28
  }