@cdkd/cli 0.347.0 → 0.349.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 (58) hide show
  1. package/dist/{ambient-client-defaults-BV_xDm4m.js → ambient-client-defaults-7acjxfyN.js} +3 -3
  2. package/dist/{ambient-client-defaults-BV_xDm4m.js.map → ambient-client-defaults-7acjxfyN.js.map} +1 -1
  3. package/dist/{asg-provider-fpr4ZEfp.js → asg-provider-Dvy_jqxt.js} +5 -5
  4. package/dist/{asg-provider-fpr4ZEfp.js.map → asg-provider-Dvy_jqxt.js.map} +1 -1
  5. package/dist/aws-partition-DA0r2sr-.js +58 -0
  6. package/dist/aws-partition-DA0r2sr-.js.map +1 -0
  7. package/dist/cli.js +2 -2
  8. package/dist/custom-resource-runtime-Dwnnj7bg.js +1104 -0
  9. package/dist/custom-resource-runtime-Dwnnj7bg.js.map +1 -0
  10. package/dist/{db-instance-modify-retry-BbBT68Qa.js → db-instance-modify-retry-pFWx2ED5.js} +4 -4
  11. package/dist/{db-instance-modify-retry-BbBT68Qa.js.map → db-instance-modify-retry-pFWx2ED5.js.map} +1 -1
  12. package/dist/delete-started-Co5Gt1jH.js +169 -0
  13. package/dist/delete-started-Co5Gt1jH.js.map +1 -0
  14. package/dist/{deploy-engine-DMWjQ_C2.js → deploy-engine-DeYSJno7.js} +720 -11916
  15. package/dist/deploy-engine-DeYSJno7.js.map +1 -0
  16. package/dist/diff-calculator-CRkRB1Dg.js +4959 -0
  17. package/dist/diff-calculator-CRkRB1Dg.js.map +1 -0
  18. package/dist/ec2-termination-protection-BM1Zt3Fn.js +1277 -0
  19. package/dist/ec2-termination-protection-BM1Zt3Fn.js.map +1 -0
  20. package/dist/{ecr-uri-C2FWGsrX.js → ecr-uri-C3_6QVgR.js} +3 -3
  21. package/dist/{ecr-uri-C2FWGsrX.js.map → ecr-uri-C3_6QVgR.js.map} +1 -1
  22. package/dist/expected-bucket-owner-CGoY_YS8.js +88 -0
  23. package/dist/expected-bucket-owner-CGoY_YS8.js.map +1 -0
  24. package/dist/{iam-role-provider-70-NzlFV.js → iam-role-provider-BaN9MMWs.js} +6 -5
  25. package/dist/iam-role-provider-BaN9MMWs.js.map +1 -0
  26. package/dist/image-plan-D4I8-FhR.js +1940 -0
  27. package/dist/image-plan-D4I8-FhR.js.map +1 -0
  28. package/dist/index.d.ts +3 -1
  29. package/dist/index.d.ts.map +1 -1
  30. package/dist/index.js +5 -4
  31. package/dist/{aws-failure-text-jomzO3aT.js → logger-DmQRya0S.js} +148 -59
  32. package/dist/logger-DmQRya0S.js.map +1 -0
  33. package/dist/{neptune-provider-CX4BHKjZ.js → neptune-provider-BYgFNrtZ.js} +6 -6
  34. package/dist/{neptune-provider-CX4BHKjZ.js.map → neptune-provider-BYgFNrtZ.js.map} +1 -1
  35. package/dist/{program-BU5T28eB.js → program-BBGm88gl.js} +1031 -2003
  36. package/dist/program-BBGm88gl.js.map +1 -0
  37. package/dist/{provider-classes-cw32hLq9.js → provider-classes-CRCHL04N.js} +44 -28
  38. package/dist/provider-classes-CRCHL04N.js.map +1 -0
  39. package/dist/{rds-provider-CxSVX1d7.js → rds-provider-DKZjtd50.js} +110 -70
  40. package/dist/rds-provider-DKZjtd50.js.map +1 -0
  41. package/dist/{read-replica-DtD9IDko.js → read-replica-C5e4xpYi.js} +78 -24
  42. package/dist/read-replica-C5e4xpYi.js.map +1 -0
  43. package/dist/replacement-rules-01_01yDU.js +4937 -0
  44. package/dist/replacement-rules-01_01yDU.js.map +1 -0
  45. package/dist/resource-deadline-TfDpwRQ_.js +423 -0
  46. package/dist/resource-deadline-TfDpwRQ_.js.map +1 -0
  47. package/dist/{update-removal-CpGaCv-d.js → update-removal-D-FspP88.js} +3 -3
  48. package/dist/{update-removal-CpGaCv-d.js.map → update-removal-D-FspP88.js.map} +1 -1
  49. package/dist/{version-Bx-Ox9xU.js → version-DamSnfI_.js} +2 -2
  50. package/dist/{version-Bx-Ox9xU.js.map → version-DamSnfI_.js.map} +1 -1
  51. package/package.json +4 -2
  52. package/dist/aws-failure-text-jomzO3aT.js.map +0 -1
  53. package/dist/deploy-engine-DMWjQ_C2.js.map +0 -1
  54. package/dist/iam-role-provider-70-NzlFV.js.map +0 -1
  55. package/dist/program-BU5T28eB.js.map +0 -1
  56. package/dist/provider-classes-cw32hLq9.js.map +0 -1
  57. package/dist/rds-provider-CxSVX1d7.js.map +0 -1
  58. package/dist/read-replica-DtD9IDko.js.map +0 -1
