Interface CfnAlertProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnAlertProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:29:59.808Z") @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();
 
  • Method Details

    • getAction

      @Stability(Stable) @NotNull Object getAction()
      Action that will be triggered when there is an alert.
    • getAlertSensitivityThreshold

      @Stability(Stable) @NotNull Number getAlertSensitivityThreshold()
      An integer from 0 to 100 specifying the alert sensitivity threshold.
    • getAnomalyDetectorArn

      @Stability(Stable) @NotNull String getAnomalyDetectorArn()
      The ARN of the detector to which the alert is attached.
    • getAlertDescription

      @Stability(Stable) @Nullable default String getAlertDescription()
      A description of the alert.
    • getAlertName

      @Stability(Stable) @Nullable default String getAlertName()
      The name of the alert.
    • builder

      @Stability(Stable) static CfnAlertProps.Builder builder()
      Returns:
      a CfnAlertProps.Builder of CfnAlertProps