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.
1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 |
# File 'lib/aws-sdk-ec2/waiters.rb', line 1094 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.
1126 1127 1128 |
# File 'lib/aws-sdk-ec2/waiters.rb', line 1126 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
1121 1122 1123 |
# File 'lib/aws-sdk-ec2/waiters.rb', line 1121 def wait(params = {}) @waiter.wait(client: @client, params: params) end |