@go-to-k/cdkd 0.258.0 → 0.259.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.
package/dist/cli.js CHANGED
@@ -1901,7 +1901,7 @@ const FLUSH_INTERVAL_MS = 2e3;
1901
1901
  const FLUSH_EVENT_THRESHOLD = 50;
1902
1902
  /** Build-time cdkd version, with a dev fallback for non-built contexts. */
1903
1903
  function getCdkdVersion() {
1904
- return "0.258.0";
1904
+ return "0.259.0";
1905
1905
  }
1906
1906
  /**
1907
1907
  * Generate a time-sortable unique run id, e.g.
@@ -10601,6 +10601,30 @@ var LambdaMicrovmImageProvider = class {
10601
10601
  default: return;
10602
10602
  }
10603
10603
  }
10604
+ /**
10605
+ * Adopt an existing MicroVM image into cdkd state.
10606
+ *
10607
+ * Override-only: the image ARN must be supplied via `--resource
10608
+ * <logicalId>=<arn>`. There is no auto-lookup — MicroVM images have no
10609
+ * `aws:cdk:path` tag (AWS reserves the `aws:` tag prefix) and a bare `Name`
10610
+ * is rejected by `GetMicrovmImage` ("Invalid ARN format"), so the physical id
10611
+ * must be the image ARN. Returns `null` when the image does not exist.
10612
+ */
10613
+ async import(input) {
10614
+ const arn = input.knownPhysicalId;
10615
+ if (!arn) return null;
10616
+ if (!arn.startsWith("arn:")) throw new Error(`--resource override for ${input.logicalId} must be a MicroVM image ARN (got '${arn}'). A bare image name is not accepted; use the arn:...:microvm-image:... ARN.`);
10617
+ try {
10618
+ await this.client.send(new GetMicrovmImageCommand({ imageIdentifier: arn }));
10619
+ return {
10620
+ physicalId: arn,
10621
+ attributes: { ImageArn: arn }
10622
+ };
10623
+ } catch (error) {
10624
+ if (error instanceof ResourceNotFoundException$7) return null;
10625
+ throw error;
10626
+ }
10627
+ }
10604
10628
  buildAttributes(imageArn, state, extra) {
10605
10629
  const attributes = { ImageArn: imageArn };
10606
10630
  if (state !== void 0) attributes["State"] = state;
@@ -61260,7 +61284,7 @@ function createMigrateCommand() {
61260
61284
  */
61261
61285
  function buildProgram() {
61262
61286
  const program = new Command();
61263
- program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.258.0");
61287
+ program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.259.0");
61264
61288
  program.addCommand(createBootstrapCommand());
61265
61289
  program.addCommand(createSynthCommand());
61266
61290
  program.addCommand(createListCommand());