Class: Aws::EC2::Waiters::InternetGatewayExists
- Inherits:
-
Object
- Object
- Aws::EC2::Waiters::InternetGatewayExists
- Defined in:
- gems/aws-sdk-ec2/lib/aws-sdk-ec2/waiters.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ InternetGatewayExists
constructor
A new instance of InternetGatewayExists.
-
#wait(params = {}) ⇒ Types::DescribeInternetGatewaysResult
Returns a response object which responds to the following methods:.
Constructor Details
#initialize(options) ⇒ InternetGatewayExists
Returns a new instance of InternetGatewayExists.
788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/waiters.rb', line 788 def initialize() @client = .fetch(:client) @waiter = Aws::Waiters::Waiter.new({ max_attempts: 6, delay: 5, poller: Aws::Waiters::Poller.new( operation_name: :describe_internet_gateways, acceptors: [ { "expected" => true, "matcher" => "path", "state" => "success", "argument" => "length(internet_gateways[].internet_gateway_id) > `0`" }, { "expected" => "InvalidInternetGateway.NotFound", "matcher" => "error", "state" => "retry" } ] ) }.merge()) end |
Instance Method Details
#wait(params = {}) ⇒ Types::DescribeInternetGatewaysResult
Returns a response object which responds to the following methods:
- #internet_gateways => Array<Types::InternetGateway>
- #next_token => String
814 815 816 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/waiters.rb', line 814 def wait(params = {}) @waiter.wait(client: @client, params: params) end |