Class CfnAnomalyDetectorPropsMixin
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.mixins.preview.core.Mixin
software.amazon.awscdk.mixins.preview.services.cloudwatch.mixins.CfnAnomalyDetectorPropsMixin
- All Implemented Interfaces:
IMixin,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.121.0 (build d7af9b9)",
date="2025-12-18T18:20:23.954Z")
@Stability(Stable)
public class CfnAnomalyDetectorPropsMixin
extends Mixin
implements IMixin
The
AWS::CloudWatch::AnomalyDetector type specifies an anomaly detection band for a certain metric and statistic.
The band represents the expected "normal" range for the metric values. Anomaly detection bands can be used for visualization of a metric's expected values, and for alarms.
For more information see Using CloudWatch anomaly detection. .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.mixins.preview.mixins.*;
import software.amazon.awscdk.mixins.preview.services.cloudwatch.mixins.*;
CfnAnomalyDetectorPropsMixin cfnAnomalyDetectorPropsMixin = CfnAnomalyDetectorPropsMixin.Builder.create(CfnAnomalyDetectorMixinProps.builder()
.configuration(ConfigurationProperty.builder()
.excludedTimeRanges(List.of(RangeProperty.builder()
.endTime("endTime")
.startTime("startTime")
.build()))
.metricTimeZone("metricTimeZone")
.build())
.dimensions(List.of(DimensionProperty.builder()
.name("name")
.value("value")
.build()))
.metricCharacteristics(MetricCharacteristicsProperty.builder()
.periodicSpikes(false)
.build())
.metricMathAnomalyDetector(MetricMathAnomalyDetectorProperty.builder()
.metricDataQueries(List.of(MetricDataQueryProperty.builder()
.accountId("accountId")
.expression("expression")
.id("id")
.label("label")
.metricStat(MetricStatProperty.builder()
.metric(MetricProperty.builder()
.dimensions(List.of(DimensionProperty.builder()
.name("name")
.value("value")
.build()))
.metricName("metricName")
.namespace("namespace")
.build())
.period(123)
.stat("stat")
.unit("unit")
.build())
.period(123)
.returnData(false)
.build()))
.build())
.metricName("metricName")
.namespace("namespace")
.singleMetricAnomalyDetector(SingleMetricAnomalyDetectorProperty.builder()
.accountId("accountId")
.dimensions(List.of(DimensionProperty.builder()
.name("name")
.value("value")
.build()))
.metricName("metricName")
.namespace("namespace")
.stat("stat")
.build())
.stat("stat")
.build())
.strategy(PropertyMergeStrategy.OVERRIDE)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnAnomalyDetectorPropsMixin.static interfaceSpecifies details about how the anomaly detection model is to be trained, including time ranges to exclude when training and updating the model.static interfaceA dimension is a name/value pair that is part of the identity of a metric.static interfaceThis object includes parameters that you can use to provide information to CloudWatch to help it build more accurate anomaly detection models.static interfaceThis structure is used in bothGetMetricDataandPutMetricAlarm.static interfaceIndicates the CloudWatch math expression that provides the time series the anomaly detector uses as input.static interfaceRepresents a specific metric.static interfaceThis structure defines the metric to be returned, along with the statistics, period, and units.static interfaceEachRangespecifies one range of days or times to exclude from use for training or updating an anomaly detection model.static interfaceDesignates the CloudWatch metric and statistic that provides the time series the anomaly detector uses as input.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.mixins.preview.core.IMixin
IMixin.Jsii$Default, IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::CloudWatch::AnomalyDetector.Create a mixin to apply properties toAWS::CloudWatch::AnomalyDetector.protectedCfnAnomalyDetectorPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnAnomalyDetectorPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionsoftware.constructs.IConstructapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnAnomalyDetectorMixinPropsgetProps()protected PropertyMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_PROPERTY_KEYS
-
-
Constructor Details
-
CfnAnomalyDetectorPropsMixin
protected CfnAnomalyDetectorPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnAnomalyDetectorPropsMixin
protected CfnAnomalyDetectorPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnAnomalyDetectorPropsMixin
@Stability(Stable) public CfnAnomalyDetectorPropsMixin(@NotNull CfnAnomalyDetectorMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::CloudWatch::AnomalyDetector.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnAnomalyDetectorPropsMixin
Create a mixin to apply properties toAWS::CloudWatch::AnomalyDetector.- Parameters:
props- L1 properties to apply. This parameter is required.
-
-
Method Details
-
applyTo
@Stability(Stable) @NotNull public software.constructs.IConstruct applyTo(@NotNull software.constructs.IConstruct construct) Apply the mixin properties to the construct. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-