Class: Aws::RDS::Waiters::DBSnapshotDeleted
- Inherits:
-
Object
- Object
- Aws::RDS::Waiters::DBSnapshotDeleted
- Defined in:
- gems/aws-sdk-rds/lib/aws-sdk-rds/waiters.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ DBSnapshotDeleted
constructor
A new instance of DBSnapshotDeleted.
-
#wait(params = {}) ⇒ Types::DBSnapshotMessage
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ DBSnapshotDeleted
Returns a new instance of DBSnapshotDeleted.
566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 |
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/waiters.rb', line 566 def initialize() @client = .fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 60, delay: 30, poller: Aws::Waiters::Poller.new( operation_name: :describe_db_snapshots, acceptors: [ { "expected" => true, "matcher" => "path", "state" => "success", "argument" => "length(db_snapshots) == `0`" }, { "expected" => "DBSnapshotNotFound", "matcher" => "error", "state" => "success" }, { "expected" => "creating", "matcher" => "pathAny", "state" => "failure", "argument" => "db_snapshots[].status" }, { "expected" => "modifying", "matcher" => "pathAny", "state" => "failure", "argument" => "db_snapshots[].status" }, { "expected" => "rebooting", "matcher" => "pathAny", "state" => "failure", "argument" => "db_snapshots[].status" }, { "expected" => "resetting-master-credentials", "matcher" => "pathAny", "state" => "failure", "argument" => "db_snapshots[].status" } ] ) }.merge()) end |
Instance Method Details
#wait(params = {}) ⇒ Types::DBSnapshotMessage
Returns a response object which responds to the following methods:
- #marker => String
- #db_snapshots => Array<Types::DBSnapshot>
616 617 618 |
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/waiters.rb', line 616 def wait(params = {}) @waiter.wait(client: @client, params: params) end |