Interface CfnAlertProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnAlertProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.121.0 (build d7af9b9)",
date="2025-12-18T18:20:13.267Z")
@Stability(Stable)
public interface CfnAlertProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnAlert.
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.lookoutmetrics.*;
CfnAlertProps cfnAlertProps = CfnAlertProps.builder()
.action(ActionProperty.builder()
.lambdaConfiguration(LambdaConfigurationProperty.builder()
.lambdaArn("lambdaArn")
.roleArn("roleArn")
.build())
.snsConfiguration(SNSConfigurationProperty.builder()
.roleArn("roleArn")
.snsTopicArn("snsTopicArn")
.build())
.build())
.alertSensitivityThreshold(123)
.anomalyDetectorArn("anomalyDetectorArn")
// the properties below are optional
.alertDescription("alertDescription")
.alertName("alertName")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnAlertPropsstatic final classAn implementation forCfnAlertProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnAlertProps.Builderbuilder()Action that will be triggered when there is an alert.default StringA description of the alert.default StringThe name of the alert.An integer from 0 to 100 specifying the alert sensitivity threshold.The ARN of the detector to which the alert is attached.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAction
Action that will be triggered when there is an alert.Returns union: either
IResolvableorCfnAlert.ActionProperty- See Also:
-
getAlertSensitivityThreshold
An integer from 0 to 100 specifying the alert sensitivity threshold.- See Also:
-
getAnomalyDetectorArn
The ARN of the detector to which the alert is attached.- See Also:
-
getAlertDescription
A description of the alert.- See Also:
-
getAlertName
The name of the alert.- See Also:
-
builder
- Returns:
- a
CfnAlertProps.BuilderofCfnAlertProps
-