cdk-real-drift 0.12.104 → 0.12.106

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
@@ -2569,6 +2569,7 @@ const KNOWN_DEFAULTS = {
2569
2569
  KmsKeyId: "AWS_OWNED_KMS_KEY",
2570
2570
  NumberOfNodes: 1
2571
2571
  },
2572
+ "AWS::Redshift::ScheduledAction": { Enable: true },
2572
2573
  "AWS::EC2::VPCEndpoint": {
2573
2574
  IpAddressType: "ipv4",
2574
2575
  VpcEndpointType: "Gateway",
@@ -3497,6 +3498,7 @@ const VALUE_INDEPENDENT_DEFAULT_TOPLEVEL_PATHS = {
3497
3498
  "AWS::AutoScaling::ScheduledAction": new Set(["StartTime"]),
3498
3499
  "AWS::CloudFormation::Stack": new Set(["TemplateBody", "Capabilities"])
3499
3500
  };
3501
+ const VALUE_INDEPENDENT_DEFAULT_NESTED_PATHS = { "AWS::Batch::ComputeEnvironment": new Set(["ComputeResources.DesiredvCpus"]) };
3500
3502
  function isPhysicalIdSegment(value, physicalId) {
3501
3503
  if (typeof value !== "string" || physicalId === void 0) return false;
3502
3504
  if (value === physicalId) return true;
@@ -5577,7 +5579,8 @@ const MEANINGFUL_WHEN_OFF = {
5577
5579
  "AWS::GuardDuty::Detector": { DataSources: () => true },
5578
5580
  "AWS::Lambda::EventSourceMapping": { Enabled: () => true },
5579
5581
  "AWS::ElasticLoadBalancingV2::TargetGroup": { HealthCheckEnabled: ({ declared }) => declared["TargetType"] !== "lambda" },
5580
- "AWS::MemoryDB::Cluster": { TLSEnabled: () => true }
5582
+ "AWS::MemoryDB::Cluster": { TLSEnabled: () => true },
5583
+ "AWS::Redshift::ScheduledAction": { Enable: () => true }
5581
5584
  };
5582
5585
  const MEANINGFUL_WHEN_OFF_NESTED = { "AWS::CloudFront::Distribution": { "DistributionConfig.IPV6Enabled": () => true } };
5583
5586
  const GUARDDUTY_FEATURE_CREATION_STATUS = {
@@ -5610,6 +5613,7 @@ const DEFAULT_SG_LIST_PATHS = {
5610
5613
  "AWS::RDS::DBCluster": "VpcSecurityGroupIds",
5611
5614
  "AWS::RDS::DBInstance": "VPCSecurityGroups",
5612
5615
  "AWS::DocDB::DBCluster": "VpcSecurityGroupIds",
5616
+ "AWS::Redshift::Cluster": "VpcSecurityGroupIds",
5613
5617
  "AWS::AmazonMQ::Broker": "SecurityGroups",
5614
5618
  "AWS::RedshiftServerless::Workgroup": "SecurityGroupIds",
5615
5619
  "AWS::EC2::Instance": "SecurityGroupIds"
@@ -6788,7 +6792,7 @@ function classifyResource(resource, liveRaw, schema, opts = {}) {
6788
6792
  const parentKey = (path.split(".").pop() ?? "").replace(/\[.*$/, "");
6789
6793
  if (!isObjectForm || /tags$/i.test(parentKey)) return;
6790
6794
  }
6791
- const tier = schemaPath in schema.defaultPaths && matchesKnownDefault(value, schema.defaultPaths[schemaPath]) || schemaPath in knownDefPaths && matchesKnownDefault(value, knownDefPaths[schemaPath]) || (KNOWN_DEFAULT_ONE_OF_PATHS[resourceType]?.[schemaPath]?.some((d) => matchesKnownDefault(value, d)) ?? false) || dynamoGsiWarmThroughputAtDefault(resourceType, path, value, live) || resourceType === "AWS::Events::EventBusPolicy" && schemaPath === "Statement.*.Sid" && typeof value === "string" && value === declared["StatementId"] ? "atDefault" : generatedPaths.includes(schemaPath) && isPhysicalIdSegment(value, physicalId) || generatedNestedPaths?.has(schemaPath) && !(schemaPath in knownDefPaths) && (!(schemaPath in (MANAGED_KEY_ALIAS_PATHS[resourceType] ?? {})) || shouldFoldManagedServiceKey(resourceType, schemaPath, value, opts.kmsAliasTargets)) ? "generated" : "undeclared";
6795
+ const tier = schemaPath in schema.defaultPaths && matchesKnownDefault(value, schema.defaultPaths[schemaPath]) || schemaPath in knownDefPaths && matchesKnownDefault(value, knownDefPaths[schemaPath]) || (KNOWN_DEFAULT_ONE_OF_PATHS[resourceType]?.[schemaPath]?.some((d) => matchesKnownDefault(value, d)) ?? false) || VALUE_INDEPENDENT_DEFAULT_NESTED_PATHS[resourceType]?.has(schemaPath) && !(schemaPath in knownDefPaths) || dynamoGsiWarmThroughputAtDefault(resourceType, path, value, live) || resourceType === "AWS::Events::EventBusPolicy" && schemaPath === "Statement.*.Sid" && typeof value === "string" && value === declared["StatementId"] ? "atDefault" : generatedPaths.includes(schemaPath) && isPhysicalIdSegment(value, physicalId) || generatedNestedPaths?.has(schemaPath) && !(schemaPath in knownDefPaths) && (!(schemaPath in (MANAGED_KEY_ALIAS_PATHS[resourceType] ?? {})) || shouldFoldManagedServiceKey(resourceType, schemaPath, value, opts.kmsAliasTargets)) ? "generated" : "undeclared";
6792
6796
  const freeFormKey = tier === "undeclared" && underFreeFormMap(schemaPath);
6793
6797
  findings.push({
6794
6798
  tier,
@@ -13107,7 +13111,8 @@ const DEFAULT_SG_LIST_TYPES = new Set([
13107
13111
  "AWS::EC2::NetworkInterface",
13108
13112
  "AWS::Neptune::DBCluster",
13109
13113
  "AWS::AmazonMQ::Broker",
13110
- "AWS::RedshiftServerless::Workgroup"
13114
+ "AWS::RedshiftServerless::Workgroup",
13115
+ "AWS::Redshift::Cluster"
13111
13116
  ]);
13112
13117
  const DEFAULT_SUBNET_LIST_TYPES = new Set(["AWS::RedshiftServerless::Workgroup"]);
13113
13118
  const defaultSgIdsCache = /* @__PURE__ */ new Map();