AWS Fundamentals Logo
AWS Fundamentals
L1 Construct

CfnAnomalyDetector

> 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

import { CfnAnomalyDetector } from 'aws-cdk-lib/aws-lookoutmetrics';

Or use the module namespace:

import * as lookoutmetrics from 'aws-cdk-lib/aws-lookoutmetrics';
// lookoutmetrics.CfnAnomalyDetector

Properties

Configuration passed to the constructor as CfnAnomalyDetectorProps.

anomalyDetectorConfigRequired
IResolvable | AnomalyDetectorConfigProperty

Contains information about the configuration of the anomaly detector.

metricSetListRequired
IResolvable | IResolvable | MetricSetProperty[]

The detector's dataset.

anomalyDetectorDescriptionOptional
string

A description of the detector.

anomalyDetectorNameOptional
string

The name of the detector.

kmsKeyArnOptional
string | IKeyRef

The ARN of the KMS key to use to encrypt your data.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

LevelL1 (CloudFormation)
Moduleaws-lookoutmetrics
Properties5

Related Constructs

External Links