Class: Aws::RDS::Waiters::DBInstanceDeleted
- Inherits:
-
Object
- Object
- Aws::RDS::Waiters::DBInstanceDeleted
- Defined in:
- lib/aws-sdk-rds/waiters.rb
Instance Attribute Summary collapse
- #waiter ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(options) ⇒ DBInstanceDeleted
constructor
A new instance of DBInstanceDeleted.
-
#wait(params = {}) ⇒ Types::DBInstanceMessage
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ DBInstanceDeleted
Returns a new instance of DBInstanceDeleted.
429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 |
# File 'lib/aws-sdk-rds/waiters.rb', line 429 def initialize() @client = .fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 60, delay: 30, poller: Aws::Waiters::Poller.new( operation_name: :describe_db_instances, acceptors: [ { "expected" => true, "matcher" => "path", "state" => "success", "argument" => "length(db_instances) == `0`" }, { "expected" => "DBInstanceNotFound", "matcher" => "error", "state" => "success" }, { "expected" => "creating", "matcher" => "pathAny", "state" => "failure", "argument" => "db_instances[].db_instance_status" }, { "expected" => "modifying", "matcher" => "pathAny", "state" => "failure", "argument" => "db_instances[].db_instance_status" }, { "expected" => "rebooting", "matcher" => "pathAny", "state" => "failure", "argument" => "db_instances[].db_instance_status" }, { "expected" => "resetting-master-credentials", "matcher" => "pathAny", "state" => "failure", "argument" => "db_instances[].db_instance_status" } ] ) }.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.
484 485 486 |
# File 'lib/aws-sdk-rds/waiters.rb', line 484 def waiter @waiter end |
Instance Method Details
#wait(params = {}) ⇒ Types::DBInstanceMessage
Returns a response object which responds to the following methods:
-
#marker => String
-
#db_instances => Array<Types::DBInstance>
479 480 481 |
# File 'lib/aws-sdk-rds/waiters.rb', line 479 def wait(params = {}) @waiter.wait(client: @client, params: params) end |