Class: Aws::EC2::Waiters::VpcPeeringConnectionDeleted
- Inherits:
-
Object
- Object
- Aws::EC2::Waiters::VpcPeeringConnectionDeleted
- Defined in:
- gems/aws-sdk-ec2/lib/aws-sdk-ec2/waiters.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ VpcPeeringConnectionDeleted
constructor
A new instance of VpcPeeringConnectionDeleted.
-
#wait(params = {}) ⇒ Types::DescribeVpcPeeringConnectionsResult
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ VpcPeeringConnectionDeleted
Returns a new instance of VpcPeeringConnectionDeleted.
1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/waiters.rb', line 1653 def initialize() @client = .fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 40, delay: 15, poller: Aws::Waiters::Poller.new( operation_name: :describe_vpc_peering_connections, acceptors: [ { "expected" => "deleted", "matcher" => "pathAll", "state" => "success", "argument" => "vpc_peering_connections[].status.code" }, { "matcher" => "error", "expected" => "InvalidVpcPeeringConnectionID.NotFound", "state" => "success" } ] ) }.merge()) end |
Instance Method Details
#wait(params = {}) ⇒ Types::DescribeVpcPeeringConnectionsResult
Returns a response object which responds to the following methods:
- #vpc_peering_connections => Array<Types::VpcPeeringConnection>
- #next_token => String
1679 1680 1681 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/waiters.rb', line 1679 def wait(params = {}) @waiter.wait(client: @client, params: params) end |