@go-to-k/cdkd 0.195.0 → 0.196.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
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { _ as withSkipPrefix, a as runDockerStreaming, c as getLogger, d as getLiveRenderer, f as PATTERN_B_NAME_PROPERTIES, g as generateResourceNameWithFallback, h as generateResourceName, i as runDockerForeground, n as formatDockerLoginError, p as PATTERN_B_RESOURCE_TYPES, r as getDockerCmd, u as runStackBuffered, v as withStackName } from "./docker-cmd-iDMcWcre.js";
3
- import { A as S3StateBackend, B as resolveCaptureObservedState, C as assertRegionMatch, D as DagBuilder, E as DiffCalculator, F as buildDockerImage, G as CFN_TEMPLATE_BODY_LIMIT, H as resolveStateBucketWithDefault, I as Synthesizer, J as findLargeInlineResources, K as CFN_TEMPLATE_URL_LIMIT, L as getDefaultStateBucketName, M as AssetPublisher, N as stringifyValue, O as TemplateParser, P as WorkGraph, Q as resolveBucketRegion, R as getLegacyStateBucketName, S as CloudControlProvider, T as applyRoleArnIfSet, U as resolveStateBucketWithDefaultAndSource, V as resolveSkipPrefix, W as warnDeprecatedNoPrefixCliFlag, X as AssemblyReader, Y as uploadCfnTemplate, _ as matchesCdkPath, a as withRetry, at as LocalStartServiceError, b as ProviderRegistry, bt as withErrorHandling, c as bold, ct as NestedStackChildDirectDestroyError, d as green, dt as ResourceTimeoutError, et as CdkdError, f as red, ft as ResourceUpdateNotSupportedError, g as CDK_PATH_TAG, h as collectInlinePolicyNamesManagedBySiblings, i as withResourceDeadline, it as LocalMigrateError, j as shouldRetainResource, k as LockManager, l as cyan, lt as PartialFailureError, m as IAMRoleProvider, mt as StackTerminationProtectionError, n as DEFAULT_RESOURCE_WARN_AFTER_MS, o as IMPLICIT_DELETE_DEPENDENCIES, p as yellow, pt as StackHasActiveImportsError, q as MIGRATE_TMP_PREFIX, r as DeployEngine, rt as LocalInvokeBuildError$1, s as formatResourceLine, st as MissingCdkCliError, t as DEFAULT_RESOURCE_TIMEOUT_MS, u as gray, ut as ProvisioningError, v as normalizeAwsTagsToCfn, w as IntrinsicFunctionResolver, x as findActionableSilentDrops, y as resolveExplicitPhysicalId, yt as normalizeAwsError, z as resolveApp } from "./deploy-engine-BDmJX4ss.js";
3
+ import { A as S3StateBackend, B as resolveCaptureObservedState, C as assertRegionMatch, D as DagBuilder, E as DiffCalculator, F as buildDockerImage, G as CFN_TEMPLATE_BODY_LIMIT, H as resolveStateBucketWithDefault, I as Synthesizer, J as findLargeInlineResources, K as CFN_TEMPLATE_URL_LIMIT, L as getDefaultStateBucketName, M as AssetPublisher, N as stringifyValue, O as TemplateParser, P as WorkGraph, Q as resolveBucketRegion, R as getLegacyStateBucketName, S as CloudControlProvider, T as applyRoleArnIfSet, U as resolveStateBucketWithDefaultAndSource, V as resolveSkipPrefix, W as warnDeprecatedNoPrefixCliFlag, X as AssemblyReader, Y as uploadCfnTemplate, _ as matchesCdkPath, a as withRetry, at as LocalStartServiceError, b as ProviderRegistry, bt as withErrorHandling, c as bold, ct as NestedStackChildDirectDestroyError, d as green, dt as ResourceTimeoutError, et as CdkdError, f as red, ft as ResourceUpdateNotSupportedError, g as CDK_PATH_TAG, h as collectInlinePolicyNamesManagedBySiblings, i as withResourceDeadline, it as LocalMigrateError, j as shouldRetainResource, k as LockManager, l as cyan, lt as PartialFailureError, m as IAMRoleProvider, mt as StackTerminationProtectionError, n as DEFAULT_RESOURCE_WARN_AFTER_MS, o as IMPLICIT_DELETE_DEPENDENCIES, p as yellow, pt as StackHasActiveImportsError, q as MIGRATE_TMP_PREFIX, r as DeployEngine, rt as LocalInvokeBuildError$1, s as formatResourceLine, st as MissingCdkCliError, t as DEFAULT_RESOURCE_TIMEOUT_MS, u as gray, ut as ProvisioningError, v as normalizeAwsTagsToCfn, w as IntrinsicFunctionResolver, x as findActionableSilentDrops, y as resolveExplicitPhysicalId, yt as normalizeAwsError, z as resolveApp } from "./deploy-engine-C6v_fcDw.js";
4
4
  import { a as setAwsClients, i as resetAwsClients, r as getAwsClients, t as AwsClients } from "./aws-clients-B15NAPbL.js";
