Class: Aws::EC2::Waiters::SubnetAvailable
- Inherits:
-
Object
- Object
- Aws::EC2::Waiters::SubnetAvailable
- Defined in:
- gems/aws-sdk-ec2/lib/aws-sdk-ec2/waiters.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ SubnetAvailable
constructor
A new instance of SubnetAvailable.
-
#wait(params = {}) ⇒ Types::DescribeSubnetsResult
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ SubnetAvailable
Returns a new instance of SubnetAvailable.
1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/waiters.rb', line 1168 def initialize() @client = .fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 40, delay: 15, poller: Aws::Waiters::Poller.new( operation_name: :describe_subnets, acceptors: [{ "expected" => "available", "matcher" => "pathAll", "state" => "success", "argument" => "subnets[].state" }] ) }.merge()) end |
Instance Method Details
#wait(params = {}) ⇒ Types::DescribeSubnetsResult
Returns a response object which responds to the following methods:
- #subnets => Array<Types::Subnet>
- #next_token => String
1187 1188 1189 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/waiters.rb', line 1187 def wait(params = {}) @waiter.wait(client: @client, params: params) end |