cdk-real-drift 0.12.95 → 0.12.96
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 +14 -5
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -2829,7 +2829,10 @@ const KNOWN_DEFAULTS = {
|
|
|
2829
2829
|
},
|
|
2830
2830
|
"AWS::CodeStarConnections::Connection": { HostArn: "arn:aws:codestar-connections:us-west-2:000000000000:host/00000000-0000-0000-0000-000000000000" }
|
|
2831
2831
|
};
|
|
2832
|
-
const KNOWN_DEFAULT_ONE_OF = {
|
|
2832
|
+
const KNOWN_DEFAULT_ONE_OF = {
|
|
2833
|
+
"AWS::ApiGatewayV2::Integration": { TimeoutInMillis: [29e3, 3e4] },
|
|
2834
|
+
"AWS::SecurityHub::Hub": { ControlFindingGenerator: ["SECURITY_CONTROL", "STANDARD_CONTROL"] }
|
|
2835
|
+
};
|
|
2833
2836
|
const KNOWN_DEFAULT_ONE_OF_PATHS = {
|
|
2834
2837
|
"AWS::EKS::Cluster": { "KubernetesNetworkConfig.ServiceIpv4Cidr": ["10.100.0.0/16", "172.20.0.0/16"] },
|
|
2835
2838
|
"AWS::S3::Bucket": { "LifecycleConfiguration.TransitionDefaultMinimumObjectSize": ["all_storage_classes_128K", "varies_by_storage_class"] }
|
|
@@ -5551,16 +5554,22 @@ const MEANINGFUL_WHEN_OFF = {
|
|
|
5551
5554
|
"AWS::ElasticLoadBalancingV2::TargetGroup": { HealthCheckEnabled: ({ declared }) => declared["TargetType"] !== "lambda" }
|
|
5552
5555
|
};
|
|
5553
5556
|
const MEANINGFUL_WHEN_OFF_NESTED = { "AWS::CloudFront::Distribution": { "DistributionConfig.IPV6Enabled": () => true } };
|
|
5554
|
-
const
|
|
5557
|
+
const GUARDDUTY_FEATURE_CREATION_STATUS = {
|
|
5558
|
+
AI_ANALYST: ["DISABLED"],
|
|
5559
|
+
RUNTIME_MONITORING: ["DISABLED", "ENABLED"],
|
|
5560
|
+
EKS_RUNTIME_MONITORING: ["DISABLED", "ENABLED"],
|
|
5561
|
+
EKS_ADDON_MANAGEMENT: ["DISABLED"],
|
|
5562
|
+
ECS_FARGATE_AGENT_MANAGEMENT: ["DISABLED"],
|
|
5563
|
+
EC2_AGENT_MANAGEMENT: ["DISABLED"]
|
|
5564
|
+
};
|
|
5555
5565
|
function guardDutyFeaturesAllAtDefault(features) {
|
|
5556
5566
|
const atDefault = (node) => {
|
|
5557
5567
|
if (Array.isArray(node)) return node.every(atDefault);
|
|
5558
5568
|
if (node !== null && typeof node === "object") {
|
|
5559
5569
|
const rec = node;
|
|
5560
5570
|
if ("Status" in rec) {
|
|
5561
|
-
const
|
|
5562
|
-
|
|
5563
|
-
if (rec["Status"] !== defaultStatus) return false;
|
|
5571
|
+
const defaults = GUARDDUTY_FEATURE_CREATION_STATUS[typeof rec["Name"] === "string" ? rec["Name"] : ""] ?? ["ENABLED"];
|
|
5572
|
+
if (typeof rec["Status"] !== "string" || !defaults.includes(rec["Status"])) return false;
|
|
5564
5573
|
}
|
|
5565
5574
|
return Object.values(rec).every(atDefault);
|
|
5566
5575
|
}
|