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.
1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/waiters.rb', line 1545 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
1571 1572 1573 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/waiters.rb', line 1571 def wait(params = {}) @waiter.wait(client: @client, params: params) end |