Interface AlarmConfiguration.Builder

  • Method Details

    • ignorePollAlarmFailure

      AlarmConfiguration.Builder ignorePollAlarmFailure(Boolean ignorePollAlarmFailure)

      When this value is true, your automation or command continues to run in cases where we can’t retrieve alarm status information from CloudWatch. In cases where we successfully retrieve an alarm status of OK or INSUFFICIENT_DATA, the automation or command continues to run, regardless of this value. Default is false.

      Parameters:
      ignorePollAlarmFailure - When this value is true, your automation or command continues to run in cases where we can’t retrieve alarm status information from CloudWatch. In cases where we successfully retrieve an alarm status of OK or INSUFFICIENT_DATA, the automation or command continues to run, regardless of this value. Default is false.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • alarms

      The name of the CloudWatch alarm specified in the configuration.

      Parameters:
      alarms - The name of the CloudWatch alarm specified in the configuration.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • alarms

      AlarmConfiguration.Builder alarms(Alarm... alarms)

      The name of the CloudWatch alarm specified in the configuration.

      Parameters:
      alarms - The name of the CloudWatch alarm specified in the configuration.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • alarms

      The name of the CloudWatch alarm specified in the configuration.

      This is a convenience method that creates an instance of the Alarm.Builder avoiding the need to create one manually via Alarm.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to alarms(List<Alarm>).

      Parameters:
      alarms - a consumer that will call methods on Alarm.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: