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.
1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/waiters.rb', line 1680 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>
1707 1708 1709 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/waiters.rb', line 1707 def wait(params = {}) @waiter.wait(client: @client, params: params) end |