Class: Aws::EC2::Waiters::VolumeAvailable
- Inherits:
-
Object
- Object
- Aws::EC2::Waiters::VolumeAvailable
- Defined in:
- gems/aws-sdk-ec2/lib/aws-sdk-ec2/waiters.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ VolumeAvailable
constructor
A new instance of VolumeAvailable.
-
#wait(params = {}) ⇒ Types::DescribeVolumesResult
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ VolumeAvailable
Returns a new instance of VolumeAvailable.
2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/waiters.rb', line 2255 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" => "available", "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:
- #next_token => String
- #volumes => Array<Types::Volume>
2282 2283 2284 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/waiters.rb', line 2282 def wait(params = {}) @waiter.wait(client: @client, params: params) end |