Class: Aws::RDS::Waiters::DBSnapshotAvailable
- Inherits:
-
Object
- Object
- Aws::RDS::Waiters::DBSnapshotAvailable
- Defined in:
- lib/aws-sdk-rds/waiters.rb
Instance Attribute Summary collapse
- #waiter ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(options) ⇒ DBSnapshotAvailable
constructor
A new instance of DBSnapshotAvailable.
-
#wait(params = {}) ⇒ Types::DBSnapshotMessage
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ DBSnapshotAvailable
Returns a new instance of DBSnapshotAvailable.
496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 |
# File 'lib/aws-sdk-rds/waiters.rb', line 496 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" => "available", "matcher" => "pathAll", "state" => "success", "argument" => "db_snapshots[].status" }, { "expected" => "deleted", "matcher" => "pathAny", "state" => "failure", "argument" => "db_snapshots[].status" }, { "expected" => "deleting", "matcher" => "pathAny", "state" => "failure", "argument" => "db_snapshots[].status" }, { "expected" => "failed", "matcher" => "pathAny", "state" => "failure", "argument" => "db_snapshots[].status" }, { "expected" => "incompatible-restore", "matcher" => "pathAny", "state" => "failure", "argument" => "db_snapshots[].status" }, { "expected" => "incompatible-parameters", "matcher" => "pathAny", "state" => "failure", "argument" => "db_snapshots[].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.
552 553 554 |
# File 'lib/aws-sdk-rds/waiters.rb', line 552 def waiter @waiter 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>
547 548 549 |
# File 'lib/aws-sdk-rds/waiters.rb', line 547 def wait(params = {}) @waiter.wait(client: @client, params: params) end |