@aws-solutions-constructs/aws-cloudfront-s3 2.60.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 +20 -7
  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
@@ -205,7 +205,7 @@
205
205
  "S3Bucket": {
206
206
  "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
207
207
  },
208
- "S3Key": "2eb6a831b107939f63cfebf68e6316e1a40f79fc99cae0fee9b333bac8d29bc4.zip"
208
+ "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip"
209
209
  },
210
210
  "Timeout": 900,
211
211
  "MemorySize": 128,
@@ -216,7 +216,15 @@
216
216
  "Arn"
217
217
  ]
218
218
  },
219
- "Runtime": "nodejs18.x",
219
+ "Runtime": {
220
+ "Fn::FindInMap": [
221
+ "LatestNodeRuntimeMap",
222
+ {
223
+ "Ref": "AWS::Region"
224
+ },
225
+ "value"
226
+ ]
227
+ },
220
228
  "Description": {
221
229
  "Fn::Join": [
222
230
  "",
@@ -970,6 +978,115 @@
970
978
  }
971
979
  }
972
980
  },
981
+ "Mappings": {
982
+ "LatestNodeRuntimeMap": {
983
+ "af-south-1": {
984
+ "value": "nodejs20.x"
985
+ },
986
+ "ap-east-1": {
987
+ "value": "nodejs20.x"
988
+ },
989
+ "ap-northeast-1": {
990
+ "value": "nodejs20.x"
991
+ },
992
+ "ap-northeast-2": {
993
+ "value": "nodejs20.x"
994
+ },
995
+ "ap-northeast-3": {
996
+ "value": "nodejs20.x"
997
+ },
998
+ "ap-south-1": {
999
+ "value": "nodejs20.x"
1000
+ },
1001
+ "ap-south-2": {
1002
+ "value": "nodejs20.x"
1003
+ },
1004
+ "ap-southeast-1": {
1005
+ "value": "nodejs20.x"
1006
+ },
1007
+ "ap-southeast-2": {
1008
+ "value": "nodejs20.x"
1009
+ },
1010
+ "ap-southeast-3": {
1011
+ "value": "nodejs20.x"
1012
+ },
1013
+ "ap-southeast-4": {
1014
+ "value": "nodejs20.x"
1015
+ },
1016
+ "ca-central-1": {
1017
+ "value": "nodejs20.x"
1018
+ },
1019
+ "cn-north-1": {
1020
+ "value": "nodejs18.x"
1021
+ },
1022
+ "cn-northwest-1": {
1023
+ "value": "nodejs18.x"
1024
+ },
1025
+ "eu-central-1": {
1026
+ "value": "nodejs20.x"
1027
+ },
1028
+ "eu-central-2": {
1029
+ "value": "nodejs20.x"
1030
+ },
1031
+ "eu-north-1": {
1032
+ "value": "nodejs20.x"
1033
+ },
1034
+ "eu-south-1": {
1035
+ "value": "nodejs20.x"
1036
+ },
1037
+ "eu-south-2": {
1038
+ "value": "nodejs20.x"
1039
+ },
1040
+ "eu-west-1": {
1041
+ "value": "nodejs20.x"
1042
+ },
1043
+ "eu-west-2": {
1044
+ "value": "nodejs20.x"
1045
+ },
1046
+ "eu-west-3": {
1047
+ "value": "nodejs20.x"
1048
+ },
1049
+ "il-central-1": {
1050
+ "value": "nodejs20.x"
1051
+ },
1052
+ "me-central-1": {
1053
+ "value": "nodejs20.x"
1054
+ },
1055
+ "me-south-1": {
1056
+ "value": "nodejs20.x"
1057
+ },
1058
+ "sa-east-1": {
1059
+ "value": "nodejs20.x"
1060
+ },
1061
+ "us-east-1": {
1062
+ "value": "nodejs20.x"
1063
+ },
1064
+ "us-east-2": {
1065
+ "value": "nodejs20.x"
1066
+ },
1067
+ "us-gov-east-1": {
1068
+ "value": "nodejs18.x"
1069
+ },
1070
+ "us-gov-west-1": {
1071
+ "value": "nodejs18.x"
1072
+ },
1073
+ "us-iso-east-1": {
1074
+ "value": "nodejs18.x"
1075
+ },
1076
+ "us-iso-west-1": {
1077
+ "value": "nodejs18.x"
1078
+ },
1079
+ "us-isob-east-1": {
1080
+ "value": "nodejs18.x"
1081
+ },
1082
+ "us-west-1": {
1083
+ "value": "nodejs20.x"
1084
+ },
1085
+ "us-west-2": {
1086
+ "value": "nodejs20.x"
1087
+ }
1088
+ }
1089
+ },
973
1090
  "Parameters": {
974
1091
  "BootstrapVersion": {
975
1092
  "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}/0fd1d32663abd422abc8a1c59aa382f95a1e7f4f75b861f1112dba88bd8f487f.json",
69
+ "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/3159996f03fb754ec656e68407ca916da9542a39ffd55b07854e7c5b28ef3e67.json",
70
70
  "requiresBootstrapStackVersion": 6,
71
71
  "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version",
72
72
  "additionalDependencies": [
@@ -100,6 +100,12 @@
100
100
  "data": "scrapBucketLogAutoDeleteObjectsCustomResource307F3D47"
101
101
  }
102
102
  ],
103
+ "/cfts3-existing-bucket/LatestNodeRuntimeMap": [
104
+ {
105
+ "type": "aws:cdk:logicalId",
106
+ "data": "LatestNodeRuntimeMap"
107
+ }
108
+ ],
103
109
  "/cfts3-existing-bucket/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role": [
104
110
  {
105
111
  "type": "aws:cdk:logicalId",
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "constructInfo": {
42
42
  "fqn": "aws-cdk-lib.aws_s3.CfnBucket",
43
- "version": "2.143.0"
43
+ "version": "2.147.3"
44
44
  }
45
45
  },
46
46
  "Policy": {
@@ -174,13 +174,13 @@
174
174
  },
175
175
  "constructInfo": {
176
176
  "fqn": "aws-cdk-lib.aws_s3.CfnBucketPolicy",
177
- "version": "2.143.0"
177
+ "version": "2.147.3"
178
178
  }
179
179
  }
180
180
  },
