cdk-real-drift 0.4.33 → 0.4.35

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
@@ -2290,6 +2290,7 @@ const KNOWN_DEFAULTS = {
2290
2290
  "AWS::CodeGuruProfiler::ProfilingGroup": { ComputePlatform: "Default" },
2291
2291
  "AWS::ServiceCatalog::CloudFormationProduct": { ProductType: "CLOUD_FORMATION_TEMPLATE" },
2292
2292
  "AWS::InternetMonitor::Monitor": { Status: "ACTIVE" },
2293
+ "AWS::Athena::DataCatalog": { Status: "CREATE_COMPLETE" },
2293
2294
  "AWS::RolesAnywhere::Profile": {
2294
2295
  DurationSeconds: 3600,
2295
2296
  AttributeMappings: [
@@ -2686,6 +2687,7 @@ const CONTEXT_ARN_DEFAULTS = {
2686
2687
  "AWS::AutoScaling::AutoScalingGroup": { ServiceLinkedRoleARN: "arn:{partition}:iam::{accountId}:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling" },
2687
2688
  "AWS::LakeFormation::Tag": { CatalogId: "{accountId}" },
2688
2689
  "AWS::S3::AccessPoint": { BucketAccountId: "{accountId}" },
2690
+ "AWS::EC2::VPCPeeringConnection": { PeerOwnerId: "{accountId}" },
2689
2691
  "AWS::Chatbot::SlackChannelConfiguration": { GuardrailPolicies: ["arn:{partition}:iam::aws:policy/AdministratorAccess"] }
2690
2692
  };
2691
2693
  const ENGINE_DEFAULTS = {
@@ -4568,13 +4570,21 @@ const NESTED_ARRAY_IDENTITY = {
4568
4570
  "AWS::SecretsManager::Secret": { ReplicaRegions: "Region" },
4569
4571
  "AWS::ApiGateway::Stage": { MethodSettings: "HttpMethod" }
4570
4572
  };
4571
- const CLUSTER_ECHO_CHILD = { "AWS::RDS::DBInstance": {
4572
- parentIdKey: "DBClusterIdentifier",
4573
- aliases: {
4574
- VPCSecurityGroups: "VpcSecurityGroupIds",
4575
- EnablePerformanceInsights: "PerformanceInsightsEnabled"
4573
+ const CLUSTER_ECHO_CHILD = {
4574
+ "AWS::RDS::DBInstance": {
4575
+ parentType: "AWS::RDS::DBCluster",
4576
+ parentIdKey: "DBClusterIdentifier",
4577
+ aliases: {
4578
+ VPCSecurityGroups: "VpcSecurityGroupIds",
4579
+ EnablePerformanceInsights: "PerformanceInsightsEnabled"
4580
+ }
4581
+ },
4582
+ "AWS::Neptune::DBInstance": {
4583
+ parentType: "AWS::Neptune::DBCluster",
4584
+ parentIdKey: "DBClusterIdentifier",
4585
+ aliases: {}
4576
4586
  }
4577
- } };
4587
+ };
4578
4588
  const isKeyValueEntry = (t) => !!t && typeof t === "object" && typeof t.Key === "string" && "Value" in t;
4579
4589
  const REFLECTED_CHILD_PROPS = { "AWS::SNS::Topic": "Subscription" };
4580
4590
  const IAM_PRINCIPAL_POLICY_TYPES = new Set([
@@ -9552,6 +9562,7 @@ function parseSchema(schemaJson) {
9552
9562
  const unorderedArrayPaths = collectUnorderedArrayPaths(definitions, schema.properties ?? {});
9553
9563
  const freeFormMapPaths = collectFreeFormMapPaths(definitions, schema.properties ?? {});
9554
9564
  const updatable = schema.handlers === void 0 ? void 0 : Object.hasOwn(schema.handlers, "update");
9565
+ const hasHandlers = schema.handlers !== void 0;
9555
9566
  const propertyTransforms = {};
9556
9567
  for (const [ptr, expr] of Object.entries(schema.propertyTransform ?? {})) if (typeof expr === "string") propertyTransforms[pointerToDotted$1(ptr)] = expr;
9557
9568
  return {
@@ -9567,7 +9578,8 @@ function parseSchema(schemaJson) {
9567
9578
  unorderedObjectArrayPaths: unorderedArrayPaths.object,
9568
9579
  freeFormMapPaths,
9569
9580
  ...Object.keys(propertyTransforms).length > 0 && { propertyTransforms },
9570
- updatable
9581
+ updatable,
9582
+ hasHandlers
9571
9583
  };
9572
9584
  }
9573
9585
 
@@ -9900,16 +9912,18 @@ function buildBucketNotificationManaged(desired) {
9900
9912
  return managed;
9901
9913
  }
9902
9914
  function buildClusterEchoModels(desired) {
9915
+ const parentTypes = new Set(Object.values(CLUSTER_ECHO_CHILD).map((s) => s.parentType));
9903
9916
  const clusterByPhys = {};
9904
9917
  for (const r of desired.resources) {
9905
- if (r.resourceType !== "AWS::RDS::DBCluster" || !r.physicalId) continue;
9918
+ if (!parentTypes.has(r.resourceType) || !r.physicalId) continue;
9906
9919
  const live = desired.ctx.liveAttrs[r.logicalId];
9907
9920
  if (live && typeof live === "object") clusterByPhys[r.physicalId] = live;
9908
9921
  }
9909
9922
  const map = {};
9910
9923
  for (const r of desired.resources) {
9911
- if (r.resourceType !== "AWS::RDS::DBInstance" || !r.physicalId) continue;
9912
- const clusterId = r.declared?.DBClusterIdentifier;
9924
+ const spec = CLUSTER_ECHO_CHILD[r.resourceType];
9925
+ if (!spec || !r.physicalId) continue;
9926
+ const clusterId = r.declared?.[spec.parentIdKey];
9913
9927
  if (typeof clusterId !== "string") continue;
9914
9928
  const clusterLive = clusterByPhys[clusterId];
9915
9929
  if (clusterLive) map[r.physicalId] = clusterLive;
@@ -12965,12 +12979,14 @@ function buildRevertPlan(findings, baseline, opts = {}) {
12965
12979
  });
12966
12980
  continue;
12967
12981
  }
12968
- if (schema?.updatable === false && !SDK_WRITERS[f.resourceType] && !propScoped && !nestedScoped) {
12982
+ const noUpdateHandler = schema?.updatable === false;
12983
+ const legacyNoHandlers = schema?.hasHandlers === false && !!SDK_OVERRIDES[f.resourceType];
12984
+ if ((noUpdateHandler || legacyNoHandlers) && !SDK_WRITERS[f.resourceType] && !propScoped && !nestedScoped) {
12969
12985
  notRevertable.push({
12970
12986
  displayId,
12971
12987
  resourceType: f.resourceType,
12972
12988
  path: f.path,
12973
- reason: "type has no update handler — detect/record only"
12989
+ reason: legacyNoHandlers ? "CFn-legacy type has no update handler block — detect/record only" : "type has no update handler — detect/record only"
12974
12990
  });
12975
12991
  continue;
12976
12992
  }