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.
1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/waiters.rb', line 1846 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:
- #next_token => String
- #vpcs => Array<Types::Vpc>
1871 1872 1873 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/waiters.rb', line 1871 def wait(params = {}) @waiter.wait(client: @client, params: params) end |