Class: Aws::EC2::Waiters::SnapshotCompleted
- Inherits:
-
Object
- Object
- Aws::EC2::Waiters::SnapshotCompleted
- Defined in:
- gems/aws-sdk-ec2/lib/aws-sdk-ec2/waiters.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ SnapshotCompleted
constructor
A new instance of SnapshotCompleted.
-
#wait(params = {}) ⇒ Types::DescribeSnapshotsResult
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ SnapshotCompleted
Returns a new instance of SnapshotCompleted.
1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/waiters.rb', line 1396 def initialize() @client = .fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 40, delay: 15, poller: Aws::Waiters::Poller.new( operation_name: :describe_snapshots, acceptors: [ { "expected" => "completed", "matcher" => "pathAll", "state" => "success", "argument" => "snapshots[].state" }, { "expected" => "error", "matcher" => "pathAny", "state" => "failure", "argument" => "snapshots[].state" } ] ) }.merge()) end |
Instance Method Details
#wait(params = {}) ⇒ Types::DescribeSnapshotsResult
Returns a response object which responds to the following methods:
- #next_token => String
- #snapshots => Array<Types::Snapshot>
1423 1424 1425 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/waiters.rb', line 1423 def wait(params = {}) @waiter.wait(client: @client, params: params) end |