@aws-solutions-constructs/aws-kinesisfirehose-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 (33) hide show
  1. package/.jsii +19 -6
  2. package/lib/index.js +1 -1
  3. package/package.json +6 -6
  4. package/test/integ.fhss3-customLoggingBucket.js.snapshot/asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6/index.js +1 -0
  5. package/test/integ.fhss3-customLoggingBucket.js.snapshot/fhss3-customLoggingBucket.assets.json +5 -5
  6. package/test/integ.fhss3-customLoggingBucket.js.snapshot/fhss3-customLoggingBucket.template.json +119 -2
  7. package/test/integ.fhss3-customLoggingBucket.js.snapshot/manifest.json +7 -1
  8. package/test/integ.fhss3-customLoggingBucket.js.snapshot/tree.json +45 -37
  9. package/test/integ.fhss3-no-arguments.js.snapshot/asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6/index.js +1 -0
  10. package/test/integ.fhss3-no-arguments.js.snapshot/fhss3-no-arguments.assets.json +5 -5
  11. package/test/integ.fhss3-no-arguments.js.snapshot/fhss3-no-arguments.template.json +119 -2
  12. package/test/integ.fhss3-no-arguments.js.snapshot/manifest.json +7 -1
  13. package/test/integ.fhss3-no-arguments.js.snapshot/tree.json +47 -39
  14. package/test/integ.fhss3-pre-existing-bucket.js.snapshot/asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6/index.js +1 -0
  15. package/test/integ.fhss3-pre-existing-bucket.js.snapshot/fhss3-pre-existing-bucket.assets.json +5 -5
  16. package/test/integ.fhss3-pre-existing-bucket.js.snapshot/fhss3-pre-existing-bucket.template.json +119 -2
  17. package/test/integ.fhss3-pre-existing-bucket.js.snapshot/manifest.json +7 -1
  18. package/test/integ.fhss3-pre-existing-bucket.js.snapshot/tree.json +48 -40
  19. package/test/integ.fhss3-pre-existing-logging-bucket.js.snapshot/asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6/index.js +1 -0
  20. package/test/integ.fhss3-pre-existing-logging-bucket.js.snapshot/fhss3-pre-existing-logging-bucket.assets.json +5 -5
  21. package/test/integ.fhss3-pre-existing-logging-bucket.js.snapshot/fhss3-pre-existing-logging-bucket.template.json +119 -2
  22. package/test/integ.fhss3-pre-existing-logging-bucket.js.snapshot/manifest.json +7 -1
  23. package/test/integ.fhss3-pre-existing-logging-bucket.js.snapshot/tree.json +53 -45
  24. package/test/integ.fhss3-two-instances.js.snapshot/asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6/index.js +1 -0
  25. package/test/integ.fhss3-two-instances.js.snapshot/fhss3-two-instances.assets.json +5 -5
  26. package/test/integ.fhss3-two-instances.js.snapshot/fhss3-two-instances.template.json +119 -2
  27. package/test/integ.fhss3-two-instances.js.snapshot/manifest.json +7 -1
  28. package/test/integ.fhss3-two-instances.js.snapshot/tree.json +71 -63
  29. package/test/integ.fhss3-customLoggingBucket.js.snapshot/asset.b7f33614a69548d6bafe224d751a7ef238cde19097415e553fe8b63a4c8fd8a6/index.js +0 -1
  30. package/test/integ.fhss3-no-arguments.js.snapshot/asset.b7f33614a69548d6bafe224d751a7ef238cde19097415e553fe8b63a4c8fd8a6/index.js +0 -1
  31. package/test/integ.fhss3-pre-existing-bucket.js.snapshot/asset.b7f33614a69548d6bafe224d751a7ef238cde19097415e553fe8b63a4c8fd8a6/index.js +0 -1
  32. package/test/integ.fhss3-pre-existing-logging-bucket.js.snapshot/asset.b7f33614a69548d6bafe224d751a7ef238cde19097415e553fe8b63a4c8fd8a6/index.js +0 -1
  33. package/test/integ.fhss3-two-instances.js.snapshot/asset.b7f33614a69548d6bafe224d751a7ef238cde19097415e553fe8b63a4c8fd8a6/index.js +0 -1
@@ -50,7 +50,7 @@
50
50
  },
51
51
  "constructInfo": {
52
52
  "fqn": "aws-cdk-lib.aws_s3.CfnBucket",
53
- "version": "2.118.0"
53
+ "version": "2.147.3"
54
54
  }
55
55
  },
56
56
  "Policy": {
@@ -184,13 +184,13 @@
184
184
  },
185
185
  "constructInfo": {
186
186
  "fqn": "aws-cdk-lib.aws_s3.CfnBucketPolicy",
187
- "version": "2.118.0"
187
+ "version": "2.147.3"
188
188
  }
189
189
  }
190
190
  },
191
191
  "constructInfo": {
192
192
  "fqn": "aws-cdk-lib.aws_s3.BucketPolicy",
193
- "version": "2.118.0"
193
+ "version": "2.147.3"
194
194
  }
195
195
  },
196
196
  "AutoDeleteObjectsCustomResource": {
@@ -202,19 +202,19 @@
202
202
  "path": "fhss3-two-instances/first-construct/S3LoggingBucket/AutoDeleteObjectsCustomResource/Default",
203
203
  "constructInfo": {
204
204
  "fqn": "aws-cdk-lib.CfnResource",
205
- "version": "2.118.0"
205
+ "version": "2.147.3"
206
206
  }
207
207
  }
208
208
  },
209
209
  "constructInfo": {
210
210
  "fqn": "aws-cdk-lib.CustomResource",
211
- "version": "2.118.0"
211
+ "version": "2.147.3"
212
212
  }
213
213
  }
214
214
  },
215
215
  "constructInfo": {
216
216
  "fqn": "aws-cdk-lib.aws_s3.Bucket",
217
- "version": "2.118.0"
217
+ "version": "2.147.3"
218
218
  }
219
219
  },
220
220
  "S3Bucket": {
@@ -273,7 +273,7 @@
273
273
  },
274
274
  "constructInfo": {
275
275
  "fqn": "aws-cdk-lib.aws_s3.CfnBucket",
276
- "version": "2.118.0"
276
+ "version": "2.147.3"
277
277
  }
278
278
  },
