@go-to-k/cdkd 0.237.0 → 0.238.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.
@@ -6131,6 +6131,7 @@ const createOnlyPropertiesCache = /* @__PURE__ */ new Map();
6131
6131
  * (a transient throttle must not poison the deploy's replacement detection).
6132
6132
  */
6133
6133
  function getCreateOnlyPropertyPaths(resourceType) {
6134
+ if (isCustomResourceType(resourceType)) return Promise.resolve([]);
6134
6135
  const cached = createOnlyPropertiesCache.get(resourceType);
6135
6136
  if (cached) return cached;
6136
6137
  const entry = fetchCreateOnlyPropertyPaths(resourceType).catch((error) => {
@@ -6143,6 +6144,15 @@ function getCreateOnlyPropertyPaths(resourceType) {
6143
6144
  return entry;
6144
6145
  }
6145
6146
  /**
6147
+ * True for the two custom-resource type shapes CloudFormation accepts:
6148
+ * `AWS::CloudFormation::CustomResource` and anything under the `Custom::`
6149
+ * prefix. Neither has a registry schema, so schema-driven lookups
6150
+ * (DescribeType) must be skipped for them.
6151
+ */
6152
+ function isCustomResourceType(resourceType) {
6153
+ return resourceType === "AWS::CloudFormation::CustomResource" || resourceType.startsWith("Custom::");
6154
+ }
6155
+ /**
6146
6156
  * Decide whether a change to top-level property `topLevelKey` requires
6147
6157
  * replacement per the schema's createOnly paths.
6148
6158
  *
@@ -7889,7 +7899,9 @@ var IntrinsicFunctionResolver = class {
7889
7899
  this.logger.debug(`Resolved Ref to pseudo parameter: ${logicalId} -> ${valueStr}`);
7890
7900
  return pseudoValue;
7891
7901
  }
7892
- this.logger.warn(`Ref ${logicalId} not found (not a resource, parameter, or pseudo parameter)`);
7902
+ const notFoundMsg = `Ref ${logicalId} not found (not a resource, parameter, or pseudo parameter)`;
7903
+ if (context.bestEffort) this.logger.debug(notFoundMsg);
7904
+ else this.logger.warn(notFoundMsg);
7893
7905
  throw new Error(`Ref ${logicalId} not found`);
7894
7906
  }
7895
7907
  /**
@@ -14891,6 +14903,7 @@ var DeployEngine = class {
14891
14903
  parameters: parameterValues,
14892
14904
  conditions
14893
14905
  }, stackName);
14906
+ diffResolverContext.bestEffort = true;
14894
14907
  const diffResolveFn = (value) => this.resolver.resolve(value, diffResolverContext);
14895
14908
  const changes = await this.diffCalculator.calculateDiff(currentState, effectiveTemplate, diffResolveFn);
14896
14909
  if (!this.diffCalculator.hasChanges(changes)) {
@@ -15951,4 +15964,4 @@ var DeployEngine = class {
15951
15964
 
15952
15965
  //#endregion
15953
15966
  export { getDockerCmd as $, DiffCalculator as A, buildAssetRedirectMap as B, findActionableSilentDrops as C, resolveBucketRegion as Ct, refStateLookupFromResource as D, cfnRefValueFromPhysicalId as E, rebuildClientForBucketRegion as F, BOOTSTRAP_MARKER_PREFIX as G, loadPublishableAssetManifest as H, shouldRetainResource as I, parseBootstrapMarker as J, ensureAssetStorage as K, AssetPublisher as L, TemplateParser as M, LockManager as N, WAFv2WebACLProvider as O, S3StateBackend as P, formatDockerLoginError as Q, stringifyValue as R, ProviderRegistry as S, clearBucketRegionCache as St, IntrinsicFunctionResolver as T, rewriteTemplateAssetReferences as U, createAssetRedirectResolver as V, AssetModeResolver as W, validateContainerRepoName as X, validateAssetBucketName as Y, buildDockerImage as Z, green as _, CFN_TEMPLATE_URL_LIMIT as _t, withRetry as a, synthesisStatusMessage as at, IAMRoleProvider as b, uploadCfnTemplate as bt, computeImplicitDeleteEdges as c, resolveApp as ct, isStatefulRecreateTargetSync as d, resolveSkipPrefix as dt, runDockerForeground as et, renderStatefulReason as f, resolveStateBucketWithDefault as ft, gray as g, CFN_TEMPLATE_BODY_LIMIT as gt, cyan as h, warnDeprecatedNoPrefixCliFlag as ht, withResourceDeadline as i, Synthesizer as it, DagBuilder as j, applyRoleArnIfSet as k, extractDeploymentEventError as l, resolveAutoAssetStorage as lt, bold as m, resolveUseCdkBootstrapAssets as mt, DEFAULT_RESOURCE_WARN_AFTER_MS as n, AssetManifestLoader as nt, isRetryableTransientError as o, getDefaultStateBucketName as ot, formatResourceLine as p, resolveStateBucketWithDefaultAndSource as pt, getBootstrapMarkerKey as q, DeployEngine as r, getDockerImageBySourceHash as rt, IMPLICIT_DELETE_DEPENDENCIES as s, getLegacyStateBucketName as st, DEFAULT_RESOURCE_TIMEOUT_MS as t, runDockerStreaming as tt, MULTI_REGION_RECREATE_BLOCKED_TYPES as u, resolveCaptureObservedState as ut, red as v, MIGRATE_TMP_PREFIX as vt, CloudControlProvider as w, collectInlinePolicyNamesManagedBySiblings as x, AssemblyReader as xt, yellow as y, findLargeInlineResources as yt, WorkGraph as z };
15954
- //# sourceMappingURL=deploy-engine-CX6s1TcX.js.map
15967
+ //# sourceMappingURL=deploy-engine-BxEZXkWw.js.map