Class: Aws::EC2::Waiters::VpcExists
- Inherits:
-
Object
- Object
- Aws::EC2::Waiters::VpcExists
- Defined in:
- lib/aws-sdk-ec2/waiters.rb
Instance Attribute Summary collapse
- #waiter ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(options) ⇒ VpcExists
constructor
A new instance of VpcExists.
-
#wait(params = {}) ⇒ Types::DescribeVpcsResult
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ VpcExists
Returns a new instance of VpcExists.
1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 |
# File 'lib/aws-sdk-ec2/waiters.rb', line 1503 def initialize() @client = .fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 5, delay: 1, poller: Aws::Waiters::Poller.new( operation_name: :describe_vpcs, acceptors: [ { "matcher" => "status", "expected" => 200, "state" => "success" }, { "matcher" => "error", "expected" => "InvalidVpcID.NotFound", "state" => "retry" } ] ) }.merge()) end |
Instance Attribute Details
#waiter ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1533 1534 1535 |
# File 'lib/aws-sdk-ec2/waiters.rb', line 1533 def waiter @waiter end |
Instance Method Details
#wait(params = {}) ⇒ Types::DescribeVpcsResult
Returns a response object which responds to the following methods:
-
#next_token => String
-
#vpcs => Array<Types::Vpc>
1528 1529 1530 |
# File 'lib/aws-sdk-ec2/waiters.rb', line 1528 def wait(params = {}) @waiter.wait(client: @client, params: params) end |