Class: Aws::EC2::Waiters::VpcExists
- Inherits:
-
Object
- Object
- Aws::EC2::Waiters::VpcExists
- Defined in:
- gems/aws-sdk-ec2/lib/aws-sdk-ec2/waiters.rb
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.
1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/waiters.rb', line 1311 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 Method Details
#wait(params = {}) ⇒ Types::DescribeVpcsResult
Returns a response object which responds to the following methods:
- #vpcs => Array<Types::Vpc>
- #next_token => String
1336 1337 1338 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/waiters.rb', line 1336 def wait(params = {}) @waiter.wait(client: @client, params: params) end |