cdk-real-drift 0.2.70 → 0.2.72

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
@@ -1006,6 +1006,7 @@ function resolve$1(node, ctx) {
1006
1006
  case "Fn::Cidr": {
1007
1007
  if (!Array.isArray(v) || v.length < 3) return UNRESOLVED;
1008
1008
  const [ipBlock, count, cidrBits] = v.slice(0, 3).map((x) => resolve$1(x, ctx));
1009
+ if (ipBlock === UNRESOLVED || count === UNRESOLVED || cidrBits === UNRESOLVED) return UNRESOLVED;
1009
1010
  return resolveCidr(ipBlock, count, cidrBits);
1010
1011
  }
1011
1012
  case "Fn::ImportValue": {
@@ -1126,11 +1127,11 @@ function resolveCidr(ipBlock, count, cidrBits) {
1126
1127
  if (maskLen < prefix) return UNRESOLVED;
1127
1128
  const step = 2 ** bits;
1128
1129
  const blockSize = 2 ** (32 - prefix);
1129
- const alignedBase = Math.floor(base / step) * step;
1130
+ if (base % blockSize !== 0) return UNRESOLVED;
1130
1131
  if (cnt * step > blockSize) return UNRESOLVED;
1131
1132
  const out = [];
1132
1133
  for (let i = 0; i < cnt; i++) {
1133
- const addr = alignedBase + i * step;
1134
+ const addr = base + i * step;
1134
1135
  if (addr > 4294967295) return UNRESOLVED;
1135
1136
  out.push(`${intToIpv4(addr)}/${maskLen}`);
1136
1137
  }
@@ -1320,6 +1321,7 @@ const KNOWN_DEFAULTS = {
1320
1321
  Path: "/",
1321
1322
  Description: ""
1322
1323
  },
1324
+ "AWS::IAM::ServerCertificate": { Path: "/" },
1323
1325
  "AWS::AppRunner::Service": {
1324
1326
  HealthCheckConfiguration: {
1325
1327
  Protocol: "TCP",
@@ -1903,7 +1905,11 @@ const KNOWN_DEFAULTS = {
1903
1905
  BearerTokenAuthenticationEnabled: false
1904
1906
  },
1905
1907
  "AWS::ApiGateway::Method": { ApiKeyRequired: false },
1906
- "AWS::ApiGatewayV2::Route": { ApiKeyRequired: false },
1908
+ "AWS::ApplicationInsights::Application": { CWEMonitorEnabled: true },
1909
+ "AWS::ApiGatewayV2::Route": {
1910
+ ApiKeyRequired: false,
1911
+ AuthorizationType: "NONE"
1912
+ },
1907
1913
  "AWS::ElasticLoadBalancingV2::ListenerRule": { IsDefault: false },
1908
1914
  "AWS::Glue::Crawler": { LakeFormationConfiguration: {
1909
1915
  AccountId: "",
@@ -2316,7 +2322,8 @@ const CONTEXT_DEFAULTS = { "AWS::EC2::VPCEndpointService": { SupportedRegions: "
2316
2322
  const CONTEXT_ARN_DEFAULTS = {
2317
2323
  "AWS::ResourceExplorer2::View": { Scope: "arn:{partition}:iam::{accountId}:root" },
2318
2324
  "AWS::KinesisVideo::Stream": { KmsKeyId: "arn:{partition}:kms:{region}:{accountId}:alias/aws/kinesisvideo" },
2319
- "AWS::AutoScaling::AutoScalingGroup": { ServiceLinkedRoleARN: "arn:{partition}:iam::{accountId}:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling" }
2325
+ "AWS::AutoScaling::AutoScalingGroup": { ServiceLinkedRoleARN: "arn:{partition}:iam::{accountId}:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling" },
2326
+ "AWS::LakeFormation::Tag": { CatalogId: "{accountId}" }
2320
2327
  };
2321
2328
  const ENGINE_DEFAULTS = {
2322
2329
  "AWS::RDS::DBInstance": {