> End of support notice: On Oct 9, 2025, AWS will end support for Amazon Lookout for Metrics. After Oct 9, 2025, you will no longer be able to access the Amazon Lookout for Metrics console or Amazon Lookout for Metrics resources. For more information, see [Amazon Lookout for Metrics end of support](https://docs.aws.amazon.com//blogs/machine-learning/transitioning-off-amazon-lookout-for-metrics/) . The `AWS::LookoutMetrics::AnomalyDetector` type creates an anomaly detector.
import { CfnAnomalyDetector } from 'aws-cdk-lib/aws-lookoutmetrics';Or use the module namespace:
import * as lookoutmetrics from 'aws-cdk-lib/aws-lookoutmetrics';
// lookoutmetrics.CfnAnomalyDetectorConfiguration passed to the constructor as CfnAnomalyDetectorProps.
anomalyDetectorConfigRequiredIResolvable | AnomalyDetectorConfigPropertyContains information about the configuration of the anomaly detector.
metricSetListRequiredIResolvable | IResolvable | MetricSetProperty[]The detector's dataset.
anomalyDetectorDescriptionOptionalstringA description of the detector.
anomalyDetectorNameOptionalstringThe name of the detector.
kmsKeyArnOptionalstring | IKeyRefThe ARN of the KMS key to use to encrypt your data.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-lookoutmetrics