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.
1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/waiters.rb', line 1723 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>
1749 1750 1751 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/waiters.rb', line 1749 def wait(params = {}) @waiter.wait(client: @client, params: params) end |