cdk-real-drift 0.2.19 → 0.2.20

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
@@ -3573,7 +3573,11 @@ const IDENTITY_KEYED_SUBSET_ARRAYS = {
3573
3573
  Volumes: { idField: "Device" }
3574
3574
  },
3575
3575
  "AWS::Cognito::UserPoolUser": { UserAttributes: { idField: "Name" } },
3576
- "AWS::Route53Resolver::ResolverEndpoint": { IpAddresses: { idField: "SubnetId" } }
3576
+ "AWS::Route53Resolver::ResolverEndpoint": { IpAddresses: { idField: "SubnetId" } },
3577
+ "AWS::EC2::VPNConnection": { VpnTunnelOptionsSpecifications: {
3578
+ idField: "TunnelInsideCidr",
3579
+ foldHuskExtras: true
3580
+ } }
3577
3581
  };
3578
3582
  const NESTED_ARRAY_IDENTITY = {
3579
3583
  "AWS::ApiGateway::Method": {
@@ -4100,7 +4104,7 @@ function classifyResource(resource, liveRaw, schema, opts = {}) {
4100
4104
  for (const lEl of live[k]) {
4101
4105
  const id = idOf(lEl);
4102
4106
  if (id !== void 0 && !declaredIds.has(id)) {
4103
- const atDefault = defaultEls && id in defaultEls && deepEqual(lEl, defaultEls[id]);
4107
+ const atDefault = subsetSpec.foldHuskExtras === true && isNestedObject(lEl) && Object.entries(lEl).every(([ek, ev]) => ek === idField || isTrivialEmpty(ev)) || defaultEls && id in defaultEls && deepEqual(lEl, defaultEls[id]);
4104
4108
  findings.push({
4105
4109
  tier: atDefault ? "atDefault" : "undeclared",
4106
4110
  logicalId,