cdk-real-drift 0.23.0 → 0.23.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
@@ -4267,6 +4267,7 @@ function isEpochHourEqual(a, b) {
4267
4267
  const hb = sec(b);
4268
4268
  return ha !== void 0 && hb !== void 0 && ha === hb;
4269
4269
  }
4270
+ const NUMERIC_STRING_EQUAL_PATHS = { "AWS::Budgets::Budget": [/(?:^|\.)BudgetLimit\.Amount$/, /(?:^|\.)PlannedBudgetLimits\.[^.]+\.Amount$/] };
4270
4271
  const TRAILING_DOT_PATHS = {
4271
4272
  "AWS::Route53::HostedZone": new Set(["Name"]),
4272
4273
  "AWS::Route53::RecordSet": new Set(["Name"]),
@@ -7681,6 +7682,7 @@ function classifyResource(resource, liveRaw, schema, opts = {}) {
7681
7682
  if (CASE_INSENSITIVE_KEY_PATHS[resourceType]?.has(d.path.replace(/\.\d+(?=\.)/g, "[]")) && isCaseInsensitiveKeyMapEqual(d.stateValue, d.awsValue)) continue;
7682
7683
  if (RATE_EXPRESSION_PATHS[resourceType]?.has(d.path) && isEquivalentRateExpression(d.stateValue, d.awsValue)) continue;
7683
7684
  if (EPOCH_HOUR_PATHS[resourceType]?.has(d.path) && isEpochHourEqual(d.stateValue, d.awsValue)) continue;
7685
+ if (NUMERIC_STRING_EQUAL_PATHS[resourceType]?.some((re) => re.test(d.path)) && isNumericStringEqualScalar(d.stateValue, d.awsValue)) continue;
7684
7686
  if (TRAILING_DOT_PATHS[resourceType]?.has(d.path) && isTrailingDotEqual(d.stateValue, d.awsValue)) continue;
7685
7687
  if (TRAILING_SLASH_PATHS[resourceType]?.has(d.path) && isTrailingSlashEqual(d.stateValue, d.awsValue)) continue;
7686
7688
  if (VERSION_PREFIX_PATHS[resourceType]?.has(d.path) && isVersionPrefixMatch(d.stateValue, d.awsValue)) continue;
@@ -11654,7 +11656,7 @@ const readBudget = async ({ physicalId, declared, accountId, region }) => {
11654
11656
  BudgetName: b.BudgetName,
11655
11657
  BudgetType: b.BudgetType,
11656
11658
  TimeUnit: b.TimeUnit,
11657
- ...b.BudgetLimit !== void 0 && { BudgetLimit: b.BudgetLimit },
11659
+ ...b.BudgetLimit !== void 0 && !aad && b.PlannedBudgetLimits === void 0 && { BudgetLimit: b.BudgetLimit },
11658
11660
  ...b.PlannedBudgetLimits !== void 0 && { PlannedBudgetLimits: b.PlannedBudgetLimits },
11659
11661
  ...b.CostFilters !== void 0 && { CostFilters: b.CostFilters },
11660
11662
  ...b.CostTypes !== void 0 && { CostTypes: b.CostTypes },