@cdkd/cli 0.333.0 → 0.334.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.
Files changed (32) hide show
  1. package/dist/{asg-provider-DgbCqJIh.js → asg-provider-1ln_ANde.js} +4 -4
  2. package/dist/{asg-provider-DgbCqJIh.js.map → asg-provider-1ln_ANde.js.map} +1 -1
  3. package/dist/{aws-failure-text-DiHodi76.js → aws-failure-text-CoS1huLy.js} +9 -3
  4. package/dist/aws-failure-text-CoS1huLy.js.map +1 -0
  5. package/dist/cli.js +2 -2
  6. package/dist/{db-instance-modify-retry-DIOZy8ML.js → db-instance-modify-retry-BCMjrw0H.js} +4 -4
  7. package/dist/{db-instance-modify-retry-DIOZy8ML.js.map → db-instance-modify-retry-BCMjrw0H.js.map} +1 -1
  8. package/dist/{deploy-engine-1ZXSkp13.js → deploy-engine-DIK2cLmn.js} +8507 -8227
  9. package/dist/deploy-engine-DIK2cLmn.js.map +1 -0
  10. package/dist/{iam-role-provider-D7lZBTKM.js → iam-role-provider-I4_WshA4.js} +4 -4
  11. package/dist/{iam-role-provider-D7lZBTKM.js.map → iam-role-provider-I4_WshA4.js.map} +1 -1
  12. package/dist/index.d.ts +167 -176
  13. package/dist/index.d.ts.map +1 -1
  14. package/dist/index.js +4 -4
  15. package/dist/{neptune-provider-B1o5gxWk.js → neptune-provider-D4YDyGKt.js} +5 -5
  16. package/dist/{neptune-provider-B1o5gxWk.js.map → neptune-provider-D4YDyGKt.js.map} +1 -1
  17. package/dist/{program-BEkGI_kM.js → program-Dipucz4X.js} +11640 -11454
  18. package/dist/program-Dipucz4X.js.map +1 -0
  19. package/dist/{provider-classes-Ce_PccaV.js → provider-classes-BBtEm3us.js} +2685 -2194
  20. package/dist/provider-classes-BBtEm3us.js.map +1 -0
  21. package/dist/{rds-provider-CpoJl-ki.js → rds-provider-BOcleXHf.js} +11 -6
  22. package/dist/{rds-provider-CpoJl-ki.js.map → rds-provider-BOcleXHf.js.map} +1 -1
  23. package/dist/{update-removal-B3ZdAPZ2.js → update-removal-C_x1-FM4.js} +366 -356
  24. package/dist/update-removal-C_x1-FM4.js.map +1 -0
  25. package/dist/{version-CdcuSvWX.js → version-CXL6Ontw.js} +2 -2
  26. package/dist/{version-CdcuSvWX.js.map → version-CXL6Ontw.js.map} +1 -1
  27. package/package.json +61 -61
  28. package/dist/aws-failure-text-DiHodi76.js.map +0 -1
  29. package/dist/deploy-engine-1ZXSkp13.js.map +0 -1
  30. package/dist/program-BEkGI_kM.js.map +0 -1
  31. package/dist/provider-classes-Ce_PccaV.js.map +0 -1
  32. package/dist/update-removal-B3ZdAPZ2.js.map +0 -1
@@ -1,8 +1,317 @@
1
1
  import { r as getAwsClients } from "./aws-clients-ez_oXu6x.js";
2
- import { $ as safeMsg, H as STACK_REF_MAX_CODE_POINTS, J as displaySafe, K as displayAwsMessage, Q as plainIdentOr, U as UNRENDERABLE, V as SECRET_REF_MAX_CODE_POINTS, X as isPasteableIdent, Y as displayStackName, Z as isPlainIdent, a as safeStringify, i as isAwsAuthoredFailure, k as getCurrentStackName, n as describeAwsFailure, nt as truncateCodePoints, q as displayIdent, s as getLogger, t as VERBOSE_POINTER } from "./aws-failure-text-DiHodi76.js";
2
+ import { $ as safeMsg, H as STACK_REF_MAX_CODE_POINTS, J as displaySafe, K as displayAwsMessage, N as getCurrentStackName, Q as plainIdentOr, U as UNRENDERABLE, V as SECRET_REF_MAX_CODE_POINTS, X as isPasteableIdent, Y as displayStackName, Z as isPlainIdent, a as safeStringify, i as isAwsAuthoredFailure, n as describeAwsFailure, nt as truncateCodePoints, q as displayIdent, s as getLogger, t as VERBOSE_POINTER } from "./aws-failure-text-CoS1huLy.js";
3
3
  import { c as ambientRegion, n as awsClientDefaults, r as getAssumedRoleCredentials } from "./aws-client-defaults-BLXFsfMa.js";
4
4
  import { AsyncLocalStorage } from "node:async_hooks";
5
5
 