181
181
  "constructInfo": {
182
182
  "fqn": "aws-cdk-lib.aws_s3.BucketPolicy",
183
- "version": "2.143.0"
183
+ "version": "2.147.3"
184
184
  }
185
185
  },
186
186
  "AutoDeleteObjectsCustomResource": {
@@ -192,19 +192,27 @@
192
192
  "path": "cfts3-existing-bucket/scrapBucketLog/AutoDeleteObjectsCustomResource/Default",
193
193
  "constructInfo": {
194
194
  "fqn": "aws-cdk-lib.CfnResource",
195
- "version": "2.143.0"
195
+ "version": "2.147.3"
196
196
  }
197
197
  }
198
198
  },
199
199
  "constructInfo": {
200
200
  "fqn": "aws-cdk-lib.CustomResource",
201
- "version": "2.143.0"
201
+ "version": "2.147.3"
202
202
  }
203
203
  }
204
204
  },
205
205
  "constructInfo": {
206
206
  "fqn": "aws-cdk-lib.aws_s3.Bucket",
207
- "version": "2.143.0"
207
+ "version": "2.147.3"
208
+ }
209
+ },
210
+ "LatestNodeRuntimeMap": {
211
+ "id": "LatestNodeRuntimeMap",
212
+ "path": "cfts3-existing-bucket/LatestNodeRuntimeMap",
213
+ "constructInfo": {
214
+ "fqn": "aws-cdk-lib.CfnMapping",
215
+ "version": "2.147.3"
208
216
  }
209
217
  },
210
218
  "Custom::S3AutoDeleteObjectsCustomResourceProvider": {
@@ -216,7 +224,7 @@
216
224
  "path": "cfts3-existing-bucket/Custom::S3AutoDeleteObjectsCustomResourceProvider/Staging",
217
225
  "constructInfo": {
218
226
  "fqn": "aws-cdk-lib.AssetStaging",
219
- "version": "2.143.0"
227
+ "version": "2.147.3"
220
228
  }
221
229
  },
222
230
  "Role": {
@@ -224,7 +232,7 @@
224
232
  "path": "cfts3-existing-bucket/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role",
225
233
  "constructInfo": {
226
234
  "fqn": "aws-cdk-lib.CfnResource",
227
- "version": "2.143.0"
235
+ "version": "2.147.3"
228
236
  }
229
237
  },
230
238
  "Handler": {
@@ -232,13 +240,13 @@
232
240
  "path": "cfts3-existing-bucket/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler",
233
241
  "constructInfo": {
234
242
  "fqn": "aws-cdk-lib.CfnResource",
235
- "version": "2.143.0"
243
+ "version": "2.147.3"
236
244
  }
237
245
  }
