@go-to-k/cdkd 0.180.0 → 0.182.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-Db0n6EV_.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-BIcvCytw.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";
@@ -22582,7 +22582,9 @@ var Route53Provider = class {
22582
22582
  "MultiValueAnswer",
22583
22583
  "HealthCheckId",
22584
22584
  "Comment",
22585
- "GeoLocation"
22585
+ "GeoLocation",
22586
+ "GeoProximityLocation",
22587
+ "CidrRoutingConfig"
22586
22588
  ])]]);
22587
22589
  getClient() {
22588
22590
  if (!this.route53Client) this.route53Client = new Route53Client(this.providerRegion ? { region: this.providerRegion } : {});
@@ -22811,7 +22813,8 @@ var Route53Provider = class {
22811
22813
  * Handles conversion of CDK-style ResourceRecords (array of strings)
22812
22814
  * to SDK-style ResourceRecords (array of {Value}).
22813
22815
  * Also handles routing policy properties: Weight, Region, Failover,
22814
- * MultiValueAnswer, GeoLocation, SetIdentifier, and HealthCheckId.
22816
+ * MultiValueAnswer, GeoLocation, GeoProximityLocation, CidrRoutingConfig,
22817
+ * SetIdentifier, and HealthCheckId.
22815
22818
  */
22816
22819
  buildResourceRecordSet(properties) {
22817
22820
  const name = properties["Name"];
@@ -22853,6 +22856,26 @@ var Route53Provider = class {
22853
22856
  ...geoLocation["CountryCode"] !== void 0 ? { CountryCode: geoLocation["CountryCode"] } : {},
22854
22857
  ...geoLocation["SubdivisionCode"] !== void 0 ? { SubdivisionCode: geoLocation["SubdivisionCode"] } : {}
22855
22858
  };
22859
+ const geoProximityLocation = properties["GeoProximityLocation"];
22860
+ if (geoProximityLocation) {
22861
+ const gpl = {};
22862
+ if (geoProximityLocation["AWSRegion"] !== void 0) gpl.AWSRegion = geoProximityLocation["AWSRegion"];
22863
+ if (geoProximityLocation["LocalZoneGroup"] !== void 0) gpl.LocalZoneGroup = geoProximityLocation["LocalZoneGroup"];
22864
+ const coordinates = geoProximityLocation["Coordinates"];
22865
+ if (coordinates) gpl.Coordinates = {
22866
+ Latitude: coordinates["Latitude"],
22867
+ Longitude: coordinates["Longitude"]
22868
+ };
22869
+ if (geoProximityLocation["Bias"] !== void 0) gpl.Bias = Number(geoProximityLocation["Bias"]);
22870
+ recordSet.GeoProximityLocation = gpl;
22871
+ }
22872
+ const cidrRoutingConfig = properties["CidrRoutingConfig"];
22873
+ if (cidrRoutingConfig) {
22874
+ const crc = {};
22875
+ if (cidrRoutingConfig["CollectionId"] !== void 0) crc.CollectionId = cidrRoutingConfig["CollectionId"];
22876
+ if (cidrRoutingConfig["LocationName"] !== void 0) crc.LocationName = cidrRoutingConfig["LocationName"];
22877
+ recordSet.CidrRoutingConfig = crc;
22878
+ }
22856
22879
  return recordSet;
22857
22880
  }
22858
22881
  /**
@@ -22997,7 +23020,7 @@ var Route53Provider = class {
22997
23020
  * (`{zoneId}|{name}|{type}`). Surfaces TTL, ResourceRecords (with
22998
23021
  * `[{Value}]` -> string[] re-shape to match cdkd state), AliasTarget,
22999
23022
  * Weight, Region, Failover, MultiValueAnswer, HealthCheckId,
23000
- * GeoLocation, SetIdentifier.
23023
+ * GeoLocation, GeoProximityLocation, CidrRoutingConfig, SetIdentifier.
23001
23024
  *
23002
23025
  * Returns `undefined` when the parent zone is gone (`NoSuchHostedZone`).
23003
23026
  */
@@ -23097,6 +23120,25 @@ var Route53Provider = class {
23097
23120
  if (recordSet.GeoLocation.SubdivisionCode !== void 0) geo["SubdivisionCode"] = recordSet.GeoLocation.SubdivisionCode;
23098
23121
  result["GeoLocation"] = geo;
23099
23122
  }
23123
+ if (recordSet.GeoProximityLocation) {
23124
+ const gpl = {};
23125
+ if (recordSet.GeoProximityLocation.AWSRegion !== void 0) gpl["AWSRegion"] = recordSet.GeoProximityLocation.AWSRegion;
23126
+ if (recordSet.GeoProximityLocation.LocalZoneGroup !== void 0) gpl["LocalZoneGroup"] = recordSet.GeoProximityLocation.LocalZoneGroup;
23127
+ if (recordSet.GeoProximityLocation.Coordinates) {
23128
+ const coords = {};
23129
+ if (recordSet.GeoProximityLocation.Coordinates.Latitude !== void 0) coords["Latitude"] = recordSet.GeoProximityLocation.Coordinates.Latitude;
23130
+ if (recordSet.GeoProximityLocation.Coordinates.Longitude !== void 0) coords["Longitude"] = recordSet.GeoProximityLocation.Coordinates.Longitude;
23131
+ gpl["Coordinates"] = coords;
23132
+ }
23133
+ if (recordSet.GeoProximityLocation.Bias !== void 0) gpl["Bias"] = recordSet.GeoProximityLocation.Bias;
23134
+ result["GeoProximityLocation"] = gpl;
23135
+ }
23136
+ if (recordSet.CidrRoutingConfig) {
23137
+ const crc = {};
23138
+ if (recordSet.CidrRoutingConfig.CollectionId !== void 0) crc["CollectionId"] = recordSet.CidrRoutingConfig.CollectionId;
23139
+ if (recordSet.CidrRoutingConfig.LocationName !== void 0) crc["LocationName"] = recordSet.CidrRoutingConfig.LocationName;
23140
+ result["CidrRoutingConfig"] = crc;
23141
+ }
23100
23142
  return result;
23101
23143
  }
23102
23144
  /**
@@ -51474,7 +51516,7 @@ function reorderArgs(argv) {
51474
51516
  */
51475
51517
  async function main() {
51476
51518
  const program = new Command();
51477
- program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.180.0");
51519
+ program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.182.0");
51478
51520
  program.addCommand(createBootstrapCommand());
51479
51521
  program.addCommand(createSynthCommand());
51480
51522
  program.addCommand(createListCommand());