Class CfnAlert.Builder
java.lang.Object
software.amazon.awscdk.services.lookoutmetrics.CfnAlert.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAlert>
- Enclosing class:
CfnAlert
@Stability(Stable)
public static final class CfnAlert.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAlert>
A fluent builder for
CfnAlert
.-
Method Summary
Modifier and TypeMethodDescriptionaction
(IResolvable action) Action that will be triggered when there is an alert.action
(CfnAlert.ActionProperty action) Action that will be triggered when there is an alert.alertDescription
(String alertDescription) A description of the alert.The name of the alert.alertSensitivityThreshold
(Number alertSensitivityThreshold) An integer from 0 to 100 specifying the alert sensitivity threshold.anomalyDetectorArn
(String anomalyDetectorArn) The ARN of the detector to which the alert is attached.build()
static CfnAlert.Builder
-
Method Details
-
create
@Stability(Stable) public static CfnAlert.Builder create(software.constructs.Construct scope, String id) - 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.- Returns:
- a new instance of
CfnAlert.Builder
.
-
action
Action that will be triggered when there is an alert.- Parameters:
action
- Action that will be triggered when there is an alert. This parameter is required.- Returns:
this
- See Also:
-
action
Action that will be triggered when there is an alert.- Parameters:
action
- Action that will be triggered when there is an alert. This parameter is required.- Returns:
this
- See Also:
-
alertSensitivityThreshold
@Stability(Stable) public CfnAlert.Builder alertSensitivityThreshold(Number alertSensitivityThreshold) An integer from 0 to 100 specifying the alert sensitivity threshold.- Parameters:
alertSensitivityThreshold
- An integer from 0 to 100 specifying the alert sensitivity threshold. This parameter is required.- Returns:
this
- See Also:
-
anomalyDetectorArn
The ARN of the detector to which the alert is attached.- Parameters:
anomalyDetectorArn
- The ARN of the detector to which the alert is attached. This parameter is required.- Returns:
this
- See Also:
-
alertDescription
A description of the alert.- Parameters:
alertDescription
- A description of the alert. This parameter is required.- Returns:
this
- See Also:
-
alertName
The name of the alert.- Parameters:
alertName
- The name of the alert. This parameter is required.- Returns:
this
- See Also:
-
build
-