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.
1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 |
# File 'lib/aws-sdk-ec2/waiters.rb', line 1168 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.
1198 1199 1200 |
# File 'lib/aws-sdk-ec2/waiters.rb', line 1198 def waiter @waiter end |
Instance Method Details
#wait(params = {}) ⇒ Types::DescribeVpcsResult
Returns a response object which responds to the following methods:
-
#vpcs => Array<Types::Vpc>
1193 1194 1195 |
# File 'lib/aws-sdk-ec2/waiters.rb', line 1193 def wait(params = {}) @waiter.wait(client: @client, params: params) end |