cdk-real-drift 0.12.43 → 0.12.44

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
@@ -16043,6 +16043,7 @@ function isUnderCreateOnly(findingPath, createOnlyPaths) {
16043
16043
  }
16044
16044
  return false;
16045
16045
  }
16046
+ const CC_DELETE_UNSUPPORTED_ADDED_TYPES = new Set(["AWS::EC2::NetworkAclEntry"]);
16046
16047
  function buildRevertPlan(findings, baseline, opts = {}) {
16047
16048
  const itemsByLogical = /* @__PURE__ */ new Map();
16048
16049
  const notRevertable = [];
@@ -16099,6 +16100,15 @@ function buildRevertPlan(findings, baseline, opts = {}) {
16099
16100
  });
16100
16101
  continue;
16101
16102
  }
16103
+ if (CC_DELETE_UNSUPPORTED_ADDED_TYPES.has(f.resourceType)) {
16104
+ notRevertable.push({
16105
+ displayId,
16106
+ resourceType: f.resourceType,
16107
+ path: f.path,
16108
+ reason: "out-of-band resource of a type Cloud Control cannot delete (no DeleteResource handler) — remove it manually"
16109
+ });
16110
+ continue;
16111
+ }
16102
16112
  itemsByLogical.set(f.logicalId, {
16103
16113
  logicalId: f.logicalId,
16104
16114
  displayId,