This is the preferred interface for making Internet Gateway resources with Fugue. If you want to manage an Internet Gateway with Fugue, the new function is the right place to start.

Module Members



Create a reference to an externally managed Internet Gateway.

Example usage:

internetGateway: EC2.InternetGateway.external("igw-1234abcd", AWS.Us-east-1)

Type Signature

 fun (String, Region) -> InternetGateway
Argument: internetGatewayId

The ID of the Internet Gateway. Must be of the form “igw-” followed by 8 from a-z and 0-9.

Type: String

Argument: region

The Region containing the target Internet Gateway.

Type: Region


A reference to the specified Internet Gateway.

Type: InternetGateway



new Internet Gateway (Constructor)

Use this constructor to create a new Fugue.AWS.EC2.InternetGateway value.

Example usage:

EC2.InternetGateway.new {
  region: AWS.Us-west-2,
  vpc: mvc-igw-vpc,
  tags: [mvc-igw-tag]

Type Signature

 fun { vpc: Optional<Vpc>,
       tags: Optional<List<Tag>>,
       region: Optional<Region>,
       resourceId: Optional<String> } -> InternetGateway
Argument: vpc
Type: Optional<Vpc>
Argument: tags
Type: Optional<List<Tag>>
Argument: region
Type: Optional<Region>
Argument: resourceId

Resource ID of the resource to import with Fugue Import. This field is only honored on fugue run. The resource ID is the AWS ID. Mutable. Example: igw-1234abcd

Type: Optional<String>


A Fugue.Core.AWS.EC2.InternetGateway record.

Type: InternetGateway



type InternetGatewaySpec:
  tags: Optional<List<Tag>>
  vpc: Optional<Vpc>
  region: Optional<Region>

Internet Gateway Specification (Resource)

This type of value is used to specify an Internet Gateway (IGW) for the IGW constructor, EC2.InternetGateway. new().

Record {

Field: tags
Type: Optional<List<Tag>>
Field: vpc
Type: Optional<Vpc>
Field: region
Type: Optional<Region>




  tags: None

Internet Gateway Specification (Default Values)

These are the default values for an Internet Gateway (IGW) created with the IGW constructor, EC2.InternetGateway(). If these values are provided to the constructor, they are overridden.