java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.cloudwatch.AlarmBase
All Implemented Interfaces:
IResource, IAlarm, IAlarmRule, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable
Direct Known Subclasses:
Alarm, CompositeAlarm

@Generated(value="jsii-pacmak/1.97.0 (build 729de35)", date="2024-04-18T17:54:13.883Z") @Stability(Stable) public abstract class AlarmBase extends Resource implements IAlarm
The base class for Alarm and CompositeAlarm resources.
  • Constructor Details

    • AlarmBase

      protected AlarmBase(software.amazon.jsii.JsiiObjectRef objRef)
    • AlarmBase

      protected AlarmBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • AlarmBase

      @Stability(Stable) protected AlarmBase(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable ResourceProps props)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props -
    • AlarmBase

      @Stability(Stable) protected AlarmBase(@NotNull software.constructs.Construct scope, @NotNull String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
  • Method Details

    • addAlarmAction

      @Stability(Stable) public void addAlarmAction(@NotNull @NotNull IAlarmAction... actions)
      Trigger this action if the alarm fires.

      Typically SnsAction or AutoScalingAction.

      Parameters:
      actions - This parameter is required.
    • addInsufficientDataAction

      @Stability(Stable) public void addInsufficientDataAction(@NotNull @NotNull IAlarmAction... actions)
      Trigger this action if there is insufficient data to evaluate the alarm.

      Typically SnsAction or AutoScalingAction.

      Parameters:
      actions - This parameter is required.
    • addOkAction

      @Stability(Stable) public void addOkAction(@NotNull @NotNull IAlarmAction... actions)
      Trigger this action if the alarm returns from breaching state into ok state.

      Typically SnsAction or AutoScalingAction.

      Parameters:
      actions - This parameter is required.
    • renderAlarmRule

      @Stability(Stable) @NotNull public String renderAlarmRule()
      AlarmRule indicating ALARM state for Alarm.
      Specified by:
      renderAlarmRule in interface IAlarmRule
    • getAlarmArn

      @Stability(Stable) @NotNull public abstract String getAlarmArn()
      Alarm ARN (i.e. arn:aws:cloudwatch::invalid input: '<'account-id>:alarm:Foo).
      Specified by:
      getAlarmArn in interface IAlarm
    • getAlarmName

      @Stability(Stable) @NotNull public abstract String getAlarmName()
      Name of the alarm.
      Specified by:
      getAlarmName in interface IAlarm
    • getAlarmActionArns

      @Stability(Stable) @Nullable protected List<String> getAlarmActionArns()
    • setAlarmActionArns

      @Stability(Stable) protected void setAlarmActionArns(@Nullable List<String> value)
    • getInsufficientDataActionArns

      @Stability(Stable) @Nullable protected List<String> getInsufficientDataActionArns()
    • setInsufficientDataActionArns

      @Stability(Stable) protected void setInsufficientDataActionArns(@Nullable List<String> value)
    • getOkActionArns

      @Stability(Stable) @Nullable protected List<String> getOkActionArns()
    • setOkActionArns

      @Stability(Stable) protected void setOkActionArns(@Nullable List<String> value)