6
+ // src/utils/pasteable-run-context.ts
7
+ let runFlags = {};
8
+ let verbFlags;
9
+ function setPasteableRunFlags(flags) {
10
+ runFlags = { ...flags };
11
+ }
12
+ function pasteableRunFlags() {
13
+ return runFlags;
14
+ }
15
+ function setPasteableVerbFlags(map) {
16
+ verbFlags = map;
17
+ }
18
+ function pasteableVerbFlags(verb) {
19
+ return verbFlags?.get(verb);
20
+ }
21
+
22
+ // src/utils/pasteable-command.ts
23
+ const SHELL_ACTIVE = /[\s'"`$;&|<>()*?[\]{}!#~\\^=%,]/;
24
+ const PASTE_ARG_UNSAFE = /[\s'"`$;&|<>()\\*?[\]{}!]|^[#=]|(?:^|[=:])~/;
25
+ function shellQuote(value) {
26
+ return /^[A-Za-z0-9._/@:+-]+$/.test(value) ? value : `'${value.replace(/'/g, `'\\''`)}'`;
27
+ }
28
+ const CLAUSE_BREAK = /: | -- | — |[.!?]\s/;
29
+ function hasClauseBreak(text) {
30
+ return CLAUSE_BREAK.test(text);
31
+ }
32
+ const UNSHOWABLE_VALUE = "a value that cannot be shown safely here";
33
+ function shellBoundedDisplay(shown) {
34
+ if (hasClauseBreak(shown)) return UNSHOWABLE_VALUE;
35
+ return shown.startsWith("\"") || shown === "<unrenderable>" ? shellQuote(shown) : shown;
36
+ }
37
+ function commandHole(name) {
38
+ return `'<${name}>'`;
39
+ }
40
+ const SHELL_ACTIVE_WHY = "holds whitespace or a character a shell treats specially, and only a value that stays inert without its quotes is named in a command here, since text pasted before the command can undo the quotes and leave it to run as shell";
41
+ function plainOrDescribed(value, what) {
42
+ return isPasteableIdent(value) ? value : `a ${what} that is not a plain identifier`;
43
+ }
44
+ function quotedOrDescribed(value, what) {
45
+ return isPasteableIdent(value) ? `'${value}'` : plainOrDescribed(value, what);
46
+ }
47
+ function physicalIdShownBesideCommand(value, opts) {
48
+ if (typeof value !== "string" || value.startsWith("-")) return void 0;
49
+ const plain = (text) => isInertUnquoted(text) && displayIdent(text, { maxCodePoints: 613 }) === text;
50
+ if (plain(value)) return value;
51
+ const token = opts?.maskToken;
52
+ if (token === void 0 || token === "" || !value.includes(token)) return void 0;
53
+ const rendered = displayIdent(value, { maxCodePoints: 613 });
54
+ return value.split(token).every((part) => part === "" || plain(part)) && rendered === JSON.stringify(value) ? rendered : void 0;
55
+ }
56
+ function isInertUnquoted(value) {
57
+ return !PASTE_ARG_UNSAFE.test(value);
58
+ }
59
+ function withholdReason(value, opts) {
60
+ if (value === "") return "empty";
61
+ const safe = displaySafe(value, { asciiOnly: true });
62
+ if (safe !== value) return "altered";
63
+ const cap = opts?.maxCodePoints !== void 0 && Number.isFinite(opts.maxCodePoints) ? Math.max(1, opts.maxCodePoints) : STACK_REF_MAX_CODE_POINTS;
64
+ if (truncateCodePoints(safe, cap).truncated) return "too-long";
65
+ if (value.startsWith("-")) return "option-shaped";
66
+ if (opts?.patternMatched === true && (value.includes("*") || value.includes("/"))) return "pattern-shaped";
67
+ if (opts?.plainIdent === true) return isPasteableIdent(value) ? void 0 : "not-plain";
68
+ if (!isInertUnquoted(value)) return "shell-active";
69
+ }
70
+ function pasteableCommand(verb, args = [], extraFlags = []) {
71
+ let exact = true;
72
+ const withheld = [];
73
+ const parts = [verb];
74
+ for (const arg of args) {
75
+ if ("literal" in arg) {
76
+ parts.push(arg.literal);
77
+ continue;
78
+ }
79
+ if (!("value" in arg)) {
80
+ if ("flag" in arg) parts.push(arg.flag);
81
+ parts.push(commandHole(arg.hole));
82
+ exact = false;
83
+ continue;
84
+ }
85
+ const reason = withholdReason(arg.value, arg.opts);
86
+ let rendered;
87
+ if (reason === void 0) rendered = shellQuote(arg.value);
88
+ else {
89
+ rendered = commandHole(arg.hole);
90
+ exact = false;
91
+ withheld.push({
92
+ hole: arg.hole,
93
+ reason
94
+ });
95
+ }
96
+ if ("flag" in arg) parts.push(arg.flag);
97
+ parts.push(rendered);
98
+ }
99
+ parts.push(...extraFlags);
100
+ parts.push(...runFlagWords(verb, args, extraFlags));
101
+ return {
102
+ command: parts.join(" "),
103
+ exact,
104
+ withheld
105
+ };
106
+ }
107
+ function runFlagWords(verb, args, extraFlags) {
108
+ const accepted = pasteableVerbFlags(verb);
109
+ if (accepted === void 0) return [];
110
+ const present = /* @__PURE__ */ new Set();
111
+ for (const arg of args) if ("flag" in arg) present.add(arg.flag);
112
+ else if ("literal" in arg) present.add(arg.literal.split(" ")[0]);
113
+ for (const f of extraFlags) present.add(f.split(" ")[0]);
114
+ const run = pasteableRunFlags();
115
+ const out = [];
116
+ const add = (flag, value, hole, allowEmpty) => {
117
+ if (value === void 0 || value === "" && !allowEmpty) return;
118
+ if (!accepted.has(flag) || present.has(flag)) return;
119
+ const inert = displaySafe(value) === value && !value.startsWith("-") && !SHELL_ACTIVE.test(value) && !/\p{Cf}/u.test(value) && !truncateCodePoints(value, 1152).truncated;
120
+ out.push(`${flag} ${value === "" || inert ? shellQuote(value) : commandHole(hole)}`);
121
+ };
122
+ add("--profile", run.profile, "profile", false);
123
+ add("--state-bucket", run.stateBucket, "bucket", false);
124
+ add("--state-prefix", run.statePrefix, "prefix", true);
125
+ if (run.roleArn === true && accepted.has("--role-arn") && !present.has("--role-arn")) out.push(`--role-arn ${commandHole("role-arn")}`);
126
+ return out;
127
+ }
128
+ function withheldTargetClause(built, hole, verb, subject = "This record's name") {
129
+ const reason = built.withheld.find((w) => w.hole === hole)?.reason;
130
+ if (reason === void 0) return "";
131
+ let why;
132
+ switch (reason) {
133
+ case "altered":
134
+ why = `does NOT render exactly, so another record may render identically`;
135
+ break;
136
+ case "empty":
137
+ why = `is empty`;
138
+ break;
139
+ case "too-long":
140
+ why = `is too long to print`;
141
+ break;
142
+ case "option-shaped":
143
+ why = `begins with a '-', so it is not safe to print as an argument to '${verb}' — a name like '--all' is parsed as the FLAG and targets every stack`;
144
+ break;
145
+ case "pattern-shaped":
146
+ why = `would be read as a PATTERN by '${verb}', which can match other stacks`;
147
+ break;
148
+ case "shell-active":
149
+ why = SHELL_ACTIVE_WHY;
150
+ break;
151
+ case "not-plain":
152
+ why = "is not a plain identifier (a letter or digit, then letters, digits, '~', '_', '.' or '-'), the only shape named in a command here, since a name outside it can run as shell or read as a line of this message once the terminal wraps";
153
+ break;
154
+ default: throw new Error(`withheldTargetClause: unhandled WithholdReason ${String(reason)}`);
155
+ }
156
+ return ` ${subject} ${why} — so it is not named in the command below; list the records as stored with 'cdkd state list --long' and act on the one whose key matches.`;
157
+ }
158
+
159
+ // src/utils/resource-type-shape.ts
160
+ const TIMEOUT_FLAG_RESOURCE_TYPE = /^[A-Z][A-Za-z0-9]+::[A-Z][A-Za-z0-9]+::[A-Z][A-Za-z0-9]+$/;
161
+ const RESOURCE_TYPE_MAX_LENGTH = 204;
162
+ const RESOURCE_TYPE_SHAPE$1 = /^(?:[A-Z][A-Za-z0-9]+(?:::[A-Z][A-Za-z0-9]+)+|Custom::[A-Za-z0-9_@-]+)$/;
163
+ function hasResourceTypeShape(value) {
164
+ return value.length <= 204 && RESOURCE_TYPE_SHAPE$1.test(value);
165
+ }
166
+
167
+ // src/utils/error-handler/base-errors.ts
168
+ var CdkdError = class CdkdError extends Error {
169
+ code;
170
+ cause;
171
+ constructor(message, code, cause) {
172
+ super(message);
173
+ this.code = code;
174
+ this.cause = cause;
175
+ this.name = "CdkdError";
176
+ Object.setPrototypeOf(this, CdkdError.prototype);
177
+ }
178
+ };
179
+ var AccountIdUnavailableError = class AccountIdUnavailableError extends CdkdError {
180
+ constructor(message) {
181
+ super(message, "ACCOUNT_ID_UNAVAILABLE");
182
+ this.name = "AccountIdUnavailableError";
183
+ Object.setPrototypeOf(this, AccountIdUnavailableError.prototype);
184
+ }
185
+ };
186
+ var StateError = class StateError extends CdkdError {
187
+ constructor(message, cause) {
188
+ super(message, "STATE_ERROR", cause);
189
+ this.name = "StateError";
190
+ Object.setPrototypeOf(this, StateError.prototype);
191
+ }
192
+ };
193
+ var LockError = class LockError extends CdkdError {
194
+ constructor(message, cause) {
195
+ super(message, "LOCK_ERROR", cause);
196
+ this.name = "LockError";
197
+ Object.setPrototypeOf(this, LockError.prototype);
198
+ }
199
+ };
200
+ var SynthesisError = class SynthesisError extends CdkdError {
201
+ constructor(message, cause) {
202
+ super(message, "SYNTHESIS_ERROR", cause);
203
+ this.name = "SynthesisError";
204
+ Object.setPrototypeOf(this, SynthesisError.prototype);
205
+ }
206
+ };
207
+ var DeployCancelledError = class DeployCancelledError extends CdkdError {
208
+ constructor(message = "Deployment cancelled by user") {
209
+ super(message, "DEPLOY_CANCELLED");
210
+ this.name = "DeployCancelledError";
211
+ Object.setPrototypeOf(this, DeployCancelledError.prototype);
212
+ }
213
+ };
214
+ var DeploymentNotApprovedError = class DeploymentNotApprovedError extends CdkdError {
215
+ softAbort = true;
216
+ constructor(message) {
217
+ super(message, "DEPLOY_NOT_APPROVED");
218
+ this.name = "DeploymentNotApprovedError";
219
+ Object.setPrototypeOf(this, DeploymentNotApprovedError.prototype);
220
+ }
221
+ };
222
+ function isSoftAbort(error) {
223
+ return error instanceof Error && error.softAbort === true;
224
+ }
225
+ var AssetError = class AssetError extends CdkdError {
226
+ constructor(message, cause) {
227
+ super(message, "ASSET_ERROR", cause);
228
+ this.name = "AssetError";
229
+ Object.setPrototypeOf(this, AssetError.prototype);
230
+ }
231
+ };
232
+ var LocalInvokeBuildError = class LocalInvokeBuildError extends CdkdError {
233
+ constructor(message, cause) {
234
+ super(message, "LOCAL_INVOKE_BUILD_ERROR", cause);
235
+ this.name = "LocalInvokeBuildError";
236
+ Object.setPrototypeOf(this, LocalInvokeBuildError.prototype);
237
+ }
238
+ };
239
+ var ProvisioningError = class ProvisioningError extends CdkdError {
240
+ resourceType;
241
+ logicalId;
242
+ physicalId;
243
+ constructor(message, resourceType, logicalId, physicalId, cause) {
244
+ super(message, "PROVISIONING_ERROR", cause);
245
+ this.resourceType = resourceType;
246
+ this.logicalId = logicalId;
247
+ this.physicalId = physicalId;
248
+ this.name = "ProvisioningError";
249
+ Object.setPrototypeOf(this, ProvisioningError.prototype);
250
+ }
251
+ };
252
+ var ResourceTimeoutError = class ResourceTimeoutError extends CdkdError {
253
+ logicalId;
254
+ resourceType;
255
+ region;
256
+ elapsedMs;
257
+ operation;
258
+ timeoutMs;
259
+ constructor(logicalId, resourceType, region, elapsedMs, operation, timeoutMs) {
260
+ const elapsedLabel = formatDuration$1(elapsedMs);
261
+ const timeoutLabel = formatDuration$1(timeoutMs);
262
+ const shownId = plainOrDescribed(logicalId, "logical id");
263
+ const shownType = hasResourceTypeShape(resourceType) ? resourceType : "a resource type that is not printable as typed";
264
+ const remedy = hasResourceTypeShape(resourceType) && TIMEOUT_FLAG_RESOURCE_TYPE.test(resourceType) ? safeMsg`slow ENI provisioning. Re-run with --resource-timeout ${resourceType}='<DURATION>'\n` + "to bump the budget for this resource type only, or --verbose to see the\n" : "slow ENI provisioning. Re-run with a larger --resource-timeout '<DURATION>',\nor --verbose to see the\n";
265
+ super(safeMsg`Resource ${shownId} (${shownType}) in ${region} timed out after ${timeoutLabel} during ${operation} (elapsed ${elapsedLabel}).\n` + "This may indicate a stuck Cloud Control polling loop, hung Custom Resource, or\n" + remedy + "underlying provider activity.", "RESOURCE_TIMEOUT");
266
+ this.logicalId = logicalId;
267
+ this.resourceType = resourceType;
268
+ this.region = region;
269
+ this.elapsedMs = elapsedMs;
270
+ this.operation = operation;
271
+ this.timeoutMs = timeoutMs;
272
+ this.name = "ResourceTimeoutError";
273
+ Object.setPrototypeOf(this, ResourceTimeoutError.prototype);
274
+ }
275
+ };
276
+ function formatDuration$1(ms) {
277
+ if (ms < 6e4) return `${Math.round(ms / 1e3)}s`;
278
+ const totalMinutes = Math.round(ms / 6e4);
279
+ if (totalMinutes < 60) return `${totalMinutes}m`;
280
+ const hours = Math.floor(totalMinutes / 60);
281
+ const minutes = totalMinutes % 60;
282
+ return minutes === 0 ? `${hours}h` : `${hours}h${minutes}m`;
283
+ }
284
+
285
+ // src/utils/error-handler/refusal-errors.ts
286
+ var IntrinsicResolutionRefusalError = class IntrinsicResolutionRefusalError extends CdkdError {
287
+ constructor(message, cause, code = "INTRINSIC_RESOLUTION_REFUSAL") {
288
+ super(message, code, cause);
289
+ this.name = "IntrinsicResolutionRefusalError";
290
+ Object.setPrototypeOf(this, IntrinsicResolutionRefusalError.prototype);
291
+ }
292
+ };
293
+ var CrossAccountSecretRefusalError = class CrossAccountSecretRefusalError extends IntrinsicResolutionRefusalError {
294
+ constructor(message, cause) {
295
+ super(message, cause, "INTRINSIC_RESOLUTION_REFUSAL_CROSS_ACCOUNT_SECRET");
296
+ this.name = "CrossAccountSecretRefusalError";
297
+ Object.setPrototypeOf(this, CrossAccountSecretRefusalError.prototype);
298
+ }
299
+ };
300
+ var MalformedProducerRecordRefusalError = class MalformedProducerRecordRefusalError extends IntrinsicResolutionRefusalError {
301
+ constructor(message, cause) {
302
+ super(message, cause, "INTRINSIC_RESOLUTION_REFUSAL_MALFORMED_PRODUCER_RECORD");
303
+ this.name = "MalformedProducerRecordRefusalError";
304
+ Object.setPrototypeOf(this, MalformedProducerRecordRefusalError.prototype);
305
+ }
306
+ };
307
+ var DynamicReferenceRegionAmbiguousError = class DynamicReferenceRegionAmbiguousError extends IntrinsicResolutionRefusalError {
308
+ constructor(message, cause) {
309
+ super(message, cause, "DYNAMIC_REFERENCE_REGION_AMBIGUOUS");
310
+ this.name = "DynamicReferenceRegionAmbiguousError";
311
+ Object.setPrototypeOf(this, DynamicReferenceRegionAmbiguousError.prototype);
312
+ }
313
+ };
314
+
6
315
  // src/deployment/retryable-errors/patterns.ts
7
316
  const IAM_PROPAGATION_ERROR_MESSAGE_PATTERNS = [
8
317
  "cannot be assumed",
@@ -346,367 +655,62 @@ function markReplayMayCollide(error) {
346
655
  } catch {}
347
656
  return error;
348
657
  }
349
- function hasReplayMayCollide(error) {
350
- try {
351
- let current = error;
352
- for (let depth = 0; depth < 5 && (typeof current === "object" || typeof current === "function") && current !== null; depth++) {
353
- if (Object.getOwnPropertyDescriptor(current, REPLAY_MAY_COLLIDE_MARKER)?.value === true) return true;
354
- current = current.cause;
355
- }
356
- } catch {}
357
- return false;
358
- }
359
- function isNameCollisionErrorFrom(error, logicalId) {
360
- if (hasReplayMayCollide(error)) return false;
361
- return relaysNameCollision(error, logicalId, () => false);
362
- }
363
- function isReplayedNameCollisionFrom(error, logicalId, isRetryAnchor) {
364
- if (!hasReplayMayCollide(error)) return false;
365
- return relaysNameCollision(error, logicalId, isRetryAnchor);
366
- }
367
- function relaysNameCollision(error, logicalId, isRetryAnchor) {
368
- const topRelaysIt = error instanceof Error && typeof error.message === "string" && isNameCollisionError(error.message);
369
- let current = error;
370
- for (let depth = 0; depth < 5 && current != null; depth++) {
371
- const link = current;
372
- if (typeof link.logicalId === "string" && link.logicalId !== logicalId && !isRetryAnchor(current)) return false;
373
- if (typeof link.name === "string" && NAME_COLLISION_ERROR_NAMES.has(link.name)) return true;
374
- if (link.ccErrorCode === "AlreadyExists") return true;
375
- if (link[NAME_COLLISION_MARKER] === true) return true;
376
- if (topRelaysIt && current instanceof Error && isAwsAuthoredFailure(current) && typeof link.message === "string" && isNameCollisionError(link.message)) return true;
377
- current = link.cause;
378
- }
379
- return false;
380
- }
381
- function isNameCooldownError(message) {
382
- return NAME_COOLDOWN_ERROR_MESSAGE_PATTERNS.some((p) => message.includes(p));
383
- }
384
- const REDACTED_ALREADY_EXISTS_CLASS = new RegExp(`\\b[A-Za-z0-9]*AlreadyExists(?:Exception|Fault)?(?=\\. ${escapeRegExp(VERBOSE_POINTER)})`, "g");
385
- function isRecreateRetryableError(message, error) {
386
- return isNameCollisionError(error !== void 0 && hasRedactedCause(error) ? message.replace(REDACTED_ALREADY_EXISTS_CLASS, "") : message) || isNameCooldownError(message);
387
- }
388
-
389
- // src/deployment/retryable-errors/update-unsupported.ts
390
- const CC_UNSUPPORTED_ACTION_ERROR_NAME = "UnsupportedActionException";
391
- function isUpdateUnsupportedError(error, logicalId) {
392
- if (error?.name === "ResourceUpdateNotSupportedError") return false;
393
- let current = error;
394
- for (let depth = 0; current !== null && current !== void 0 && depth < 5; depth++) {
395
- const link = current;
396
- if (typeof link.logicalId === "string" && link.logicalId !== logicalId) return false;
397
- if (link.name === "UnsupportedActionException") return true;
398
- if (link.ccErrorCode === "UnsupportedActionException" && link.ccOperation === "UPDATE") return true;
399
- current = link.cause;
400
- }
401
- return false;
402
- }
403
-
404
- // src/utils/pasteable-run-context.ts
405
- let runFlags = {};
406
- let verbFlags;
407
- function setPasteableRunFlags(flags) {
408
- runFlags = { ...flags };
409
- }
410
- function pasteableRunFlags() {
411
- return runFlags;
412
- }
413
- function setPasteableVerbFlags(map) {
414
- verbFlags = map;
415
- }
416
- function pasteableVerbFlags(verb) {
417
- return verbFlags?.get(verb);
418
- }
419
-
420
- // src/utils/pasteable-command.ts
421
- const SHELL_ACTIVE = /[\s'"`$;&|<>()*?[\]{}!#~\\^=%,]/;
422
- const PASTE_ARG_UNSAFE = /[\s'"`$;&|<>()\\*?[\]{}!]|^[#=]|(?:^|[=:])~/;
423
- function shellQuote(value) {
424
- return /^[A-Za-z0-9._/@:+-]+$/.test(value) ? value : `'${value.replace(/'/g, `'\\''`)}'`;
425
- }
426
- const CLAUSE_BREAK = /: | -- | — |[.!?]\s/;
427
- function hasClauseBreak(text) {
428
- return CLAUSE_BREAK.test(text);
429
- }
430
- const UNSHOWABLE_VALUE = "a value that cannot be shown safely here";
431
- function shellBoundedDisplay(shown) {
432
- if (hasClauseBreak(shown)) return UNSHOWABLE_VALUE;
433
- return shown.startsWith("\"") || shown === "<unrenderable>" ? shellQuote(shown) : shown;
434
- }
435
- function commandHole(name) {
436
- return `'<${name}>'`;
437
- }
438
- const SHELL_ACTIVE_WHY = "holds whitespace or a character a shell treats specially, and only a value that stays inert without its quotes is named in a command here, since text pasted before the command can undo the quotes and leave it to run as shell";
439
- function plainOrDescribed(value, what) {
440
- return isPasteableIdent(value) ? value : `a ${what} that is not a plain identifier`;
441
- }
442
- function quotedOrDescribed(value, what) {
443
- return isPasteableIdent(value) ? `'${value}'` : plainOrDescribed(value, what);
444
- }
445
- function physicalIdShownBesideCommand(value, opts) {
446
- if (typeof value !== "string" || value.startsWith("-")) return void 0;
447
- const plain = (text) => isInertUnquoted(text) && displayIdent(text, { maxCodePoints: 613 }) === text;
448
- if (plain(value)) return value;
449
- const token = opts?.maskToken;
450
- if (token === void 0 || token === "" || !value.includes(token)) return void 0;
451
- const rendered = displayIdent(value, { maxCodePoints: 613 });
452
- return value.split(token).every((part) => part === "" || plain(part)) && rendered === JSON.stringify(value) ? rendered : void 0;
453
- }
454
- function isInertUnquoted(value) {
455
- return !PASTE_ARG_UNSAFE.test(value);
456
- }
457
- function withholdReason(value, opts) {
458
- if (value === "") return "empty";
459
- const safe = displaySafe(value, { asciiOnly: true });
460
- if (safe !== value) return "altered";
461
- const cap = opts?.maxCodePoints !== void 0 && Number.isFinite(opts.maxCodePoints) ? Math.max(1, opts.maxCodePoints) : STACK_REF_MAX_CODE_POINTS;
462
- if (truncateCodePoints(safe, cap).truncated) return "too-long";
463
- if (value.startsWith("-")) return "option-shaped";
464
- if (opts?.patternMatched === true && (value.includes("*") || value.includes("/"))) return "pattern-shaped";
465
- if (opts?.plainIdent === true) return isPasteableIdent(value) ? void 0 : "not-plain";
466
- if (!isInertUnquoted(value)) return "shell-active";
467
- }
468
- function pasteableCommand(verb, args = [], extraFlags = []) {
469
- let exact = true;
470
- const withheld = [];
471
- const parts = [verb];
472
- for (const arg of args) {
473
- if ("literal" in arg) {
474
- parts.push(arg.literal);
475
- continue;
476
- }
477
- if (!("value" in arg)) {
478
- if ("flag" in arg) parts.push(arg.flag);
479
- parts.push(commandHole(arg.hole));
480
- exact = false;
481
- continue;
482
- }
483
- const reason = withholdReason(arg.value, arg.opts);
484
- let rendered;
485
- if (reason === void 0) rendered = shellQuote(arg.value);
486
- else {
487
- rendered = commandHole(arg.hole);
488
- exact = false;
489
- withheld.push({
490
- hole: arg.hole,
491
- reason
492
- });
658
+ function hasReplayMayCollide(error) {
659
+ try {
660
+ let current = error;
661
+ for (let depth = 0; depth < 5 && (typeof current === "object" || typeof current === "function") && current !== null; depth++) {
662
+ if (Object.getOwnPropertyDescriptor(current, REPLAY_MAY_COLLIDE_MARKER)?.value === true) return true;
663
+ current = current.cause;
493
664
  }
494
- if ("flag" in arg) parts.push(arg.flag);
495
- parts.push(rendered);
496
- }
497
- parts.push(...extraFlags);
498
- parts.push(...runFlagWords(verb, args, extraFlags));
499
- return {
500
- command: parts.join(" "),
501
- exact,
502
- withheld
503
- };
665
+ } catch {}
666
+ return false;
504
667
  }
505
- function runFlagWords(verb, args, extraFlags) {
506
- const accepted = pasteableVerbFlags(verb);
507
- if (accepted === void 0) return [];
508
- const present = /* @__PURE__ */ new Set();
509
- for (const arg of args) if ("flag" in arg) present.add(arg.flag);
510
- else if ("literal" in arg) present.add(arg.literal.split(" ")[0]);
511
- for (const f of extraFlags) present.add(f.split(" ")[0]);
512
- const run = pasteableRunFlags();
513
- const out = [];
514
- const add = (flag, value, hole, allowEmpty) => {
515
- if (value === void 0 || value === "" && !allowEmpty) return;
516
- if (!accepted.has(flag) || present.has(flag)) return;
517
- const inert = displaySafe(value) === value && !value.startsWith("-") && !SHELL_ACTIVE.test(value) && !/\p{Cf}/u.test(value) && !truncateCodePoints(value, 1152).truncated;
518
- out.push(`${flag} ${value === "" || inert ? shellQuote(value) : commandHole(hole)}`);
519
- };
520
- add("--profile", run.profile, "profile", false);
521
- add("--state-bucket", run.stateBucket, "bucket", false);
522
- add("--state-prefix", run.statePrefix, "prefix", true);
523
- if (run.roleArn === true && accepted.has("--role-arn") && !present.has("--role-arn")) out.push(`--role-arn ${commandHole("role-arn")}`);
524
- return out;
668
+ function isNameCollisionErrorFrom(error, logicalId) {
669
+ if (hasReplayMayCollide(error)) return false;
670
+ return relaysNameCollision(error, logicalId, () => false);
525
671
  }
526
- function withheldTargetClause(built, hole, verb, subject = "This record's name") {
527
- const reason = built.withheld.find((w) => w.hole === hole)?.reason;
528
- if (reason === void 0) return "";
529
- let why;
530
- switch (reason) {
531
- case "altered":
532
- why = `does NOT render exactly, so another record may render identically`;
533
- break;
534
- case "empty":
535
- why = `is empty`;
536
- break;
537
- case "too-long":
538
- why = `is too long to print`;
539
- break;
540
- case "option-shaped":
541
- why = `begins with a '-', so it is not safe to print as an argument to '${verb}' — a name like '--all' is parsed as the FLAG and targets every stack`;
542
- break;
543
- case "pattern-shaped":
544
- why = `would be read as a PATTERN by '${verb}', which can match other stacks`;
545
- break;
546
- case "shell-active":
547
- why = SHELL_ACTIVE_WHY;
548
- break;
549
- case "not-plain":
550
- why = "is not a plain identifier (a letter or digit, then letters, digits, '~', '_', '.' or '-'), the only shape named in a command here, since a name outside it can run as shell or read as a line of this message once the terminal wraps";
551
- break;
552
- default: throw new Error(`withheldTargetClause: unhandled WithholdReason ${String(reason)}`);
672
+ function isReplayedNameCollisionFrom(error, logicalId, isRetryAnchor) {
673
+ if (!hasReplayMayCollide(error)) return false;
674
+ return relaysNameCollision(error, logicalId, isRetryAnchor);
675
+ }
676
+ function relaysNameCollision(error, logicalId, isRetryAnchor) {
677
+ const topRelaysIt = error instanceof Error && typeof error.message === "string" && isNameCollisionError(error.message);
678
+ let current = error;
679
+ for (let depth = 0; depth < 5 && current != null; depth++) {
680
+ const link = current;
681
+ if (typeof link.logicalId === "string" && link.logicalId !== logicalId && !isRetryAnchor(current)) return false;
682
+ if (typeof link.name === "string" && NAME_COLLISION_ERROR_NAMES.has(link.name)) return true;
683
+ if (link.ccErrorCode === "AlreadyExists") return true;
684
+ if (link[NAME_COLLISION_MARKER] === true) return true;
685
+ if (topRelaysIt && current instanceof Error && isAwsAuthoredFailure(current) && typeof link.message === "string" && isNameCollisionError(link.message)) return true;
686
+ current = link.cause;
553
687
  }
554
- return ` ${subject} ${why} — so it is not named in the command below; list the records as stored with 'cdkd state list --long' and act on the one whose key matches.`;
688
+ return false;
555
689
  }
556
-
557
- // src/utils/resource-type-shape.ts
558
- const TIMEOUT_FLAG_RESOURCE_TYPE = /^[A-Z][A-Za-z0-9]+::[A-Z][A-Za-z0-9]+::[A-Z][A-Za-z0-9]+$/;
559
- const RESOURCE_TYPE_MAX_LENGTH = 204;
560
- const RESOURCE_TYPE_SHAPE$1 = /^(?:[A-Z][A-Za-z0-9]+(?:::[A-Z][A-Za-z0-9]+)+|Custom::[A-Za-z0-9_@-]+)$/;
561
- function hasResourceTypeShape(value) {
562
- return value.length <= 204 && RESOURCE_TYPE_SHAPE$1.test(value);
690
+ function isNameCooldownError(message) {
691
+ return NAME_COOLDOWN_ERROR_MESSAGE_PATTERNS.some((p) => message.includes(p));
563
692
  }
564
-
565
- // src/utils/error-handler.ts
566
- var CdkdError = class CdkdError extends Error {
567
- code;
568
- cause;
569
- constructor(message, code, cause) {
570
- super(message);
571
- this.code = code;
572
- this.cause = cause;
573
- this.name = "CdkdError";
574
- Object.setPrototypeOf(this, CdkdError.prototype);
575
- }
576
- };
577
- var AccountIdUnavailableError = class AccountIdUnavailableError extends CdkdError {
578
- constructor(message) {
579
- super(message, "ACCOUNT_ID_UNAVAILABLE");
580
- this.name = "AccountIdUnavailableError";
581
- Object.setPrototypeOf(this, AccountIdUnavailableError.prototype);
582
- }
583
- };
584
- var StateError = class StateError extends CdkdError {
585
- constructor(message, cause) {
586
- super(message, "STATE_ERROR", cause);
587
- this.name = "StateError";
588
- Object.setPrototypeOf(this, StateError.prototype);
589
- }
590
- };
591
- var LockError = class LockError extends CdkdError {
592
- constructor(message, cause) {
593
- super(message, "LOCK_ERROR", cause);
594
- this.name = "LockError";
595
- Object.setPrototypeOf(this, LockError.prototype);
596
- }
597
- };
598
- var SynthesisError = class SynthesisError extends CdkdError {
599
- constructor(message, cause) {
600
- super(message, "SYNTHESIS_ERROR", cause);
601
- this.name = "SynthesisError";
602
- Object.setPrototypeOf(this, SynthesisError.prototype);
603
- }
604
- };
605
- var DeployCancelledError = class DeployCancelledError extends CdkdError {
606
- constructor(message = "Deployment cancelled by user") {
607
- super(message, "DEPLOY_CANCELLED");
608
- this.name = "DeployCancelledError";
609
- Object.setPrototypeOf(this, DeployCancelledError.prototype);
610
- }
611
- };
612
- var DeploymentNotApprovedError = class DeploymentNotApprovedError extends CdkdError {
613
- softAbort = true;
614
- constructor(message) {
615
- super(message, "DEPLOY_NOT_APPROVED");
616
- this.name = "DeploymentNotApprovedError";
617
- Object.setPrototypeOf(this, DeploymentNotApprovedError.prototype);
618
- }
619
- };
620
- function isSoftAbort(error) {
621
- return error instanceof Error && error.softAbort === true;
693
+ const REDACTED_ALREADY_EXISTS_CLASS = new RegExp(`\\b[A-Za-z0-9]*AlreadyExists(?:Exception|Fault)?(?=\\. ${escapeRegExp(VERBOSE_POINTER)})`, "g");
694
+ function isRecreateRetryableError(message, error) {
695
+ return isNameCollisionError(error !== void 0 && hasRedactedCause(error) ? message.replace(REDACTED_ALREADY_EXISTS_CLASS, "") : message) || isNameCooldownError(message);
622
696
  }
623
- var AssetError = class AssetError extends CdkdError {
624
- constructor(message, cause) {
625
- super(message, "ASSET_ERROR", cause);
626
- this.name = "AssetError";
627
- Object.setPrototypeOf(this, AssetError.prototype);
628
- }
629
- };
630
- var LocalInvokeBuildError = class LocalInvokeBuildError extends CdkdError {
631
- constructor(message, cause) {
632
- super(message, "LOCAL_INVOKE_BUILD_ERROR", cause);
633
- this.name = "LocalInvokeBuildError";
634
- Object.setPrototypeOf(this, LocalInvokeBuildError.prototype);
635
- }
636
- };
637
- var ProvisioningError = class ProvisioningError extends CdkdError {
638
- resourceType;
639
- logicalId;
640
- physicalId;
641
- constructor(message, resourceType, logicalId, physicalId, cause) {
642
- super(message, "PROVISIONING_ERROR", cause);
643
- this.resourceType = resourceType;
644
- this.logicalId = logicalId;
645
- this.physicalId = physicalId;
646
- this.name = "ProvisioningError";
647
- Object.setPrototypeOf(this, ProvisioningError.prototype);
648
- }
649
- };
650
- var ResourceTimeoutError = class ResourceTimeoutError extends CdkdError {
651
- logicalId;
652
- resourceType;
653
- region;
654
- elapsedMs;
655
- operation;
656
- timeoutMs;
657
- constructor(logicalId, resourceType, region, elapsedMs, operation, timeoutMs) {
658
- const elapsedLabel = formatDuration$1(elapsedMs);
659
- const timeoutLabel = formatDuration$1(timeoutMs);
660
- const shownId = plainOrDescribed(logicalId, "logical id");
661
- const shownType = hasResourceTypeShape(resourceType) ? resourceType : "a resource type that is not printable as typed";
662
- const remedy = hasResourceTypeShape(resourceType) && TIMEOUT_FLAG_RESOURCE_TYPE.test(resourceType) ? safeMsg`slow ENI provisioning. Re-run with --resource-timeout ${resourceType}='<DURATION>'\n` + "to bump the budget for this resource type only, or --verbose to see the\n" : "slow ENI provisioning. Re-run with a larger --resource-timeout '<DURATION>',\nor --verbose to see the\n";
663
- super(safeMsg`Resource ${shownId} (${shownType}) in ${region} timed out after ${timeoutLabel} during ${operation} (elapsed ${elapsedLabel}).\n` + "This may indicate a stuck Cloud Control polling loop, hung Custom Resource, or\n" + remedy + "underlying provider activity.", "RESOURCE_TIMEOUT");
664
- this.logicalId = logicalId;
665
- this.resourceType = resourceType;
666
- this.region = region;
667
- this.elapsedMs = elapsedMs;
668
- this.operation = operation;
669
- this.timeoutMs = timeoutMs;
670
- this.name = "ResourceTimeoutError";
671
- Object.setPrototypeOf(this, ResourceTimeoutError.prototype);
697
+
698
+ // src/deployment/retryable-errors/update-unsupported.ts
699
+ const CC_UNSUPPORTED_ACTION_ERROR_NAME = "UnsupportedActionException";
700
+ function isUpdateUnsupportedError(error, logicalId) {
701
+ if (error?.name === "ResourceUpdateNotSupportedError") return false;
702
+ let current = error;
703
+ for (let depth = 0; current !== null && current !== void 0 && depth < 5; depth++) {
704
+ const link = current;
705
+ if (typeof link.logicalId === "string" && link.logicalId !== logicalId) return false;
706
+ if (link.name === "UnsupportedActionException") return true;
707
+ if (link.ccErrorCode === "UnsupportedActionException" && link.ccOperation === "UPDATE") return true;
708
+ current = link.cause;
672
709
  }
673
- };
674
- function formatDuration$1(ms) {
675
- if (ms < 6e4) return `${Math.round(ms / 1e3)}s`;
676
- const totalMinutes = Math.round(ms / 6e4);
677
- if (totalMinutes < 60) return `${totalMinutes}m`;
678
- const hours = Math.floor(totalMinutes / 60);
679
- const minutes = totalMinutes % 60;
680
- return minutes === 0 ? `${hours}h` : `${hours}h${minutes}m`;
710
+ return false;
681
711
  }
682
- var IntrinsicResolutionRefusalError = class IntrinsicResolutionRefusalError extends CdkdError {
683
- constructor(message, cause, code = "INTRINSIC_RESOLUTION_REFUSAL") {
684
- super(message, code, cause);
685
- this.name = "IntrinsicResolutionRefusalError";
686
- Object.setPrototypeOf(this, IntrinsicResolutionRefusalError.prototype);
687
- }
688
- };
689
- var CrossAccountSecretRefusalError = class CrossAccountSecretRefusalError extends IntrinsicResolutionRefusalError {
690
- constructor(message, cause) {
691
- super(message, cause, "INTRINSIC_RESOLUTION_REFUSAL_CROSS_ACCOUNT_SECRET");
692
- this.name = "CrossAccountSecretRefusalError";
693
- Object.setPrototypeOf(this, CrossAccountSecretRefusalError.prototype);
694
- }
695
- };
696
- var MalformedProducerRecordRefusalError = class MalformedProducerRecordRefusalError extends IntrinsicResolutionRefusalError {
697
- constructor(message, cause) {
698
- super(message, cause, "INTRINSIC_RESOLUTION_REFUSAL_MALFORMED_PRODUCER_RECORD");
699
- this.name = "MalformedProducerRecordRefusalError";
700
- Object.setPrototypeOf(this, MalformedProducerRecordRefusalError.prototype);
701
- }
702
- };
703
- var DynamicReferenceRegionAmbiguousError = class DynamicReferenceRegionAmbiguousError extends IntrinsicResolutionRefusalError {
704
- constructor(message, cause) {
705
- super(message, cause, "DYNAMIC_REFERENCE_REGION_AMBIGUOUS");
706
- this.name = "DynamicReferenceRegionAmbiguousError";
707
- Object.setPrototypeOf(this, DynamicReferenceRegionAmbiguousError.prototype);
708
- }
709
- };
712
+
713
+ // src/utils/error-handler/deploy-errors.ts
710
714
  var DependencyError = class DependencyError extends CdkdError {
711
715
  constructor(message, cause) {
712
716
  super(message, "DEPENDENCY_ERROR", cause);
@@ -837,6 +841,8 @@ var StackHasActiveImportsError = class StackHasActiveImportsError extends CdkdEr
837
841
  Object.setPrototypeOf(this, StackHasActiveImportsError.prototype);
838
842
  }
839
843
  };
844
+
845
+ // src/utils/error-handler/command-errors.ts
840
846
  var LocalStartServiceError = class LocalStartServiceError extends CdkdError {
841
847
  constructor(message, cause) {
842
848
  super(message, "LOCAL_START_SERVICE_ERROR", cause);
@@ -852,6 +858,8 @@ var MacroExpansionError = class MacroExpansionError extends CdkdError {
852
858
  Object.setPrototypeOf(this, MacroExpansionError.prototype);
853
859
  }
854
860
  };
861
+
862
+ // src/utils/error-handler/format.ts
855
863
  function isCdkdError(error) {
856
864
  return error instanceof CdkdError;
857
865
  }
@@ -886,6 +894,8 @@ function withErrorHandling(fn) {
886
894
  }
887
895
  };
888
896
  }
897
+
898
+ // src/utils/error-handler/normalize-aws.ts
889
899
  function bucketNames(bucket) {
890
900
  if (bucket === void 0) return {
891
901
  subject: "Bucket '<unknown bucket>'",
@@ -1899,7 +1909,7 @@ function phaseVerb(phase) {
1899
1909
  return phase === "pre-update" ? "update" : "delete";
1900
1910
  }
1901
1911
 
1902
- // src/types/resource.ts
1912
+ // src/types/resource/read-state.ts
1903
1913
  const RESOURCE_NOT_FOUND = Symbol("cdkd.resourceNotFound");
1904
1914
 
1905
1915
  // src/provisioning/import-helpers.ts
@@ -2340,5 +2350,5 @@ function removalWarning(logicalId, resourceType, unhandled, caller = "deploy") {
2340
2350
  return caller === "rollback" ? safeMsg`${logicalId} (${resourceType}): ${names} ${one ? "is" : "are"} absent from the state being restored; the rollback leaves the value the failed deploy applied in place (CloudFormation would reset it to its default).` : safeMsg`${logicalId} (${resourceType}): ${names} ${one ? "was" : "were"} removed from the template; cdkd leaves the current AWS value in place (CloudFormation would reset it to its default).`;
2341
2351
  }
2342
2352
 
2343
- export { isTerminalDeleteFailure as $, physicalIdShownBesideCommand as $n, formatLockExpiry as $t, setBounded as A, MalformedProducerRecordRefusalError as An, isThrottlingError as Ar, stateOrphanRecordRemedy as At, resolveExplicitPhysicalId as B, formatError as Bn, createdBeforeFailure as Bt, AmbiguousCreateLatch as C, DeploymentNotApprovedError as Cn, isExplicitDenyError as Cr, compositeIdFormatMessage as Ct, isInsideWindow as D, LocalStartServiceError as Dn, retryClassificationText as Dr, packCompositeId as Dt, createAttemptKey as E, LocalInvokeBuildError as En, isTransientServerError as Er, logicalIdShown as Et, isQuotableImportValue as F, ResourceUpdateNotSupportedError as Fn, maskerOrIdentity as Ft, PROTECTION_FLIP_REUSE_WINDOW_MS as G, TIMEOUT_FLAG_RESOURCE_TYPE as Gn, markAuxiliaryFailure as Gt, assertRegionMatch as H, isSoftAbort as Hn, hasCreatedBeforeFailure as Ht, normalizeAwsTagsToCfn as I, StackHasActiveImportsError as In, withDerivedNameMasks as It, deleteAfterProtectionFlipWithFinalSnapshot as J, UNSHOWABLE_VALUE as Jn, replayMadeAnotherResource as Jt, ProtectionFlipRegistry as K, SHELL_ACTIVE as Kn, markCreatedBeforeFailure as Kt, quotedRemedyLogicalId as L, StackTerminationProtectionError as Ln, RETRY_AUXILIARY_OWNER as Lt, VALUE_NOT_SHOWN as M, PartialFailureError as Mn, markRedactedCause as Mr, createMaskedRetryLogger as Mt, isPlainImportJson as N, ProvisioningError as Nn, wrapMaskedAwsError as Nr, isSecretDerivedValue as Nt, replayFollowedAmbiguousAttempt as O, LockError as On, THROTTLING_ERROR_NAMES as Or, resourceTypeShown as Ot, isPlainImportValue as P, ResourceTimeoutError as Pn, maskDeep as Pt, isTerminalDbWaitStatus as Q, pasteableCommand as Qn, forceQuitRecoveryClause as Qt, refusalTypeShown as R, StateError as Rn, carryCreatedBeforeFailure as Rt, AMBIGUOUS_LATCH_TTL_MS as S, DeployCancelledError as Sn, isAmbiguousOutcomeError as Sr, canonicalizeRoute53QueryName as St, ambiguousAttemptLead as T, IntrinsicResolutionRefusalError as Tn, isRetryableTransientError as Tr, compositeIdSkipResult as Tt, isMarkedNotGone as U, normalizeAwsError as Un, isAuxiliaryFailure as Ut, RESOURCE_NOT_FOUND as V, isCdkdError as Vn, createdResourceIdentityBeforeFailure as Vt, markNotGone as W, withErrorHandling as Wn, isAuxiliaryMarkOf as Wt, isFinalSnapshotNotAvailableRefusal as X, hasClauseBreak as Xn, buildForceUnlockCommand as Xt, deleteWithProtectionCompensation as Y, commandHole as Yn, UNREPRODUCIBLE_LOCK_CLAUSE as Yt, isProceedDbStatus as Z, isInertUnquoted as Zn, buildLockContentionMessage as Zt, onlySecretDerived as _, AssetError as _n, stripControlChars as _r, beginCommandInterruptScope as _t, withRemovalDefaults as a, DEFAULT_STATE_PREFIX as an, setPasteableRunFlags as ar, settleProtectionFlip as at, recordedPrincipalsRepair as b, CrossAccountSecretRefusalError as bn, formatRetryClassificationSignals as br, isInterruptedWaitError as bt, clearCreatedReport as c, producerCoordinateKey as cn, hasReplayMayCollide as cr, UNNAMEABLE_ID_CLAUSE as ct, reportedCreatedResource as d, withPasteableAwsProfile as dn, isRecreateRetryableError as dr, pasteableAwsCommand as dt, formatLockOperation as en, plainOrDescribed as er, logGroupProtectionSite as et, retractCreatedResource as f, ambientClientDefaults as fn, isReplayedNameCollisionFrom as fr, protectedReplacementAdvice as ft, holdsSecretDerivedEntry as g, AccountIdUnavailableError as gn, escapeRegExp as gr, monotonicNowMs as gt, SECRET_DERIVED_READ_LIVE as h, credentialFingerprint as hn, relayedNameCollision as hr, ElapsedBudgetRegistry as ht, removedTemplateKeys as i, CUSTOM_RESOURCE_RESPONSE_PREFIX as in, withheldTargetClause as ir, runDeleteAttempt as it, withoutServerErrorRetries as j, NestedStackChildDirectDestroyError as jn, markNonRetryable as jr, createMaskedLogSinks as jt, replayedSendWindow as k, MacroExpansionError as kn, isMarkedNonRetryable as kr, segmentAfterAnchor as kt, collectCreatedResources as l, producerRecordKey as ln, isNameCollisionErrorFrom as lr, WITHHELD_AWS_COMMAND as lt, RESOLVED_PREVIOUS_PRINCIPAL_KEYS as m, clientDefaultsFor as mn, markReplayMayCollide as mr, ElapsedBudget as mt, prepareRemovalForUpdate as n, recoveryCommandFlags as nn, shellBoundedDisplay as nr, protectionFlipKey as nt, withoutInjectedRemovals as o, injectiveKey as on, setPasteableVerbFlags as or, userPoolProtectionSite as ot, IAM_PRINCIPAL_NAME as p, ambientCredentialConfig as pn, markNameCollision as pr, renderDisableCommand as pt, compensateProtectionFlip as q, SHELL_ACTIVE_WHY as qn, markSupersedesEarlierCreate as qt, removalWarning as r, sanitizeRecoveryValue as rn, shellQuote as rr, rdsFamilyProtectionSite as rt, CreatedResourceSink as s, injectiveKeyPrefix as sn, isUpdateUnsupportedError as sr, DELETION_PROTECTION_DOC_POINTER as st, clearOnUpdateRemoval as t, formatLockOwner as tn, quotedOrDescribed as tr, observeThenDisableProtection as tt, reportCreatedResource as u, setPasteableAwsProfile as un, isNameCooldownError as ur, isAwsCliLiteral as ut, readPrincipalLists as v, CdkdError as vn, stripForDisplay as vr, endCommandInterruptScope as vt, RecentIdSet as w, DynamicReferenceRegionAmbiguousError as wn, isIamPropagationError as wr, compositeIdSeparatorRefusal as wt, withUnchangedSecretPrincipalLists as x, DependencyError as xn, isAmbiguousCcHandlerErrorCode as xr, startInterruptWatch as xt, readRecordedPrincipals as y, ConfigError as yn, explicitDenyPolicyKind as yr, interruptWatchListenerCount as yt, remedyLogicalId as z, SynthesisError as zn, clearCreatedBeforeFailure as zt };
2344
- //# sourceMappingURL=update-removal-B3ZdAPZ2.js.map
2353
+ export { isTerminalDeleteFailure as $, markNonRetryable as $n, formatLockExpiry as $t, setBounded as A, hasReplayMayCollide as An, shellQuote as Ar, stateOrphanRecordRemedy as At, resolveExplicitPhysicalId as B, stripForDisplay as Bn, createdBeforeFailure as Bt, AmbiguousCreateLatch as C, DependencyError as Cn, hasClauseBreak as Cr, compositeIdFormatMessage as Ct, isInsideWindow as D, StackHasActiveImportsError as Dn, plainOrDescribed as Dr, packCompositeId as Dt, createAttemptKey as E, ResourceUpdateNotSupportedError as En, physicalIdShownBesideCommand as Er, logicalIdShown as Et, isQuotableImportValue as F, markNameCollision as Fn, maskerOrIdentity as Ft, PROTECTION_FLIP_REUSE_WINDOW_MS as G, isExplicitDenyError as Gn, markAuxiliaryFailure as Gt, assertRegionMatch as H, formatRetryClassificationSignals as Hn, hasCreatedBeforeFailure as Ht, normalizeAwsTagsToCfn as I, markReplayMayCollide as In, withDerivedNameMasks as It, deleteAfterProtectionFlipWithFinalSnapshot as J, isTransientServerError as Jn, replayMadeAnotherResource as Jt, ProtectionFlipRegistry as K, isIamPropagationError as Kn, markCreatedBeforeFailure as Kt, quotedRemedyLogicalId as L, relayedNameCollision as Ln, RETRY_AUXILIARY_OWNER as Lt, VALUE_NOT_SHOWN as M, isNameCooldownError as Mn, setPasteableRunFlags as Mr, createMaskedRetryLogger as Mt, isPlainImportJson as N, isRecreateRetryableError as Nn, setPasteableVerbFlags as Nr, isSecretDerivedValue as Nt, replayFollowedAmbiguousAttempt as O, StackTerminationProtectionError as On, quotedOrDescribed as Or, resourceTypeShown as Ot, isPlainImportValue as P, isReplayedNameCollisionFrom as Pn, maskDeep as Pt, isTerminalDbWaitStatus as Q, isThrottlingError as Qn, forceQuitRecoveryClause as Qt, refusalTypeShown as R, escapeRegExp as Rn, carryCreatedBeforeFailure as Rt, AMBIGUOUS_LATCH_TTL_MS as S, ConfigError as Sn, commandHole as Sr, canonicalizeRoute53QueryName as St, ambiguousAttemptLead as T, PartialFailureError as Tn, pasteableCommand as Tr, compositeIdSkipResult as Tt, isMarkedNotGone as U, isAmbiguousCcHandlerErrorCode as Un, isAuxiliaryFailure as Ut, RESOURCE_NOT_FOUND as V, explicitDenyPolicyKind as Vn, createdResourceIdentityBeforeFailure as Vt, markNotGone as W, isAmbiguousOutcomeError as Wn, isAuxiliaryMarkOf as Wt, isFinalSnapshotNotAvailableRefusal as X, THROTTLING_ERROR_NAMES as Xn, buildForceUnlockCommand as Xt, deleteWithProtectionCompensation as Y, retryClassificationText as Yn, UNREPRODUCIBLE_LOCK_CLAUSE as Yt, isProceedDbStatus as Z, isMarkedNonRetryable as Zn, buildLockContentionMessage as Zt, onlySecretDerived as _, formatError as _n, isSoftAbort as _r, beginCommandInterruptScope as _t, withRemovalDefaults as a, DEFAULT_STATE_PREFIX as an, MalformedProducerRecordRefusalError as ar, settleProtectionFlip as at, recordedPrincipalsRepair as b, LocalStartServiceError as bn, SHELL_ACTIVE_WHY as br, isInterruptedWaitError as bt, clearCreatedReport as c, producerCoordinateKey as cn, CdkdError as cr, UNNAMEABLE_ID_CLAUSE as ct, reportedCreatedResource as d, withPasteableAwsProfile as dn, LocalInvokeBuildError as dr, pasteableAwsCommand as dt, formatLockOperation as en, markRedactedCause as er, logGroupProtectionSite as et, retractCreatedResource as f, ambientClientDefaults as fn, LockError as fr, protectedReplacementAdvice as ft, holdsSecretDerivedEntry as g, normalizeAwsError as gn, SynthesisError as gr, monotonicNowMs as gt, SECRET_DERIVED_READ_LIVE as h, credentialFingerprint as hn, StateError as hr, ElapsedBudgetRegistry as ht, removedTemplateKeys as i, CUSTOM_RESOURCE_RESPONSE_PREFIX as in, IntrinsicResolutionRefusalError as ir, runDeleteAttempt as it, withoutServerErrorRetries as j, isNameCollisionErrorFrom as jn, withheldTargetClause as jr, createMaskedLogSinks as jt, replayedSendWindow as k, isUpdateUnsupportedError as kn, shellBoundedDisplay as kr, segmentAfterAnchor as kt, collectCreatedResources as l, producerRecordKey as ln, DeployCancelledError as lr, WITHHELD_AWS_COMMAND as lt, RESOLVED_PREVIOUS_PRINCIPAL_KEYS as m, clientDefaultsFor as mn, ResourceTimeoutError as mr, ElapsedBudget as mt, prepareRemovalForUpdate as n, recoveryCommandFlags as nn, CrossAccountSecretRefusalError as nr, protectionFlipKey as nt, withoutInjectedRemovals as o, injectiveKey as on, AccountIdUnavailableError as or, userPoolProtectionSite as ot, IAM_PRINCIPAL_NAME as p, ambientCredentialConfig as pn, ProvisioningError as pr, renderDisableCommand as pt, compensateProtectionFlip as q, isRetryableTransientError as qn, markSupersedesEarlierCreate as qt, removalWarning as r, sanitizeRecoveryValue as rn, DynamicReferenceRegionAmbiguousError as rr, rdsFamilyProtectionSite as rt, CreatedResourceSink as s, injectiveKeyPrefix as sn, AssetError as sr, DELETION_PROTECTION_DOC_POINTER as st, clearOnUpdateRemoval as t, formatLockOwner as tn, wrapMaskedAwsError as tr, observeThenDisableProtection as tt, reportCreatedResource as u, setPasteableAwsProfile as un, DeploymentNotApprovedError as ur, isAwsCliLiteral as ut, readPrincipalLists as v, isCdkdError as vn, TIMEOUT_FLAG_RESOURCE_TYPE as vr, endCommandInterruptScope as vt, RecentIdSet as w, NestedStackChildDirectDestroyError as wn, isInertUnquoted as wr, compositeIdSeparatorRefusal as wt, withUnchangedSecretPrincipalLists as x, MacroExpansionError as xn, UNSHOWABLE_VALUE as xr, startInterruptWatch as xt, readRecordedPrincipals as y, withErrorHandling as yn, SHELL_ACTIVE as yr, interruptWatchListenerCount as yt, remedyLogicalId as z, stripControlChars as zn, clearCreatedBeforeFailure as zt };
2354
+ //# sourceMappingURL=update-removal-C_x1-FM4.js.map