Class: Aws::Route53RecoveryControlConfig::Waiters::RoutingControlCreated
- Inherits:
-
Object
- Object
- Aws::Route53RecoveryControlConfig::Waiters::RoutingControlCreated
- Defined in:
- lib/aws-sdk-route53recoverycontrolconfig/waiters.rb
Overview
Wait until a routing control is created
Instance Attribute Summary collapse
- #waiter ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(options) ⇒ RoutingControlCreated
constructor
A new instance of RoutingControlCreated.
-
#wait(params = {}) ⇒ Types::DescribeRoutingControlResponse
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ RoutingControlCreated
Returns a new instance of RoutingControlCreated.
288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 |
# File 'lib/aws-sdk-route53recoverycontrolconfig/waiters.rb', line 288 def initialize() @client = .fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 26, delay: 5, poller: Aws::Waiters::Poller.new( operation_name: :describe_routing_control, acceptors: [ { "state" => "success", "matcher" => "path", "argument" => "routing_control.status", "expected" => "DEPLOYED" }, { "state" => "retry", "matcher" => "path", "argument" => "routing_control.status", "expected" => "PENDING" }, { "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.
325 326 327 |
# File 'lib/aws-sdk-route53recoverycontrolconfig/waiters.rb', line 325 def waiter @waiter end |
Instance Method Details
#wait(params = {}) ⇒ Types::DescribeRoutingControlResponse
Returns a response object which responds to the following methods:
-
#routing_control => Types::RoutingControl
320 321 322 |
# File 'lib/aws-sdk-route53recoverycontrolconfig/waiters.rb', line 320 def wait(params = {}) @waiter.wait(client: @client, params: params) end |