279
279
  "Policy": {
@@ -371,13 +371,13 @@
371
371
  },
372
372
  "constructInfo": {
373
373
  "fqn": "aws-cdk-lib.aws_s3.CfnBucketPolicy",
374
- "version": "2.118.0"
374
+ "version": "2.147.3"
375
375
  }
376
376
  }
377
377
  },
378
378
  "constructInfo": {
379
379
  "fqn": "aws-cdk-lib.aws_s3.BucketPolicy",
380
- "version": "2.118.0"
380
+ "version": "2.147.3"
381
381
  }
382
382
  },
383
383
  "AutoDeleteObjectsCustomResource": {
@@ -389,19 +389,19 @@
389
389
  "path": "fhss3-two-instances/first-construct/S3Bucket/AutoDeleteObjectsCustomResource/Default",
390
390
  "constructInfo": {
391
391
  "fqn": "aws-cdk-lib.CfnResource",
392
- "version": "2.118.0"
392
+ "version": "2.147.3"
393
393
  }
394
394
  }
395
395
  },
396
396
  "constructInfo": {
397
397
  "fqn": "aws-cdk-lib.CustomResource",
398
- "version": "2.118.0"
398
+ "version": "2.147.3"
399
399
  }
400
400
  }
401
401
  },
402
402
  "constructInfo": {
403
403
  "fqn": "aws-cdk-lib.aws_s3.Bucket",
404
- "version": "2.118.0"
404
+ "version": "2.147.3"
405
405
  }
406
406
  },
407
407
  "firehose-log-group": {
@@ -417,7 +417,7 @@
417
417
  },
418
418
  "constructInfo": {
419
419
  "fqn": "aws-cdk-lib.aws_logs.CfnLogGroup",
420
- "version": "2.118.0"
420
+ "version": "2.147.3"
421
421
  }
422
422
  },
423
423
  "firehose-log-stream": {
@@ -437,19 +437,19 @@
437
437
  },
438
438
  "constructInfo": {
439
439
  "fqn": "aws-cdk-lib.aws_logs.CfnLogStream",
440
- "version": "2.118.0"
440
+ "version": "2.147.3"
441
441
  }
442
442
  }
443
443
  },
444
444
  "constructInfo": {
445
445
  "fqn": "aws-cdk-lib.aws_logs.LogStream",
446
- "version": "2.118.0"
446
+ "version": "2.147.3"
447
447
  }
448
448
  }
449
449
  },
450
450
  "constructInfo": {
451
451
  "fqn": "aws-cdk-lib.aws_logs.LogGroup",
452
- "version": "2.118.0"
452
+ "version": "2.147.3"
453
453
  }
454
454
  },
455
455
  "KinesisFirehoseRole": {
@@ -461,7 +461,7 @@
461
461
  "path": "fhss3-two-instances/first-construct/KinesisFirehoseRole/ImportKinesisFirehoseRole",
462
462
  "constructInfo": {
463
463
  "fqn": "aws-cdk-lib.Resource",
464
- "version": "2.118.0"
464
+ "version": "2.147.3"
465
465
  }
466
466
  },
467
467
  "Resource": {
@@ -486,13 +486,13 @@
486
486
  },
487
487
  "constructInfo": {
488
488
  "fqn": "aws-cdk-lib.aws_iam.CfnRole",
489
- "version": "2.118.0"
489
+ "version": "2.147.3"
490
490
  }
491
491
  }
492
492
  },
493
493
  "constructInfo": {
494
494
  "fqn": "aws-cdk-lib.aws_iam.Role",
495
- "version": "2.118.0"
495
+ "version": "2.147.3"
496
496
  }
497
497
  },
498
498
  "KinesisFirehosePolicy": {
@@ -584,13 +584,13 @@
584
584
  },
585
585
  "constructInfo": {
586
586
  "fqn": "aws-cdk-lib.aws_iam.CfnPolicy",
587
- "version": "2.118.0"
587
+ "version": "2.147.3"
588
588
  }
589
589
  }
590
590
  },
591
591
  "constructInfo": {
592
592
  "fqn": "aws-cdk-lib.aws_iam.Policy",
593
- "version": "2.118.0"
593
+ "version": "2.147.3"
594
594
  }
595
595
  },
596
596
  "KinesisFirehose": {
@@ -659,13 +659,21 @@
659
659
  },
660
660
  "constructInfo": {
661
661
  "fqn": "aws-cdk-lib.aws_kinesisfirehose.CfnDeliveryStream",
662
- "version": "2.118.0"
662
+ "version": "2.147.3"
663
663
  }
664
664
  }
665
665
  },
666
666
  "constructInfo": {
667
667
  "fqn": "@aws-solutions-constructs/aws-kinesisfirehose-s3.KinesisFirehoseToS3",
668
- "version": "2.50.0"
668
+ "version": "2.60.0"
669
+ }
670
+ },
671
+ "LatestNodeRuntimeMap": {
672
+ "id": "LatestNodeRuntimeMap",
673
+ "path": "fhss3-two-instances/LatestNodeRuntimeMap",
674
+ "constructInfo": {
675
+ "fqn": "aws-cdk-lib.CfnMapping",
676
+ "version": "2.147.3"
669
677
  }
670
678
  },
671
679
  "Custom::S3AutoDeleteObjectsCustomResourceProvider": {
@@ -677,7 +685,7 @@
677
685
  "path": "fhss3-two-instances/Custom::S3AutoDeleteObjectsCustomResourceProvider/Staging",
678
686
  "constructInfo": {
679
687
  "fqn": "aws-cdk-lib.AssetStaging",
680
- "version": "2.118.0"
688
+ "version": "2.147.3"
681
689
  }
682
690
  },
683
691
  "Role": {
@@ -685,7 +693,7 @@
685
693
  "path": "fhss3-two-instances/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role",
686
694
  "constructInfo": {
687
695
  "fqn": "aws-cdk-lib.CfnResource",
688
- "version": "2.118.0"
696
+ "version": "2.147.3"
689
697
  }
690
698
  },
691
699
  "Handler": {
@@ -693,13 +701,13 @@
693
701
  "path": "fhss3-two-instances/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler",
694
702
  "constructInfo": {
695
703
  "fqn": "aws-cdk-lib.CfnResource",
696
- "version": "2.118.0"
704
+ "version": "2.147.3"
697
705
  }
698
706
  }