@@ -0,0 +1,423 @@
1
+ import { mt as safeMsg } from "./logger-DmQRya0S.js";
2
+ import { W as markNonRetryable, at as ProvisioningError } from "./ambient-client-defaults-7acjxfyN.js";
3
+ import { g as holdsSecretDerivedEntry } from "./update-removal-D-FspP88.js";
4
+ import { AsyncLocalStorage } from "node:async_hooks";
5
+
6
+ // src/state/unsettled-properties.ts
7
+ function unsettledPropertiesOf(record) {
8
+ if (record === null || typeof record !== "object") return /* @__PURE__ */ new Set();
9
+ const value = record.unsettledProperties;
10
+ if (!Array.isArray(value)) return /* @__PURE__ */ new Set();
11
+ return new Set(value.filter((entry) => typeof entry === "string" && entry !== ""));
12
+ }
13
+ function withUnsettledProperties(record, names) {
14
+ const merged = new Set(unsettledPropertiesOf(record));
15
+ const before = merged.size;
16
+ for (const name of names) if (typeof name === "string" && name !== "") merged.add(name);
17
+ if (merged.size === before && Array.isArray(record.unsettledProperties)) return record;
18
+ if (merged.size === 0) return withoutUnsettledProperties(record);
19
+ return {
20
+ ...record,
21
+ unsettledProperties: [...merged].sort()
22
+ };
23
+ }
24
+ function withoutUnsettledProperties(record) {
25
+ if (!Object.hasOwn(record, "unsettledProperties") && !Object.hasOwn(record, "unsettledItems")) return record;
26
+ const { unsettledProperties: _cleared, unsettledItems: _items, ...rest } = record;
27
+ return rest;
28
+ }
29
+ const UNSETTLED_ITEMS_PER_PATH_CAP = 100;
30
+ const UNSETTLED_ITEM_LENGTH_CAP = 255;
31
+ function unsettledItemsTopKey(path) {
32
+ const cut = path.search(/[.[]/);
33
+ return cut === -1 ? path : path.slice(0, cut);
34
+ }
35
+ function unsettledItemsOf(record) {
36
+ const out = /* @__PURE__ */ new Map();
37
+ if (record === null || typeof record !== "object") return out;
38
+ const value = record.unsettledItems;
39
+ if (value === null || typeof value !== "object" || Array.isArray(value)) return out;
40
+ const unsettled = unsettledPropertiesOf(record);
41
+ for (const [path, entries] of Object.entries(value)) {
42
+ if (!unsettled.has(unsettledItemsTopKey(path))) continue;
43
+ if (!Array.isArray(entries) || entries.length > 100) continue;
44
+ const names = entries.filter((entry) => typeof entry === "string" && entry !== "" && entry.length <= 255);
45
+ if (names.length > 0) out.set(path, new Set(names));
46
+ }
47
+ return out;
48
+ }
49
+ function isUsableAttemptedName(name) {
50
+ return !name.includes("{{resolve:") && !name.includes("***");
51
+ }
52
+ function withUnsettledItems(record, items) {
53
+ const merged = /* @__PURE__ */ new Map();
54
+ for (const [path, names] of unsettledItemsOf(record)) merged.set(path, new Set(names));
55
+ const unsettled = unsettledPropertiesOf(record);
56
+ let added = false;
57
+ for (const [path, names] of items) {
58
+ if (!unsettled.has(unsettledItemsTopKey(path))) continue;
59
+ const set = merged.get(path) ?? /* @__PURE__ */ new Set();
60
+ for (const name of names) {
61
+ if (typeof name !== "string" || name === "" || name.length > 255) continue;
62
+ if (!set.has(name)) {
63
+ set.add(name);
64
+ added = true;
65
+ }
66
+ }
67
+ if (set.size > 0) merged.set(path, set);
68
+ }
69
+ if (!added) return record;
70
+ const field = {};
71
+ for (const [path, set] of [...merged].sort(([a], [b]) => a.localeCompare(b))) if (set.size <= 100) field[path] = [...set].sort();
72
+ return {
73
+ ...record,
74
+ unsettledItems: field
75
+ };
76
+ }
77
+ function unsettledItemsField(source, keys) {
78
+ const allowed = new Set(keys);
79
+ const field = {};
80
+ for (const [path, names] of unsettledItemsOf(source)) if (allowed.has(unsettledItemsTopKey(path))) field[path] = [...names].sort();
81
+ return Object.keys(field).length > 0 ? { unsettledItems: field } : {};
82
+ }
83
+ function unsettledContextOf(...records) {
84
+ const names = /* @__PURE__ */ new Set();
85
+ const items = /* @__PURE__ */ new Map();
86
+ for (const record of records) {
87
+ for (const name of unsettledPropertiesOf(record)) names.add(name);
88
+ for (const [path, set] of unsettledItemsOf(record)) {
89
+ const merged = items.get(path) ?? /* @__PURE__ */ new Set();
90
+ for (const name of set) merged.add(name);
91
+ items.set(path, merged);
92
+ }
93
+ }
94
+ if (names.size === 0) return {};
95
+ return {
96
+ unsettledProperties: names,
97
+ ...items.size > 0 && { unsettledItems: items }
98
+ };
99
+ }
100
+
101
+ // src/provisioning/tag-list.ts
102
+ function isScalar(value) {
103
+ return typeof value === "string" || typeof value === "number" || typeof value === "boolean";
104
+ }
105
+ function isTagEntry(entry, options) {
106
+ if (typeof entry !== "object" || entry === null || Array.isArray(entry)) return false;
107
+ const e = entry;
108
+ const value = e["Value"];
109
+ return typeof e["Key"] === "string" && e["Key"].length > 0 && (isScalar(value) || options.allowOmittedValue === true && value === void 0);
110
+ }
111
+ const DBPROXY_TAG_OPTIONS = { allowOmittedValue: true };
112
+ const DBPROXY_TAGS_WHAT = "a list of tags with a non-empty string Key and an optional scalar Value";
113
+ function holdsSecretDerivedKey(value) {
114
+ return Array.isArray(value) && value.some((e) => typeof e === "object" && e !== null && holdsSecretDerivedEntry(e["Key"]));
115
+ }
116
+ function tagMapAsList(value) {
117
+ if (value === null || typeof value !== "object" || Array.isArray(value)) return value;
118
+ const entries = Object.entries(value);
119
+ if (!entries.every(([k, v]) => k.length > 0 && isScalar(v))) return value;
120
+ return entries.map(([Key, Value]) => ({
121
+ Key,
122
+ Value
123
+ }));
124
+ }
125
+ function readTagList(value, side, options = {}) {
126
+ if (value === void 0 || value === null) return {
127
+ kind: "tags",
128
+ tags: [],
129
+ hidden: 0
130
+ };
131
+ if (!Array.isArray(value) || !value.every((e) => isTagEntry(e, options))) return {
132
+ kind: "malformed",
133
+ secretDerived: holdsSecretDerivedKey(value)
134
+ };
135
+ const tags = value.map((t) => ({
136
+ Key: t.Key,
137
+ Value: String(t.Value ?? "")
138
+ }));
139
+ const secretKey = (t) => holdsSecretDerivedEntry(t.Key);
140
+ if (side === "desired") return tags.some(secretKey) ? {
141
+ kind: "malformed",
142
+ secretDerived: true
143
+ } : {
144
+ kind: "tags",
145
+ tags,
146
+ hidden: 0
147
+ };
148
+ const kept = tags.filter((t) => !secretKey(t));
149
+ return {
150
+ kind: "tags",
151
+ tags: kept,
152
+ hidden: tags.length - kept.length
153
+ };
154
+ }
155
+ function refuseMalformedDesiredTags(value, resourceType, logicalId, physicalId, property = "Tags", what = "a list of tags with a non-empty string Key and a scalar Value", options = {}) {
156
+ const read = readTagList(value, "desired", options);
157
+ if (read.kind === "tags") return read.tags;
158
+ const updating = physicalId !== void 0;
159
+ throw markNonRetryable(new ProvisioningError(safeMsg`${updating ? "desired " : ""}${property} of ${resourceType} ${logicalId} is not ${what}` + (read.secretDerived ? ` (${property} holds a dynamic reference or its mask where a tag key belongs, which names nothing AWS holds)` : "") + ` — the resource was not ${updating ? "updated" : "created"}`, resourceType, logicalId, physicalId));
160
+ }
161
+ function toTagMap(tags) {
162
+ const m = /* @__PURE__ */ new Map();
163
+ for (const t of tags) m.set(t.Key, t.Value);
164
+ return m;
165
+ }
166
+ function planTagDiff(recorded, desired, options = {}) {
167
+ const next = readTagList(desired, "desired", options);
168
+ if (next.kind === "malformed") throw new Error("desired Tags is not a list of tags; refuse it before planning the diff");
169
+ const newMap = toTagMap(next.tags);
170
+ const prev = readTagList(recorded, "recorded", options);
171
+ if (prev.kind === "malformed") return {
172
+ set: newMap,
173
+ remove: [],
174
+ recordedUnreadable: true,
175
+ recordedHidden: 0
176
+ };
177
+ const oldMap = toTagMap(prev.tags);
178
+ const set = /* @__PURE__ */ new Map();
179
+ for (const [k, v] of newMap) if (oldMap.get(k) !== v) set.set(k, v);
180
+ return {
181
+ set,
182
+ remove: [...oldMap.keys()].filter((k) => !newMap.has(k)),
183
+ recordedUnreadable: false,
184
+ recordedHidden: prev.hidden
185
+ };
186
+ }
187
+ function tagPlanWarning(plan, resourceType, id) {
188
+ if (plan.recordedUnreadable) return recordedTagsUnreadableWarning(resourceType, id, plan.set.size);
189
+ if (plan.recordedHidden > 0) return safeMsg`The recorded Tags of ${resourceType} ${id} holds ${plan.recordedHidden} key(s) derived from a dynamic reference or its mask, which cdkd cannot name, so it removed none of them. Untag any such key the template no longer names yourself.`;
190
+ }
191
+ function recordedTagsUnreadableWarning(resourceType, id, applied) {
192
+ return safeMsg`The recorded Tags of ${resourceType} ${id} is not a list cdkd can read, so cdkd removed no tag and applied the ${applied} desired tag(s) only. Untag any key the template no longer names yourself.`;
193
+ }
194
+
195
+ // src/provisioning/attribute-map.ts
196
+ function definedAttributes(entries) {
197
+ const out = {};
198
+ for (const [key, value] of Object.entries(entries)) {
199
+ if (value === void 0 || value === null) continue;
200
+ out[key] = value;
201
+ }
202
+ return out;
203
+ }
204
+ function stringifyIfAssigned(value) {
205
+ if (value === void 0 || value === null) return void 0;
206
+ return String(value);
207
+ }
208
+
209
+ // src/provisioning/providers/rds/zoned-timestamp.ts
210
+ const ZONED_DATE_TIME = /^(\d{4})-(\d{2})-(\d{2})[Tt](\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{1,9}))?)?(?:[Zz]|([+-])(\d{2})(?::(\d{2})(?::(\d{2}))?)?)(?:\[[^\]]+\])?$/;
211
+ function parseZonedTimestamp(text) {
212
+ const match = ZONED_DATE_TIME.exec(text);
213
+ if (match === null) return void 0;
214
+ const n = (i) => match[i] === void 0 ? 0 : Number(match[i]);
215
+ const [year, month, day, hour, minute, second] = [
216
+ n(1),
217
+ n(2),
218
+ n(3),
219
+ n(4),
220
+ n(5),
221
+ n(6)
222
+ ];
223
+ const [offsetHours, offsetMinutes, offsetSeconds] = [
224
+ n(9),
225
+ n(10),
226
+ n(11)
227
+ ];
228
+ if (month < 1 || month > 12 || hour > 23 || minute > 59 || second > 59) return void 0;
229
+ if (offsetMinutes > 59 || offsetSeconds > 59) return void 0;
230
+ if (offsetHours * 3600 + offsetMinutes * 60 + offsetSeconds > 64800) return void 0;
231
+ if (day < 1 || new Date(Date.UTC(year, month - 1, day)).getUTCDate() !== day) return void 0;
232
+ const millis = Number((match[7] ?? "").padEnd(3, "0").slice(0, 3));
233
+ const offsetMs = (match[8] === "-" ? -1 : 1) * (offsetHours * 3600 + offsetMinutes * 60 + offsetSeconds) * 1e3;
234
+ const date = new Date(Date.UTC(year, month - 1, day, hour, minute, second, millis) - offsetMs);
235
+ return Number.isNaN(date.getTime()) ? void 0 : date;
236
+ }
237
+
238
+ // src/provisioning/restore-source-guard.ts
239
+ const RESTORING_TYPES = /* @__PURE__ */ new Set([
240
+ "AWS::DocDB::DBCluster",
241
+ "AWS::Neptune::DBCluster",
242
+ "AWS::RDS::DBCluster"
243
+ ]);
244
+ function clusterName(identifier) {
245
+ return (identifier.split(":").pop() ?? identifier).toLowerCase();
246
+ }
247
+ function elsewhere(identifier, scope) {
248
+ if (!identifier.startsWith("arn:")) return false;
249
+ const [, , , region, account] = identifier.split(":");
250
+ const differs = (carried, known) => Boolean(carried) && known !== void 0 && carried !== known;
251
+ return differs(region, scope.region) || differs(account, scope.account);
252
+ }
253
+ function automatedSnapshotOf(snapshot, name, arnSegment = ":cluster-snapshot:") {
254
+ const id = snapshot.startsWith("arn:") ? snapshot.split(arnSegment)[1] ?? "" : snapshot;
255
+ const match = /^rds:(.+)-\d{4}-\d{2}-\d{2}-\d{2}-\d{2}$/i.exec(id);
256
+ return match !== null && match[1].toLowerCase() === name;
257
+ }
258
+ function declaresInstancePointInTime(properties) {
259
+ const latest = properties["UseLatestRestorableTime"];
260
+ if (latest === true || typeof latest === "string" && latest.toLowerCase() === "true") return true;
261
+ return [
262
+ "RestoreTime",
263
+ "SourceDBInstanceAutomatedBackupsArn",
264
+ "SourceDbiResourceId"
265
+ ].some((key) => properties[key] != null && properties[key] !== "");
266
+ }
267
+ const POINT_IN_TIME_NO_SOURCE_REASON = "the template names no source to restore to a point in time from (SourceDBInstanceIdentifier, SourceDbiResourceId or SourceDBInstanceAutomatedBackupsArn), so cdkd cannot read its engine; declare Engine or a source, as CloudFormation requires (\"Cannot fetch the engine\")";
268
+ function pointInTimeTemplateRefusal(properties) {
269
+ const time = properties["RestoreTime"];
270
+ if (time != null && !(typeof time === "string" && time.trim() === "")) {
271
+ if (typeof time !== "string" || parseZonedTimestamp(time) === void 0) return "RestoreTime must be an ISO 8601 timestamp with a time zone, such as 2026-01-01T00:00:00Z";
272
+ }
273
+ const latest = properties["UseLatestRestorableTime"];
274
+ if (latest != null && typeof latest !== "boolean" && !(typeof latest === "string" && ["true", "false"].includes(latest.toLowerCase()))) return "UseLatestRestorableTime must be true or false";
275
+ for (const key of ["SourceDBInstanceAutomatedBackupsArn", "SourceDbiResourceId"]) {
276
+ const value = properties[key];
277
+ if (value != null && typeof value !== "string") return `${key} must be a string`;
278
+ }
279
+ if (!declaresInstancePointInTime(properties)) return void 0;
280
+ const engine = properties["Engine"];
281
+ if (!(typeof engine === "string" && engine !== "") && ![
282
+ "SourceDBInstanceIdentifier",
283
+ "SourceDbiResourceId",
284
+ "SourceDBInstanceAutomatedBackupsArn"
285
+ ].some((key) => typeof properties[key] === "string" && properties[key] !== "")) return POINT_IN_TIME_NO_SOURCE_REASON;
286
+ }
287
+ function refuseInstancePointInTimeFromItself(resourceType, properties, physicalId, logicalId, scope) {
288
+ const refuse = (key) => {
289
+ throw markNonRetryable(new ProvisioningError(safeMsg`${resourceType} ${logicalId}: ${key} names the DB instance this creates or replaces, whose delete removes the automated backups a point-in-time restore reads; restore from another instance's backups instead. Nothing was changed.`, resourceType, logicalId, physicalId));
290
+ };
291
+ const source = properties["SourceDBInstanceIdentifier"];
292
+ if (typeof source === "string" && source !== "" && clusterName(source) === clusterName(physicalId) && !elsewhere(source, scope)) refuse("SourceDBInstanceIdentifier");
293
+ const own = scope.attributes?.["DbiResourceId"];
294
+ if (typeof own !== "string" || own === "") return;
295
+ const resourceId = properties["SourceDbiResourceId"];
296
+ if (typeof resourceId === "string" && resourceId.toLowerCase() === own.toLowerCase()) refuse("SourceDbiResourceId");
297
+ }
298
+ function refuseRestoreFromItself(resourceType, properties, physicalId, logicalId, scope) {
299
+ if (resourceType === "AWS::RDS::DBInstance") {
300
+ const refusal = pointInTimeTemplateRefusal(properties);
301
+ if (refusal !== void 0) throw markNonRetryable(new ProvisioningError(safeMsg`${resourceType} ${logicalId}: ${refusal}; nothing was changed.`, resourceType, logicalId, physicalId));
302
+ if (declaresInstancePointInTime(properties)) {
303
+ refuseInstancePointInTimeFromItself(resourceType, properties, physicalId, logicalId, scope);
304
+ return;
305
+ }
306
+ const instanceSnapshot = properties["DBSnapshotIdentifier"];
307
+ if (!["SourceDBInstanceIdentifier", "SourceDBClusterIdentifier"].some((key) => typeof properties[key] === "string" && properties[key] !== "") && typeof instanceSnapshot === "string" && automatedSnapshotOf(instanceSnapshot, clusterName(physicalId), ":snapshot:") && !elsewhere(instanceSnapshot, scope)) throw markNonRetryable(new ProvisioningError(safeMsg`${resourceType} ${logicalId}: DBSnapshotIdentifier names an automated snapshot of the DB instance this creates or replaces, which its delete removes; restore from a manual snapshot instead. Nothing was changed.`, resourceType, logicalId, physicalId));
308
+ return;
309
+ }
310
+ if (!RESTORING_TYPES.has(resourceType)) return;
311
+ const snapshot = properties["SnapshotIdentifier"];
312
+ if (typeof snapshot === "string" && automatedSnapshotOf(snapshot, clusterName(physicalId)) && !elsewhere(snapshot, scope)) throw markNonRetryable(new ProvisioningError(safeMsg`${resourceType} ${logicalId}: SnapshotIdentifier names an automated snapshot of the cluster this creates or replaces, which its delete removes; restore from a manual snapshot instead. Nothing was changed.`, resourceType, logicalId, physicalId));
313
+ const sourceResourceId = properties["SourceDbClusterResourceId"];
314
+ const ownResourceId = scope.attributes?.["DBClusterResourceId"];
315
+ if (resourceType === "AWS::RDS::DBCluster" && typeof sourceResourceId === "string" && typeof ownResourceId === "string" && ownResourceId !== "" && sourceResourceId.toLowerCase() === ownResourceId.toLowerCase()) throw markNonRetryable(new ProvisioningError(safeMsg`${resourceType} ${logicalId}: SourceDbClusterResourceId must be another cluster's than the one this replaces; nothing was changed.`, resourceType, logicalId, physicalId));
316
+ const source = properties["SourceDBClusterIdentifier"];
317
+ if (typeof source !== "string" || clusterName(source) !== clusterName(physicalId)) return;
318
+ if (elsewhere(source, scope)) return;
319
+ throw markNonRetryable(new ProvisioningError(safeMsg`${resourceType} ${logicalId}: SourceDBClusterIdentifier must be another cluster than the one this creates or replaces; nothing was changed.`, resourceType, logicalId, physicalId));
320
+ }
321
+
322
+ // src/deployment/resource-deadline.ts
323
+ var InvalidResourceDeadlineError = class extends Error {
324
+ constructor(message) {
325
+ super(message);
326
+ this.name = "InvalidResourceDeadlineError";
327
+ }
328
+ };
329
+ function validateOptions(opts) {
330
+ const { warnAfterMs, timeoutMs } = opts;
331
+ if (!Number.isFinite(warnAfterMs) || !Number.isFinite(timeoutMs) || warnAfterMs <= 0 || timeoutMs <= 0) throw new InvalidResourceDeadlineError(`withResourceDeadline: warnAfterMs and timeoutMs must be positive finite numbers (got warnAfterMs=${warnAfterMs}, timeoutMs=${timeoutMs})`);
332
+ if (warnAfterMs >= timeoutMs) throw new InvalidResourceDeadlineError(`withResourceDeadline: warnAfterMs (${warnAfterMs}ms) must be less than timeoutMs (${timeoutMs}ms)`);
333
+ }
334
+ async function withResourceDeadline(operation, opts) {
335
+ validateOptions(opts);
336
+ return new Promise((resolve, reject) => {
337
+ let settled = false;
338
+ let timedOut = false;
339
+ let warned = false;
340
+ let warnTimer;
341
+ let timeoutTimer;
342
+ let elapsedBeforePause = 0;
343
+ let runningSince = Date.now();
344
+ let pauses = 0;
345
+ const elapsed = () => elapsedBeforePause + (pauses > 0 ? 0 : Date.now() - runningSince);
346
+ const cleanup = () => {
347
+ if (warnTimer !== void 0) clearTimeout(warnTimer);
348
+ if (timeoutTimer !== void 0) clearTimeout(timeoutTimer);
349
+ warnTimer = void 0;
350
+ timeoutTimer = void 0;
351
+ };
352
+ const arm = () => {
353
+ if (opts.onWarn && !warned) warnTimer = setTimeout(() => {
354
+ if (settled) return;
355
+ warned = true;
356
+ try {
357
+ opts.onWarn(elapsed());
358
+ } catch {}
359
+ }, Math.max(0, opts.warnAfterMs - elapsed()));
360
+ timeoutTimer = setTimeout(() => {
361
+ if (settled) return;
362
+ settled = true;
363
+ timedOut = true;
364
+ cleanup();
365
+ reject(opts.onTimeout(elapsed()));
366
+ }, Math.max(0, opts.timeoutMs - elapsed()));
367
+ };
368
+ arm();
369
+ const outer = deadlineScope.getStore();
370
+ const control = {
371
+ pause: () => {
372
+ pauses += 1;
373
+ if (pauses === 1) {
374
+ elapsedBeforePause += Date.now() - runningSince;
375
+ cleanup();
376
+ }
377
+ outer?.pause();
378
+ },
379
+ resume: () => {
380
+ if (pauses === 0) return;
381
+ pauses -= 1;
382
+ if (pauses === 0) {
383
+ runningSince = Date.now();
384
+ if (!settled) arm();
385
+ }
386
+ outer?.resume();
387
+ },
388
+ expired: () => timedOut || (outer?.expired() ?? false),
389
+ remainingMs: () => Math.min(timedOut ? 0 : Math.max(0, opts.timeoutMs - elapsed()), outer?.remainingMs() ?? Number.POSITIVE_INFINITY)
390
+ };
391
+ Promise.resolve().then(() => deadlineScope.run(control, operation)).then((value) => {
392
+ if (settled) return;
393
+ settled = true;
394
+ cleanup();
395
+ resolve(value);
396
+ }, (err) => {
397
+ if (settled) return;
398
+ settled = true;
399
+ cleanup();
400
+ reject(err);
401
+ });
402
+ });
403
+ }
404
+ const deadlineScope = new AsyncLocalStorage();
405
+ async function whileEnclosingDeadlinesPaused(fn) {
406
+ const control = deadlineScope.getStore();
407
+ if (control === void 0) return fn();
408
+ control.pause();
409
+ try {
410
+ return await fn();
411
+ } finally {
412
+ control.resume();
413
+ }
414
+ }
415
+ function enclosingDeadlineExpired() {
416
+ return deadlineScope.getStore()?.expired() ?? false;
417
+ }
418
+ function enclosingDeadlineRemainingMs() {
419
+ return deadlineScope.getStore()?.remainingMs() ?? Number.POSITIVE_INFINITY;
420
+ }
421
+
422
+ export { unsettledItemsTopKey as C, withoutUnsettledProperties as D, withUnsettledProperties as E, unsettledItemsOf as S, withUnsettledItems as T, tagMapAsList as _, POINT_IN_TIME_NO_SOURCE_REASON as a, unsettledContextOf as b, refuseRestoreFromItself as c, stringifyIfAssigned as d, DBPROXY_TAGS_WHAT as f, refuseMalformedDesiredTags as g, readTagList as h, withResourceDeadline as i, parseZonedTimestamp as l, planTagDiff as m, enclosingDeadlineRemainingMs as n, declaresInstancePointInTime as o, DBPROXY_TAG_OPTIONS as p, whileEnclosingDeadlinesPaused as r, pointInTimeTemplateRefusal as s, enclosingDeadlineExpired as t, definedAttributes as u, tagPlanWarning as v, unsettledPropertiesOf as w, unsettledItemsField as x, isUsableAttemptedName as y };
423
+ //# sourceMappingURL=resource-deadline-TfDpwRQ_.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resource-deadline-TfDpwRQ_.js","names":[],"sources":["../src/state/unsettled-properties.ts","../src/provisioning/tag-list.ts","../src/provisioning/attribute-map.ts","../src/provisioning/providers/rds/zoned-timestamp.ts","../src/provisioning/restore-source-guard.ts","../src/deployment/resource-deadline.ts"],"mappings":";;;;;;AAiBA,SAAgB,sBAAsB,QAAsC;CAC1E,IAAI,WAAW,QAAQ,OAAO,WAAW,UAAU,uBAAO,IAAI,IAAI;CAClE,MAAM,QAAS,OAA6C;CAC5D,IAAI,CAAC,MAAM,QAAQ,KAAK,GAAG,uBAAO,IAAI,IAAI;CAC1C,OAAO,IAAI,IACT,MAAM,QAAQ,UAA2B,OAAO,UAAU,YAAY,UAAU,EAAE,CACpF;AACF;AAOA,SAAgB,wBACd,QACA,OACG;CACH,MAAM,SAAS,IAAI,IAAI,sBAAsB,MAAM,CAAC;CACpD,MAAM,SAAS,OAAO;CACtB,KAAK,MAAM,QAAQ,OACjB,IAAI,OAAO,SAAS,YAAY,SAAS,IAAI,OAAO,IAAI,IAAI;CAE9D,IAAI,OAAO,SAAS,UAAU,MAAM,QA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C/B,aAAa;IACX,UAAU;IACV,IAAI,WAAW,GAAG;KAChB,sBAAsB,KAAK,IAAI,IAAI;KACnC,QAAQ;IACV;IACA,OAAO,MAAM;GACf;GACA,cAAc;IACZ,IAAI,WAAW,GAAG;IAClB,UAAU;IACV,IAAI,WAAW,GAAG;KAChB,eAAe,KAAK,IAAI;KACxB,IAAI,CAAC,SAAS,IAAI;IACpB;IACA,OAAO,OAAO;GAChB;GACA,eAAe,aAAa,OAAO,QAAQ,KAAK;GAChD,mBACE,KAAK,IACH,WAAW,IAAI,KAAK,IAAI,GAAG,KAAK,YAAY,QAAQ,CAAC,GACrD,OAAO,YAAY,KAAK,OAAO,iBACjC;EACJ;EAKA,QAAQ,QAAQ,CAAC,CACd,WAAW,cAAc,IAAI,SAAS,SAAS,CAAC,CAAC,CACjD,MACE,UAAU;GACT,IAAI,SAAS;GACb,UAAU;GACV,QAAQ;GACR,QAAQ,KAAK;EACf,IACC,QAAQ;GACP,IAAI,SAAS;GACb,UAAU;GACV,QAAQ;GACR,OAAO,GAAG;EACZ,CACF;CACJ,CAAC;AACH;AAYA,MAAM,gBAAgB,IAAI,kBAAmC;AAS7D,eAAsB,8BAAiC,IAAkC;CACvF,MAAM,UAAU,cAAc,SAAS;CACvC,IAAI,YAAY,QAAW,OAAO,GAAG;CACrC,QAAQ,MAAM;CACd,IAAI;EACF,OAAO,MAAM,GAAG;CAClB,UAAU;EACR,QAAQ,OAAO;CACjB;AACF;AAOA,SAAgB,2BAAoC;CAClD,OAAO,cAAc,SAAS,CAAC,EAAE,QAAQ,KAAK;AAChD;AASA,SAAgB,+BAAuC;CACrD,OAAO,cAAc,SAAS,CAAC,EAAE,YAAY,KAAK,OAAO;AAC3D"}
@@ -1,5 +1,5 @@
1
- import { Q as SECRET_REF_MAX_CODE_POINTS, W as getCurrentStackName, at as displaySafe, ct as isPlainIdent, et as UNRENDERABLE, lt as plainIdentOr, n as describeAwsFailure, ot as displayStackName, st as isPasteableIdent, ut as safeMsg } from "./aws-failure-text-jomzO3aT.js";
2
- import { B as retryClassificationText, D as markReplayMayCollide, F as isAmbiguousOutcomeError, H as isMarkedNonRetryable, R as isRetryableTransientError, St as shellQuote, _t as pasteableCommand, at as ProvisioningError, dt as SHELL_ACTIVE, gt as isInertUnquoted, mt as commandHole, x as hasReplayMayCollide, yt as plainOrDescribed, z as isTransientServerError } from "./ambient-client-defaults-BV_xDm4m.js";
1
+ import { J as getCurrentStackName, dt as isPasteableIdent, ft as isPlainIdent, it as UNRENDERABLE, lt as displaySafe, mt as safeMsg, nt as SECRET_REF_MAX_CODE_POINTS, pt as plainIdentOr, u as describeAwsFailure, ut as displayStackName } from "./logger-DmQRya0S.js";
2
+ import { B as retryClassificationText, D as markReplayMayCollide, F as isAmbiguousOutcomeError, H as isMarkedNonRetryable, R as isRetryableTransientError, St as shellQuote, _t as pasteableCommand, at as ProvisioningError, dt as SHELL_ACTIVE, gt as isInertUnquoted, mt as commandHole, x as hasReplayMayCollide, yt as plainOrDescribed, z as isTransientServerError } from "./ambient-client-defaults-7acjxfyN.js";
3
3
  import { a as getAssumedRoleCredentials, f as ambientRegion, i as awsEndpointOverrideUrl } from "./aws-client-defaults-DAebi99J.js";
