Class: Aws::CloudWatch::Waiters::AlarmMuteRuleExists

Inherits:
Object
  • Object
show all
Defined in:
gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/waiters.rb

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ AlarmMuteRuleExists

Returns a new instance of AlarmMuteRuleExists.

Parameters:

  • options (Hash)

Options Hash (options):

  • :client (required, Client)
  • :max_attempts (Integer) — default: 40
  • :delay (Integer) — default: 5
  • :before_attempt (Proc)
  • :before_wait (Proc)


122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
# File 'gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/waiters.rb', line 122

def initialize(options)
  @client = options.fetch(:client)
  @waiter = Aws::Waiters::Waiter.new({
    max_attempts: 40,
    delay: 5,
    poller: Aws::Waiters::Poller.new(
      operation_name: :get_alarm_mute_rule,
      acceptors: [
        {
          "matcher" => "status",
          "expected" => 200,
          "state" => "success"
        },
        {
          "matcher" => "status",
          "expected" => 404,
          "state" => "retry"
        }
      ]
    )
  }.merge(options))
end

Instance Method Details

#wait(params = {}) ⇒ Types::GetAlarmMuteRuleOutput

Returns a response object which responds to the following methods:

Parameters:

  • params (Hash) (defaults to: {})

    a customizable set of options

Options Hash (params):

  • :alarm_mute_rule_name (required, String)

    The name of the alarm mute rule to retrieve.

Returns:



147
148
149
# File 'gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/waiters.rb', line 147

def wait(params = {})
  @waiter.wait(client: @client, params: params)
end