Class CfnAnomalyDetector
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.aps.CfnAnomalyDetector
- All Implemented Interfaces:
IInspectable,ITaggableV2,IAnomalyDetectorRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:31.537Z")
@Stability(Stable)
public class CfnAnomalyDetector
extends CfnResource
implements IInspectable, IAnomalyDetectorRef, ITaggableV2
AnomalyDetector schema for cloudformation.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.aps.*;
CfnAnomalyDetector cfnAnomalyDetector = CfnAnomalyDetector.Builder.create(this, "MyCfnAnomalyDetector")
.alias("alias")
.configuration(AnomalyDetectorConfigurationProperty.builder()
.randomCutForest(RandomCutForestConfigurationProperty.builder()
.query("query")
// the properties below are optional
.ignoreNearExpectedFromAbove(IgnoreNearExpectedProperty.builder()
.amount(123)
.ratio(123)
.build())
.ignoreNearExpectedFromBelow(IgnoreNearExpectedProperty.builder()
.amount(123)
.ratio(123)
.build())
.sampleSize(123)
.shingleSize(123)
.build())
.build())
.workspace("workspace")
// the properties below are optional
.evaluationIntervalInSeconds(123)
.labels(List.of(LabelProperty.builder()
.key("key")
.value("value")
.build()))
.missingDataAction(MissingDataActionProperty.builder()
.markAsAnomaly(false)
.skip(false)
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceExample:static final classA fluent builder forCfnAnomalyDetector.static interfaceExample:static interfaceA key-value pair to provide meta-data and multi-dimensional data analysis for filtering and aggregation.static interfaceExample:static interfaceExample:Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.aps.IAnomalyDetectorRef
IAnomalyDetectorRef.Jsii$Default, IAnomalyDetectorRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnAnomalyDetector(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnAnomalyDetector(software.amazon.jsii.JsiiObjectRef objRef) CfnAnomalyDetector(software.constructs.Construct scope, String id, CfnAnomalyDetectorProps props) -
Method Summary
Modifier and TypeMethodDescriptiongetAlias()The AnomalyDetector alias.A reference to a AnomalyDetector resource.The AnomalyDetector ARN.Tag Manager which manages the tags for this resource.Returns union: eitherIResolvableorCfnAnomalyDetector.AnomalyDetectorConfigurationPropertyThe AnomalyDetector period of detection and metric generation.An array of key-value pairs to provide meta-data.Returns union: eitherIResolvableorCfnAnomalyDetector.MissingDataActionPropertygetTags()An array of key-value pairs to apply to this resource.An Amazon Managed Service for Prometheus workspace is a logical and isolated Prometheus server dedicated to ingesting, storing, and querying your Prometheus-compatible metrics.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidThe AnomalyDetector alias.voidsetConfiguration(IResolvable value) voidvoidThe AnomalyDetector period of detection and metric generation.voidAn array of key-value pairs to provide meta-data.voidsetLabels(IResolvable value) An array of key-value pairs to provide meta-data.voidsetMissingDataAction(IResolvable value) voidvoidAn array of key-value pairs to apply to this resource.voidsetWorkspace(String value) An Amazon Managed Service for Prometheus workspace is a logical and isolated Prometheus server dedicated to ingesting, storing, and querying your Prometheus-compatible metrics.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods 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, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnAnomalyDetector
protected CfnAnomalyDetector(software.amazon.jsii.JsiiObjectRef objRef) -
CfnAnomalyDetector
protected CfnAnomalyDetector(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnAnomalyDetector
@Stability(Stable) public CfnAnomalyDetector(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnAnomalyDetectorProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAnomalyDetectorRef
A reference to a AnomalyDetector resource.- Specified by:
getAnomalyDetectorRefin interfaceIAnomalyDetectorRef
-
getAttrArn
The AnomalyDetector ARN. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getAlias
The AnomalyDetector alias. -
setAlias
The AnomalyDetector alias. -
getConfiguration
Returns union: eitherIResolvableorCfnAnomalyDetector.AnomalyDetectorConfigurationProperty -
setConfiguration
-
setConfiguration
@Stability(Stable) public void setConfiguration(@NotNull CfnAnomalyDetector.AnomalyDetectorConfigurationProperty value) -
getWorkspace
An Amazon Managed Service for Prometheus workspace is a logical and isolated Prometheus server dedicated to ingesting, storing, and querying your Prometheus-compatible metrics. -
setWorkspace
An Amazon Managed Service for Prometheus workspace is a logical and isolated Prometheus server dedicated to ingesting, storing, and querying your Prometheus-compatible metrics. -
getEvaluationIntervalInSeconds
The AnomalyDetector period of detection and metric generation. -
setEvaluationIntervalInSeconds
The AnomalyDetector period of detection and metric generation. -
getLabels
An array of key-value pairs to provide meta-data.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnAnomalyDetector.LabelProperty> -
setLabels
An array of key-value pairs to provide meta-data. -
setLabels
An array of key-value pairs to provide meta-data. -
getMissingDataAction
Returns union: eitherIResolvableorCfnAnomalyDetector.MissingDataActionProperty -
setMissingDataAction
-
setMissingDataAction
@Stability(Stable) public void setMissingDataAction(@Nullable CfnAnomalyDetector.MissingDataActionProperty value) -
getTags
An array of key-value pairs to apply to this resource. -
setTags
An array of key-value pairs to apply to this resource.
-