4
4
  import { AsyncLocalStorage } from "node:async_hooks";
5
5
 
@@ -1413,4 +1413,4 @@ function removalWarning(logicalId, resourceType, unhandled, caller = "deploy") {
1413
1413
  }
1414
1414
 
1415
1415
  export { deleteAfterProtectionFlipWithFinalSnapshot as $, forceQuitRecoveryClause as $t, setBounded as A, segmentAfterAnchor as At, resolveExplicitPhysicalId as B, clearCreatedBeforeFailure as Bt, AmbiguousCreateLatch as C, canonicalizeRoute53QueryName as Ct, isInsideWindow as D, logicalIdShown as Dt, createAttemptKey as E, compositeIdSkipResult as Et, isQuotableImportValue as F, maskDeep as Ft, compensateProtectionFlip as G, isAuxiliaryMarkOf as Gt, assertRegionMatch as H, createdResourceIdentityBeforeFailure as Ht, normalizeAwsTagsToCfn as I, maskerOrIdentity as It, observeThenDisableProtection as J, markSupersedesEarlierCreate as Jt, deleteWithProtectionCompensation as K, markAuxiliaryFailure as Kt, quotedRemedyLogicalId as L, withDerivedNameMasks as Lt, VALUE_NOT_SHOWN as M, createMaskedLogSinks as Mt, isPlainImportJson as N, createMaskedRetryLogger as Nt, replayFollowedAmbiguousAttempt as O, packCompositeId as Ot, isPlainImportValue as P, isSecretDerivedValue as Pt, PROTECTION_FLIP_RETRY_WAIT_MS as Q, buildLockContentionMessage as Qt, refusalTypeShown as R, RETRY_AUXILIARY_OWNER as Rt, AMBIGUOUS_LATCH_TTL_MS as S, startInterruptWatch as St, ambiguousAttemptLead as T, compositeIdSeparatorRefusal as Tt, isMarkedNotGone as U, hasCreatedBeforeFailure as Ut, RESOURCE_NOT_FOUND as V, createdBeforeFailure as Vt, markNotGone as W, isAuxiliaryFailure as Wt, settleProtectionFlip as X, UNREPRODUCIBLE_LOCK_CLAUSE as Xt, rdsFamilyProtectionSite as Y, replayMadeAnotherResource as Yt, userPoolProtectionSite as Z, buildForceUnlockCommand as Zt, onlySecretDerived as _, renderDisableCommand as _t, withRemovalDefaults as a, CUSTOM_RESOURCE_RESPONSE_PREFIX as an, isTerminalDeleteFailure as at, recordedPrincipalsRepair as b, interruptWatchListenerCount as bt, clearCreatedReport as c, injectiveKeyPrefix as cn, ElapsedBudget as ct, reportedCreatedResource as d, setPasteableAwsCaBundle as dn, DELETION_PROTECTION_DOC_POINTER as dt, formatLockExpiry as en, isFinalSnapshotNotAvailableRefusal as et, retractCreatedResource as f, setPasteableAwsProfile as fn, UNNAMEABLE_ID_CLAUSE as ft, holdsSecretDerivedEntry as g, protectedReplacementAdvice as gt, SECRET_DERIVED_READ_LIVE as h, pasteableAwsCommand as ht, removedTemplateKeys as i, sanitizeRecoveryValue as in, ProtectionFlipRegistry as it, withoutServerErrorRetries as j, stateOrphanRecordRemedy as jt, replayedSendWindow as k, resourceTypeShown as kt, collectCreatedResources as l, producerCoordinateKey as ln, ElapsedBudgetRegistry as lt, RESOLVED_PREVIOUS_PRINCIPAL_KEYS as m, isAwsCliLiteral as mt, prepareRemovalForUpdate as n, formatLockOwner as nn, isTerminalDbWaitStatus as nt, withoutInjectedRemovals as o, DEFAULT_STATE_PREFIX as on, protectionFlipKey as ot, IAM_PRINCIPAL_NAME as p, withPasteableAwsProfile as pn, WITHHELD_AWS_COMMAND as pt, logGroupProtectionSite as q, markCreatedBeforeFailure as qt, removalWarning as r, recoveryCommandFlags as rn, PROTECTION_FLIP_REUSE_WINDOW_MS as rt, CreatedResourceSink as s, injectiveKey as sn, runDeleteAttempt as st, clearOnUpdateRemoval as t, formatLockOperation as tn, isProceedDbStatus as tt, reportCreatedResource as u, producerRecordKey as un, monotonicNowMs as ut, readPrincipalLists as v, beginCommandInterruptScope as vt, RecentIdSet as w, compositeIdFormatMessage as wt, withUnchangedSecretPrincipalLists as x, isInterruptedWaitError as xt, readRecordedPrincipals as y, endCommandInterruptScope as yt, remedyLogicalId as z, carryCreatedBeforeFailure as zt };
1416
- //# sourceMappingURL=update-removal-CpGaCv-d.js.map
1416
+ //# sourceMappingURL=update-removal-D-FspP88.js.map