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 Details

    • create

      @Stability(Stable) public static CfnAlert.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnAlert.Builder.
    • action

      @Stability(Stable) public CfnAlert.Builder action(CfnAlert.ActionProperty 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
    • action

      @Stability(Stable) public CfnAlert.Builder action(IResolvable 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
    • 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
    • anomalyDetectorArn

      @Stability(Stable) public CfnAlert.Builder anomalyDetectorArn(String 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
    • alertDescription

      @Stability(Stable) public CfnAlert.Builder alertDescription(String alertDescription)
      A description of the alert.

      Parameters:
      alertDescription - A description of the alert. This parameter is required.
      Returns:
      this
    • alertName

      @Stability(Stable) public CfnAlert.Builder alertName(String alertName)
      The name of the alert.

      Parameters:
      alertName - The name of the alert. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnAlert build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnAlert>
      Returns:
      a newly built instance of CfnAlert.