Class: Aws::Route53::Waiters::HealthCheckSourceDeleted

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

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ HealthCheckSourceDeleted

Returns a new instance of HealthCheckSourceDeleted.

Parameters:

  • options (Hash)

Options Hash (options):

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


135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
# File 'gems/aws-sdk-route53/lib/aws-sdk-route53/waiters.rb', line 135

def initialize(options)
  @client = options.fetch(:client)
  @waiter = Aws::Waiters::Waiter.new({
    max_attempts: 40,
    delay: 15,
    poller: Aws::Waiters::Poller.new(
      operation_name: :get_health_check_source,
      acceptors: [
        {
          "matcher" => "error",
          "expected" => "NoSuchHealthCheckSource",
          "state" => "success"
        },
        {
          "matcher" => "path",
          "expected" => "DELETE_COMPLETED",
          "argument" => "health_check_source.health_check_source_status",
          "state" => "success"
        },
        {
          "matcher" => "path",
          "expected" => "DELETE_FAILED",
          "argument" => "health_check_source.health_check_source_status",
          "state" => "failure"
        }
      ]
    )
  }.merge(options))
end

Instance Method Details

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

Returns a response object which responds to the following methods:

Parameters:

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

    a customizable set of options

Options Hash (params):

  • :health_check_source_id (required, String) —

    The ID of the health check source that you want to get information about.

Returns:



167
168
169
# File 'gems/aws-sdk-route53/lib/aws-sdk-route53/waiters.rb', line 167

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