Class: Aws::EC2::Waiters::VolumeInUse
- Inherits:
-
Object
- Object
- Aws::EC2::Waiters::VolumeInUse
- Defined in:
- gems/aws-sdk-ec2/lib/aws-sdk-ec2/waiters.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ VolumeInUse
constructor
A new instance of VolumeInUse.
-
#wait(params = {}) ⇒ Types::DescribeVolumesResult
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ VolumeInUse
Returns a new instance of VolumeInUse.
1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/waiters.rb', line 1423 def initialize() @client = .fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 40, delay: 15, poller: Aws::Waiters::Poller.new( operation_name: :describe_volumes, acceptors: [ { "expected" => "in-use", "matcher" => "pathAll", "state" => "success", "argument" => "volumes[].state" }, { "expected" => "deleted", "matcher" => "pathAny", "state" => "failure", "argument" => "volumes[].state" } ] ) }.merge()) end |
Instance Method Details
#wait(params = {}) ⇒ Types::DescribeVolumesResult
Returns a response object which responds to the following methods:
- #volumes => Array<Types::Volume>
- #next_token => String
1450 1451 1452 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/waiters.rb', line 1450 def wait(params = {}) @waiter.wait(client: @client, params: params) end |