Class: Aws::EC2::Waiters::InternetGatewayExists
- Inherits:
 - 
      Object
      
        
- Object
 - Aws::EC2::Waiters::InternetGatewayExists
 
 
- Defined in:
 - lib/aws-sdk-ec2/waiters.rb
 
Instance Attribute Summary collapse
- #waiter ⇒ Object readonly private
 
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 '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 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.
      772 773 774  | 
    
      # File 'lib/aws-sdk-ec2/waiters.rb', line 772 def waiter @waiter 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 'lib/aws-sdk-ec2/waiters.rb', line 767 def wait(params = {}) @waiter.wait(client: @client, params: params) end  |