Interface CfnCompositeAlarmProps

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

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:36.820Z") @Stability(Stable) public interface CfnCompositeAlarmProps extends software.amazon.jsii.JsiiSerializable
Properties for defining a CfnCompositeAlarm.

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.cloudwatch.*;
 CfnCompositeAlarmProps cfnCompositeAlarmProps = CfnCompositeAlarmProps.builder()
         .alarmRule("alarmRule")
         // the properties below are optional
         .actionsEnabled(false)
         .actionsSuppressor("actionsSuppressor")
         .actionsSuppressorExtensionPeriod(123)
         .actionsSuppressorWaitPeriod(123)
         .alarmActions(List.of("alarmActions"))
         .alarmDescription("alarmDescription")
         .alarmName("alarmName")
         .insufficientDataActions(List.of("insufficientDataActions"))
         .okActions(List.of("okActions"))
         .build();
 
  • Method Details

    • getAlarmRule

      @Stability(Stable) @NotNull String getAlarmRule()
      An expression that specifies which other alarms are to be evaluated to determine this composite alarm's state.

      For each alarm that you reference, you designate a function that specifies whether that alarm needs to be in ALARM state, OK state, or INSUFFICIENT_DATA state. You can use operators (AND, OR and NOT) to combine multiple functions in a single expression. You can use parenthesis to logically group the functions in your expression.

      You can use either alarm names or ARNs to reference the other alarms that are to be evaluated.

      Functions can include the following:

      • ALARM("alarm-name or alarm-ARN") is TRUE if the named alarm is in ALARM state.
      • OK("alarm-name or alarm-ARN") is TRUE if the named alarm is in OK state.
      • INSUFFICIENT_DATA("alarm-name or alarm-ARN") is TRUE if the named alarm is in INSUFFICIENT_DATA state.
      • TRUE always evaluates to TRUE.
      • FALSE always evaluates to FALSE.

      TRUE and FALSE are useful for testing a complex AlarmRule structure, and for testing your alarm actions.

      For more information about AlarmRule syntax, see PutCompositeAlarm in the Amazon CloudWatch API Reference .

    • getActionsEnabled

      @Stability(Stable) @Nullable default Object getActionsEnabled()
      Indicates whether actions should be executed during any changes to the alarm state of the composite alarm.

      The default is TRUE.

    • getActionsSuppressor

      @Stability(Stable) @Nullable default String getActionsSuppressor()
      Actions will be suppressed if the suppressor alarm is in the ALARM state.

      ActionsSuppressor can be an AlarmName or an Amazon Resource Name (ARN) from an existing alarm.

    • getActionsSuppressorExtensionPeriod

      @Stability(Stable) @Nullable default Number getActionsSuppressorExtensionPeriod()
      The maximum time in seconds that the composite alarm waits after suppressor alarm goes out of the ALARM state.

      After this time, the composite alarm performs its actions.

      ExtensionPeriod is required only when ActionsSuppressor is specified.

    • getActionsSuppressorWaitPeriod

      @Stability(Stable) @Nullable default Number getActionsSuppressorWaitPeriod()
      The maximum time in seconds that the composite alarm waits for the suppressor alarm to go into the ALARM state.

      After this time, the composite alarm performs its actions.

      WaitPeriod is required only when ActionsSuppressor is specified.

    • getAlarmActions

      @Stability(Stable) @Nullable default List<String> getAlarmActions()
      The actions to execute when this alarm transitions to the ALARM state from any other state.

      Each action is specified as an Amazon Resource Name (ARN). For more information about creating alarms and the actions that you can specify, see PutCompositeAlarm in the Amazon CloudWatch API Reference .

    • getAlarmDescription

      @Stability(Stable) @Nullable default String getAlarmDescription()
      The description for the composite alarm.
    • getAlarmName

      @Stability(Stable) @Nullable default String getAlarmName()
      The name for the composite alarm.

      This name must be unique within your AWS account.

    • getInsufficientDataActions

      @Stability(Stable) @Nullable default List<String> getInsufficientDataActions()
      The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state.

      Each action is specified as an Amazon Resource Name (ARN). For more information about creating alarms and the actions that you can specify, see PutCompositeAlarm in the Amazon CloudWatch API Reference .

    • getOkActions

      @Stability(Stable) @Nullable default List<String> getOkActions()
      The actions to execute when this alarm transitions to the OK state from any other state.

      Each action is specified as an Amazon Resource Name (ARN). For more information about creating alarms and the actions that you can specify, see PutCompositeAlarm in the Amazon CloudWatch API Reference .

    • builder

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