@go-to-k/cdkd 0.175.0 → 0.176.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-D8JZ8p6A.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-DgR-Ev-E.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";
@@ -14742,7 +14742,9 @@ var ApiGatewayProvider = class ApiGatewayProvider {
14742
14742
  "StageName",
14743
14743
  "DeploymentId",
14744
14744
  "Description",
14745
- "Tags"
14745
+ "Tags",
14746
+ "TracingEnabled",
14747
+ "Variables"
14746
14748
  ])],
14747
14749
  ["AWS::ApiGateway::Method", new Set([
14748
14750
  "RestApiId",
@@ -15230,6 +15232,8 @@ var ApiGatewayProvider = class ApiGatewayProvider {
15230
15232
  stageName,
15231
15233
  deploymentId,
15232
15234
  description: properties["Description"],
15235
+ tracingEnabled: properties["TracingEnabled"],
15236
+ variables: properties["Variables"],
15233
15237
  tags: this.cfnTagsToRecord(properties["Tags"])
15234
15238
  }));
15235
15239
  this.logger.debug(`Successfully created API Gateway Stage ${logicalId}: ${stageName}`);
@@ -15265,6 +15269,23 @@ var ApiGatewayProvider = class ApiGatewayProvider {
15265
15269
  path: "/description",
15266
15270
  value: description ?? ""
15267
15271
  });
15272
+ const tracingEnabled = properties["TracingEnabled"];
15273
+ if (tracingEnabled !== previousProperties["TracingEnabled"]) patchOperations.push({
15274
+ op: "replace",
15275
+ path: "/tracingEnabled",
15276
+ value: String(tracingEnabled ?? false)
15277
+ });
15278
+ const variables = properties["Variables"] ?? {};
15279
+ const prevVariables = previousProperties["Variables"] ?? {};
15280
+ for (const [key, value] of Object.entries(variables)) if (prevVariables[key] !== value) patchOperations.push({
15281
+ op: "replace",
15282
+ path: `/variables/${key}`,
15283
+ value
15284
+ });
15285
+ for (const key of Object.keys(prevVariables)) if (!(key in variables)) patchOperations.push({
15286
+ op: "remove",
15287
+ path: `/variables/${key}`
15288
+ });
15268
15289
  try {
15269
15290
  if (patchOperations.length > 0) await this.apiGatewayClient.send(new UpdateStageCommand({
15270
15291
  restApiId,
@@ -15766,6 +15787,8 @@ var ApiGatewayProvider = class ApiGatewayProvider {
15766
15787
  if (resp.stageName !== void 0) result["StageName"] = resp.stageName;
15767
15788
  result["DeploymentId"] = resp.deploymentId ?? "";
15768
15789
  result["Description"] = resp.description ?? "";
15790
+ if (resp.tracingEnabled !== void 0) result["TracingEnabled"] = resp.tracingEnabled;
15791
+ if (resp.variables !== void 0) result["Variables"] = resp.variables;
15769
15792
  return result;
15770
15793
  } catch (err) {
15771
15794
  if (err instanceof NotFoundException$1) return void 0;
@@ -51338,7 +51361,7 @@ function reorderArgs(argv) {
51338
51361
  */
51339
51362
  async function main() {
51340
51363
  const program = new Command();
51341
- program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.175.0");
51364
+ program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.176.0");
51342
51365
  program.addCommand(createBootstrapCommand());
51343
51366
  program.addCommand(createSynthCommand());
51344
51367
  program.addCommand(createListCommand());