cdk-real-drift 0.12.104 → 0.12.105

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
@@ -3497,6 +3497,7 @@ const VALUE_INDEPENDENT_DEFAULT_TOPLEVEL_PATHS = {
3497
3497
  "AWS::AutoScaling::ScheduledAction": new Set(["StartTime"]),
3498
3498
  "AWS::CloudFormation::Stack": new Set(["TemplateBody", "Capabilities"])
3499
3499
  };
3500
+ const VALUE_INDEPENDENT_DEFAULT_NESTED_PATHS = { "AWS::Batch::ComputeEnvironment": new Set(["ComputeResources.DesiredvCpus"]) };
3500
3501
  function isPhysicalIdSegment(value, physicalId) {
3501
3502
  if (typeof value !== "string" || physicalId === void 0) return false;
3502
3503
  if (value === physicalId) return true;
@@ -6788,7 +6789,7 @@ function classifyResource(resource, liveRaw, schema, opts = {}) {
6788
6789
  const parentKey = (path.split(".").pop() ?? "").replace(/\[.*$/, "");
6789
6790
  if (!isObjectForm || /tags$/i.test(parentKey)) return;
6790
6791
  }
6791
- const tier = schemaPath in schema.defaultPaths && matchesKnownDefault(value, schema.defaultPaths[schemaPath]) || schemaPath in knownDefPaths && matchesKnownDefault(value, knownDefPaths[schemaPath]) || (KNOWN_DEFAULT_ONE_OF_PATHS[resourceType]?.[schemaPath]?.some((d) => matchesKnownDefault(value, d)) ?? false) || dynamoGsiWarmThroughputAtDefault(resourceType, path, value, live) || resourceType === "AWS::Events::EventBusPolicy" && schemaPath === "Statement.*.Sid" && typeof value === "string" && value === declared["StatementId"] ? "atDefault" : generatedPaths.includes(schemaPath) && isPhysicalIdSegment(value, physicalId) || generatedNestedPaths?.has(schemaPath) && !(schemaPath in knownDefPaths) && (!(schemaPath in (MANAGED_KEY_ALIAS_PATHS[resourceType] ?? {})) || shouldFoldManagedServiceKey(resourceType, schemaPath, value, opts.kmsAliasTargets)) ? "generated" : "undeclared";
6792
+ const tier = schemaPath in schema.defaultPaths && matchesKnownDefault(value, schema.defaultPaths[schemaPath]) || schemaPath in knownDefPaths && matchesKnownDefault(value, knownDefPaths[schemaPath]) || (KNOWN_DEFAULT_ONE_OF_PATHS[resourceType]?.[schemaPath]?.some((d) => matchesKnownDefault(value, d)) ?? false) || VALUE_INDEPENDENT_DEFAULT_NESTED_PATHS[resourceType]?.has(schemaPath) && !(schemaPath in knownDefPaths) || dynamoGsiWarmThroughputAtDefault(resourceType, path, value, live) || resourceType === "AWS::Events::EventBusPolicy" && schemaPath === "Statement.*.Sid" && typeof value === "string" && value === declared["StatementId"] ? "atDefault" : generatedPaths.includes(schemaPath) && isPhysicalIdSegment(value, physicalId) || generatedNestedPaths?.has(schemaPath) && !(schemaPath in knownDefPaths) && (!(schemaPath in (MANAGED_KEY_ALIAS_PATHS[resourceType] ?? {})) || shouldFoldManagedServiceKey(resourceType, schemaPath, value, opts.kmsAliasTargets)) ? "generated" : "undeclared";
6792
6793
  const freeFormKey = tier === "undeclared" && underFreeFormMap(schemaPath);
6793
6794
  findings.push({
6794
6795
  tier,