Fugue.AWS.EC2.InternetGateway

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

external

(Function)

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

Returns:

A reference to the specified Internet Gateway.

Type: InternetGateway

new

(Function)

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> } -> InternetGateway
Argument: vpc
Type: Optional<Vpc>
Argument: tags
Type: Optional<List<Tag>>
Argument: region
Type: Optional<Region>
Returns:

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

Type: InternetGateway

InternetGatewaySpec

(Type)

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>

}

default

(Value)

default:
  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.