Fugue.AWS.EC2.NatGateway

This is the preferred interface for making VPC NAT Gateways with Fugue. The new function is the right place to start.

Module Members

external

(Function)

Create a reference to an externally managed NAT Gateway.

Example usage:

nat: EC2.NatGateway.external("nat-1234abcd1234abcd1", AWS.Us-east-1)

Type Signature

 fun (String, Region) -> NatGateway
Argument: natGatewayId

The ID of the target NAT Gateway. Must be of the form “nat-” followed by 8 or 13 characters from a-f and 0-9.

Type: String

Argument: region

The Region containing the target NAT Gateway.

Type: Region

Returns:

A reference to the specified NAT Gateway.

Type: NatGateway

new

(Function)

new NAT Gateway (Constructor)

Call this constructor to create a new Fugue.Core.AWS.EC2.NatGateway value.

Example usage:

EC2.NatGateway.new {
  subnet: public-10-0-1-0,
  elasticIP: mvc-eip
}

mvc-eip: EC2.ElasticIP.new {
  region: AWS.Us-west-2
}

Type Signature

 fun { subnet: Subnet,
       elasticIP: ElasticIP} -> NatGateway
Argument: subnet

The subnet in which to place the NAT Gateway.

Type: Subnet

Argument: elasticIP

The Elastic IP to assign to the NAT Gateway.

Type: ElasticIP

Returns:

A Fugue.Core.AWS.EC2.ElasticIP value.

Type: NatGateway

Spec

(Type)

type Spec:
  subnet: Subnet
  elasticIP: ElasticIP

DEPRECATED Please use named arguments in the new constructor instead.

NAT Gateway Specification (Resource)

Record {

Field: subnet

The subnet in which to place the NAT Gateway.

Type: Subnet

Field: elasticIP

The Elastic IP to assign to the NAT Gateway.

Type: ElasticIP

}