Interface CfnAlertProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnAlertProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2025-01-15T21:09:21.865Z")
@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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnAlertProps
static final class
An implementation forCfnAlertProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic CfnAlertProps.Builder
builder()
Action that will be triggered when there is an alert.default String
A description of the alert.default String
The 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.- 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.Builder
ofCfnAlertProps
-