238
246
  },
239
247
  "constructInfo": {
240
248
  "fqn": "aws-cdk-lib.CustomResourceProviderBase",
241
- "version": "2.143.0"
249
+ "version": "2.147.3"
242
250
  }
243
251
  },
244
252
  "scrapBucket": {
@@ -278,7 +286,7 @@
278
286
  },
279
287
  "constructInfo": {
280
288
  "fqn": "aws-cdk-lib.aws_s3.CfnBucket",
281
- "version": "2.143.0"
289
+ "version": "2.147.3"
282
290
  }
283
291
  },
284
292
  "Policy": {
@@ -442,13 +450,13 @@
442
450
  },
443
451
  "constructInfo": {
444
452
  "fqn": "aws-cdk-lib.aws_s3.CfnBucketPolicy",
445
- "version": "2.143.0"
453
+ "version": "2.147.3"
446
454
  }
447
455
  }
448
456
  },
449
457
  "constructInfo": {
450
458
  "fqn": "aws-cdk-lib.aws_s3.BucketPolicy",
451
- "version": "2.143.0"
459
+ "version": "2.147.3"
452
460
  }
453
461
  },
454
462
  "AutoDeleteObjectsCustomResource": {
@@ -460,19 +468,19 @@
460
468
  "path": "cfts3-existing-bucket/scrapBucket/AutoDeleteObjectsCustomResource/Default",
461
469
  "constructInfo": {
462
470
  "fqn": "aws-cdk-lib.CfnResource",
463
- "version": "2.143.0"
471
+ "version": "2.147.3"
464
472
  }
465
473
  }
466
474
  },
467
475
  "constructInfo": {
468
476
  "fqn": "aws-cdk-lib.CustomResource",
469
- "version": "2.143.0"
477
+ "version": "2.147.3"
470
478
  }
471
479
  }
472
480
  },
473
481
  "constructInfo": {
474
482
  "fqn": "aws-cdk-lib.aws_s3.Bucket",
475
- "version": "2.143.0"
483
+ "version": "2.147.3"
476
484
  }
477
485
  },
478
486
  "test-cloudfront-s3": {
@@ -500,13 +508,13 @@
500
508
  },
501
509
  "constructInfo": {
502
510
  "fqn": "aws-cdk-lib.aws_cloudfront.CfnFunction",
503
- "version": "2.143.0"
511
+ "version": "2.147.3"
504
512
  }
505
513
  }
506
514
  },
507
515
  "constructInfo": {
508
516
  "fqn": "aws-cdk-lib.aws_cloudfront.Function",
509
- "version": "2.143.0"
517
+ "version": "2.147.3"
510
518
  }
511
519
  },
512
520
  "CloudfrontLoggingBucketAccessLog": {
@@ -547,7 +555,7 @@
547
555
  },
548
556
  "constructInfo": {
549
557
  "fqn": "aws-cdk-lib.aws_s3.CfnBucket",
550
- "version": "2.143.0"
558
+ "version": "2.147.3"
551
559
  }
552
560
  },
553
561
  "Policy": {
@@ -681,13 +689,13 @@
681
689
  },
682
690
  "constructInfo": {
683
691
  "fqn": "aws-cdk-lib.aws_s3.CfnBucketPolicy",
684
- "version": "2.143.0"
692
+ "version": "2.147.3"
685
693
  }
686
694
  }
687
695
  },
688
696
  "constructInfo": {
689
697
  "fqn": "aws-cdk-lib.aws_s3.BucketPolicy",
690
- "version": "2.143.0"
698
+ "version": "2.147.3"
691
699
  }
692
700
  },
693
701
  "AutoDeleteObjectsCustomResource": {
@@ -699,19 +707,19 @@
699
707
  "path": "cfts3-existing-bucket/test-cloudfront-s3/CloudfrontLoggingBucketAccessLog/AutoDeleteObjectsCustomResource/Default",
700
708
  "constructInfo": {
701
709
  "fqn": "aws-cdk-lib.CfnResource",
702
- "version": "2.143.0"
710
+ "version": "2.147.3"
703
711
  }
704
712
  }
705
713
  },
706
714
  "constructInfo": {
707
715
  "fqn": "aws-cdk-lib.CustomResource",
708
- "version": "2.143.0"
716
+ "version": "2.147.3"
709
717
  }
