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.
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 476 477 |
# File 'lib/aws-sdk-rds/waiters.rb', line 431 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.
486 487 488 |
# File 'lib/aws-sdk-rds/waiters.rb', line 486 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>
481 482 483 |
# File 'lib/aws-sdk-rds/waiters.rb', line 481 def wait(params = {}) @waiter.wait(client: @client, params: params) end |