699
707
  },
700
708
  "constructInfo": {
701
709
  "fqn": "aws-cdk-lib.CustomResourceProviderBase",
702
- "version": "2.118.0"
710
+ "version": "2.147.3"
703
711
  }
704
712
  },
705
713
  "first-constructaws-managed-key": {
@@ -707,7 +715,7 @@
707
715
  "path": "fhss3-two-instances/first-constructaws-managed-key",
708
716
  "constructInfo": {
709
717
  "fqn": "aws-cdk-lib.Resource",
710
- "version": "2.118.0"
718
+ "version": "2.147.3"
711
719
  }
712
720
  },
713
721
  "second-construct": {
@@ -752,7 +760,7 @@
752
760
  },
753
761
  "constructInfo": {
754
762
  "fqn": "aws-cdk-lib.aws_s3.CfnBucket",
755
- "version": "2.118.0"
763
+ "version": "2.147.3"
756
764
  }
757
765
  },
758
766
  "Policy": {
@@ -886,13 +894,13 @@
886
894
  },
887
895
  "constructInfo": {
888
896
  "fqn": "aws-cdk-lib.aws_s3.CfnBucketPolicy",
889
- "version": "2.118.0"
897
+ "version": "2.147.3"
890
898
  }
891
899
  }
892
900
  },
893
901
  "constructInfo": {
894
902
  "fqn": "aws-cdk-lib.aws_s3.BucketPolicy",
895
- "version": "2.118.0"
903
+ "version": "2.147.3"
896
904
  }
897
905
  },
898
906
  "AutoDeleteObjectsCustomResource": {
@@ -904,19 +912,19 @@
904
912
  "path": "fhss3-two-instances/second-construct/S3LoggingBucket/AutoDeleteObjectsCustomResource/Default",
905
913
  "constructInfo": {
906
914
  "fqn": "aws-cdk-lib.CfnResource",
907
- "version": "2.118.0"
915
+ "version": "2.147.3"
908
916
  }
909
917
  }
910
918
  },
911
919
  "constructInfo": {
912
920
  "fqn": "aws-cdk-lib.CustomResource",
913
- "version": "2.118.0"
921
+ "version": "2.147.3"
914
922
  }
915
923
  }
916
924
  },
917
925
  "constructInfo": {
918
926
  "fqn": "aws-cdk-lib.aws_s3.Bucket",
919
- "version": "2.118.0"
927
+ "version": "2.147.3"
920
928
  }
921
929
  },
922
930
  "S3Bucket": {
@@ -975,7 +983,7 @@
975
983
  },
976
984
  "constructInfo": {
977
985
  "fqn": "aws-cdk-lib.aws_s3.CfnBucket",
978
- "version": "2.118.0"
986
+ "version": "2.147.3"
979
987
  }
980
988
  },
981
989
  "Policy": {
@@ -1073,13 +1081,13 @@
1073
1081
  },
1074
1082
  "constructInfo": {
1075
1083
  "fqn": "aws-cdk-lib.aws_s3.CfnBucketPolicy",
1076
- "version": "2.118.0"
1084
+ "version": "2.147.3"
1077
1085
  }
1078
1086
  }
1079
1087
  },
1080
1088
  "constructInfo": {
1081
1089
  "fqn": "aws-cdk-lib.aws_s3.BucketPolicy",
1082
- "version": "2.118.0"
1090
+ "version": "2.147.3"
1083
1091
  }
1084
1092
  },
1085
1093
  "AutoDeleteObjectsCustomResource": {
@@ -1091,19 +1099,19 @@
1091
1099
  "path": "fhss3-two-instances/second-construct/S3Bucket/AutoDeleteObjectsCustomResource/Default",
1092
1100
  "constructInfo": {
1093
1101
  "fqn": "aws-cdk-lib.CfnResource",
1094
- "version": "2.118.0"
1102
+ "version": "2.147.3"
1095
1103
  }
1096
1104
  }
1097
1105
  },
1098
1106
  "constructInfo": {
1099
1107
  "fqn": "aws-cdk-lib.CustomResource",
1100
- "version": "2.118.0"
1108
+ "version": "2.147.3"
1101
1109
  }
1102
1110
  }
1103
1111
  },
1104
1112
  "constructInfo": {
1105
1113
  "fqn": "aws-cdk-lib.aws_s3.Bucket",
1106
- "version": "2.118.0"
1114
+ "version": "2.147.3"
1107
1115
  }
1108
1116
  },
1109
1117
  "firehose-log-group": {
@@ -1119,7 +1127,7 @@
1119
1127
  },
1120
1128
  "constructInfo": {
1121
1129
  "fqn": "aws-cdk-lib.aws_logs.CfnLogGroup",
1122
- "version": "2.118.0"
1130
+ "version": "2.147.3"
1123
1131
  }
1124
1132
  },
1125
1133
  "firehose-log-stream": {
@@ -1139,19 +1147,19 @@
1139
1147
  },
1140
1148
  "constructInfo": {
1141
1149
  "fqn": "aws-cdk-lib.aws_logs.CfnLogStream",
1142
- "version": "2.118.0"
1150
+ "version": "2.147.3"
1143
1151
  }
1144
1152
  }
1145
1153
  },
1146
1154
  "constructInfo": {
1147
1155
  "fqn": "aws-cdk-lib.aws_logs.LogStream",
1148
- "version": "2.118.0"
1156
+ "version": "2.147.3"
1149
1157
  }
1150
1158
  }
1151
1159
  },
1152
1160
  "constructInfo": {
1153
1161
  "fqn": "aws-cdk-lib.aws_logs.LogGroup",
1154
- "version": "2.118.0"
1162
+ "version": "2.147.3"
1155
1163
  }
1156
1164
  },
1157
1165
  "KinesisFirehoseRole": {
@@ -1163,7 +1171,7 @@
1163
1171
  "path": "fhss3-two-instances/second-construct/KinesisFirehoseRole/ImportKinesisFirehoseRole",
1164
1172
  "constructInfo": {
1165
1173
  "fqn": "aws-cdk-lib.Resource",
1166
- "version": "2.118.0"
1174
+ "version": "2.147.3"
1167
1175
  }
1168
1176
  },
