Class: Aws::Route53RecoveryControlConfig::Waiters::ClusterDeleted
- Inherits:
-
Object
- Object
- Aws::Route53RecoveryControlConfig::Waiters::ClusterDeleted
- Defined in:
- lib/aws-sdk-route53recoverycontrolconfig/waiters.rb
Overview
Wait for a cluster to be deleted
Instance Attribute Summary collapse
- #waiter ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(options) ⇒ ClusterDeleted
constructor
A new instance of ClusterDeleted.
-
#wait(params = {}) ⇒ Types::DescribeClusterResponse
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ ClusterDeleted
Returns a new instance of ClusterDeleted.
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() @client = .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()) end |
Instance Attribute Details
#waiter ⇒ Object (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:
-
#cluster => Types::Cluster
171 172 173 |
# File 'lib/aws-sdk-route53recoverycontrolconfig/waiters.rb', line 171 def wait(params = {}) @waiter.wait(client: @client, params: params) end |