Class: Aws::Route53RecoveryControlConfig::Waiters::ClusterDeleted

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

Overview

Wait for a cluster to be deleted

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ ClusterDeleted

Returns a new instance of ClusterDeleted.

Parameters:

  • options (Hash)

Options Hash (options):

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


140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
# File 'lib/aws-sdk-route53recoverycontrolconfig/waiters.rb', line 140

def initialize(options)
  @client = options.fetch(:client)
  @waiter = Aws::Waiters::Waiter.new({
    max_attempts: 26,
    delay: 5,
    poller: Aws::Waiters::Poller.new(
      operation_name: :describe_cluster,
      acceptors: [
        {
          "state" => "success",
          "matcher" => "status",
          "expected" => 404
        },
        {
          "state" => "retry",
          "matcher" => "path",
          "argument" => "cluster.status",
          "expected" => "PENDING_DELETION"
        },
        {
          "state" => "retry",
          "matcher" => "status",
          "expected" => 500
        }
      ]
    )
  }.merge(options))
end

Instance Attribute Details

#waiterObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



176
177
178
# File 'lib/aws-sdk-route53recoverycontrolconfig/waiters.rb', line 176

def waiter
  @waiter
end

Instance Method Details

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

Returns a response object which responds to the following methods:

Options Hash (params):

  • :cluster_arn (required, String)

Returns:



171
172
173
# File 'lib/aws-sdk-route53recoverycontrolconfig/waiters.rb', line 171

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