1169
1177
  "Resource": {
@@ -1188,13 +1196,13 @@
1188
1196
  },
1189
1197
  "constructInfo": {
1190
1198
  "fqn": "aws-cdk-lib.aws_iam.CfnRole",
1191
- "version": "2.118.0"
1199
+ "version": "2.147.3"
1192
1200
  }
1193
1201
  }
1194
1202
  },
1195
1203
  "constructInfo": {
1196
1204
  "fqn": "aws-cdk-lib.aws_iam.Role",
1197
- "version": "2.118.0"
1205
+ "version": "2.147.3"
1198
1206
  }
1199
1207
  },
1200
1208
  "KinesisFirehosePolicy": {
@@ -1286,13 +1294,13 @@
1286
1294
  },
1287
1295
  "constructInfo": {
1288
1296
  "fqn": "aws-cdk-lib.aws_iam.CfnPolicy",
1289
- "version": "2.118.0"
1297
+ "version": "2.147.3"
1290
1298
  }
1291
1299
  }
1292
1300
  },
1293
1301
  "constructInfo": {
1294
1302
  "fqn": "aws-cdk-lib.aws_iam.Policy",
1295
- "version": "2.118.0"
1303
+ "version": "2.147.3"
1296
1304
  }
1297
1305
  },
1298
1306
  "KinesisFirehose": {
@@ -1361,13 +1369,13 @@
1361
1369
  },
1362
1370
  "constructInfo": {
1363
1371
  "fqn": "aws-cdk-lib.aws_kinesisfirehose.CfnDeliveryStream",
1364
- "version": "2.118.0"
1372
+ "version": "2.147.3"
1365
1373
  }
1366
1374
  }
1367
1375
  },
1368
1376
  "constructInfo": {
1369
1377
  "fqn": "@aws-solutions-constructs/aws-kinesisfirehose-s3.KinesisFirehoseToS3",
1370
- "version": "2.50.0"
1378
+ "version": "2.60.0"
1371
1379
  }
1372
1380
  },
1373
1381
  "second-constructaws-managed-key": {
@@ -1375,7 +1383,7 @@
1375
1383
  "path": "fhss3-two-instances/second-constructaws-managed-key",
1376
1384
  "constructInfo": {
1377
1385
  "fqn": "aws-cdk-lib.Resource",
1378
- "version": "2.118.0"
1386
+ "version": "2.147.3"
1379
1387
  }
1380
1388
  },
1381
1389
  "Integ": {
@@ -1391,7 +1399,7 @@
1391
1399
  "path": "fhss3-two-instances/Integ/DefaultTest/Default",
1392
1400
  "constructInfo": {
1393
1401
  "fqn": "constructs.Construct",
1394
- "version": "10.0.0"
1402
+ "version": "10.3.0"
1395
1403
  }
1396
1404
  },
1397
1405
  "DeployAssert": {
@@ -1403,7 +1411,7 @@
1403
1411
  "path": "fhss3-two-instances/Integ/DefaultTest/DeployAssert/BootstrapVersion",
1404
1412
  "constructInfo": {
1405
1413
  "fqn": "aws-cdk-lib.CfnParameter",
1406
- "version": "2.118.0"
1414
+ "version": "2.147.3"
1407
1415
  }
1408
1416
  },
1409
1417
  "CheckBootstrapVersion": {
@@ -1411,25 +1419,25 @@
1411
1419
  "path": "fhss3-two-instances/Integ/DefaultTest/DeployAssert/CheckBootstrapVersion",
1412
1420
  "constructInfo": {
1413
1421
  "fqn": "aws-cdk-lib.CfnRule",
1414
- "version": "2.118.0"
1422
+ "version": "2.147.3"
1415
1423
  }
1416
1424
  }
1417
1425
  },
1418
1426
  "constructInfo": {
1419
1427
  "fqn": "aws-cdk-lib.Stack",
1420
- "version": "2.118.0"
1428
+ "version": "2.147.3"
1421
1429
  }
1422
1430
  }
1423
1431
  },
1424
1432
  "constructInfo": {
1425
1433
  "fqn": "@aws-cdk/integ-tests-alpha.IntegTestCase",
1426
- "version": "2.118.0-alpha.0"
1434
+ "version": "2.147.3-alpha.0"
1427
1435
  }
1428
1436
  }
1429
1437
  },
1430
1438
  "constructInfo": {
1431
1439
  "fqn": "@aws-cdk/integ-tests-alpha.IntegTest",
1432
- "version": "2.118.0-alpha.0"
1440
+ "version": "2.147.3-alpha.0"
1433
1441
  }
1434
1442
  },
1435
1443
  "BootstrapVersion": {
@@ -1437,7 +1445,7 @@
1437
1445
  "path": "fhss3-two-instances/BootstrapVersion",
1438
1446
  "constructInfo": {
1439
1447
  "fqn": "aws-cdk-lib.CfnParameter",
1440
- "version": "2.118.0"
1448
+ "version": "2.147.3"
1441
1449
  }
1442
1450
  },
1443
1451
  "CheckBootstrapVersion": {
@@ -1445,13 +1453,13 @@
1445
1453
  "path": "fhss3-two-instances/CheckBootstrapVersion",
1446
1454
  "constructInfo": {
1447
1455
  "fqn": "aws-cdk-lib.CfnRule",
1448
- "version": "2.118.0"
1456
+ "version": "2.147.3"
1449
1457
  }
1450
1458
  }
1451
1459
  },
1452
1460
  "constructInfo": {
1453
1461
  "fqn": "aws-cdk-lib.Stack",
1454
- "version": "2.118.0"
1462
+ "version": "2.147.3"
1455
1463
  }
1456
1464
  },
1457
1465
  "Tree": {
@@ -1459,13 +1467,13 @@
1459
1467
  "path": "Tree",
1460
1468
  "constructInfo": {
1461
1469
  "fqn": "constructs.Construct",
1462
- "version": "10.0.0"
1470
+ "version": "10.3.0"
1463
1471
  }
1464
1472
  }
1465
1473
  },
1466
1474
  "constructInfo": {
1467
1475
  "fqn": "aws-cdk-lib.App",
1468
- "version": "2.118.0"
1476
+ "version": "2.147.3"
1469
1477
  }
1470
1478
  }
1471
1479
  }
