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.
741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/waiters.rb', line 741 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
767 768 769 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/waiters.rb', line 767 def wait(params = {}) @waiter.wait(client: @client, params: params) end |