cdk-real-drift 0.14.0 → 0.14.1

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
@@ -13951,7 +13951,7 @@ const CC_GET_UNSUPPORTED_ADDED_TYPES = new Set([
13951
13951
  "AWS::SNS::TopicPolicy",
13952
13952
  "AWS::KMS::Grant"
13953
13953
  ]);
13954
- async function readAddedModel(cc, cfn, c, schemas, oaiCanonicalIds) {
13954
+ async function readAddedModel(cc, cfn, c, schemas, oaiCanonicalIds, region, accountId) {
13955
13955
  const normalizeWith = async (raw) => {
13956
13956
  let schema = schemas.get(c.resourceType);
13957
13957
  if (!schema) {
@@ -13975,6 +13975,16 @@ async function readAddedModel(cc, cfn, c, schemas, oaiCanonicalIds) {
13975
13975
  }));
13976
13976
  return normalizeWith(JSON.parse(g.ResourceDescription?.Properties ?? "{}"));
13977
13977
  } catch {
13978
+ const override = SDK_OVERRIDES[c.resourceType];
13979
+ if (override && region !== void 0 && accountId !== void 0) try {
13980
+ const raw = await override({
13981
+ physicalId: c.identifier,
13982
+ declared: c.live,
13983
+ region,
13984
+ accountId
13985
+ });
13986
+ if (raw !== void 0) return normalizeWith(raw);
13987
+ } catch {}
13978
13988
  return {
13979
13989
  model: c.live,
13980
13990
  ok: false
@@ -14582,7 +14592,7 @@ async function gatherFindings(stackName, region, templateOverride, recoveryTempl
14582
14592
  });
14583
14593
  continue;
14584
14594
  }
14585
- const read = await readAddedModel(cc, cfn, c, schemas, oaiCanonicalIds);
14595
+ const read = await readAddedModel(cc, cfn, c, schemas, oaiCanonicalIds, region, desired.accountId);
14586
14596
  findings.push(addedFinding(r, c, read));
14587
14597
  }
14588
14598
  } catch (e) {