cdk-real-drift 0.18.4 → 0.18.5

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 CHANGED
@@ -6753,7 +6753,8 @@ function classifyResource(resource, liveRaw, schema, opts = {}) {
6753
6753
  logicalId,
6754
6754
  resourceType,
6755
6755
  path: k,
6756
- note: "write-only — cannot be read back"
6756
+ note: "write-only — cannot be read back",
6757
+ writeOnly: true
6757
6758
  });
6758
6759
  const twinSources = {};
6759
6760
  for (const src of Object.values(SHAPE_ECHO_TWIN[resourceType] ?? {})) if (isNestedObject(declared[src])) twinSources[src] = declared[src];
@@ -15401,7 +15402,7 @@ function computeCompleteResources(allLogicalIds, findings, recorded, previousCom
15401
15402
  const blocked = /* @__PURE__ */ new Set();
15402
15403
  const blockedByIgnore = /* @__PURE__ */ new Set();
15403
15404
  for (const f of findings) {
15404
- if (f.tier === "skipped" || f.tier === "deleted" || f.tier === "readGap") blocked.add(f.logicalId);
15405
+ if (f.tier === "skipped" || f.tier === "deleted" || f.tier === "readGap" && !f.writeOnly) blocked.add(f.logicalId);
15405
15406
  if (f.tier === "undeclared" && !recordedKeys.has(recordedKey(f))) blocked.add(f.logicalId);
15406
15407
  if (f.tier === "ignored" && f.ignoredFrom === "undeclared" && !recordedKeys.has(recordedKey(f))) blockedByIgnore.add(f.logicalId);
15407
15408
  }