@go-to-k/cdkd 0.278.49 → 0.278.50
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/{asg-provider-t9dJL0zs.js → asg-provider-C217C6UE.js} +2 -2
- package/dist/{asg-provider-t9dJL0zs.js.map → asg-provider-C217C6UE.js.map} +1 -1
- package/dist/cli.js +77 -40
- package/dist/cli.js.map +1 -1
- package/dist/{deploy-engine-BgLg1tet.js → deploy-engine-D2mbS9va.js} +27 -9
- package/dist/deploy-engine-D2mbS9va.js.map +1 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/deploy-engine-BgLg1tet.js.map +0 -1
|
@@ -9249,13 +9249,31 @@ async function applyRoleArnIfSet(opts) {
|
|
|
9249
9249
|
* @param containerPath CFn path of the CONTAINER, used to build both error
|
|
9250
9250
|
* messages, e.g. `AWS::S3::Bucket VersioningConfiguration` (the field is
|
|
9251
9251
|
* reported as `<containerPath>.<key>`).
|
|
9252
|
+
* @param options Per-site relaxations — see {@link ConfigStringOptions}. They
|
|
9253
|
+
* apply to BOTH refusals this helper can raise: a malformed CONTAINER under
|
|
9254
|
+
* `onUnusable` warns and behaves as `{}` (field absent, so the fallback is
|
|
9255
|
+
* returned — the same thing an empty block already means), and the FIELD
|
|
9256
|
+
* half threads the options into {@link requireConfigString} unchanged. The
|
|
9257
|
+
* downgrade exists for the same state-replay reason as
|
|
9258
|
+
* {@link replayWarn}: a nested block recorded malformed by an older binary
|
|
9259
|
+
* (`StreamSpecification: ''`) would otherwise make a reverse-replacement
|
|
9260
|
+
* create un-rollbackable (issue #1544).
|
|
9252
9261
|
* @throws Error when the container is present but not a plain object, or the
|
|
9253
|
-
* key is present but not a non-blank string
|
|
9262
|
+
* key is present but not a non-blank string, unless `onUnusable` is
|
|
9263
|
+
* supplied.
|
|
9254
9264
|
*/
|
|
9255
|
-
function readConfigString(container, key, fallback, containerPath) {
|
|
9265
|
+
function readConfigString(container, key, fallback, containerPath, options) {
|
|
9256
9266
|
if (container === void 0 || container === null) return fallback;
|
|
9257
|
-
if (!isPlainObject$1(container))
|
|
9258
|
-
|
|
9267
|
+
if (!isPlainObject$1(container)) {
|
|
9268
|
+
const detail = `(got ${describe(container)}) — check for an unresolved intrinsic or a mis-nested template value`;
|
|
9269
|
+
if (options?.onUnusable) {
|
|
9270
|
+
const named = fallback === "" ? "" : ` (${fallback})`;
|
|
9271
|
+
options.onUnusable(`${containerPath} must be an object ${detail}. Treating the block as empty, so ${containerPath}.${key} takes its default${named} here; the same value is REFUSED on a template-path create`);
|
|
9272
|
+
return fallback;
|
|
9273
|
+
}
|
|
9274
|
+
throw new Error(`${containerPath} must be an object ${detail}`);
|
|
9275
|
+
}
|
|
9276
|
+
return requireConfigString(container[key], fallback, `${containerPath}.${key}`, options);
|
|
9259
9277
|
}
|
|
9260
9278
|
/**
|
|
9261
9279
|
* The value-level half of {@link readConfigString}, for a value the caller has
|
|
@@ -9856,10 +9874,10 @@ var WAFv2WebACLProvider = class {
|
|
|
9856
9874
|
/**
|
|
9857
9875
|
* Create a WAFv2 WebACL
|
|
9858
9876
|
*/
|
|
9859
|
-
async create(logicalId, resourceType, properties) {
|
|
9877
|
+
async create(logicalId, resourceType, properties, context) {
|
|
9860
9878
|
this.logger.debug(`Creating WAFv2 WebACL ${logicalId}`);
|
|
9861
9879
|
const name = properties["Name"] || generateResourceName(logicalId, { maxLength: 128 });
|
|
9862
|
-
const scope = requireConfigString(properties["Scope"], "REGIONAL", "AWS::WAFv2::WebACL Scope");
|
|
9880
|
+
const scope = requireConfigString(properties["Scope"], "REGIONAL", "AWS::WAFv2::WebACL Scope", replayWarn(this.logger, context));
|
|
9863
9881
|
this.warnOnSdkUnsupportedRuleKeys(logicalId, properties["Rules"]);
|
|
9864
9882
|
try {
|
|
9865
9883
|
const tags = [];
|
|
@@ -12715,7 +12733,7 @@ var CloudControlProvider = class {
|
|
|
12715
12733
|
if (context?.finalSnapshotIdentifier !== void 0) throw new ProvisioningError(`${logicalId} (${resourceType}) requires a final snapshot (DeletionPolicy: Snapshot), but the Cloud Control API delete route has no final-snapshot parameter. Re-run with --skip-final-snapshot after snapshotting manually, or retain the resource.`, resourceType, logicalId, physicalId);
|
|
12716
12734
|
if (context?.removeProtection === true && resourceType === "AWS::AutoScaling::AutoScalingGroup") {
|
|
12717
12735
|
this.logger.debug(`Delegating protected AutoScalingGroup ${logicalId} delete to the SDK ASGProvider (Cloud Control cannot force-delete a protected ASG)`);
|
|
12718
|
-
const { ASGProvider } = await import("./asg-provider-
|
|
12736
|
+
const { ASGProvider } = await import("./asg-provider-C217C6UE.js").then((n) => n.n);
|
|
12719
12737
|
await new ASGProvider().delete(logicalId, physicalId, resourceType, _properties, context);
|
|
12720
12738
|
return;
|
|
12721
12739
|
}
|
|
@@ -19212,7 +19230,7 @@ const FLUSH_INTERVAL_MS = 2e3;
|
|
|
19212
19230
|
const FLUSH_EVENT_THRESHOLD = 50;
|
|
19213
19231
|
/** Build-time cdkd version, with a dev fallback for non-built contexts. */
|
|
19214
19232
|
function getCdkdVersion() {
|
|
19215
|
-
return "0.278.
|
|
19233
|
+
return "0.278.50";
|
|
19216
19234
|
}
|
|
19217
19235
|
/**
|
|
19218
19236
|
* Generate a time-sortable unique run id, e.g.
|
|
@@ -21324,4 +21342,4 @@ var DeployEngine = class {
|
|
|
21324
21342
|
|
|
21325
21343
|
//#endregion
|
|
21326
21344
|
export { DiffCalculator as $, resolveBucketRegion as $t, red as A, getDockerImageBySourceHash as At, isTerminationProtectionPropagationError as B, resolveStateBucketWithDefaultAndSource as Bt, isStatefulRecreateTargetSync as C, formatError as Cn, validateContainerRepoName as Ct, cyan as D, __exportAll as Dn, runDockerForeground as Dt, bold as E, withErrorHandling as En, getDockerCmd as Et, ProviderRegistry as F, resolveApp as Ft, normalizeAwsTagsToCfn as G, CFN_TEMPLATE_URL_LIMIT as Gt, cfnRefValueFromPhysicalId as H, stateBucketExistenceConfirmed as Ht, findActionableSilentDrops as I, resolveAutoAssetStorage as It, readConfigString as J, uploadCfnTemplate as Jt, resolveExplicitPhysicalId as K, MIGRATE_TMP_PREFIX as Kt, CloudControlProvider as L, resolveCaptureObservedState as Lt, IAMRoleProvider as M, synthesisStatusMessage as Mt, collectInlinePolicyNamesManagedBySiblings as N, getDefaultStateBucketName as Nt, gray as O, runDockerStreaming as Ot, clearOnUpdateRemoval as P, getLegacyStateBucketName as Pt, applyRoleArnIfSet as Q, clearBucketRegionCache as Qt, slowCcOperationTimeoutMs as R, resolveSkipPrefix as Rt, MULTI_REGION_RECREATE_BLOCKED_TYPES as S, SynthesisError as Sn, validateAssetBucketName as St, formatResourceLine as T, normalizeAwsError as Tn, formatDockerLoginError as Tt, refStateLookupFromResource as U, warnDeprecatedNoPrefixCliFlag as Ut, IntrinsicFunctionResolver as V, resolveUseCdkBootstrapAssets as Vt, WAFv2WebACLProvider as W, CFN_TEMPLATE_BODY_LIMIT as Wt, requireConfigArray as X, AssemblyReader as Xt, replayWarn as Y, expectedOwnerParam as Yt, requireConfigString as Z, processStackMessages as Zt, createPreDeleteFinalSnapshot as _, ResourceTimeoutError as _n, AssetModeResolver as _t, DeploymentEventsStore as a, CdkdError as an, TemplateParser as at, unsupportedFinalSnapshotError as b, StackTerminationProtectionError as bn, getBootstrapMarkerKey as bt, replayFailedOperations as c, DeployCancelledError as cn, rebuildClientForBucketRegion as ct, IMPLICIT_DELETE_DEPENDENCIES as d, LocalStartServiceError as dn, stringifyValue as dt, AwsClients as en, describeTypeWithThrottleRetry as et, computeImplicitDeleteEdges as f, LockError as fn, WorkGraph as ft, ccRoutedFinalSnapshotError as g, ProvisioningError as gn, rewriteTemplateAssetReferences as gt, buildFinalSnapshotIdentifier as h, PartialFailureError as hn, loadPublishableAssetManifest as ht, DeploymentEventsReader as i, AssetError as in, DagBuilder as it, yellow as j, Synthesizer as jt, green as k, AssetManifestLoader as kt, replayRollback as l, LocalInvokeBuildError as ln, shouldRetainResource as lt, PRE_DELETE_SNAPSHOT_TYPES as m, NestedStackChildDirectDestroyError as mn, createAssetRedirectResolver as mt, DEFAULT_RESOURCE_WARN_AFTER_MS as n, resetAwsClients as nn, isRetryableTransientError as nt, planFailedOps as o, ConfigError as on, LockManager as ot, ATOMIC_FINAL_SNAPSHOT_TYPES as p, MissingCdkCliError as pn, buildAssetRedirectMap as pt, assertRegionMatch as q, findLargeInlineResources as qt, DeployEngine as r, setAwsClients as rn, isThrottlingError as rt, planRollback as s, DependencyError as sn, S3StateBackend as st, DEFAULT_RESOURCE_TIMEOUT_MS as t, getAwsClients as tn, withRetry as tt, withResourceDeadline as u, LocalMigrateError as un, AssetPublisher as ut, isFinalSnapshotError as v, ResourceUpdateNotSupportedError as vn, BOOTSTRAP_MARKER_PREFIX as vt, renderStatefulReason as w, isCdkdError as wn, buildDockerImage as wt, extractDeploymentEventError as x, StateError as xn, parseBootstrapMarker as xt, refusesFinalSnapshot as y, StackHasActiveImportsError as yn, ensureAssetStorage as yt, disableInstanceApiTermination as z, resolveStateBucketWithDefault as zt };
|
|
21327
|
-
//# sourceMappingURL=deploy-engine-
|
|
21345
|
+
//# sourceMappingURL=deploy-engine-D2mbS9va.js.map
|