Class: Aws::EC2::Waiters::VpnConnectionDeleted
- Inherits:
-
Object
- Object
- Aws::EC2::Waiters::VpnConnectionDeleted
- Defined in:
- gems/aws-sdk-ec2/lib/aws-sdk-ec2/waiters.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ VpnConnectionDeleted
constructor
A new instance of VpnConnectionDeleted.
-
#wait(params = {}) ⇒ Types::DescribeVpnConnectionsResult
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ VpnConnectionDeleted
Returns a new instance of VpnConnectionDeleted.
1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/waiters.rb', line 1788 def initialize() @client = .fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 40, delay: 15, poller: Aws::Waiters::Poller.new( operation_name: :describe_vpn_connections, acceptors: [ { "expected" => "deleted", "matcher" => "pathAll", "state" => "success", "argument" => "vpn_connections[].state" }, { "expected" => "pending", "matcher" => "pathAny", "state" => "failure", "argument" => "vpn_connections[].state" } ] ) }.merge()) end |
Instance Method Details
#wait(params = {}) ⇒ Types::DescribeVpnConnectionsResult
Returns a response object which responds to the following methods:
- #vpn_connections => Array<Types::VpnConnection>
1815 1816 1817 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/waiters.rb', line 1815 def wait(params = {}) @waiter.wait(client: @client, params: params) end |