710
718
  }
711
719
  },
712
720
  "constructInfo": {
713
721
  "fqn": "aws-cdk-lib.aws_s3.Bucket",
714
- "version": "2.143.0"
722
+ "version": "2.147.3"
715
723
  }
716
724
  },
717
725
  "CloudfrontLoggingBucket": {
@@ -764,7 +772,7 @@
764
772
  },
765
773
  "constructInfo": {
766
774
  "fqn": "aws-cdk-lib.aws_s3.CfnBucket",
767
- "version": "2.143.0"
775
+ "version": "2.147.3"
768
776
  }
769
777
  },
770
778
  "Policy": {
@@ -862,13 +870,13 @@
862
870
  },
863
871
  "constructInfo": {
864
872
  "fqn": "aws-cdk-lib.aws_s3.CfnBucketPolicy",
865
- "version": "2.143.0"
873
+ "version": "2.147.3"
866
874
  }
867
875
  }
868
876
  },
869
877
  "constructInfo": {
870
878
  "fqn": "aws-cdk-lib.aws_s3.BucketPolicy",
871
- "version": "2.143.0"
879
+ "version": "2.147.3"
872
880
  }
873
881
  },
874
882
  "AutoDeleteObjectsCustomResource": {
@@ -880,19 +888,19 @@
880
888
  "path": "cfts3-existing-bucket/test-cloudfront-s3/CloudfrontLoggingBucket/AutoDeleteObjectsCustomResource/Default",
881
889
  "constructInfo": {
882
890
  "fqn": "aws-cdk-lib.CfnResource",
883
- "version": "2.143.0"
891
+ "version": "2.147.3"
884
892
  }
885
893
  }
886
894
  },
887
895
  "constructInfo": {
888
896
  "fqn": "aws-cdk-lib.CustomResource",
889
- "version": "2.143.0"
897
+ "version": "2.147.3"
890
898
  }
891
899
  }
892
900
  },
893
901
  "constructInfo": {
894
902
  "fqn": "aws-cdk-lib.aws_s3.Bucket",
895
- "version": "2.143.0"
903
+ "version": "2.147.3"
896
904
  }
897
905
  },
898
906
  "CloudFrontOac": {
@@ -932,7 +940,7 @@
932
940
  },
933
941
  "constructInfo": {
934
942
  "fqn": "aws-cdk-lib.aws_cloudfront.CfnOriginAccessControl",
935
- "version": "2.143.0"
943
+ "version": "2.147.3"
936
944
  }
937
945
  },
938
946
  "CloudFrontDistribution": {
@@ -1036,7 +1044,7 @@
1036
1044
  },
1037
1045
  "constructInfo": {
1038
1046
  "fqn": "aws-cdk-lib.aws_cloudfront.CfnDistribution",
1039
- "version": "2.143.0"
1047
+ "version": "2.147.3"
1040
1048
  }
1041
1049
  },
1042
1050
  "Origin2": {
@@ -1060,13 +1068,13 @@
1060
1068
  },
1061
1069
  "constructInfo": {
1062
1070
  "fqn": "aws-cdk-lib.aws_cloudfront.CfnCloudFrontOriginAccessIdentity",
1063
- "version": "2.143.0"
1071
+ "version": "2.147.3"
1064
1072
  }
1065
1073
  }
1066
1074
  },
1067
1075
  "constructInfo": {
1068
1076
  "fqn": "aws-cdk-lib.aws_cloudfront.OriginAccessIdentity",
1069
- "version": "2.143.0"
1077
+ "version": "2.147.3"
1070
1078
  }
1071
1079
  }
1072
1080
  },
@@ -1078,13 +1086,13 @@
1078
1086
  },
1079
1087
  "constructInfo": {
1080
1088
  "fqn": "aws-cdk-lib.aws_cloudfront.Distribution",
1081
- "version": "2.143.0"
1089
+ "version": "2.147.3"
1082
1090
  }
1083
1091
  }
1084
1092
  },
1085
1093
  "constructInfo": {
1086
1094
  "fqn": "@aws-solutions-constructs/aws-cloudfront-s3.CloudFrontToS3",
1087
- "version": "2.58.1"
1095
+ "version": "2.60.0"
1088
1096
  }
1089
1097
  },
1090
1098
  "myCachePolicy": {
@@ -1120,13 +1128,13 @@
1120
1128
  },