@@ -1 +0,0 @@
1
- "use strict";var C=Object.create,i=Object.defineProperty,I=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,P=Object.getPrototypeOf,A=Object.prototype.hasOwnProperty,L=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:!0})},d=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of w(t))!A.call(e,s)&&s!==o&&i(e,s,{get:()=>t[s],enumerable:!(r=I(t,s))||r.enumerable});return e},l=(e,t,o)=>(o=e!=null?C(P(e)):{},d(t||!e||!e.__esModule?i(o,"default",{value:e,enumerable:!0}):o,e)),k=e=>d(i({},"__esModule",{value:!0}),e),U={};L(U,{autoDeleteHandler:()=>S,handler:()=>_}),module.exports=k(U);var h=require("@aws-sdk/client-s3"),y=l(require("https")),m=l(require("url")),a={sendHttpRequest:T,log:b,includeStackTraces:!0,userHandlerIndex:"./index"},p="AWSCDK::CustomResourceProviderFramework::CREATE_FAILED",B="AWSCDK::CustomResourceProviderFramework::MISSING_PHYSICAL_ID";function R(e){return async(t,o)=>{let r={...t,ResponseURL:"..."};if(a.log(JSON.stringify(r,void 0,2)),t.RequestType==="Delete"&&t.PhysicalResourceId===p){a.log("ignoring DELETE event caused by a failed CREATE event"),await u("SUCCESS",t);return}try{let s=await e(r,o),n=D(t,s);await u("SUCCESS",n)}catch(s){let n={...t,Reason:a.includeStackTraces?s.stack:s.message};n.PhysicalResourceId||(t.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(t)}`)),await u("FAILED",n)}}}function D(e,t={}){let o=t.PhysicalResourceId??e.PhysicalResourceId??e.RequestId;if(e.RequestType==="Delete"&&o!==e.PhysicalResourceId)throw new Error(`DELETE: cannot change the physical resource ID from "${e.PhysicalResourceId}" to "${t.PhysicalResourceId}" during deletion`);return{...e,...t,PhysicalResourceId:o}}async function u(e,t){let o={Status:e,Reason:t.Reason??e,StackId:t.StackId,RequestId:t.RequestId,PhysicalResourceId:t.PhysicalResourceId||B,LogicalResourceId:t.LogicalResourceId,NoEcho:t.NoEcho,Data:t.Data};a.log("submit response to cloudformation",o);let r=JSON.stringify(o),s=m.parse(t.ResponseURL),n={hostname:s.hostname,path:s.path,method:"PUT",headers:{"content-type":"","content-length":Buffer.byteLength(r,"utf8")}};await O({attempts:5,sleep:1e3},a.sendHttpRequest)(n,r)}async function T(e,t){return new Promise((o,r)=>{try{let s=y.request(e,n=>o());s.on("error",r),s.write(t),s.end()}catch(s){r(s)}})}function b(e,...t){console.log(e,...t)}function O(e,t){return async(...o)=>{let r=e.attempts,s=e.sleep;for(;;)try{return await t(...o)}catch(n){if(r--<=0)throw n;await x(Math.floor(Math.random()*s)),s*=2}}}async function x(e){return new Promise(t=>setTimeout(t,e))}var g="aws-cdk:auto-delete-objects",H=JSON.stringify({Version:"2012-10-17",Statement:[]}),c=new h.S3({}),_=R(S);async function S(e){switch(e.RequestType){case"Create":return;case"Update":return F(e);case"Delete":return f(e.ResourceProperties?.BucketName)}}async function F(e){let t=e,o=t.OldResourceProperties?.BucketName,r=t.ResourceProperties?.BucketName;if(r!=null&&o!=null&&r!==o)return f(o)}async function N(e){try{let t=(await c.getBucketPolicy({Bucket:e}))?.Policy??H,o=JSON.parse(t);o.Statement.push({Principal:"*",Effect:"Deny",Action:["s3:PutObject"],Resource:[`arn:aws:s3:::${e}/*`]}),await c.putBucketPolicy({Bucket:e,Policy:JSON.stringify(o)})}catch(t){if(t.name==="NoSuchBucket")throw t;console.log(`Could not set new object deny policy on bucket '${e}' prior to deletion.`)}}async function E(e){let t=await c.listObjectVersions({Bucket:e}),o=[...t.Versions??[],...t.DeleteMarkers??[]];if(o.length===0)return;let r=o.map(s=>({Key:s.Key,VersionId:s.VersionId}));await c.deleteObjects({Bucket:e,Delete:{Objects:r}}),t?.IsTruncated&&await E(e)}async function f(e){if(!e)throw new Error("No BucketName was provided.");try{if(!await W(e)){console.log(`Bucket does not have '${g}' tag, skipping cleaning.`);return}await N(e),await E(e)}catch(t){if(t.name==="NoSuchBucket"){console.log(`Bucket '${e}' does not exist.`);return}throw t}}async function W(e){return(await c.getBucketTagging({Bucket:e})).TagSet?.some(o=>o.Key===g&&o.Value==="true")}
@@ -1 +0,0 @@
1
- "use strict";var C=Object.create,i=Object.defineProperty,I=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,P=Object.getPrototypeOf,A=Object.prototype.hasOwnProperty,L=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:!0})},d=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of w(t))!A.call(e,s)&&s!==o&&i(e,s,{get:()=>t[s],enumerable:!(r=I(t,s))||r.enumerable});return e},l=(e,t,o)=>(o=e!=null?C(P(e)):{},d(t||!e||!e.__esModule?i(o,"default",{value:e,enumerable:!0}):o,e)),k=e=>d(i({},"__esModule",{value:!0}),e),U={};L(U,{autoDeleteHandler:()=>S,handler:()=>_}),module.exports=k(U);var h=require("@aws-sdk/client-s3"),y=l(require("https")),m=l(require("url")),a={sendHttpRequest:T,log:b,includeStackTraces:!0,userHandlerIndex:"./index"},p="AWSCDK::CustomResourceProviderFramework::CREATE_FAILED",B="AWSCDK::CustomResourceProviderFramework::MISSING_PHYSICAL_ID";function R(e){return async(t,o)=>{let r={...t,ResponseURL:"..."};if(a.log(JSON.stringify(r,void 0,2)),t.RequestType==="Delete"&&t.PhysicalResourceId===p){a.log("ignoring DELETE event caused by a failed CREATE event"),await u("SUCCESS",t);return}try{let s=await e(r,o),n=D(t,s);await u("SUCCESS",n)}catch(s){let n={...t,Reason:a.includeStackTraces?s.stack:s.message};n.PhysicalResourceId||(t.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(t)}`)),await u("FAILED",n)}}}function D(e,t={}){let o=t.PhysicalResourceId??e.PhysicalResourceId??e.RequestId;if(e.RequestType==="Delete"&&o!==e.PhysicalResourceId)throw new Error(`DELETE: cannot change the physical resource ID from "${e.PhysicalResourceId}" to "${t.PhysicalResourceId}" during deletion`);return{...e,...t,PhysicalResourceId:o}}async function u(e,t){let o={Status:e,Reason:t.Reason??e,StackId:t.StackId,RequestId:t.RequestId,PhysicalResourceId:t.PhysicalResourceId||B,LogicalResourceId:t.LogicalResourceId,NoEcho:t.NoEcho,Data:t.Data};a.log("submit response to cloudformation",o);let r=JSON.stringify(o),s=m.parse(t.ResponseURL),n={hostname:s.hostname,path:s.path,method:"PUT",headers:{"content-type":"","content-length":Buffer.byteLength(r,"utf8")}};await O({attempts:5,sleep:1e3},a.sendHttpRequest)(n,r)}async function T(e,t){return new Promise((o,r)=>{try{let s=y.request(e,n=>o());s.on("error",r),s.write(t),s.end()}catch(s){r(s)}})}function b(e,...t){console.log(e,...t)}function O(e,t){return async(...o)=>{let r=e.attempts,s=e.sleep;for(;;)try{return await t(...o)}catch(n){if(r--<=0)throw n;await x(Math.floor(Math.random()*s)),s*=2}}}async function x(e){return new Promise(t=>setTimeout(t,e))}var g="aws-cdk:auto-delete-objects",H=JSON.stringify({Version:"2012-10-17",Statement:[]}),c=new h.S3({}),_=R(S);async function S(e){switch(e.RequestType){case"Create":return;case"Update":return F(e);case"Delete":return f(e.ResourceProperties?.BucketName)}}async function F(e){let t=e,o=t.OldResourceProperties?.BucketName,r=t.ResourceProperties?.BucketName;if(r!=null&&o!=null&&r!==o)return f(o)}async function N(e){try{let t=(await c.getBucketPolicy({Bucket:e}))?.Policy??H,o=JSON.parse(t);o.Statement.push({Principal:"*",Effect:"Deny",Action:["s3:PutObject"],Resource:[`arn:aws:s3:::${e}/*`]}),await c.putBucketPolicy({Bucket:e,Policy:JSON.stringify(o)})}catch(t){if(t.name==="NoSuchBucket")throw t;console.log(`Could not set new object deny policy on bucket '${e}' prior to deletion.`)}}async function E(e){let t=await c.listObjectVersions({Bucket:e}),o=[...t.Versions??[],...t.DeleteMarkers??[]];if(o.length===0)return;let r=o.map(s=>({Key:s.Key,VersionId:s.VersionId}));await c.deleteObjects({Bucket:e,Delete:{Objects:r}}),t?.IsTruncated&&await E(e)}async function f(e){if(!e)throw new Error("No BucketName was provided.");try{if(!await W(e)){console.log(`Bucket does not have '${g}' tag, skipping cleaning.`);return}await N(e),await E(e)}catch(t){if(t.name==="NoSuchBucket"){console.log(`Bucket '${e}' does not exist.`);return}throw t}}async function W(e){return(await c.getBucketTagging({Bucket:e})).TagSet?.some(o=>o.Key===g&&o.Value==="true")}
@@ -1 +0,0 @@
1
- "use strict";var C=Object.create,i=Object.defineProperty,I=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,P=Object.getPrototypeOf,A=Object.prototype.hasOwnProperty,L=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:!0})},d=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of w(t))!A.call(e,s)&&s!==o&&i(e,s,{get:()=>t[s],enumerable:!(r=I(t,s))||r.enumerable});return e},l=(e,t,o)=>(o=e!=null?C(P(e)):{},d(t||!e||!e.__esModule?i(o,"default",{value:e,enumerable:!0}):o,e)),k=e=>d(i({},"__esModule",{value:!0}),e),U={};L(U,{autoDeleteHandler:()=>S,handler:()=>_}),module.exports=k(U);var h=require("@aws-sdk/client-s3"),y=l(require("https")),m=l(require("url")),a={sendHttpRequest:T,log:b,includeStackTraces:!0,userHandlerIndex:"./index"},p="AWSCDK::CustomResourceProviderFramework::CREATE_FAILED",B="AWSCDK::CustomResourceProviderFramework::MISSING_PHYSICAL_ID";function R(e){return async(t,o)=>{let r={...t,ResponseURL:"..."};if(a.log(JSON.stringify(r,void 0,2)),t.RequestType==="Delete"&&t.PhysicalResourceId===p){a.log("ignoring DELETE event caused by a failed CREATE event"),await u("SUCCESS",t);return}try{let s=await e(r,o),n=D(t,s);await u("SUCCESS",n)}catch(s){let n={...t,Reason:a.includeStackTraces?s.stack:s.message};n.PhysicalResourceId||(t.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(t)}`)),await u("FAILED",n)}}}function D(e,t={}){let o=t.PhysicalResourceId??e.PhysicalResourceId??e.RequestId;if(e.RequestType==="Delete"&&o!==e.PhysicalResourceId)throw new Error(`DELETE: cannot change the physical resource ID from "${e.PhysicalResourceId}" to "${t.PhysicalResourceId}" during deletion`);return{...e,...t,PhysicalResourceId:o}}async function u(e,t){let o={Status:e,Reason:t.Reason??e,StackId:t.StackId,RequestId:t.RequestId,PhysicalResourceId:t.PhysicalResourceId||B,LogicalResourceId:t.LogicalResourceId,NoEcho:t.NoEcho,Data:t.Data};a.log("submit response to cloudformation",o);let r=JSON.stringify(o),s=m.parse(t.ResponseURL),n={hostname:s.hostname,path:s.path,method:"PUT",headers:{"content-type":"","content-length":Buffer.byteLength(r,"utf8")}};await O({attempts:5,sleep:1e3},a.sendHttpRequest)(n,r)}async function T(e,t){return new Promise((o,r)=>{try{let s=y.request(e,n=>o());s.on("error",r),s.write(t),s.end()}catch(s){r(s)}})}function b(e,...t){console.log(e,...t)}function O(e,t){return async(...o)=>{let r=e.attempts,s=e.sleep;for(;;)try{return await t(...o)}catch(n){if(r--<=0)throw n;await x(Math.floor(Math.random()*s)),s*=2}}}async function x(e){return new Promise(t=>setTimeout(t,e))}var g="aws-cdk:auto-delete-objects",H=JSON.stringify({Version:"2012-10-17",Statement:[]}),c=new h.S3({}),_=R(S);async function S(e){switch(e.RequestType){case"Create":return;case"Update":return F(e);case"Delete":return f(e.ResourceProperties?.BucketName)}}async function F(e){let t=e,o=t.OldResourceProperties?.BucketName,r=t.ResourceProperties?.BucketName;if(r!=null&&o!=null&&r!==o)return f(o)}async function N(e){try{let t=(await c.getBucketPolicy({Bucket:e}))?.Policy??H,o=JSON.parse(t);o.Statement.push({Principal:"*",Effect:"Deny",Action:["s3:PutObject"],Resource:[`arn:aws:s3:::${e}/*`]}),await c.putBucketPolicy({Bucket:e,Policy:JSON.stringify(o)})}catch(t){if(t.name==="NoSuchBucket")throw t;console.log(`Could not set new object deny policy on bucket '${e}' prior to deletion.`)}}async function E(e){let t=await c.listObjectVersions({Bucket:e}),o=[...t.Versions??[],...t.DeleteMarkers??[]];if(o.length===0)return;let r=o.map(s=>({Key:s.Key,VersionId:s.VersionId}));await c.deleteObjects({Bucket:e,Delete:{Objects:r}}),t?.IsTruncated&&await E(e)}async function f(e){if(!e)throw new Error("No BucketName was provided.");try{if(!await W(e)){console.log(`Bucket does not have '${g}' tag, skipping cleaning.`);return}await N(e),await E(e)}catch(t){if(t.name==="NoSuchBucket"){console.log(`Bucket '${e}' does not exist.`);return}throw t}}async function W(e){return(await c.getBucketTagging({Bucket:e})).TagSet?.some(o=>o.Key===g&&o.Value==="true")}
@@ -1 +0,0 @@
1
- "use strict";var C=Object.create,i=Object.defineProperty,I=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,P=Object.getPrototypeOf,A=Object.prototype.hasOwnProperty,L=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:!0})},d=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of w(t))!A.call(e,s)&&s!==o&&i(e,s,{get:()=>t[s],enumerable:!(r=I(t,s))||r.enumerable});return e},l=(e,t,o)=>(o=e!=null?C(P(e)):{},d(t||!e||!e.__esModule?i(o,"default",{value:e,enumerable:!0}):o,e)),k=e=>d(i({},"__esModule",{value:!0}),e),U={};L(U,{autoDeleteHandler:()=>S,handler:()=>_}),module.exports=k(U);var h=require("@aws-sdk/client-s3"),y=l(require("https")),m=l(require("url")),a={sendHttpRequest:T,log:b,includeStackTraces:!0,userHandlerIndex:"./index"},p="AWSCDK::CustomResourceProviderFramework::CREATE_FAILED",B="AWSCDK::CustomResourceProviderFramework::MISSING_PHYSICAL_ID";function R(e){return async(t,o)=>{let r={...t,ResponseURL:"..."};if(a.log(JSON.stringify(r,void 0,2)),t.RequestType==="Delete"&&t.PhysicalResourceId===p){a.log("ignoring DELETE event caused by a failed CREATE event"),await u("SUCCESS",t);return}try{let s=await e(r,o),n=D(t,s);await u("SUCCESS",n)}catch(s){let n={...t,Reason:a.includeStackTraces?s.stack:s.message};n.PhysicalResourceId||(t.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(t)}`)),await u("FAILED",n)}}}function D(e,t={}){let o=t.PhysicalResourceId??e.PhysicalResourceId??e.RequestId;if(e.RequestType==="Delete"&&o!==e.PhysicalResourceId)throw new Error(`DELETE: cannot change the physical resource ID from "${e.PhysicalResourceId}" to "${t.PhysicalResourceId}" during deletion`);return{...e,...t,PhysicalResourceId:o}}async function u(e,t){let o={Status:e,Reason:t.Reason??e,StackId:t.StackId,RequestId:t.RequestId,PhysicalResourceId:t.PhysicalResourceId||B,LogicalResourceId:t.LogicalResourceId,NoEcho:t.NoEcho,Data:t.Data};a.log("submit response to cloudformation",o);let r=JSON.stringify(o),s=m.parse(t.ResponseURL),n={hostname:s.hostname,path:s.path,method:"PUT",headers:{"content-type":"","content-length":Buffer.byteLength(r,"utf8")}};await O({attempts:5,sleep:1e3},a.sendHttpRequest)(n,r)}async function T(e,t){return new Promise((o,r)=>{try{let s=y.request(e,n=>o());s.on("error",r),s.write(t),s.end()}catch(s){r(s)}})}function b(e,...t){console.log(e,...t)}function O(e,t){return async(...o)=>{let r=e.attempts,s=e.sleep;for(;;)try{return await t(...o)}catch(n){if(r--<=0)throw n;await x(Math.floor(Math.random()*s)),s*=2}}}async function x(e){return new Promise(t=>setTimeout(t,e))}var g="aws-cdk:auto-delete-objects",H=JSON.stringify({Version:"2012-10-17",Statement:[]}),c=new h.S3({}),_=R(S);async function S(e){switch(e.RequestType){case"Create":return;case"Update":return F(e);case"Delete":return f(e.ResourceProperties?.BucketName)}}async function F(e){let t=e,o=t.OldResourceProperties?.BucketName,r=t.ResourceProperties?.BucketName;if(r!=null&&o!=null&&r!==o)return f(o)}async function N(e){try{let t=(await c.getBucketPolicy({Bucket:e}))?.Policy??H,o=JSON.parse(t);o.Statement.push({Principal:"*",Effect:"Deny",Action:["s3:PutObject"],Resource:[`arn:aws:s3:::${e}/*`]}),await c.putBucketPolicy({Bucket:e,Policy:JSON.stringify(o)})}catch(t){if(t.name==="NoSuchBucket")throw t;console.log(`Could not set new object deny policy on bucket '${e}' prior to deletion.`)}}async function E(e){let t=await c.listObjectVersions({Bucket:e}),o=[...t.Versions??[],...t.DeleteMarkers??[]];if(o.length===0)return;let r=o.map(s=>({Key:s.Key,VersionId:s.VersionId}));await c.deleteObjects({Bucket:e,Delete:{Objects:r}}),t?.IsTruncated&&await E(e)}async function f(e){if(!e)throw new Error("No BucketName was provided.");try{if(!await W(e)){console.log(`Bucket does not have '${g}' tag, skipping cleaning.`);return}await N(e),await E(e)}catch(t){if(t.name==="NoSuchBucket"){console.log(`Bucket '${e}' does not exist.`);return}throw t}}async function W(e){return(await c.getBucketTagging({Bucket:e})).TagSet?.some(o=>o.Key===g&&o.Value==="true")}
@@ -1 +0,0 @@
1
- "use strict";var C=Object.create,i=Object.defineProperty,I=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,P=Object.getPrototypeOf,A=Object.prototype.hasOwnProperty,L=(e,t)=>{for(var o in t)i(e,o,{get:t[o],enumerable:!0})},d=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of w(t))!A.call(e,s)&&s!==o&&i(e,s,{get:()=>t[s],enumerable:!(r=I(t,s))||r.enumerable});return e},l=(e,t,o)=>(o=e!=null?C(P(e)):{},d(t||!e||!e.__esModule?i(o,"default",{value:e,enumerable:!0}):o,e)),k=e=>d(i({},"__esModule",{value:!0}),e),U={};L(U,{autoDeleteHandler:()=>S,handler:()=>_}),module.exports=k(U);var h=require("@aws-sdk/client-s3"),y=l(require("https")),m=l(require("url")),a={sendHttpRequest:T,log:b,includeStackTraces:!0,userHandlerIndex:"./index"},p="AWSCDK::CustomResourceProviderFramework::CREATE_FAILED",B="AWSCDK::CustomResourceProviderFramework::MISSING_PHYSICAL_ID";function R(e){return async(t,o)=>{let r={...t,ResponseURL:"..."};if(a.log(JSON.stringify(r,void 0,2)),t.RequestType==="Delete"&&t.PhysicalResourceId===p){a.log("ignoring DELETE event caused by a failed CREATE event"),await u("SUCCESS",t);return}try{let s=await e(r,o),n=D(t,s);await u("SUCCESS",n)}catch(s){let n={...t,Reason:a.includeStackTraces?s.stack:s.message};n.PhysicalResourceId||(t.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(t)}`)),await u("FAILED",n)}}}function D(e,t={}){let o=t.PhysicalResourceId??e.PhysicalResourceId??e.RequestId;if(e.RequestType==="Delete"&&o!==e.PhysicalResourceId)throw new Error(`DELETE: cannot change the physical resource ID from "${e.PhysicalResourceId}" to "${t.PhysicalResourceId}" during deletion`);return{...e,...t,PhysicalResourceId:o}}async function u(e,t){let o={Status:e,Reason:t.Reason??e,StackId:t.StackId,RequestId:t.RequestId,PhysicalResourceId:t.PhysicalResourceId||B,LogicalResourceId:t.LogicalResourceId,NoEcho:t.NoEcho,Data:t.Data};a.log("submit response to cloudformation",o);let r=JSON.stringify(o),s=m.parse(t.ResponseURL),n={hostname:s.hostname,path:s.path,method:"PUT",headers:{"content-type":"","content-length":Buffer.byteLength(r,"utf8")}};await O({attempts:5,sleep:1e3},a.sendHttpRequest)(n,r)}async function T(e,t){return new Promise((o,r)=>{try{let s=y.request(e,n=>o());s.on("error",r),s.write(t),s.end()}catch(s){r(s)}})}function b(e,...t){console.log(e,...t)}function O(e,t){return async(...o)=>{let r=e.attempts,s=e.sleep;for(;;)try{return await t(...o)}catch(n){if(r--<=0)throw n;await x(Math.floor(Math.random()*s)),s*=2}}}async function x(e){return new Promise(t=>setTimeout(t,e))}var g="aws-cdk:auto-delete-objects",H=JSON.stringify({Version:"2012-10-17",Statement:[]}),c=new h.S3({}),_=R(S);async function S(e){switch(e.RequestType){case"Create":return;case"Update":return F(e);case"Delete":return f(e.ResourceProperties?.BucketName)}}async function F(e){let t=e,o=t.OldResourceProperties?.BucketName,r=t.ResourceProperties?.BucketName;if(r!=null&&o!=null&&r!==o)return f(o)}async function N(e){try{let t=(await c.getBucketPolicy({Bucket:e}))?.Policy??H,o=JSON.parse(t);o.Statement.push({Principal:"*",Effect:"Deny",Action:["s3:PutObject"],Resource:[`arn:aws:s3:::${e}/*`]}),await c.putBucketPolicy({Bucket:e,Policy:JSON.stringify(o)})}catch(t){if(t.name==="NoSuchBucket")throw t;console.log(`Could not set new object deny policy on bucket '${e}' prior to deletion.`)}}async function E(e){let t=await c.listObjectVersions({Bucket:e}),o=[...t.Versions??[],...t.DeleteMarkers??[]];if(o.length===0)return;let r=o.map(s=>({Key:s.Key,VersionId:s.VersionId}));await c.deleteObjects({Bucket:e,Delete:{Objects:r}}),t?.IsTruncated&&await E(e)}async function f(e){if(!e)throw new Error("No BucketName was provided.");try{if(!await W(e)){console.log(`Bucket does not have '${g}' tag, skipping cleaning.`);return}await N(e),await E(e)}catch(t){if(t.name==="NoSuchBucket"){console.log(`Bucket '${e}' does not exist.`);return}throw t}}async function W(e){return(await c.getBucketTagging({Bucket:e})).TagSet?.some(o=>o.Key===g&&o.Value==="true")}