You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::EC2::InternetGateway
- Inherits:
- 
      Resources::Resource
      
        - Object
- Resources::Resource
- Aws::EC2::InternetGateway
 
- Defined in:
- (unknown)
Instance Attribute Summary collapse
- 
  
    
      #attachments  ⇒ Array<Types::InternetGatewayAttachment> 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Any VPCs attached to the internet gateway. 
- 
  
    
      #id  ⇒ String 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
- 
  
    
      #internet_gateway_id  ⇒ String 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    The ID of the internet gateway. 
- 
  
    
      #owner_id  ⇒ String 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    The ID of the AWS account that owns the internet gateway. 
- 
  
    
      #tags  ⇒ Array<Types::Tag> 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Any tags assigned to the internet gateway. 
Attributes inherited from Resources::Resource
Instance Method Summary collapse
- 
  
    
      #attach_to_vpc(options = {})  ⇒ Struct 
    
    
  
  
  
  
  
  
  
  
  
    Attaches an internet gateway or a virtual private gateway to a VPC, enabling connectivity between the internet and the VPC. 
- 
  
    
      #create_tags(options = {})  ⇒ Array<Tag> 
    
    
  
  
  
  
  
  
  
  
  
    
- 
  
    
      #delete(options = {})  ⇒ Struct 
    
    
  
  
  
  
  
  
  
  
  
    Deletes the specified internet gateway. 
- 
  
    
      #delete_tags(options = {})  ⇒ Array<Tag> 
    
    
  
  
  
  
  
  
  
  
  
    
- 
  
    
      #detach_from_vpc(options = {})  ⇒ Struct 
    
    
  
  
  
  
  
  
  
  
  
    Detaches an internet gateway from a VPC, disabling connectivity between the internet and the VPC. 
- 
  
    
      #initialize  ⇒ Object 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
Methods inherited from Resources::Resource
add_data_attribute, add_identifier, #data, data_attributes, #data_loaded?, identifiers, #load, #wait_until
Methods included from Resources::OperationMethods
#add_batch_operation, #add_operation, #batch_operation, #batch_operation_names, #batch_operations, #operation, #operation_names, #operations
Constructor Details
#initialize(id, options = {}) ⇒ Object #initialize(options = {}) ⇒ Object
Instance Attribute Details
#attachments ⇒ Array<Types::InternetGatewayAttachment> (readonly)
Any VPCs attached to the internet gateway.
#id ⇒ String (readonly)
#internet_gateway_id ⇒ String (readonly)
The ID of the internet gateway.
#owner_id ⇒ String (readonly)
The ID of the AWS account that owns the internet gateway.
#tags ⇒ Array<Types::Tag> (readonly)
Any tags assigned to the internet gateway.
Instance Method Details
#attach_to_vpc(options = {}) ⇒ Struct
Attaches an internet gateway or a virtual private gateway to a VPC, enabling connectivity between the internet and the VPC. For more information about your VPC and internet gateway, see the Amazon Virtual Private Cloud User Guide.
#create_tags(options = {}) ⇒ Array<Tag>
#delete(options = {}) ⇒ Struct
Deletes the specified internet gateway. You must detach the internet gateway from the VPC before you can delete it.
#delete_tags(options = {}) ⇒ Array<Tag>
#detach_from_vpc(options = {}) ⇒ Struct
Detaches an internet gateway from a VPC, disabling connectivity between the internet and the VPC. The VPC must not contain any running instances with Elastic IP addresses or public IPv4 addresses.