1121
1129
  "constructInfo": {
1122
1130
  "fqn": "aws-cdk-lib.aws_cloudfront.CfnCachePolicy",
1123
- "version": "2.143.0"
1131
+ "version": "2.147.3"
1124
1132
  }
1125
1133
  }
1126
1134
  },
1127
1135
  "constructInfo": {
1128
1136
  "fqn": "aws-cdk-lib.aws_cloudfront.CachePolicy",
1129
- "version": "2.143.0"
1137
+ "version": "2.147.3"
1130
1138
  }
1131
1139
  },
1132
1140
  "Integ": {
@@ -1154,7 +1162,7 @@
1154
1162
  "path": "cfts3-existing-bucket/Integ/DefaultTest/DeployAssert/BootstrapVersion",
1155
1163
  "constructInfo": {
1156
1164
  "fqn": "aws-cdk-lib.CfnParameter",
1157
- "version": "2.143.0"
1165
+ "version": "2.147.3"
1158
1166
  }
1159
1167
  },
1160
1168
  "CheckBootstrapVersion": {
@@ -1162,25 +1170,25 @@
1162
1170
  "path": "cfts3-existing-bucket/Integ/DefaultTest/DeployAssert/CheckBootstrapVersion",
1163
1171
  "constructInfo": {
1164
1172
  "fqn": "aws-cdk-lib.CfnRule",
1165
- "version": "2.143.0"
1173
+ "version": "2.147.3"
1166
1174
  }
1167
1175
  }
1168
1176
  },
1169
1177
  "constructInfo": {
1170
1178
  "fqn": "aws-cdk-lib.Stack",
1171
- "version": "2.143.0"
1179
+ "version": "2.147.3"
1172
1180
  }
1173
1181
  }
1174
1182
  },
1175
1183
  "constructInfo": {
1176
1184
  "fqn": "@aws-cdk/integ-tests-alpha.IntegTestCase",
1177
- "version": "2.143.0-alpha.0"
1185
+ "version": "2.147.3-alpha.0"
1178
1186
  }
1179
1187
  }
1180
1188
  },
1181
1189
  "constructInfo": {
1182
1190
  "fqn": "@aws-cdk/integ-tests-alpha.IntegTest",
1183
- "version": "2.143.0-alpha.0"
1191
+ "version": "2.147.3-alpha.0"
1184
1192
  }
1185
1193
  },
1186
1194
  "BootstrapVersion": {
@@ -1188,7 +1196,7 @@
1188
1196
  "path": "cfts3-existing-bucket/BootstrapVersion",
1189
1197
  "constructInfo": {
1190
1198
  "fqn": "aws-cdk-lib.CfnParameter",
1191
- "version": "2.143.0"
1199
+ "version": "2.147.3"
1192
1200
  }
1193
1201
  },
1194
1202
  "CheckBootstrapVersion": {
@@ -1196,13 +1204,13 @@
1196
1204
  "path": "cfts3-existing-bucket/CheckBootstrapVersion",
1197
1205
  "constructInfo": {
1198
1206
  "fqn": "aws-cdk-lib.CfnRule",
1199
- "version": "2.143.0"
1207
+ "version": "2.147.3"
1200
1208
  }
1201
1209
  }
1202
1210
  },
1203
1211
  "constructInfo": {
1204
1212
  "fqn": "aws-cdk-lib.Stack",
1205
- "version": "2.143.0"
1213
+ "version": "2.147.3"
1206
1214
  }
1207
1215
  },
1208
1216
  "Tree": {
@@ -1216,7 +1224,7 @@
1216
1224
  },
1217
1225
  "constructInfo": {
1218
1226
  "fqn": "aws-cdk-lib.App",
1219
- "version": "2.143.0"
1227
+ "version": "2.147.3"
1220
1228
  }
1221
1229
  }
1222
1230
  }
@@ -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
- "e72848c7923f76660dc8145c8e253ba8ac54fc6285c7fc06c78c5f3dc61e0c23": {
17
+ "8b921451ffafbc41e8d2ba51a3407ad7694217e500ed5032c7f1f14b7c89a329": {
18
18
  "source": {
19
19
  "path": "cfts3-no-arguments.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": "e72848c7923f76660dc8145c8e253ba8ac54fc6285c7fc06c78c5f3dc61e0c23.json",
25
+ "objectKey": "8b921451ffafbc41e8d2ba51a3407ad7694217e500ed5032c7f1f14b7c89a329.json",
26
26
  "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
27
27
  }
28
28
  }