cdk-real-drift 0.4.3 → 0.4.4

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
@@ -4812,6 +4812,26 @@ function classifyResource(resource, liveRaw, schema, opts = {}) {
4812
4812
  SecondaryPrivateIpAddressCount: Math.max(0, ips.length - 1)
4813
4813
  };
4814
4814
  }
4815
+ if (resourceType === "AWS::ApiGateway::Stage") {
4816
+ const stageDeploymentId = declared["DeploymentId"] ?? live["DeploymentId"];
4817
+ if (typeof stageDeploymentId === "string") knownDefPaths = {
4818
+ ...knownDefPaths,
4819
+ "CanarySetting.DeploymentId": stageDeploymentId
4820
+ };
4821
+ }
4822
+ if (resourceType === "AWS::EC2::VPCEndpoint") {
4823
+ const epType = declared["VpcEndpointType"];
4824
+ const dnsRecordIpType = epType === "Interface" ? "ipv4" : epType === "Gateway" ? "service-defined" : void 0;
4825
+ if (dnsRecordIpType !== void 0) knownDef = {
4826
+ ...knownDef,
4827
+ DnsOptions: {
4828
+ DnsRecordIpType: dnsRecordIpType,
4829
+ PrivateDnsOnlyForInboundResolverEndpoint: "NotSpecified",
4830
+ PrivateDnsSpecifiedDomains: ["*"],
4831
+ PrivateDnsPreference: "VERIFIED_DOMAINS_ONLY"
4832
+ }
4833
+ };
4834
+ }
4815
4835
  const generatedPaths = GENERATED_PATHS[resourceType] ?? [];
4816
4836
  const generatedNestedPaths = GENERATED_NESTED_PATHS[resourceType];
4817
4837
  const freeFormMapPaths = schema.freeFormMapPaths ?? [];
@@ -5157,7 +5177,7 @@ function classifyResource(resource, liveRaw, schema, opts = {}) {
5157
5177
  }
5158
5178
  continue;
5159
5179
  }
5160
- if (k in schema.defaults && matchesKnownDefault(v, schema.defaults[k]) || k in knownDef && matchesKnownDefault(v, knownDef[k]) || KNOWN_DEFAULT_ONE_OF[resourceType]?.[k]?.some((d) => matchesKnownDefault(v, d)) || VALUE_INDEPENDENT_DEFAULT_TOPLEVEL_PATHS[resourceType]?.has(k) && !isTrivialEmpty(v) || clbDefaultSslPoliciesAtDefault(resourceType, k, v)) {
5180
+ if (k in schema.defaults && matchesKnownDefault(v, schema.defaults[k]) || k in knownDef && matchesKnownDefault(v, knownDef[k]) || KNOWN_DEFAULT_ONE_OF[resourceType]?.[k]?.some((d) => matchesKnownDefault(v, d)) || VALUE_INDEPENDENT_DEFAULT_TOPLEVEL_PATHS[resourceType]?.has(k) && !isTrivialEmpty(v) && !(k in knownDef) || clbDefaultSslPoliciesAtDefault(resourceType, k, v)) {
5161
5181
  findings.push({
5162
5182
  tier: "atDefault",
5163
5183
  logicalId,