aws-cdk 2.1124.0 → 2.1124.1

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.
package/lib/index.js CHANGED
@@ -274,6 +274,13 @@ var init_interfaces = __esm({
274
274
  }
275
275
  });
276
276
 
277
+ // ../@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/validation-report-schema.ts
278
+ var init_validation_report_schema = __esm({
279
+ "../@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/validation-report-schema.ts"() {
280
+ "use strict";
281
+ }
282
+ });
283
+
277
284
  // ../@aws-cdk/cloud-assembly-schema/lib/cloud-assembly/index.ts
278
285
  var cloud_assembly_exports = {};
279
286
  __export(cloud_assembly_exports, {
@@ -291,6 +298,7 @@ var init_cloud_assembly = __esm({
291
298
  init_artifact_schema();
292
299
  init_context_queries();
293
300
  init_interfaces();
301
+ init_validation_report_schema();
294
302
  }
295
303
  });
296
304
 
@@ -3652,7 +3660,7 @@ var require_semver2 = __commonJS({
3652
3660
  // ../@aws-cdk/cloud-assembly-schema/cli-version.json
3653
3661
  var require_cli_version = __commonJS({
3654
3662
  "../@aws-cdk/cloud-assembly-schema/cli-version.json"(exports2, module2) {
3655
- module2.exports = { version: "2.1124.0" };
3663
+ module2.exports = { version: "2.1124.1" };
3656
3664
  }
3657
3665
  });
3658
3666
 
@@ -5685,6 +5693,175 @@ var require_integ_schema = __commonJS({
5685
5693
  }
5686
5694
  });
5687
5695
 
5696
+ // ../@aws-cdk/cloud-assembly-schema/schema/validation-report.schema.json
5697
+ var require_validation_report_schema = __commonJS({
5698
+ "../@aws-cdk/cloud-assembly-schema/schema/validation-report.schema.json"(exports2, module2) {
5699
+ module2.exports = {
5700
+ $ref: "#/definitions/PolicyValidationReportJson",
5701
+ definitions: {
5702
+ PolicyValidationReportJson: {
5703
+ description: "The top-level structure of the policy validation report file.",
5704
+ type: "object",
5705
+ properties: {
5706
+ version: {
5707
+ description: "Protocol version",
5708
+ type: "string"
5709
+ },
5710
+ title: {
5711
+ description: "Report title, if present.",
5712
+ type: "string"
5713
+ },
5714
+ pluginReports: {
5715
+ description: "Reports from all validation plugins that ran during synthesis.",
5716
+ type: "array",
5717
+ items: {
5718
+ $ref: "#/definitions/PluginReportJson"
5719
+ }
5720
+ }
5721
+ },
5722
+ required: ["version", "pluginReports"]
5723
+ },
5724
+ PluginReportJson: {
5725
+ description: "A report from a single validation plugin.",
5726
+ type: "object",
5727
+ properties: {
5728
+ pluginName: {
5729
+ description: "The name of the plugin that produced this report.",
5730
+ type: "string"
5731
+ },
5732
+ pluginVersion: {
5733
+ description: "Version of the plugin that produced this report.",
5734
+ type: "string"
5735
+ },
5736
+ conclusion: {
5737
+ description: "Whether the plugin's validation passed or failed.",
5738
+ $ref: "#/definitions/PolicyValidationReportConclusion"
5739
+ },
5740
+ metadata: {
5741
+ description: "Additional plugin-specific metadata.",
5742
+ type: "object",
5743
+ additionalProperties: {
5744
+ type: "string"
5745
+ }
5746
+ },
5747
+ violations: {
5748
+ description: "Violations found by this plugin.",
5749
+ type: "array",
5750
+ items: {
5751
+ $ref: "#/definitions/PolicyViolationJson"
5752
+ }
5753
+ }
5754
+ },
5755
+ required: ["pluginName", "conclusion", "violations"]
5756
+ },
5757
+ PolicyValidationReportConclusion: {
5758
+ description: "The final conclusion of a validation report.",
5759
+ type: "string",
5760
+ enum: ["success", "failure"]
5761
+ },
5762
+ PolicyViolationJson: {
5763
+ description: "A single policy violation found by a validation plugin.",
5764
+ type: "object",
5765
+ properties: {
5766
+ ruleName: {
5767
+ description: "The name of the rule that was violated.",
5768
+ type: "string"
5769
+ },
5770
+ description: {
5771
+ description: "A description of the violation.",
5772
+ type: "string"
5773
+ },
5774
+ suggestedFix: {
5775
+ description: "How to fix the violation.",
5776
+ type: "string"
5777
+ },
5778
+ severity: {
5779
+ description: "The severity of the violation.",
5780
+ $ref: "#/definitions/PolicyViolationSeverity"
5781
+ },
5782
+ customSeverity: {
5783
+ description: "If the plugin wants to report using a non-standard severity, put it here.",
5784
+ type: "string"
5785
+ },
5786
+ ruleMetadata: {
5787
+ description: "Additional rule-specific metadata.",
5788
+ type: "object",
5789
+ additionalProperties: {
5790
+ type: "string"
5791
+ }
5792
+ },
5793
+ violatingConstructs: {
5794
+ description: "Constructs that violated the rule.",
5795
+ type: "array",
5796
+ items: {
5797
+ $ref: "#/definitions/ViolatingConstructJson"
5798
+ }
5799
+ }
5800
+ },
5801
+ required: ["ruleName", "description", "severity", "violatingConstructs"]
5802
+ },
5803
+ PolicyViolationSeverity: {
5804
+ description: "The severity of a policy violation.",
5805
+ type: "string",
5806
+ enum: ["fatal", "error", "warning", "info", "custom"]
5807
+ },
5808
+ ViolatingConstructJson: {
5809
+ description: "A construct that violated a policy rule.",
5810
+ type: "object",
5811
+ properties: {
5812
+ constructPath: {
5813
+ description: "The construct path as defined in the application.",
5814
+ type: "string"
5815
+ },
5816
+ constructFqn: {
5817
+ description: "The fully qualified name of the construct class (includes the library name).",
5818
+ type: "string"
5819
+ },
5820
+ libraryVersion: {
5821
+ description: "The version of the library that contains this construct.",
5822
+ type: "string"
5823
+ },
5824
+ cloudFormationResource: {
5825
+ description: "If this construct violation regards a CloudFormation resource, a reference to the resource details.",
5826
+ $ref: "#/definitions/CloudFormationResourceJson"
5827
+ },
5828
+ stackTraces: {
5829
+ description: "Stack traces associated with this violation.",
5830
+ type: "array",
5831
+ items: {
5832
+ type: "string"
5833
+ }
5834
+ }
5835
+ },
5836
+ required: ["constructPath"]
5837
+ },
5838
+ CloudFormationResourceJson: {
5839
+ description: "CloudFormation resource details for a violating construct.",
5840
+ type: "object",
5841
+ properties: {
5842
+ templatePath: {
5843
+ description: "The path to the CloudFormation template containing this resource.",
5844
+ type: "string"
5845
+ },
5846
+ logicalId: {
5847
+ description: "The logical ID of the resource in the CloudFormation template.",
5848
+ type: "string"
5849
+ },
5850
+ propertyPaths: {
5851
+ description: "Properties within the construct where the violation was detected.",
5852
+ type: "array",
5853
+ items: {
5854
+ type: "string"
5855
+ }
5856
+ }
5857
+ },
5858
+ required: ["templatePath", "logicalId"]
5859
+ }
5860
+ }
5861
+ };
5862
+ }
5863
+ });
5864
+
5688
5865
  // ../@aws-cdk/cloud-assembly-schema/schema/version.json
5689
5866
  var require_version = __commonJS({
5690
5867
  "../@aws-cdk/cloud-assembly-schema/schema/version.json"(exports2, module2) {
@@ -5705,7 +5882,7 @@ __export(manifest_exports, {
5705
5882
  function stripEnumErrors(errors) {
5706
5883
  return errors.filter((e32) => typeof e32.schema === "string" || !("enum" in e32.schema));
5707
5884
  }
5708
- var fs, jsonschema, semver, VERSION_MISMATCH, CLI_VERSION, ASSETS_SCHEMA, ASSEMBLY_SCHEMA, INTEG_SCHEMA, SCHEMA_VERSION, Manifest;
5885
+ var fs, jsonschema, semver, VERSION_MISMATCH, CLI_VERSION, ASSETS_SCHEMA, ASSEMBLY_SCHEMA, INTEG_SCHEMA, VALIDATION_REPORT_SCHEMA, SCHEMA_VERSION, Manifest;
5709
5886
  var init_manifest = __esm({
5710
5887
  "../@aws-cdk/cloud-assembly-schema/lib/manifest.ts"() {
5711
5888
  "use strict";
@@ -5718,6 +5895,7 @@ var init_manifest = __esm({
5718
5895
  ASSETS_SCHEMA = require_assets_schema();
5719
5896
  ASSEMBLY_SCHEMA = require_cloud_assembly_schema();
5720
5897
  INTEG_SCHEMA = require_integ_schema();
5898
+ VALIDATION_REPORT_SCHEMA = require_validation_report_schema();
5721
5899
  SCHEMA_VERSION = require_version();
5722
5900
  Manifest = class _Manifest {
5723
5901
  static {
@@ -5778,6 +5956,14 @@ var init_manifest = __esm({
5778
5956
  testCases: manifest.testCases ?? []
5779
5957
  };
5780
5958
  }
5959
+ /**
5960
+ * Load and validate the policy validation report from file.
5961
+ *
5962
+ * @param filePath - path to the validation report file.
5963
+ */
5964
+ static loadValidationReport(filePath) {
5965
+ return _Manifest.loadManifest(filePath, VALIDATION_REPORT_SCHEMA);
5966
+ }
5781
5967
  /**
5782
5968
  * Fetch the current schema version number.
5783
5969
  */
@@ -64794,11 +64980,11 @@ var require_randomUUID = __commonJS({
64794
64980
  var require_dist_cjs19 = __commonJS({
64795
64981
  "../../node_modules/@smithy/uuid/dist-cjs/index.js"(exports2) {
64796
64982
  "use strict";
64797
- var randomUUID11 = require_randomUUID();
64983
+ var randomUUID12 = require_randomUUID();
64798
64984
  var decimalToHex6 = Array.from({ length: 256 }, (_2, i32) => i32.toString(16).padStart(2, "0"));
64799
64985
  var v46 = /* @__PURE__ */ __name(() => {
64800
- if (randomUUID11.randomUUID) {
64801
- return randomUUID11.randomUUID();
64986
+ if (randomUUID12.randomUUID) {
64987
+ return randomUUID12.randomUUID();
64802
64988
  }
64803
64989
  const rnds = new Uint8Array(16);
64804
64990
  crypto.getRandomValues(rnds);
@@ -179239,13 +179425,13 @@ async function waitFor(valueProvider, timeout = 5e3) {
179239
179425
  async function waitForChangeSet(cfn, ioHelper, stackNameOrArn, changeSetNameOrArn, { fetchAll, diagnoser }) {
179240
179426
  const stackDisplayName = stackNameFromArn(stackNameOrArn);
179241
179427
  const changeSetDisplayName = changeSetNameFromArn(changeSetNameOrArn);
179242
- await ioHelper.defaults.debug((0, import_util12.format)("Waiting for changeset %s on stack %s to finish creating...", changeSetDisplayName, stackDisplayName));
179428
+ await ioHelper.defaults.debug((0, import_node_util.format)("Waiting for changeset %s on stack %s to finish creating...", changeSetDisplayName, stackDisplayName));
179243
179429
  const ret = await waitFor(async () => {
179244
179430
  const description = await describeChangeSet(cfn, stackNameOrArn, changeSetNameOrArn, {
179245
179431
  fetchAll
179246
179432
  });
179247
179433
  if (description.Status === "CREATE_PENDING" || description.Status === "CREATE_IN_PROGRESS") {
179248
- await ioHelper.defaults.debug((0, import_util12.format)("Changeset %s on stack %s is still creating", changeSetDisplayName, stackDisplayName));
179434
+ await ioHelper.defaults.debug((0, import_node_util.format)("Changeset %s on stack %s is still creating", changeSetDisplayName, stackDisplayName));
179249
179435
  return void 0;
179250
179436
  }
179251
179437
  const diag = await diagnoser.diagnoseChangeSet(description);
@@ -179262,7 +179448,7 @@ async function waitForChangeSet(cfn, ioHelper, stackNameOrArn, changeSetNameOrAr
179262
179448
  async function waitForChangeSetGone(cfn, ioHelper, stackNameOrArn, changeSetNameOrArn) {
179263
179449
  const stackDisplayName = stackNameFromArn(stackNameOrArn);
179264
179450
  const changeSetDisplayName = changeSetNameFromArn(changeSetNameOrArn);
179265
- await ioHelper.defaults.debug((0, import_util12.format)("Waiting for changeset %s on stack %s to finish deleting...", changeSetDisplayName, stackDisplayName));
179451
+ await ioHelper.defaults.debug((0, import_node_util.format)("Waiting for changeset %s on stack %s to finish deleting...", changeSetDisplayName, stackDisplayName));
179266
179452
  await waitFor(async () => {
179267
179453
  try {
179268
179454
  const description = await cfn.describeChangeSet({
@@ -179324,7 +179510,7 @@ async function uploadBodyParameterAndCreateChangeSet(ioHelper, env3, options) {
179324
179510
  );
179325
179511
  const cfn = env3.sdk.cloudFormation();
179326
179512
  const stack = await CloudFormationStack.lookup(cfn, options.stack.stackName, false);
179327
- const exists = stack.exists && stack.stackStatus.name !== "REVIEW_IN_PROGRESS";
179513
+ const exists = stack.exists && stack.stackStatus.name !== "REVIEW_IN_PROGRESS" && stack.stackStatus.name !== "DELETE_IN_PROGRESS";
179328
179514
  const executionRoleArn = await env3.replacePlaceholders(options.stack.cloudFormationExecutionRoleArn);
179329
179515
  await ioHelper.defaults.info(
179330
179516
  "Hold on while we create a read-only change set to get a diff with accurate replacement information (use --method=template to use a less accurate but faster template-only diff)\n"
@@ -179390,7 +179576,7 @@ async function createChangeSetAndCleanup(ioHelper, options) {
179390
179576
  Tags: toCfnTags(options.stack.tags),
179391
179577
  Capabilities: ["CAPABILITY_IAM", "CAPABILITY_NAMED_IAM", "CAPABILITY_AUTO_EXPAND"]
179392
179578
  });
179393
- await ioHelper.defaults.debug((0, import_util12.format)("Initiated creation of changeset: %s; waiting for it to finish creating...", changeSet.Id));
179579
+ await ioHelper.defaults.debug((0, import_node_util.format)("Initiated creation of changeset: %s; waiting for it to finish creating...", changeSet.Id));
179394
179580
  const createdChangeSet = await waitForChangeSet(
179395
179581
  options.cfn,
179396
179582
  ioHelper,
@@ -179407,6 +179593,13 @@ async function createChangeSetAndCleanup(ioHelper, options) {
179407
179593
  changeSet.Id ?? options.changeSetName,
179408
179594
  changeSet.StackId ?? options.stack.stackName
179409
179595
  );
179596
+ if (!options.exists) {
179597
+ await ioHelper.defaults.debug((0, import_node_util.format)("Deleting empty stack created by diff changeset: %s", changeSet.StackId ?? options.stack.stackName));
179598
+ await options.cfn.deleteStack({
179599
+ StackName: changeSet.StackId ?? options.stack.stackName,
179600
+ ClientRequestToken: (0, import_node_crypto3.randomUUID)()
179601
+ });
179602
+ }
179410
179603
  return createdChangeSet;
179411
179604
  }
179412
179605
  function toCfnTags(tags) {
@@ -179458,28 +179651,29 @@ async function waitForStackDeploy(cfn, ioHelper, stackName) {
179458
179651
  }
179459
179652
  async function stabilizeStack(cfn, ioHelper, stackNameOrArn) {
179460
179653
  const stackDisplayName = stackNameFromArn(stackNameOrArn);
179461
- await ioHelper.defaults.debug((0, import_util12.format)("Waiting for stack %s to finish creating or updating...", stackDisplayName));
179654
+ await ioHelper.defaults.debug((0, import_node_util.format)("Waiting for stack %s to finish creating or updating...", stackDisplayName));
179462
179655
  return waitFor(async () => {
179463
179656
  const stack = await CloudFormationStack.lookup(cfn, stackNameOrArn);
179464
179657
  if (!stack.exists) {
179465
- await ioHelper.defaults.debug((0, import_util12.format)("Stack %s does not exist", stackDisplayName));
179658
+ await ioHelper.defaults.debug((0, import_node_util.format)("Stack %s does not exist", stackDisplayName));
179466
179659
  return null;
179467
179660
  }
179468
179661
  const status = stack.stackStatus;
179469
179662
  if (status.isInProgress) {
179470
- await ioHelper.defaults.debug((0, import_util12.format)("Stack %s has an ongoing operation in progress and is not stable (%s)", stackDisplayName, status));
179663
+ await ioHelper.defaults.debug((0, import_node_util.format)("Stack %s has an ongoing operation in progress and is not stable (%s)", stackDisplayName, status));
179471
179664
  return void 0;
179472
179665
  } else if (status.isReviewInProgress) {
179473
- await ioHelper.defaults.debug((0, import_util12.format)("Stack %s is in REVIEW_IN_PROGRESS state. Considering this is a stable status (%s)", stackDisplayName, status));
179666
+ await ioHelper.defaults.debug((0, import_node_util.format)("Stack %s is in REVIEW_IN_PROGRESS state. Considering this is a stable status (%s)", stackDisplayName, status));
179474
179667
  }
179475
179668
  return stack;
179476
179669
  });
179477
179670
  }
179478
- var import_util12, import_cdk_assets_lib3, cxapi2, import_cloud_assembly_api4, import_client_cloudformation3, TemplateParameters, ParameterValues;
179671
+ var import_node_crypto3, import_node_util, import_cdk_assets_lib3, cxapi2, import_cloud_assembly_api4, import_client_cloudformation3, TemplateParameters, ParameterValues;
179479
179672
  var init_cfn_api = __esm({
179480
179673
  "../@aws-cdk/toolkit-lib/lib/api/deployments/cfn-api.ts"() {
179481
179674
  "use strict";
179482
- import_util12 = require("util");
179675
+ import_node_crypto3 = require("node:crypto");
179676
+ import_node_util = require("node:util");
179483
179677
  import_cdk_assets_lib3 = __toESM(require_lib6());
179484
179678
  cxapi2 = __toESM(require_lib3());
179485
179679
  import_cloud_assembly_api4 = __toESM(require_lib3());
@@ -190143,11 +190337,11 @@ function _diffStrings(oldStr, newStr, context) {
190143
190337
  }
190144
190338
  __name(_findIndent, "_findIndent");
190145
190339
  }
190146
- var import_util20, chalk7, PATH_METADATA_KEY3, structuredPatch, ADDITION2, CONTEXT, UPDATE2, REMOVAL2, IMPORT, Formatter;
190340
+ var import_util19, chalk7, PATH_METADATA_KEY3, structuredPatch, ADDITION2, CONTEXT, UPDATE2, REMOVAL2, IMPORT, Formatter;
190147
190341
  var init_format = __esm({
190148
190342
  "../@aws-cdk/cloudformation-diff/lib/format.ts"() {
190149
190343
  "use strict";
190150
- import_util20 = require("util");
190344
+ import_util19 = require("util");
190151
190345
  chalk7 = __toESM(require_source());
190152
190346
  init_util4();
190153
190347
  init_diff_template();
@@ -190176,10 +190370,10 @@ var init_format = __esm({
190176
190370
  __name(this, "Formatter");
190177
190371
  }
190178
190372
  print(fmt, ...args) {
190179
- this.stream.write(chalk7.reset((0, import_util20.format)(fmt, ...args)) + "\n");
190373
+ this.stream.write(chalk7.reset((0, import_util19.format)(fmt, ...args)) + "\n");
190180
190374
  }
190181
190375
  warning(fmt, ...args) {
190182
- this.stream.write(chalk7.yellow((0, import_util20.format)(fmt, ...args)) + "\n");
190376
+ this.stream.write(chalk7.yellow((0, import_util19.format)(fmt, ...args)) + "\n");
190183
190377
  }
190184
190378
  formatSection(title, entryType, collection, formatter = this.formatDifference.bind(this)) {
190185
190379
  if (collection.differenceCount === 0) {
@@ -192143,7 +192337,7 @@ async function applyHotswapOperation(sdk, ioSpan, hotswapOperation) {
192143
192337
  sdk.appendCustomUserAgent(customUserAgent);
192144
192338
  const resourceText = /* @__PURE__ */ __name((r32) => r32.description ?? `${r32.resourceType} '${r32.physicalName ?? r32.logicalId}'`, "resourceText");
192145
192339
  await ioSpan.notify(IO.CDK_TOOLKIT_I5402.msg(
192146
- hotswapOperation.change.resources.map((r32) => (0, import_util26.format)(` ${ICON} %s`, chalk9.bold(resourceText(r32)))).join("\n"),
192340
+ hotswapOperation.change.resources.map((r32) => (0, import_util25.format)(` ${ICON} %s`, chalk9.bold(resourceText(r32)))).join("\n"),
192147
192341
  hotswapOperation.change
192148
192342
  ));
192149
192343
  try {
@@ -192158,7 +192352,7 @@ async function applyHotswapOperation(sdk, ioSpan, hotswapOperation) {
192158
192352
  throw e32;
192159
192353
  }
192160
192354
  await ioSpan.notify(IO.CDK_TOOLKIT_I5403.msg(
192161
- hotswapOperation.change.resources.map((r32) => (0, import_util26.format)(` ${ICON} %s %s`, chalk9.bold(resourceText(r32)), chalk9.green("hotswapped!"))).join("\n"),
192355
+ hotswapOperation.change.resources.map((r32) => (0, import_util25.format)(` ${ICON} %s %s`, chalk9.bold(resourceText(r32)), chalk9.green("hotswapped!"))).join("\n"),
192162
192356
  hotswapOperation.change
192163
192357
  ));
192164
192358
  sdk.removeCustomUserAgent(customUserAgent);
@@ -192187,9 +192381,9 @@ async function logRejectedChanges(ioSpan, rejectedChanges, hotswapMode) {
192187
192381
  }
192188
192382
  const messages = [""];
192189
192383
  if (hotswapMode === "hotswap-only") {
192190
- messages.push((0, import_util26.format)("%s %s", chalk9.red("\u26A0\uFE0F"), chalk9.red("The following non-hotswappable changes were found. To reconcile these using CloudFormation, specify --hotswap-fallback")));
192384
+ messages.push((0, import_util25.format)("%s %s", chalk9.red("\u26A0\uFE0F"), chalk9.red("The following non-hotswappable changes were found. To reconcile these using CloudFormation, specify --hotswap-fallback")));
192191
192385
  } else {
192192
- messages.push((0, import_util26.format)("%s %s", chalk9.red("\u26A0\uFE0F"), chalk9.red("The following non-hotswappable changes were found:")));
192386
+ messages.push((0, import_util25.format)("%s %s", chalk9.red("\u26A0\uFE0F"), chalk9.red("The following non-hotswappable changes were found:")));
192193
192387
  }
192194
192388
  for (const { change } of rejectedChanges) {
192195
192389
  messages.push(" " + nonHotswappableChangeMessage(change));
@@ -192202,7 +192396,7 @@ function nonHotswappableChangeMessage(change) {
192202
192396
  const reason = change.description ?? change.reason;
192203
192397
  switch (subject.type) {
192204
192398
  case "Output":
192205
- return (0, import_util26.format)(
192399
+ return (0, import_util25.format)(
192206
192400
  "output: %s, reason: %s",
192207
192401
  chalk9.bold(subject.logicalId),
192208
192402
  chalk9.red(reason)
@@ -192213,7 +192407,7 @@ function nonHotswappableChangeMessage(change) {
192213
192407
  }
192214
192408
  function nonHotswappableResourceMessage(subject, reason) {
192215
192409
  if (subject.rejectedProperties?.length) {
192216
- return (0, import_util26.format)(
192410
+ return (0, import_util25.format)(
192217
192411
  "resource: %s, type: %s, rejected changes: %s, reason: %s",
192218
192412
  chalk9.bold(subject.logicalId),
192219
192413
  chalk9.bold(subject.resourceType),
@@ -192221,18 +192415,18 @@ function nonHotswappableResourceMessage(subject, reason) {
192221
192415
  chalk9.red(reason)
192222
192416
  );
192223
192417
  }
192224
- return (0, import_util26.format)(
192418
+ return (0, import_util25.format)(
192225
192419
  "resource: %s, type: %s, reason: %s",
192226
192420
  chalk9.bold(subject.logicalId),
192227
192421
  chalk9.bold(subject.resourceType),
192228
192422
  chalk9.red(reason)
192229
192423
  );
192230
192424
  }
192231
- var import_util26, cfn_diff, chalk9, pLimit2, RESOURCE_DETECTORS;
192425
+ var import_util25, cfn_diff, chalk9, pLimit2, RESOURCE_DETECTORS;
192232
192426
  var init_hotswap_deployments = __esm({
192233
192427
  "../@aws-cdk/toolkit-lib/lib/api/hotswap/hotswap-deployments.ts"() {
192234
192428
  "use strict";
192235
- import_util26 = require("util");
192429
+ import_util25 = require("util");
192236
192430
  cfn_diff = __toESM(require_lib10());
192237
192431
  chalk9 = __toESM(require_source());
192238
192432
  init_payloads();
@@ -192338,7 +192532,7 @@ async function deployStack(options, ioHelper) {
192338
192532
  await ioHelper.defaults.debug(
192339
192533
  `Found existing stack ${deployName} that had previously failed creation. Deleting it before attempting to re-create it.`
192340
192534
  );
192341
- await cfn.deleteStack({ StackName: cloudFormationStack.stackId, ClientRequestToken: (0, import_node_crypto3.randomUUID)() });
192535
+ await cfn.deleteStack({ StackName: cloudFormationStack.stackId, ClientRequestToken: (0, import_node_crypto4.randomUUID)() });
192342
192536
  const deletedStack = await waitForStackDelete(cfn, ioHelper, cloudFormationStack.stackId);
192343
192537
  if (deletedStack && deletedStack.stackStatus.name !== "DELETE_COMPLETE") {
192344
192538
  throw new DeploymentError(
@@ -192363,7 +192557,7 @@ async function deployStack(options, ioHelper) {
192363
192557
  await ioHelper.defaults.debug(`${deployName}: skipping deployment (use --force to override)`);
192364
192558
  if (deploymentMethod?.method === "hotswap") {
192365
192559
  await ioHelper.defaults.info(
192366
- (0, import_node_util.format)(
192560
+ (0, import_node_util2.format)(
192367
192561
  `
192368
192562
  ${ICON} %s
192369
192563
  `,
@@ -192417,7 +192611,7 @@ async function deployStack(options, ioHelper) {
192417
192611
  );
192418
192612
  return hotswapDeploymentResult;
192419
192613
  }
192420
- await ioHelper.defaults.info((0, import_node_util.format)(
192614
+ await ioHelper.defaults.info((0, import_node_util2.format)(
192421
192615
  "Could not perform a hotswap deployment, as the stack %s contains non-Asset changes",
192422
192616
  stackArtifact.displayName
192423
192617
  ));
@@ -192425,7 +192619,7 @@ async function deployStack(options, ioHelper) {
192425
192619
  if (!(e32 instanceof CfnEvaluationException)) {
192426
192620
  throw e32;
192427
192621
  }
192428
- await ioHelper.defaults.info((0, import_node_util.format)(
192622
+ await ioHelper.defaults.info((0, import_node_util2.format)(
192429
192623
  "Could not perform a hotswap deployment, because the CloudFormation template could not be resolved: %s",
192430
192624
  formatErrorMessage(e32)
192431
192625
  ));
@@ -192470,7 +192664,7 @@ async function destroyStack(options, ioHelper) {
192470
192664
  });
192471
192665
  await monitor.start();
192472
192666
  try {
192473
- await cfn.deleteStack({ StackName: currentStack.stackId, RoleARN: options.roleArn, ClientRequestToken: (0, import_node_crypto3.randomUUID)() });
192667
+ await cfn.deleteStack({ StackName: currentStack.stackId, RoleARN: options.roleArn, ClientRequestToken: (0, import_node_crypto4.randomUUID)() });
192474
192668
  const destroyedStack = await waitForStackDelete(cfn, ioHelper, currentStack.stackId);
192475
192669
  if (destroyedStack && destroyedStack.stackStatus.name !== "DELETE_COMPLETE") {
192476
192670
  throw new DeploymentError(`Failed to destroy ${deployName}: ${destroyedStack.stackStatus}`, "StackDestroyFailed");
@@ -192561,12 +192755,12 @@ function hasReplacement(cs) {
192561
192755
  return a32 === "ReplaceAndDelete" || a32 === "ReplaceAndRetain" || a32 === "ReplaceAndSnapshot";
192562
192756
  });
192563
192757
  }
192564
- var import_node_crypto3, import_node_util, chalk10, FullCloudFormationDeployment;
192758
+ var import_node_crypto4, import_node_util2, chalk10, FullCloudFormationDeployment;
192565
192759
  var init_deploy_stack = __esm({
192566
192760
  "../@aws-cdk/toolkit-lib/lib/api/deployments/deploy-stack.ts"() {
192567
192761
  "use strict";
192568
- import_node_crypto3 = require("node:crypto");
192569
- import_node_util = require("node:util");
192762
+ import_node_crypto4 = require("node:crypto");
192763
+ import_node_util2 = require("node:util");
192570
192764
  chalk10 = __toESM(require_source());
192571
192765
  init_asset_manifest_builder();
192572
192766
  init_asset_publishing();
@@ -192600,7 +192794,7 @@ var init_deploy_stack = __esm({
192600
192794
  this.stackName = options.deployName ?? stackArtifact.stackName;
192601
192795
  this.update = cloudFormationStack.exists && cloudFormationStack.stackStatus.name !== "REVIEW_IN_PROGRESS";
192602
192796
  this.verb = this.update ? "update" : "create";
192603
- this.uuid = (0, import_node_crypto3.randomUUID)();
192797
+ this.uuid = (0, import_node_crypto4.randomUUID)();
192604
192798
  }
192605
192799
  deploymentMethod;
192606
192800
  options;
@@ -192641,9 +192835,9 @@ var init_deploy_stack = __esm({
192641
192835
  const changeSetDescription = await this.createChangeSet(changeSetName, execute2, importExistingResources, revertDrift);
192642
192836
  await this.updateTerminationProtection();
192643
192837
  if (changeSetHasNoChanges(changeSetDescription)) {
192644
- await this.ioHelper.defaults.debug((0, import_node_util.format)("No changes are to be performed on %s.", this.stackName));
192838
+ await this.ioHelper.defaults.debug((0, import_node_util2.format)("No changes are to be performed on %s.", this.stackName));
192645
192839
  if (execute2) {
192646
- await this.ioHelper.defaults.debug((0, import_node_util.format)("Deleting empty change set %s", changeSetDescription.ChangeSetId));
192840
+ await this.ioHelper.defaults.debug((0, import_node_util2.format)("Deleting empty change set %s", changeSetDescription.ChangeSetId));
192647
192841
  await this.cfn.deleteChangeSet({
192648
192842
  StackName: changeSetDescription.StackId ?? this.stackName,
192649
192843
  ChangeSetName: changeSetDescription.ChangeSetId ?? changeSetName
@@ -192668,7 +192862,7 @@ var init_deploy_stack = __esm({
192668
192862
  };
192669
192863
  }
192670
192864
  if (!execute2) {
192671
- await this.ioHelper.defaults.info((0, import_node_util.format)(
192865
+ await this.ioHelper.defaults.info((0, import_node_util2.format)(
192672
192866
  "Changeset %s created and waiting in review for manual execution (--no-execute)",
192673
192867
  changeSetDescription.ChangeSetId
192674
192868
  ));
@@ -192719,7 +192913,7 @@ var init_deploy_stack = __esm({
192719
192913
  async createChangeSet(changeSetName, willExecute, importExistingResources, revertDrift) {
192720
192914
  await this.cleanupOldChangeset(changeSetName);
192721
192915
  await this.ioHelper.defaults.debug(`Attempting to create ChangeSet with name ${changeSetName} to ${this.verb} stack ${this.stackName}`);
192722
- await this.ioHelper.defaults.info((0, import_node_util.format)("%s: creating CloudFormation changeset...", chalk10.bold(this.stackName)));
192916
+ await this.ioHelper.defaults.info((0, import_node_util2.format)("%s: creating CloudFormation changeset...", chalk10.bold(this.stackName)));
192723
192917
  const changeSet = await this.cfn.createChangeSet({
192724
192918
  StackName: this.stackName,
192725
192919
  ChangeSetName: changeSetName,
@@ -192732,14 +192926,14 @@ var init_deploy_stack = __esm({
192732
192926
  IncludeNestedStacks: this.options.resourcesToImport || revertDrift ? void 0 : true,
192733
192927
  ...this.commonPrepareOptions()
192734
192928
  });
192735
- await this.ioHelper.defaults.debug((0, import_node_util.format)("Initiated creation of changeset: %s; waiting for it to finish creating...", changeSet.Id));
192929
+ await this.ioHelper.defaults.debug((0, import_node_util2.format)("Initiated creation of changeset: %s; waiting for it to finish creating...", changeSet.Id));
192736
192930
  return waitForChangeSet(this.cfn, this.ioHelper, changeSet.StackId ?? this.stackName, changeSet.Id ?? changeSetName, {
192737
192931
  fetchAll: willExecute,
192738
192932
  diagnoser: this.diagnoser
192739
192933
  });
192740
192934
  }
192741
192935
  async executeChangeSet(changeSet) {
192742
- await this.ioHelper.defaults.debug((0, import_node_util.format)("Initiating execution of changeset %s on stack %s", changeSet.ChangeSetId, this.stackName));
192936
+ await this.ioHelper.defaults.debug((0, import_node_util2.format)("Initiating execution of changeset %s on stack %s", changeSet.ChangeSetId, this.stackName));
192743
192937
  await this.cfn.executeChangeSet({
192744
192938
  StackName: changeSet.StackId ?? this.stackName,
192745
192939
  ChangeSetName: changeSet.ChangeSetId,
@@ -192747,7 +192941,7 @@ var init_deploy_stack = __esm({
192747
192941
  ...this.commonExecuteOptions()
192748
192942
  });
192749
192943
  await this.ioHelper.defaults.debug(
192750
- (0, import_node_util.format)(
192944
+ (0, import_node_util2.format)(
192751
192945
  "Execution of changeset %s on stack %s has started; waiting for the update to complete...",
192752
192946
  changeSet.ChangeSetId,
192753
192947
  this.stackName
@@ -192771,7 +192965,7 @@ var init_deploy_stack = __esm({
192771
192965
  const terminationProtection = this.stackArtifact.terminationProtection ?? false;
192772
192966
  if (!!this.cloudFormationStack.terminationProtection !== terminationProtection) {
192773
192967
  await this.ioHelper.defaults.debug(
192774
- (0, import_node_util.format)(
192968
+ (0, import_node_util2.format)(
192775
192969
  "Updating termination protection from %s to %s for stack %s",
192776
192970
  this.cloudFormationStack.terminationProtection,
192777
192971
  terminationProtection,
@@ -192782,11 +192976,11 @@ var init_deploy_stack = __esm({
192782
192976
  StackName: this.stackName,
192783
192977
  EnableTerminationProtection: terminationProtection
192784
192978
  });
192785
- await this.ioHelper.defaults.debug((0, import_node_util.format)("Termination protection updated to %s for stack %s", terminationProtection, this.stackName));
192979
+ await this.ioHelper.defaults.debug((0, import_node_util2.format)("Termination protection updated to %s for stack %s", terminationProtection, this.stackName));
192786
192980
  }
192787
192981
  }
192788
192982
  async directDeployment() {
192789
- await this.ioHelper.defaults.info((0, import_node_util.format)("%s: %s stack...", chalk10.bold(this.stackName), this.update ? "updating" : "creating"));
192983
+ await this.ioHelper.defaults.info((0, import_node_util2.format)("%s: %s stack...", chalk10.bold(this.stackName), this.update ? "updating" : "creating"));
192790
192984
  const startTime = /* @__PURE__ */ new Date();
192791
192985
  if (this.update) {
192792
192986
  await this.updateTerminationProtection();
@@ -192800,7 +192994,7 @@ var init_deploy_stack = __esm({
192800
192994
  return await this.monitorDeployment(startTime, stack.StackId, void 0);
192801
192995
  } catch (err) {
192802
192996
  if (err.message === "No updates are to be performed.") {
192803
- await this.ioHelper.defaults.debug((0, import_node_util.format)("No updates are to be performed for stack %s", this.stackName));
192997
+ await this.ioHelper.defaults.debug((0, import_node_util2.format)("No updates are to be performed for stack %s", this.stackName));
192804
192998
  return {
192805
192999
  type: "did-deploy-stack",
192806
193000
  noOp: true,
@@ -192851,7 +193045,7 @@ var init_deploy_stack = __esm({
192851
193045
  } finally {
192852
193046
  await monitor.stop();
192853
193047
  }
192854
- await this.ioHelper.defaults.debug((0, import_node_util.format)("Stack %s has completed updating", this.stackName));
193048
+ await this.ioHelper.defaults.debug((0, import_node_util2.format)("Stack %s has completed updating", this.stackName));
192855
193049
  return {
192856
193050
  type: "did-deploy-stack",
192857
193051
  noOp: false,
@@ -193547,11 +193741,11 @@ var init_notices2 = __esm({
193547
193741
  });
193548
193742
 
193549
193743
  // ../@aws-cdk/toolkit-lib/lib/api/toolkit-info.ts
193550
- var import_util32, chalk11, DEFAULT_TOOLKIT_STACK_NAME, ToolkitInfo, ExistingToolkitInfo, BootstrapStackNotFoundInfo;
193744
+ var import_util31, chalk11, DEFAULT_TOOLKIT_STACK_NAME, ToolkitInfo, ExistingToolkitInfo, BootstrapStackNotFoundInfo;
193551
193745
  var init_toolkit_info = __esm({
193552
193746
  "../@aws-cdk/toolkit-lib/lib/api/toolkit-info.ts"() {
193553
193747
  "use strict";
193554
- import_util32 = require("util");
193748
+ import_util31 = require("util");
193555
193749
  chalk11 = __toESM(require_source());
193556
193750
  init_bootstrap_props();
193557
193751
  init_toolkit_error();
@@ -193571,7 +193765,7 @@ var init_toolkit_info = __esm({
193571
193765
  const stack = await stabilizeStack(cfn, ioHelper, stackName);
193572
193766
  if (!stack) {
193573
193767
  await ioHelper.defaults.debug(
193574
- (0, import_util32.format)(
193768
+ (0, import_util31.format)(
193575
193769
  "The environment %s doesn't have the CDK toolkit stack (%s) installed. Use %s to setup your environment for use with the toolkit.",
193576
193770
  environment.name,
193577
193771
  stackName,
@@ -193582,7 +193776,7 @@ var init_toolkit_info = __esm({
193582
193776
  }
193583
193777
  if (stack.stackStatus.isCreationFailure) {
193584
193778
  await ioHelper.defaults.debug(
193585
- (0, import_util32.format)(
193779
+ (0, import_util31.format)(
193586
193780
  "The environment %s has a CDK toolkit stack (%s) that failed to create. Use %s to try provisioning it again.",
193587
193781
  environment.name,
193588
193782
  stackName,
@@ -194135,11 +194329,11 @@ var init_environment2 = __esm({
194135
194329
  function suffixWithErrors2(msg, errors) {
194136
194330
  return errors && errors.length > 0 ? `${msg}: ${errors.join(", ")}` : msg;
194137
194331
  }
194138
- var import_node_crypto4, cdk_assets, chalk12, BOOTSTRAP_STACK_VERSION_FOR_ROLLBACK, Deployments, ParallelSafeAssetProgress;
194332
+ var import_node_crypto5, cdk_assets, chalk12, BOOTSTRAP_STACK_VERSION_FOR_ROLLBACK, Deployments, ParallelSafeAssetProgress;
194139
194333
  var init_deployments = __esm({
194140
194334
  "../@aws-cdk/toolkit-lib/lib/api/deployments/deployments.ts"() {
194141
194335
  "use strict";
194142
- import_node_crypto4 = require("node:crypto");
194336
+ import_node_crypto5 = require("node:crypto");
194143
194337
  cdk_assets = __toESM(require_lib6());
194144
194338
  chalk12 = __toESM(require_source());
194145
194339
  init_asset_manifest_builder();
@@ -194310,7 +194504,7 @@ var init_deployments = __esm({
194310
194504
  }
194311
194505
  await cfn.deleteChangeSet({ StackName: deployName, ChangeSetName: changeSetName });
194312
194506
  if (cloudFormationStack.stackStatus.name === "REVIEW_IN_PROGRESS") {
194313
- await cfn.deleteStack({ StackName: deployName, ClientRequestToken: (0, import_node_crypto4.randomUUID)() });
194507
+ await cfn.deleteStack({ StackName: deployName, ClientRequestToken: (0, import_node_crypto5.randomUUID)() });
194314
194508
  await waitForStackDelete(cfn, this.ioHelper, deployName);
194315
194509
  }
194316
194510
  }
@@ -194366,7 +194560,7 @@ var init_deployments = __esm({
194366
194560
  await cfn.rollbackStack({
194367
194561
  StackName: stackArn,
194368
194562
  RoleARN: executionRoleArn,
194369
- ClientRequestToken: (0, import_node_crypto4.randomUUID)(),
194563
+ ClientRequestToken: (0, import_node_crypto5.randomUUID)(),
194370
194564
  // Enabling this is just the better overall default, the only reason it isn't the upstream default is backwards compatibility
194371
194565
  RetainExceptOnCreate: true
194372
194566
  });
@@ -194384,7 +194578,7 @@ var init_deployments = __esm({
194384
194578
  await this.ioHelper.defaults.warn(`Continuing rollback of stack ${deployName}${skipDescription}`);
194385
194579
  await cfn.continueUpdateRollback({
194386
194580
  StackName: stackArn,
194387
- ClientRequestToken: (0, import_node_crypto4.randomUUID)(),
194581
+ ClientRequestToken: (0, import_node_crypto5.randomUUID)(),
194388
194582
  RoleARN: executionRoleArn,
194389
194583
  ResourcesToSkip: resourcesToSkip
194390
194584
  });
@@ -197720,14 +197914,14 @@ var init_getProfileName = __esm({
197720
197914
  });
197721
197915
 
197722
197916
  // ../../node_modules/@aws-sdk/client-appsync/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSSOTokenFilepath.js
197723
- var import_node_crypto5, import_node_path2, getSSOTokenFilepath;
197917
+ var import_node_crypto6, import_node_path2, getSSOTokenFilepath;
197724
197918
  var init_getSSOTokenFilepath = __esm({
197725
197919
  "../../node_modules/@aws-sdk/client-appsync/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSSOTokenFilepath.js"() {
197726
- import_node_crypto5 = require("node:crypto");
197920
+ import_node_crypto6 = require("node:crypto");
197727
197921
  import_node_path2 = require("node:path");
197728
197922
  init_getHomeDir();
197729
197923
  getSSOTokenFilepath = /* @__PURE__ */ __name((id) => {
197730
- const hasher = (0, import_node_crypto5.createHash)("sha1");
197924
+ const hasher = (0, import_node_crypto6.createHash)("sha1");
197731
197925
  const cacheName = hasher.update(id).digest("hex");
197732
197926
  return (0, import_node_path2.join)(getHomeDir(), ".aws", "sso", "cache", `${cacheName}.json`);
197733
197927
  }, "getSSOTokenFilepath");
@@ -199962,10 +200156,10 @@ function castSourceData(toCast, encoding) {
199962
200156
  }
199963
200157
  return fromArrayBuffer(toCast);
199964
200158
  }
199965
- var import_node_crypto6, Hash19;
200159
+ var import_node_crypto7, Hash19;
199966
200160
  var init_hash_node = __esm({
199967
200161
  "../../node_modules/@aws-sdk/client-appsync/node_modules/@smithy/core/dist-es/submodules/serde/hash-node/hash-node.js"() {
199968
- import_node_crypto6 = require("node:crypto");
200162
+ import_node_crypto7 = require("node:crypto");
199969
200163
  init_buffer_from();
199970
200164
  init_toUint8Array();
199971
200165
  Hash19 = class {
@@ -199987,7 +200181,7 @@ var init_hash_node = __esm({
199987
200181
  return Promise.resolve(this.hash.digest());
199988
200182
  }
199989
200183
  reset() {
199990
- this.hash = this.secret ? (0, import_node_crypto6.createHmac)(this.algorithmIdentifier, castSourceData(this.secret)) : (0, import_node_crypto6.createHash)(this.algorithmIdentifier);
200184
+ this.hash = this.secret ? (0, import_node_crypto7.createHmac)(this.algorithmIdentifier, castSourceData(this.secret)) : (0, import_node_crypto7.createHash)(this.algorithmIdentifier);
199991
200185
  }
199992
200186
  };
199993
200187
  __name(castSourceData, "castSourceData");
@@ -200988,10 +201182,10 @@ __export(serde_exports2, {
200988
201182
  toUtf8: () => toUtf836,
200989
201183
  v4: () => v42
200990
201184
  });
200991
- var import_node_crypto7, Uint8ArrayBlobAdapter2, _getRandomValues, v42, generateIdempotencyToken2;
201185
+ var import_node_crypto8, Uint8ArrayBlobAdapter2, _getRandomValues, v42, generateIdempotencyToken2;
200992
201186
  var init_serde3 = __esm({
200993
201187
  "../../node_modules/@aws-sdk/client-appsync/node_modules/@smithy/core/dist-es/submodules/serde/index.js"() {
200994
- import_node_crypto7 = require("node:crypto");
201188
+ import_node_crypto8 = require("node:crypto");
200995
201189
  init_fromBase64();
200996
201190
  init_toBase64();
200997
201191
  init_Uint8ArrayBlobAdapter();
@@ -201029,7 +201223,7 @@ var init_serde3 = __esm({
201029
201223
  __name(this, "Uint8ArrayBlobAdapter");
201030
201224
  }
201031
201225
  };
201032
- _getRandomValues = import_node_crypto7.getRandomValues;
201226
+ _getRandomValues = import_node_crypto8.getRandomValues;
201033
201227
  v42 = bindV4(_getRandomValues);
201034
201228
  generateIdempotencyToken2 = v42;
201035
201229
  }
@@ -214875,10 +215069,10 @@ function castSourceData2(toCast, encoding) {
214875
215069
  }
214876
215070
  return fromArrayBuffer2(toCast);
214877
215071
  }
214878
- var import_node_crypto8, Hash20;
215072
+ var import_node_crypto9, Hash20;
214879
215073
  var init_hash_node2 = __esm({
214880
215074
  "../../node_modules/@aws-sdk/client-appsync/node_modules/@smithy/signature-v4/node_modules/@smithy/core/dist-es/submodules/serde/hash-node/hash-node.js"() {
214881
- import_node_crypto8 = require("node:crypto");
215075
+ import_node_crypto9 = require("node:crypto");
214882
215076
  init_buffer_from2();
214883
215077
  init_toUint8Array2();
214884
215078
  Hash20 = class {
@@ -214900,7 +215094,7 @@ var init_hash_node2 = __esm({
214900
215094
  return Promise.resolve(this.hash.digest());
214901
215095
  }
214902
215096
  reset() {
214903
- this.hash = this.secret ? (0, import_node_crypto8.createHmac)(this.algorithmIdentifier, castSourceData2(this.secret)) : (0, import_node_crypto8.createHash)(this.algorithmIdentifier);
215097
+ this.hash = this.secret ? (0, import_node_crypto9.createHmac)(this.algorithmIdentifier, castSourceData2(this.secret)) : (0, import_node_crypto9.createHash)(this.algorithmIdentifier);
214904
215098
  }
214905
215099
  };
214906
215100
  __name(castSourceData2, "castSourceData");
@@ -215901,10 +216095,10 @@ __export(serde_exports3, {
215901
216095
  toUtf8: () => toUtf838,
215902
216096
  v4: () => v43
215903
216097
  });
215904
- var import_node_crypto9, Uint8ArrayBlobAdapter3, _getRandomValues2, v43, generateIdempotencyToken3;
216098
+ var import_node_crypto10, Uint8ArrayBlobAdapter3, _getRandomValues2, v43, generateIdempotencyToken3;
215905
216099
  var init_serde4 = __esm({
215906
216100
  "../../node_modules/@aws-sdk/client-appsync/node_modules/@smithy/signature-v4/node_modules/@smithy/core/dist-es/submodules/serde/index.js"() {
215907
- import_node_crypto9 = require("node:crypto");
216101
+ import_node_crypto10 = require("node:crypto");
215908
216102
  init_fromBase642();
215909
216103
  init_toBase642();
215910
216104
  init_Uint8ArrayBlobAdapter2();
@@ -215942,7 +216136,7 @@ var init_serde4 = __esm({
215942
216136
  __name(this, "Uint8ArrayBlobAdapter");
215943
216137
  }
215944
216138
  };
215945
- _getRandomValues2 = import_node_crypto9.getRandomValues;
216139
+ _getRandomValues2 = import_node_crypto10.getRandomValues;
215946
216140
  v43 = bindV42(_getRandomValues2);
215947
216141
  generateIdempotencyToken3 = v43;
215948
216142
  }
@@ -217081,14 +217275,14 @@ var init_getProfileName3 = __esm({
217081
217275
  });
217082
217276
 
217083
217277
  // ../../node_modules/@aws-sdk/client-appsync/node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSSOTokenFilepath.js
217084
- var import_node_crypto10, import_node_path13, getSSOTokenFilepath2;
217278
+ var import_node_crypto11, import_node_path13, getSSOTokenFilepath2;
217085
217279
  var init_getSSOTokenFilepath2 = __esm({
217086
217280
  "../../node_modules/@aws-sdk/client-appsync/node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSSOTokenFilepath.js"() {
217087
- import_node_crypto10 = require("node:crypto");
217281
+ import_node_crypto11 = require("node:crypto");
217088
217282
  import_node_path13 = require("node:path");
217089
217283
  init_getHomeDir3();
217090
217284
  getSSOTokenFilepath2 = /* @__PURE__ */ __name((id) => {
217091
- const hasher = (0, import_node_crypto10.createHash)("sha1");
217285
+ const hasher = (0, import_node_crypto11.createHash)("sha1");
217092
217286
  const cacheName = hasher.update(id).digest("hex");
217093
217287
  return (0, import_node_path13.join)(getHomeDir3(), ".aws", "sso", "cache", `${cacheName}.json`);
217094
217288
  }, "getSSOTokenFilepath");
@@ -218935,10 +219129,10 @@ var init_sdk_stream_mixin3 = __esm({
218935
219129
  });
218936
219130
 
218937
219131
  // ../../node_modules/@aws-sdk/client-appsync/node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/serde/index.js
218938
- var import_node_crypto11, Uint8ArrayBlobAdapter4, _getRandomValues3, v44, generateIdempotencyToken4;
219132
+ var import_node_crypto12, Uint8ArrayBlobAdapter4, _getRandomValues3, v44, generateIdempotencyToken4;
218939
219133
  var init_serde5 = __esm({
218940
219134
  "../../node_modules/@aws-sdk/client-appsync/node_modules/@smithy/credential-provider-imds/node_modules/@smithy/core/dist-es/submodules/serde/index.js"() {
218941
- import_node_crypto11 = require("node:crypto");
219135
+ import_node_crypto12 = require("node:crypto");
218942
219136
  init_fromBase643();
218943
219137
  init_toBase643();
218944
219138
  init_Uint8ArrayBlobAdapter3();
@@ -218959,7 +219153,7 @@ var init_serde5 = __esm({
218959
219153
  __name(this, "Uint8ArrayBlobAdapter");
218960
219154
  }
218961
219155
  };
218962
- _getRandomValues3 = import_node_crypto11.getRandomValues;
219156
+ _getRandomValues3 = import_node_crypto12.getRandomValues;
218963
219157
  v44 = bindV43(_getRandomValues3);
218964
219158
  generateIdempotencyToken4 = v44;
218965
219159
  }
@@ -224129,10 +224323,10 @@ var init_sdk_stream_mixin4 = __esm({
224129
224323
  });
224130
224324
 
224131
224325
  // ../../node_modules/@aws-sdk/client-appsync/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-es/submodules/serde/index.js
224132
- var import_node_crypto12, Uint8ArrayBlobAdapter5, _getRandomValues4, v45, generateIdempotencyToken5;
224326
+ var import_node_crypto13, Uint8ArrayBlobAdapter5, _getRandomValues4, v45, generateIdempotencyToken5;
224133
224327
  var init_serde6 = __esm({
224134
224328
  "../../node_modules/@aws-sdk/client-appsync/node_modules/@smithy/node-http-handler/node_modules/@smithy/core/dist-es/submodules/serde/index.js"() {
224135
- import_node_crypto12 = require("node:crypto");
224329
+ import_node_crypto13 = require("node:crypto");
224136
224330
  init_fromBase644();
224137
224331
  init_toBase644();
224138
224332
  init_Uint8ArrayBlobAdapter4();
@@ -224153,7 +224347,7 @@ var init_serde6 = __esm({
224153
224347
  __name(this, "Uint8ArrayBlobAdapter");
224154
224348
  }
224155
224349
  };
224156
- _getRandomValues4 = import_node_crypto12.getRandomValues;
224350
+ _getRandomValues4 = import_node_crypto13.getRandomValues;
224157
224351
  v45 = bindV44(_getRandomValues4);
224158
224352
  generateIdempotencyToken5 = v45;
224159
224353
  }
@@ -426155,11 +426349,11 @@ function sdkRequestHandler(agent) {
426155
426349
  httpAgent: agent
426156
426350
  };
426157
426351
  }
426158
- var import_node_util2, import_credential_providers2, import_ec2_metadata_service, import_shared_ini_file_loader, DEFAULT_CONNECTION_TIMEOUT, DEFAULT_TIMEOUT, AwsCliCompatible;
426352
+ var import_node_util3, import_credential_providers2, import_ec2_metadata_service, import_shared_ini_file_loader, DEFAULT_CONNECTION_TIMEOUT, DEFAULT_TIMEOUT, AwsCliCompatible;
426159
426353
  var init_awscli_compatible = __esm({
426160
426354
  "../@aws-cdk/toolkit-lib/lib/api/aws-auth/awscli-compatible.ts"() {
426161
426355
  "use strict";
426162
- import_node_util2 = require("node:util");
426356
+ import_node_util3 = require("node:util");
426163
426357
  import_credential_providers2 = __toESM(require_dist_cjs128());
426164
426358
  import_ec2_metadata_service = __toESM(require_dist_cjs222());
426165
426359
  import_shared_ini_file_loader = __toESM(require_dist_cjs28());
@@ -426298,7 +426492,7 @@ var init_awscli_compatible = __esm({
426298
426492
  * Result is send to callback function for SDK to authorize the request
426299
426493
  */
426300
426494
  async tokenCodeFn(deviceArn) {
426301
- const debugFn = /* @__PURE__ */ __name((msg, ...args) => this.ioHelper.defaults.debug((0, import_node_util2.format)(msg, ...args)), "debugFn");
426495
+ const debugFn = /* @__PURE__ */ __name((msg, ...args) => this.ioHelper.defaults.debug((0, import_node_util3.format)(msg, ...args)), "debugFn");
426302
426496
  await debugFn("Require MFA token from MFA device with ARN", deviceArn);
426303
426497
  try {
426304
426498
  const token = await this.ioHelper.requestResponse(IO.CDK_SDK_I1100.req(`MFA token for ${deviceArn}`, {
@@ -426331,7 +426525,7 @@ async function v3ProviderFromPlugin(producer) {
426331
426525
  } else if (isV2Credentials(initial)) {
426332
426526
  return v3ProviderFromV2Credentials(initial);
426333
426527
  } else {
426334
- throw new AuthenticationError("InvalidPluginCredentials", `Plugin returned a value that doesn't resemble AWS credentials: ${(0, import_util43.inspect)(initial)}`);
426528
+ throw new AuthenticationError("InvalidPluginCredentials", `Plugin returned a value that doesn't resemble AWS credentials: ${(0, import_util42.inspect)(initial)}`);
426335
426529
  }
426336
426530
  }
426337
426531
  function v3ProviderFromV2Credentials(x) {
@@ -426350,7 +426544,7 @@ function refreshFromPluginProvider(current, producer) {
426350
426544
  if (credentialsAboutToExpire(current)) {
426351
426545
  const newCreds = await producer();
426352
426546
  if (!isV3Credentials(newCreds)) {
426353
- throw new AuthenticationError("PluginCredentialTypeMismatch", `Plugin initially returned static V3 credentials but now returned something else: ${(0, import_util43.inspect)(newCreds)}`);
426547
+ throw new AuthenticationError("PluginCredentialTypeMismatch", `Plugin initially returned static V3 credentials but now returned something else: ${(0, import_util42.inspect)(newCreds)}`);
426354
426548
  }
426355
426549
  current = newCreds;
426356
426550
  }
@@ -426366,11 +426560,11 @@ function isV2Credentials(x) {
426366
426560
  function isV3Credentials(x) {
426367
426561
  return !!(x && typeof x === "object" && x.accessKeyId && !isV2Credentials(x));
426368
426562
  }
426369
- var import_util43, CredentialPlugins;
426563
+ var import_util42, CredentialPlugins;
426370
426564
  var init_credential_plugins = __esm({
426371
426565
  "../@aws-cdk/toolkit-lib/lib/api/aws-auth/credential-plugins.ts"() {
426372
426566
  "use strict";
426373
- import_util43 = require("util");
426567
+ import_util42 = require("util");
426374
426568
  init_provider_caching();
426375
426569
  init_toolkit_error();
426376
426570
  init_util3();
@@ -426769,7 +426963,7 @@ function formatSdkLoggerContent(content) {
426769
426963
  return apiFmt;
426770
426964
  }
426771
426965
  }
426772
- return content.map((x) => typeof x === "string" ? x : (0, import_util46.inspect)(x)).join("");
426966
+ return content.map((x) => typeof x === "string" ? x : (0, import_util45.inspect)(x)).join("");
426773
426967
  }
426774
426968
  function formatApiCall(content) {
426775
426969
  if (!isSdkApiCallSuccess(content) && !isSdkApiCallError(content)) {
@@ -426795,11 +426989,11 @@ function isSdkApiCallSuccess(x) {
426795
426989
  function isSdkApiCallError(x) {
426796
426990
  return x && typeof x === "object" && x.commandName && x.error;
426797
426991
  }
426798
- var import_util46, IoHostSdkLogger;
426992
+ var import_util45, IoHostSdkLogger;
426799
426993
  var init_sdk_logger = __esm({
426800
426994
  "../@aws-cdk/toolkit-lib/lib/api/aws-auth/sdk-logger.ts"() {
426801
426995
  "use strict";
426802
- import_util46 = require("util");
426996
+ import_util45 = require("util");
426803
426997
  init_util3();
426804
426998
  init_private();
426805
426999
  IoHostSdkLogger = class {
@@ -426811,7 +427005,7 @@ var init_sdk_logger = __esm({
426811
427005
  this.ioHelper = ioHelper;
426812
427006
  }
426813
427007
  notify(level, ...content) {
426814
- void this.ioHelper.notify(IO.CDK_SDK_I0100.msg((0, import_util46.format)("[SDK %s] %s", level, formatSdkLoggerContent(content)), {
427008
+ void this.ioHelper.notify(IO.CDK_SDK_I0100.msg((0, import_util45.format)("[SDK %s] %s", level, formatSdkLoggerContent(content)), {
426815
427009
  sdkLevel: level,
426816
427010
  content
426817
427011
  }));
@@ -431690,14 +431884,14 @@ function settingsFromSynthOptions(synthOpts = {}) {
431690
431884
  function parametersFromSynthOptions(synthOptions) {
431691
431885
  return synthParametersFromSettings(settingsFromSynthOptions(synthOptions ?? {}));
431692
431886
  }
431693
- var import_dispose_polyfill4, os10, path31, import_node_util3, import_cloud_assembly_api11, cxschema10, cxapi5, fs30, import_semver, ExecutionEnvironment;
431887
+ var import_dispose_polyfill4, os10, path31, import_node_util4, import_cloud_assembly_api11, cxschema10, cxapi5, fs30, import_semver, ExecutionEnvironment;
431694
431888
  var init_prepare_source = __esm({
431695
431889
  "../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/private/prepare-source.ts"() {
431696
431890
  "use strict";
431697
431891
  import_dispose_polyfill4 = __toESM(require_dispose_polyfill());
431698
431892
  os10 = __toESM(require("node:os"));
431699
431893
  path31 = __toESM(require("node:path"));
431700
- import_node_util3 = require("node:util");
431894
+ import_node_util4 = require("node:util");
431701
431895
  import_cloud_assembly_api11 = __toESM(require_lib3());
431702
431896
  cxschema10 = __toESM(require_lib2());
431703
431897
  cxapi5 = __toESM(require_lib12());
@@ -431835,10 +432029,10 @@ var init_prepare_source = __esm({
431835
432029
  const debugFn = /* @__PURE__ */ __name((msg) => this.ioHelper.notify(IO.CDK_ASSEMBLY_I0010.msg(msg)), "debugFn");
431836
432030
  const env3 = this.options.resolveDefaultAppEnv ? await prepareDefaultEnvironment(this.sdkProvider, debugFn) : {};
431837
432031
  env3[cxapi5.OUTDIR_ENV] = this.outdir;
431838
- await debugFn((0, import_node_util3.format)("outdir:", this.outdir));
432032
+ await debugFn((0, import_node_util4.format)("outdir:", this.outdir));
431839
432033
  env3[cxapi5.CLI_ASM_VERSION_ENV] = cxschema10.Manifest.version();
431840
432034
  env3[cxapi5.CLI_VERSION_ENV] = versionNumber();
431841
- await debugFn((0, import_node_util3.format)("env:", env3));
432035
+ await debugFn((0, import_node_util4.format)("env:", env3));
431842
432036
  return env3;
431843
432037
  }
431844
432038
  /**
@@ -431903,12 +432097,12 @@ var init_readable_assembly = __esm({
431903
432097
  });
431904
432098
 
431905
432099
  // ../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/source-builder.ts
431906
- var path32, import_util51, cxapi6, fs32, CloudAssemblySourceBuilder;
432100
+ var path32, import_util50, cxapi6, fs32, CloudAssemblySourceBuilder;
431907
432101
  var init_source_builder = __esm({
431908
432102
  "../@aws-cdk/toolkit-lib/lib/api/cloud-assembly/source-builder.ts"() {
431909
432103
  "use strict";
431910
432104
  path32 = __toESM(require("path"));
431911
- import_util51 = require("util");
432105
+ import_util50 = require("util");
431912
432106
  cxapi6 = __toESM(require_lib3());
431913
432107
  fs32 = __toESM(require_lib4());
431914
432108
  init_context_store();
@@ -431974,7 +432168,7 @@ var init_source_builder = __esm({
431974
432168
  ...await contextStore.read(),
431975
432169
  ...synthParams.context
431976
432170
  };
431977
- await services.ioHelper.defaults.debug((0, import_util51.format)("context:", fullContext));
432171
+ await services.ioHelper.defaults.debug((0, import_util50.format)("context:", fullContext));
431978
432172
  const env3 = noUndefined({
431979
432173
  // Versioning, outdir, default account and region
431980
432174
  ...await execution.defaultEnvVars(),
@@ -432113,7 +432307,7 @@ var init_source_builder = __esm({
432113
432307
  ...await contextStore.read(),
432114
432308
  ...synthParams.context
432115
432309
  };
432116
- await services.ioHelper.defaults.debug((0, import_util51.format)("context:", fullContext));
432310
+ await services.ioHelper.defaults.debug((0, import_util50.format)("context:", fullContext));
432117
432311
  const env3 = noUndefined({
432118
432312
  // Need to start with full env of `writeContextToEnv` will not be able to do the size
432119
432313
  // calculation correctly.
@@ -432793,11 +432987,11 @@ function obscureDiff(diff) {
432793
432987
  });
432794
432988
  }
432795
432989
  }
432796
- var import_node_util4, import_cloudformation_diff, chalk14, DiffFormatter;
432990
+ var import_node_util5, import_cloudformation_diff, chalk14, DiffFormatter;
432797
432991
  var init_diff_formatter = __esm({
432798
432992
  "../@aws-cdk/toolkit-lib/lib/api/diff/diff-formatter.ts"() {
432799
432993
  "use strict";
432800
- import_node_util4 = require("node:util");
432994
+ import_node_util5 = require("node:util");
432801
432995
  import_cloudformation_diff = __toESM(require_lib10());
432802
432996
  chalk14 = __toESM(require_source());
432803
432997
  init_payloads();
@@ -432881,7 +433075,7 @@ var init_diff_formatter = __esm({
432881
433075
  let filteredChangesCount = 0;
432882
433076
  try {
432883
433077
  if (stackName && (!options.quiet || !diff.isEmpty)) {
432884
- stream.write((0, import_node_util4.format)(`Stack ${chalk14.bold(stackName)}
433078
+ stream.write((0, import_node_util5.format)(`Stack ${chalk14.bold(stackName)}
432885
433079
  `));
432886
433080
  }
432887
433081
  if (!options.quiet && this.isImport) {
@@ -432956,7 +433150,7 @@ var init_diff_formatter = __esm({
432956
433150
  const permissionChangeType = permissionTypeFromDiff(diff);
432957
433151
  const stream = new StringWriteStream();
432958
433152
  if (!options.quiet || permissionChangeType !== "none" /* NONE */) {
432959
- stream.write((0, import_node_util4.format)(`Stack ${chalk14.bold(stackName)}
433153
+ stream.write((0, import_node_util5.format)(`Stack ${chalk14.bold(stackName)}
432960
433154
  `));
432961
433155
  }
432962
433156
  try {
@@ -433039,11 +433233,11 @@ var init_io = __esm({
433039
433233
  });
433040
433234
 
433041
433235
  // ../@aws-cdk/toolkit-lib/lib/api/logs-monitor/logs-monitor.ts
433042
- var import_node_crypto13, util6, chalk15, CloudWatchLogEventMonitor;
433236
+ var import_node_crypto14, util6, chalk15, CloudWatchLogEventMonitor;
433043
433237
  var init_logs_monitor2 = __esm({
433044
433238
  "../@aws-cdk/toolkit-lib/lib/api/logs-monitor/logs-monitor.ts"() {
433045
433239
  "use strict";
433046
- import_node_crypto13 = require("node:crypto");
433240
+ import_node_crypto14 = require("node:crypto");
433047
433241
  util6 = __toESM(require("node:util"));
433048
433242
  chalk15 = __toESM(require_source());
433049
433243
  init_util3();
@@ -433079,7 +433273,7 @@ var init_logs_monitor2 = __esm({
433079
433273
  * resume reading/printing events
433080
433274
  */
433081
433275
  async activate() {
433082
- this.monitorId = (0, import_node_crypto13.randomUUID)();
433276
+ this.monitorId = (0, import_node_crypto14.randomUUID)();
433083
433277
  await this.ioHelper.notify(IO.CDK_TOOLKIT_I5032.msg("Start monitoring log groups", {
433084
433278
  monitor: this.monitorId,
433085
433279
  logGroupNames: this.logGroupNames()
@@ -433346,11 +433540,11 @@ function removeNonImportResources(stack) {
433346
433540
  delete template.Outputs;
433347
433541
  return template;
433348
433542
  }
433349
- var import_util56, cfnDiff, chalk16, fs33, ResourceImporter;
433543
+ var import_util55, cfnDiff, chalk16, fs33, ResourceImporter;
433350
433544
  var init_importer = __esm({
433351
433545
  "../@aws-cdk/toolkit-lib/lib/api/resource-import/importer.ts"() {
433352
433546
  "use strict";
433353
- import_util56 = require("util");
433547
+ import_util55 = require("util");
433354
433548
  cfnDiff = __toESM(require_lib10());
433355
433549
  chalk16 = __toESM(require_source());
433356
433550
  fs33 = __toESM(require_lib4());
@@ -433414,12 +433608,12 @@ var init_importer = __esm({
433414
433608
  const descr = this.describeResource(resource.logicalId);
433415
433609
  const idProps = remaining[resource.logicalId];
433416
433610
  if (idProps) {
433417
- await this.ioHelper.defaults.info((0, import_util56.format)("%s: importing using %s", chalk16.blue(descr), chalk16.blue(fmtdict(idProps))));
433611
+ await this.ioHelper.defaults.info((0, import_util55.format)("%s: importing using %s", chalk16.blue(descr), chalk16.blue(fmtdict(idProps))));
433418
433612
  ret.importResources.push(resource);
433419
433613
  ret.resourceMap[resource.logicalId] = idProps;
433420
433614
  delete remaining[resource.logicalId];
433421
433615
  } else {
433422
- await this.ioHelper.defaults.info((0, import_util56.format)("%s: skipping", chalk16.blue(descr)));
433616
+ await this.ioHelper.defaults.info((0, import_util55.format)("%s: skipping", chalk16.blue(descr)));
433423
433617
  }
433424
433618
  }
433425
433619
  const unknown = Object.keys(remaining);
@@ -433463,9 +433657,9 @@ var init_importer = __esm({
433463
433657
  });
433464
433658
  assertIsSuccessfulDeployStackResult(result2);
433465
433659
  const message2 = result2.noOp ? " \u2705 %s (no changes)" : " \u2705 %s";
433466
- await this.ioHelper.defaults.info("\n" + chalk16.green((0, import_util56.format)(message2, this.stack.displayName)));
433660
+ await this.ioHelper.defaults.info("\n" + chalk16.green((0, import_util55.format)(message2, this.stack.displayName)));
433467
433661
  } catch (e32) {
433468
- await this.ioHelper.notify(IO.CDK_TOOLKIT_E3900.msg((0, import_util56.format)("\n \u274C %s failed: %s", chalk16.bold(this.stack.displayName), e32), { error: e32 }));
433662
+ await this.ioHelper.notify(IO.CDK_TOOLKIT_E3900.msg((0, import_util55.format)("\n \u274C %s failed: %s", chalk16.bold(this.stack.displayName), e32), { error: e32 }));
433469
433663
  throw e32;
433470
433664
  }
433471
433665
  }
@@ -433595,7 +433789,7 @@ var init_importer = __esm({
433595
433789
  for (const idProp of idProps) {
433596
433790
  const defaultValue2 = resourceProps[idProp] ?? "";
433597
433791
  const response = await this.ioHelper.requestResponse(IO.CDK_TOOLKIT_I3110.req(
433598
- (0, import_util56.format)(promptPattern, chalk16.blue(idProp)),
433792
+ (0, import_util55.format)(promptPattern, chalk16.blue(idProp)),
433599
433793
  {
433600
433794
  resource: {
433601
433795
  name: resourceName,
@@ -439287,7 +439481,7 @@ async function cfnDiff2(ioHelper, stacks, deployments, options, sdkProvider, inc
439287
439481
  parameters: methodOptions.parameters ?? {},
439288
439482
  failOnError: !(methodOptions.fallbackToTemplate ?? true),
439289
439483
  importExistingResources: methodOptions.importExistingResources,
439290
- uuid: (0, import_node_crypto14.randomUUID)(),
439484
+ uuid: (0, import_node_crypto15.randomUUID)(),
439291
439485
  willExecute: false
439292
439486
  }) : void 0;
439293
439487
  if (changeSet) {
@@ -439338,11 +439532,11 @@ function appendObject(obj1, obj2) {
439338
439532
  }
439339
439533
  return obj1;
439340
439534
  }
439341
- var import_node_crypto14, fs35;
439535
+ var import_node_crypto15, fs35;
439342
439536
  var init_helpers5 = __esm({
439343
439537
  "../@aws-cdk/toolkit-lib/lib/actions/diff/private/helpers.ts"() {
439344
439538
  "use strict";
439345
- import_node_crypto14 = require("node:crypto");
439539
+ import_node_crypto15 = require("node:crypto");
439346
439540
  fs35 = __toESM(require_lib4());
439347
439541
  init_diff4();
439348
439542
  init_cfn_api();
@@ -439476,11 +439670,11 @@ var init_tags2 = __esm({
439476
439670
  });
439477
439671
 
439478
439672
  // ../@aws-cdk/toolkit-lib/lib/api/drift/drift-formatter.ts
439479
- var import_node_util5, import_cloudformation_diff3, import_client_cloudformation5, chalk23, DriftFormatter, ADDITION3, CONTEXT2, UPDATE3, REMOVAL3;
439673
+ var import_node_util6, import_cloudformation_diff3, import_client_cloudformation5, chalk23, DriftFormatter, ADDITION3, CONTEXT2, UPDATE3, REMOVAL3;
439480
439674
  var init_drift_formatter = __esm({
439481
439675
  "../@aws-cdk/toolkit-lib/lib/api/drift/drift-formatter.ts"() {
439482
439676
  "use strict";
439483
- import_node_util5 = require("node:util");
439677
+ import_node_util6 = require("node:util");
439484
439678
  import_cloudformation_diff3 = __toESM(require_lib10());
439485
439679
  import_client_cloudformation5 = __toESM(require_dist_cjs144());
439486
439680
  chalk23 = __toESM(require_source());
@@ -439512,7 +439706,7 @@ var init_drift_formatter = __esm({
439512
439706
  formatStackDrift() {
439513
439707
  const formatterOutput = this.formatStackDriftChanges(buildLogicalToPathMap(this.stack).toPath);
439514
439708
  const actualDrifts = this.resourceDriftResults.filter((d32) => (d32.StackResourceDriftStatus === "MODIFIED" || d32.StackResourceDriftStatus === "DELETED") && d32.ResourceType !== "AWS::CDK::Metadata");
439515
- const stackHeader = (0, import_node_util5.format)(`Stack ${chalk23.bold(this.stackName)}
439709
+ const stackHeader = (0, import_node_util6.format)(`Stack ${chalk23.bold(this.stackName)}
439516
439710
  `);
439517
439711
  if (actualDrifts.length === 0) {
439518
439712
  const finalResult2 = chalk23.green("No drift detected\n");
@@ -439634,15 +439828,15 @@ ${actualDrifts.length} resource${actualDrifts.length === 1 ? "" : "s"} ${actualD
439634
439828
  return "\n";
439635
439829
  }
439636
439830
  formatTreeDiff(propertyPath, difference2, isLast) {
439637
- let result2 = (0, import_node_util5.format)(
439831
+ let result2 = (0, import_node_util6.format)(
439638
439832
  " %s\u2500 %s %s\n",
439639
439833
  isLast ? "\u2514" : "\u251C",
439640
439834
  difference2.isAddition ? ADDITION3 : difference2.isRemoval ? REMOVAL3 : UPDATE3,
439641
439835
  propertyPath
439642
439836
  );
439643
439837
  if (difference2.isUpdate) {
439644
- result2 += (0, import_node_util5.format)(" \u251C\u2500 %s %s\n", REMOVAL3, chalk23.red(difference2.oldValue));
439645
- result2 += (0, import_node_util5.format)(" \u2514\u2500 %s %s\n", ADDITION3, chalk23.green(difference2.newValue));
439838
+ result2 += (0, import_node_util6.format)(" \u251C\u2500 %s %s\n", REMOVAL3, chalk23.red(difference2.oldValue));
439839
+ result2 += (0, import_node_util6.format)(" \u2514\u2500 %s %s\n", ADDITION3, chalk23.green(difference2.newValue));
439646
439840
  }
439647
439841
  return result2;
439648
439842
  }
@@ -439660,7 +439854,7 @@ async function detectStackDrift(cfn, ioHelper, stackName) {
439660
439854
  StackName: stackName
439661
439855
  });
439662
439856
  await ioHelper.defaults.trace(
439663
- (0, import_node_util6.format)("Detecting drift with ID %s for stack %s...", driftDetection.StackDriftDetectionId, stackName)
439857
+ (0, import_node_util7.format)("Detecting drift with ID %s for stack %s...", driftDetection.StackDriftDetectionId, stackName)
439664
439858
  );
439665
439859
  const driftStatus = await waitForDriftDetection(cfn, ioHelper, driftDetection.StackDriftDetectionId);
439666
439860
  if (driftStatus?.StackDriftStatus === "UNKNOWN") {
@@ -439710,11 +439904,11 @@ async function waitForDriftDetection(cfn, ioHelper, driftDetectionId) {
439710
439904
  await new Promise((resolve15) => setTimeout(resolve15, timeBetweenApiCalls));
439711
439905
  }
439712
439906
  }
439713
- var import_node_util6;
439907
+ var import_node_util7;
439714
439908
  var init_drift2 = __esm({
439715
439909
  "../@aws-cdk/toolkit-lib/lib/api/drift/drift.ts"() {
439716
439910
  "use strict";
439717
- import_node_util6 = require("node:util");
439911
+ import_node_util7 = require("node:util");
439718
439912
  init_toolkit_error();
439719
439913
  init_string_manipulation();
439720
439914
  __name(detectStackDrift, "detectStackDrift");
@@ -442003,7 +442197,7 @@ async function getOrCreateInstallationId(ioHelper) {
442003
442197
  return cachedId;
442004
442198
  }
442005
442199
  }
442006
- const newId = (0, import_node_crypto15.randomUUID)();
442200
+ const newId = (0, import_node_crypto16.randomUUID)();
442007
442201
  try {
442008
442202
  fs37.writeFileSync(INSTALLATION_ID_PATH, newId);
442009
442203
  } catch (e32) {
@@ -442012,14 +442206,14 @@ async function getOrCreateInstallationId(ioHelper) {
442012
442206
  return newId;
442013
442207
  } catch (e32) {
442014
442208
  await ioHelper.defaults.trace(`Error getting installation ID: ${e32}`);
442015
- return (0, import_node_crypto15.randomUUID)();
442209
+ return (0, import_node_crypto16.randomUUID)();
442016
442210
  }
442017
442211
  }
442018
- var import_node_crypto15, fs37, path35, INSTALLATION_ID_PATH;
442212
+ var import_node_crypto16, fs37, path35, INSTALLATION_ID_PATH;
442019
442213
  var init_installation_id = __esm({
442020
442214
  "lib/cli/telemetry/installation-id.ts"() {
442021
442215
  "use strict";
442022
- import_node_crypto15 = require("node:crypto");
442216
+ import_node_crypto16 = require("node:crypto");
442023
442217
  fs37 = __toESM(require("node:fs"));
442024
442218
  path35 = __toESM(require("node:path"));
442025
442219
  init_util9();
@@ -442032,7 +442226,7 @@ var init_installation_id = __esm({
442032
442226
  async function getLibraryVersion(ioHelper) {
442033
442227
  try {
442034
442228
  const command = `node -e 'process.stdout.write(require.resolve("aws-cdk-lib"))'`;
442035
- const { stdout } = await (0, import_util69.promisify)(import_child_process.exec)(command);
442229
+ const { stdout } = await (0, import_util68.promisify)(import_child_process.exec)(command);
442036
442230
  if (!fs38.existsSync(stdout)) {
442037
442231
  await ioHelper.defaults.trace('Could not get CDK Library Version: require.resolve("aws-cdk-lib") did not return a file path');
442038
442232
  return;
@@ -442049,13 +442243,13 @@ async function getLibraryVersion(ioHelper) {
442049
442243
  return;
442050
442244
  }
442051
442245
  }
442052
- var import_child_process, path36, import_util69, fs38;
442246
+ var import_child_process, path36, import_util68, fs38;
442053
442247
  var init_library_version = __esm({
442054
442248
  "lib/cli/telemetry/library-version.ts"() {
442055
442249
  "use strict";
442056
442250
  import_child_process = require("child_process");
442057
442251
  path36 = __toESM(require("path"));
442058
- import_util69 = require("util");
442252
+ import_util68 = require("util");
442059
442253
  fs38 = __toESM(require_lib4());
442060
442254
  __name(getLibraryVersion, "getLibraryVersion");
442061
442255
  }
@@ -443567,11 +443761,11 @@ function isAbortedError(error5) {
443567
443761
  function mutable(x) {
443568
443762
  return x;
443569
443763
  }
443570
- var import_node_crypto16, import_toolkit_lib3, ABORTED_ERROR_MESSAGE, TelemetrySession;
443764
+ var import_node_crypto17, import_toolkit_lib3, ABORTED_ERROR_MESSAGE, TelemetrySession;
443571
443765
  var init_session = __esm({
443572
443766
  "lib/cli/telemetry/session.ts"() {
443573
443767
  "use strict";
443574
- import_node_crypto16 = require("node:crypto");
443768
+ import_node_crypto17 = require("node:crypto");
443575
443769
  import_toolkit_lib3 = __toESM(require_lib13());
443576
443770
  init_installation_id();
443577
443771
  init_library_version();
@@ -443597,7 +443791,7 @@ var init_session = __esm({
443597
443791
  this._sessionInfo = {
443598
443792
  identifiers: {
443599
443793
  installationId: await getOrCreateInstallationId(this.ioHost.asIoHelper()),
443600
- sessionId: (0, import_node_crypto16.randomUUID)(),
443794
+ sessionId: (0, import_node_crypto17.randomUUID)(),
443601
443795
  telemetryVersion: "2.0",
443602
443796
  cdkCliVersion: versionNumber2(),
443603
443797
  cdkLibraryVersion: await getLibraryVersion(this.ioHost.asIoHelper())
@@ -444982,7 +445176,7 @@ async function execProgram(aws, ioHelper, config2) {
444982
445176
  ...config2.context.all,
444983
445177
  ...params.context
444984
445178
  };
444985
- await debugFn((0, import_util71.format)("context:", context));
445179
+ await debugFn((0, import_util70.format)("context:", context));
444986
445180
  if (params.env.CDK_DEBUG === "true") {
444987
445181
  await ioHelper.defaults.info("\u{1F50D} Synthesizing with debug information. This may take a bit longer.");
444988
445182
  }
@@ -445032,7 +445226,7 @@ async function execProgram(aws, ioHelper, config2) {
445032
445226
  const perfCountersFile = path39.join(outdir, "performance-counters.json");
445033
445227
  await fs43.promises.rm(perfCountersFile, { force: true });
445034
445228
  env3.CDK_PERF_COUNTERS_FILE = perfCountersFile;
445035
- await debugFn((0, import_util71.format)("env:", env3));
445229
+ await debugFn((0, import_util70.format)("env:", env3));
445036
445230
  const cleanupTemp = writeContextToEnv(env3, context, "add-process-env-later");
445037
445231
  try {
445038
445232
  await exec5(commandLine);
@@ -445085,12 +445279,12 @@ function createAssembly(appDir) {
445085
445279
  function noUndefined2(xs) {
445086
445280
  return Object.fromEntries(Object.entries(xs).filter(([_2, v]) => v !== void 0));
445087
445281
  }
445088
- var path39, import_util71, import_cloud_assembly_api16, cxschema11, cxapi10, import_toolkit_lib12, fs43;
445282
+ var path39, import_util70, import_cloud_assembly_api16, cxschema11, cxapi10, import_toolkit_lib12, fs43;
445089
445283
  var init_exec2 = __esm({
445090
445284
  "lib/cxapp/exec.ts"() {
445091
445285
  "use strict";
445092
445286
  path39 = __toESM(require("path"));
445093
- import_util71 = require("util");
445287
+ import_util70 = require("util");
445094
445288
  import_cloud_assembly_api16 = __toESM(require_lib3());
445095
445289
  cxschema11 = __toESM(require_lib2());
445096
445290
  cxapi10 = __toESM(require_lib12());
@@ -448002,13 +448196,13 @@ function stackMetadataLogger(ioHelper, verbose) {
448002
448196
  function requiresApproval(requireApproval, permissionChangeType) {
448003
448197
  return requireApproval === import_cloud_assembly_schema7.RequireApproval.ANYCHANGE || requireApproval === import_cloud_assembly_schema7.RequireApproval.BROADENING && permissionChangeType === import_toolkit_lib18.PermissionChangeType.BROADENING;
448004
448198
  }
448005
- var import_node_crypto17, path44, import_node_util7, cxapi11, import_cloud_assembly_schema7, import_toolkit_lib18, chalk31, fs47, pLimit5, FILE_EVENTS2, InternalToolkit, CdkToolkit;
448199
+ var import_node_crypto18, path44, import_node_util8, cxapi11, import_cloud_assembly_schema7, import_toolkit_lib18, chalk31, fs47, pLimit5, FILE_EVENTS2, InternalToolkit, CdkToolkit;
448006
448200
  var init_cdk_toolkit = __esm({
448007
448201
  "lib/cli/cdk-toolkit.ts"() {
448008
448202
  "use strict";
448009
- import_node_crypto17 = require("node:crypto");
448203
+ import_node_crypto18 = require("node:crypto");
448010
448204
  path44 = __toESM(require("node:path"));
448011
- import_node_util7 = require("node:util");
448205
+ import_node_util8 = require("node:util");
448012
448206
  cxapi11 = __toESM(require_lib3());
448013
448207
  import_cloud_assembly_schema7 = __toESM(require_lib2());
448014
448208
  import_toolkit_lib18 = __toESM(require_lib13());
@@ -448194,7 +448388,7 @@ var init_cdk_toolkit = __esm({
448194
448388
  }
448195
448389
  }
448196
448390
  }
448197
- await this.ioHost.asIoHelper().defaults.info((0, import_node_util7.format)("\n\u2728 Number of stacks with differences: %s\n", diffs));
448391
+ await this.ioHost.asIoHelper().defaults.info((0, import_node_util8.format)("\n\u2728 Number of stacks with differences: %s\n", diffs));
448198
448392
  return diffs && options.fail ? 1 : 0;
448199
448393
  }
448200
448394
  /**
@@ -448223,7 +448417,7 @@ var init_cdk_toolkit = __esm({
448223
448417
  }
448224
448418
  return cfn_api_exports.createDiffChangeSet(asIoHelper(this.ioHost, "diff"), {
448225
448419
  stack,
448226
- uuid: (0, import_node_crypto17.randomUUID)(),
448420
+ uuid: (0, import_node_crypto18.randomUUID)(),
448227
448421
  deployments: this.props.deployments,
448228
448422
  willExecute: false,
448229
448423
  sdkProvider: this.props.sdkProvider,
@@ -449273,14 +449467,14 @@ async function execNpmView(currentVersion) {
449273
449467
  throw err;
449274
449468
  }
449275
449469
  }
449276
- var import_child_process2, import_util76, import_toolkit_lib19, exec2;
449470
+ var import_child_process2, import_util75, import_toolkit_lib19, exec2;
449277
449471
  var init_npm = __esm({
449278
449472
  "lib/cli/util/npm.ts"() {
449279
449473
  "use strict";
449280
449474
  import_child_process2 = require("child_process");
449281
- import_util76 = require("util");
449475
+ import_util75 = require("util");
449282
449476
  import_toolkit_lib19 = __toESM(require_lib13());
449283
- exec2 = (0, import_util76.promisify)(import_child_process2.exec);
449477
+ exec2 = (0, import_util75.promisify)(import_child_process2.exec);
449284
449478
  __name(execNpmView, "execNpmView");
449285
449479
  }
449286
449480
  });
@@ -483902,7 +484096,7 @@ async function docs(options) {
483902
484096
  await ioHelper.defaults.info(chalk35.green(url));
483903
484097
  const browserCommand = options.browser.replace(/%u/g, url);
483904
484098
  await ioHelper.defaults.debug(`Opening documentation ${chalk35.green(browserCommand)}`);
483905
- const exec5 = (0, import_node_util8.promisify)(childProcess2.exec);
484099
+ const exec5 = (0, import_node_util9.promisify)(childProcess2.exec);
483906
484100
  try {
483907
484101
  const { stdout, stderr } = await exec5(browserCommand);
483908
484102
  if (stdout) {
@@ -483917,12 +484111,12 @@ async function docs(options) {
483917
484111
  }
483918
484112
  return 0;
483919
484113
  }
483920
- var childProcess2, import_node_util8, chalk35;
484114
+ var childProcess2, import_node_util9, chalk35;
483921
484115
  var init_docs = __esm({
483922
484116
  "lib/commands/docs.ts"() {
483923
484117
  "use strict";
483924
484118
  childProcess2 = __toESM(require("child_process"));
483925
- import_node_util8 = require("node:util");
484119
+ import_node_util9 = require("node:util");
483926
484120
  chalk35 = __toESM(require_source());
483927
484121
  __name(docs, "docs");
483928
484122
  }
@@ -488928,15 +489122,17 @@ function collectKnownOptions(optionDefs) {
488928
489122
  }
488929
489123
  function findUnknownOptions(argv) {
488930
489124
  const command = argv._[0];
488931
- const commandDef = config.commands[command];
489125
+ const canonicalCommand = commandAliasMap.get(command) ?? command;
489126
+ const commandDef = config.commands[canonicalCommand];
488932
489127
  const commandKnownOptions = commandDef?.options ? collectKnownOptions(commandDef.options) : /* @__PURE__ */ new Set();
488933
- const positionalArg = commandDef?.arg?.name;
489128
+ const positionalArgRaw = commandDef?.arg?.name;
489129
+ const positionalArgs = positionalArgRaw ? /* @__PURE__ */ new Set([positionalArgRaw, positionalArgRaw.toLowerCase()]) : /* @__PURE__ */ new Set();
488934
489130
  const unknown = [];
488935
489131
  for (const key of Object.keys(argv)) {
488936
489132
  if (argv[key] === void 0) {
488937
489133
  continue;
488938
489134
  }
488939
- if (yargsInternals.has(key) || key === positionalArg) {
489135
+ if (yargsInternals.has(key) || positionalArgs.has(key)) {
488940
489136
  continue;
488941
489137
  }
488942
489138
  if (globalKnownOptions.has(key) || commandKnownOptions.has(key)) {
@@ -488956,13 +489152,21 @@ function isFromEnvPrefix(key, prefix) {
488956
489152
  const screamingSnake = key.replace(/[A-Z]/g, (m20) => `_${m20}`).toUpperCase();
488957
489153
  return process.env[`${prefix}_${screamingSnake}`] !== void 0;
488958
489154
  }
488959
- var config, globalKnownOptions, yargsInternals;
489155
+ var config, globalKnownOptions, commandAliasMap, yargsInternals;
488960
489156
  var init_check_unknown_options = __esm({
488961
489157
  "lib/cli/util/check-unknown-options.ts"() {
488962
489158
  "use strict";
488963
489159
  config = require_cli_type_registry();
488964
489160
  __name(collectKnownOptions, "collectKnownOptions");
488965
489161
  globalKnownOptions = collectKnownOptions(config.globalOptions);
489162
+ commandAliasMap = /* @__PURE__ */ new Map();
489163
+ for (const [name, def] of Object.entries(config.commands)) {
489164
+ if (def.aliases) {
489165
+ for (const alias of def.aliases) {
489166
+ commandAliasMap.set(alias, name);
489167
+ }
489168
+ }
489169
+ }
488966
489170
  yargsInternals = /* @__PURE__ */ new Set(["_", "$0", "help", "h", "version"]);
488967
489171
  __name(findUnknownOptions, "findUnknownOptions");
488968
489172
  __name(kebabToCamel, "kebabToCamel");