5
5
  import { AsyncLocalStorage } from "node:async_hooks";
6
6
  import { randomBytes, randomUUID } from "node:crypto";
@@ -31342,7 +31342,11 @@ var S3VectorsProvider = class {
31342
31342
  client;
31343
31343
  providerRegion = process.env["AWS_REGION"];
31344
31344
  logger = getLogger().child("S3VectorsProvider");
31345
- handledProperties = new Map([["AWS::S3Vectors::VectorBucket", new Set(["VectorBucketName", "EncryptionConfiguration"])]]);
31345
+ handledProperties = new Map([["AWS::S3Vectors::VectorBucket", new Set([
31346
+ "VectorBucketName",
31347
+ "EncryptionConfiguration",
31348
+ "Tags"
31349
+ ])]]);
31346
31350
  getClient() {
31347
31351
  if (!this.client) this.client = new S3VectorsClient(this.providerRegion ? { region: this.providerRegion } : {});
31348
31352
  return this.client;
@@ -31373,13 +31377,19 @@ var S3VectorsProvider = class {
31373
31377
  const vectorBucketName = properties["VectorBucketName"];
31374
31378
  if (!vectorBucketName) throw new ProvisioningError(`VectorBucketName is required for S3 VectorBucket ${logicalId}`, resourceType, logicalId);
31375
31379
  const encryptionConfiguration = properties["EncryptionConfiguration"];
31380
+ const tagsArray = properties["Tags"];
31381
+ const tags = tagsArray && tagsArray.length > 0 ? tagsArray.reduce((acc, t) => {
31382
+ if (t.Key !== void 0 && t.Value !== void 0) acc[t.Key] = t.Value;
31383
+ return acc;
31384
+ }, {}) : void 0;
31376
31385
  try {
31377
31386
  const vectorBucketArn = (await this.getClient().send(new CreateVectorBucketCommand({
31378
31387
  vectorBucketName,
31379
31388
  encryptionConfiguration: encryptionConfiguration ? {
31380
31389
  sseType: encryptionConfiguration["SSEType"],
31381
31390
  kmsKeyArn: encryptionConfiguration["KMSKeyArn"]
31382
- } : void 0
31391
+ } : void 0,
31392
+ ...tags && Object.keys(tags).length > 0 ? { tags } : {}
31383
31393
  }))).vectorBucketArn ?? "";
31384
31394
  this.logger.debug(`Successfully created S3 VectorBucket ${logicalId}: ${vectorBucketName}`);
31385
31395
  return {
@@ -31460,6 +31470,13 @@ var S3VectorsProvider = class {
31460
31470
  if (sseType === "aws:kms" && bucket.encryptionConfiguration.kmsKeyArn !== void 0) enc["KMSKeyArn"] = bucket.encryptionConfiguration.kmsKeyArn;
31461
31471
  if (Object.keys(enc).length > 0) result["EncryptionConfiguration"] = enc;
31462
31472
  }
31473
+ if (bucket?.vectorBucketArn) try {
31474
+ result["Tags"] = normalizeAwsTagsToCfn((await this.getClient().send(new ListTagsForResourceCommand$18({ resourceArn: bucket.vectorBucketArn }))).tags);
31475
+ } catch (err) {
31476
+ this.logger.debug(`S3Vectors ListTagsForResource(${bucket.vectorBucketArn}) failed: ${err instanceof Error ? err.message : String(err)}`);
31477
+ result["Tags"] = [];
31478
+ }
31479
+ else this.logger.debug(`S3Vectors GetVectorBucket(${physicalId}) returned no vectorBucketArn; skipping Tags readback`);
31463
31480
  return result;
31464
31481
  }
31465
31482
  /**
@@ -52744,7 +52761,7 @@ function reorderArgs(argv) {
52744
52761
  */
52745
52762
  async function main() {
52746
52763
  const program = new Command();
52747
- program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.195.0");
52764
+ program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.196.0");
52748
52765
  program.addCommand(createBootstrapCommand());
52749
52766
  program.addCommand(createSynthCommand());
52750
52767
  program.addCommand(createListCommand());