Class: Aws::EC2::Waiters::VolumeDeleted
- Inherits:
-
Object
- Object
- Aws::EC2::Waiters::VolumeDeleted
- Defined in:
- gems/aws-sdk-ec2/lib/aws-sdk-ec2/waiters.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ VolumeDeleted
constructor
A new instance of VolumeDeleted.
-
#wait(params = {}) ⇒ Types::DescribeVolumesResult
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ VolumeDeleted
Returns a new instance of VolumeDeleted.
2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/waiters.rb', line 2299 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" => "deleted", "matcher" => "pathAll", "state" => "success", "argument" => "volumes[].state" }, { "matcher" => "error", "expected" => "InvalidVolume.NotFound", "state" => "success" } ] ) }.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>
2325 2326 2327 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/waiters.rb', line 2325 def wait(params = {}) @waiter.wait(client: @client, params: params) end |