cdk-real-drift 0.12.67 → 0.12.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +13 -7
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -5852,7 +5852,7 @@ function cloneDeepWithSymbols(v) {
|
|
|
5852
5852
|
}
|
|
5853
5853
|
const isPolicyStatementArray = (arr) => arr.length > 0 && arr.every((el) => isNestedObject(el) && "Effect" in el);
|
|
5854
5854
|
const isInlinePolicyArray = (arr) => arr.length > 0 && arr.every((el) => isNestedObject(el) && "PolicyDocument" in el);
|
|
5855
|
-
const
|
|
5855
|
+
const isIdentitySortedObjectArray = (arr) => arr.length > 0 && identityField(arr) !== void 0;
|
|
5856
5856
|
function isPolicySubsetOf(sub, sup) {
|
|
5857
5857
|
for (const [k, v] of Object.entries(sub)) {
|
|
5858
5858
|
if (!(k in sup)) return false;
|
|
@@ -6884,14 +6884,14 @@ function classifyResource(resource, liveRaw, schema, opts = {}) {
|
|
|
6884
6884
|
const transformExpr = schema.propertyTransforms?.[d.path] ?? schema.propertyTransforms?.[d.path.replace(/\.\d+(?=\.|$)/g, ".*")];
|
|
6885
6885
|
if (transformExpr !== void 0 && matchesPropertyTransform(transformExpr, d.stateValue, resolveParentObject(declared, d.path), declared, d.awsValue, d.path.split(".").at(-1) ?? d.path)) continue;
|
|
6886
6886
|
if (schema.propertyTransforms !== void 0 && transformExpr === void 0 && matchesAncestorPropertyTransform(schema.propertyTransforms, d.path, declared, live)) continue;
|
|
6887
|
-
const
|
|
6887
|
+
const identitySortedWhole = !unorderedObjArray && Array.isArray(v) && isIdentitySortedObjectArray(v) && d.path.startsWith(`${k}.`);
|
|
6888
6888
|
const unorderedExtra = unorderedObjArray && Array.isArray(declaredVal) && declaredRemapSource ? {
|
|
6889
6889
|
path: remapSortedIndexToDeclared(d.path, k, declaredVal, declaredRemapSource),
|
|
6890
6890
|
wholeArrayRevert: {
|
|
6891
6891
|
path: k,
|
|
6892
6892
|
value: v
|
|
6893
6893
|
}
|
|
6894
|
-
} :
|
|
6894
|
+
} : identitySortedWhole ? { wholeArrayRevert: {
|
|
6895
6895
|
path: k,
|
|
6896
6896
|
value: v
|
|
6897
6897
|
} } : {};
|
|
@@ -8682,7 +8682,8 @@ function diffLogGroupFilters(logGroupName, resourceType, declaredFilterNames, li
|
|
|
8682
8682
|
live: {
|
|
8683
8683
|
FilterName: f.name,
|
|
8684
8684
|
LogGroupName: logGroupName
|
|
8685
|
-
}
|
|
8685
|
+
},
|
|
8686
|
+
siblingLookupId: f.name
|
|
8686
8687
|
});
|
|
8687
8688
|
}
|
|
8688
8689
|
return added;
|
|
@@ -11850,6 +11851,7 @@ const EMPTY = {
|
|
|
11850
11851
|
readOnlyPaths: [],
|
|
11851
11852
|
writeOnlyPaths: [],
|
|
11852
11853
|
createOnlyPaths: [],
|
|
11854
|
+
conditionalCreateOnlyPaths: [],
|
|
11853
11855
|
defaults: {},
|
|
11854
11856
|
defaultPaths: {},
|
|
11855
11857
|
unorderedScalarPaths: [],
|
|
@@ -12094,6 +12096,7 @@ function parseSchema(schemaJson) {
|
|
|
12094
12096
|
const readOnlyPaths = dotted(schema.readOnlyProperties);
|
|
12095
12097
|
const writeOnlyPaths = dotted(schema.writeOnlyProperties);
|
|
12096
12098
|
const createOnlyPaths = dotted(schema.createOnlyProperties);
|
|
12099
|
+
const conditionalCreateOnlyPaths = dotted(schema.conditionalCreateOnlyProperties);
|
|
12097
12100
|
const definitions = schema.definitions ?? {};
|
|
12098
12101
|
const defaults = {};
|
|
12099
12102
|
for (const [k, def] of Object.entries(schema.properties ?? {})) {
|
|
@@ -12114,6 +12117,7 @@ function parseSchema(schemaJson) {
|
|
|
12114
12117
|
readOnlyPaths,
|
|
12115
12118
|
writeOnlyPaths,
|
|
12116
12119
|
createOnlyPaths,
|
|
12120
|
+
conditionalCreateOnlyPaths,
|
|
12117
12121
|
defaults,
|
|
12118
12122
|
defaultPaths,
|
|
12119
12123
|
unorderedScalarPaths: unorderedArrayPaths.scalar,
|
|
@@ -12477,7 +12481,8 @@ function hasForeignScopeSignal(c, accountId, region) {
|
|
|
12477
12481
|
return (c.scopeArns ?? []).some((arn) => arn.startsWith("arn:") && !isDefinitiveNotManaged(arn, accountId, region));
|
|
12478
12482
|
}
|
|
12479
12483
|
async function probeSiblingPhysicalId(cfn, c, physicalId, cache, accountId, region) {
|
|
12480
|
-
const
|
|
12484
|
+
const cacheKey = `${c.resourceType}|${physicalId}`;
|
|
12485
|
+
const cached = cache.get(cacheKey);
|
|
12481
12486
|
if (cached !== void 0) return cached;
|
|
12482
12487
|
let managed = false;
|
|
12483
12488
|
try {
|
|
@@ -12504,13 +12509,13 @@ async function probeSiblingPhysicalId(cfn, c, physicalId, cache, accountId, regi
|
|
|
12504
12509
|
}
|
|
12505
12510
|
} catch (e) {
|
|
12506
12511
|
if (e.name === "ValidationError" && isDefinitiveNotManaged(physicalId, accountId, region) && !hasForeignScopeSignal(c, accountId, region)) {
|
|
12507
|
-
cache.set(
|
|
12512
|
+
cache.set(cacheKey, "notManaged");
|
|
12508
12513
|
return "notManaged";
|
|
12509
12514
|
}
|
|
12510
12515
|
return "unverified";
|
|
12511
12516
|
}
|
|
12512
12517
|
const result = managed ? "managed" : "notManaged";
|
|
12513
|
-
cache.set(
|
|
12518
|
+
cache.set(cacheKey, result);
|
|
12514
12519
|
return result;
|
|
12515
12520
|
}
|
|
12516
12521
|
async function isManagedBySiblingStack(cfn, c, cache, accountId, region) {
|
|
@@ -17006,6 +17011,7 @@ function writeOnlyReincludeOps(declared, schema, existingOps) {
|
|
|
17006
17011
|
for (const path of schema.writeOnlyPaths) {
|
|
17007
17012
|
if (path.includes("*")) continue;
|
|
17008
17013
|
if (isUnderCreateOnly(path, schema.createOnlyPaths)) continue;
|
|
17014
|
+
if (isUnderCreateOnly(path, schema.conditionalCreateOnlyPaths ?? [])) continue;
|
|
17009
17015
|
const value = valueAtDottedPath(declared, path);
|
|
17010
17016
|
if (value === void 0 || value === UNRESOLVED || hasUnresolved(value)) continue;
|
|
17011
17017
|
const pointer = toPointer(path);
|