cdk-real-drift 0.4.40 → 0.4.41

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
@@ -10050,13 +10050,20 @@ async function classifyRead(cfn, r, read, schemas, classifyOpts) {
10050
10050
  path: "",
10051
10051
  note: read?.skippedReason ?? "not readable"
10052
10052
  }];
10053
- let schema = schemas.get(r.resourceType);
10054
- if (!schema) {
10053
+ const cachedSchema = schemas.get(r.resourceType);
10054
+ if (!cachedSchema) {
10055
10055
  const res = await getSchemaInfoResult(cfn, r.resourceType);
10056
- schema = res.info;
10057
- if (!res.failed) schemas.set(r.resourceType, schema);
10058
- }
10059
- return classifyResource(r, read.live, schema, classifyOpts);
10056
+ if (res.failed) return [{
10057
+ tier: "skipped",
10058
+ logicalId: r.logicalId,
10059
+ resourceType: r.resourceType,
10060
+ path: "",
10061
+ note: "schema unavailable (DescribeType failed) — coverage incomplete"
10062
+ }];
10063
+ schemas.set(r.resourceType, res.info);
10064
+ return classifyResource(r, read.live, res.info, classifyOpts);
10065
+ }
10066
+ return classifyResource(r, read.live, cachedSchema, classifyOpts);
10060
10067
  }
10061
10068
  async function gatherFindings(stackName, region, templateOverride, recoveryTemplate) {
10062
10069
  const cfn = new CloudFormationClient({