Class: Aws::EC2::Waiters::VolumeInUse
- Inherits:
-
Object
- Object
- Aws::EC2::Waiters::VolumeInUse
- Defined in:
- lib/aws-sdk-ec2/waiters.rb
Instance Attribute Summary collapse
- #waiter ⇒ Object readonly private
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 '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 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.
1455 1456 1457 |
# File 'lib/aws-sdk-ec2/waiters.rb', line 1455 def waiter @waiter 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 'lib/aws-sdk-ec2/waiters.rb', line 1450 def wait(params = {}) @waiter.wait(client: @client, params: params) end |