Fugue.AWS.EC2.RouteTable

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

Module Members

external

(Function)

Create a reference to an externally managed route table.

Example usage:

vpc: EC2.RouteTable.external("rtb-1234abcd", AWS.Us-east-1)

Type Signature

 fun (String, Region) -> RouteTable
Argument: rtbId

The ID of the target Route Table. Must be of the form “rtb-” followed by 8 characters from a-z and 0-9.

Type: String

Argument: region

The Region containing the target Route Table.

Type: Region

Returns:

A reference to the specified Route Table.

Type: RouteTable

new

(Function)

new Route Table (Constructor)

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

Example usage:

public-ngw-route-table: EC2.RouteTable.new {
  vpc: mvc-vpc,
  routes: [public-ngw-route],
  associations: [private-10-0-1-0],
  tags: None
}

public-ngw-route: EC2.Route.new {
  destinationCidrBlock: "0.0.0.0/0",
  target: EC2.NatTarget(mvc-nat-gateway)
}

Type Signature

 fun { vpc: Vpc,
       routes: Optional<List<Route>>,
       associations: Optional<List<Subnet>>,
       tags: Optional<List<Tag>>,
       routePropagatingVpnGateways: Optional<List<VpnGateway>>,
       resourceId: Optional<String> } -> RouteTable
Argument: vpc

The VPC with which to associate the route table.

Type: Vpc

Argument: routes

The routes to apply to this route table. Mutable.

Type: Optional<List<Route>>

Argument: associations

The subnets with which to associate the route table. Instances in that subnet follow these routes for IP connections. Mutable.

Type: Optional<List<Subnet>>

Argument: tags

AWS tag key-value pairs to associate with the RouteTable. Mutable.

Type: Optional<List<Tag>>

Argument: routePropagatingVpnGateways

The list of VPN gateways that will propagate routes to this route table. Mutable.

Type: Optional<List<VpnGateway>>

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: rtb-1234abcd

Type: Optional<String>

Returns:

A Fugue.Core.AWS.EC2.RouteTable value.

Type: RouteTable

RouteTableSpec

(Type)

type RouteTableSpec:
  vpc: Vpc
  routes: Optional<List<Route>>
  associations: Optional<List<Subnet>>
  tags: Optional<List<Tag>>

DEPRECATED

See Fugue.AWS.EC2.RouteTable.new for documentation on the current constructor.

Route Table Specification (Resource)

This type of value is used to specify a RouteTable for the RouteTable constructor, EC2.RouteTable. new().

Record {

Field: vpc

The VPC with which to associate the route table.

Type: Vpc

Field: routes

The routes to apply to this route table.

Type: Optional<List<Route>>

Field: associations

The subnets with which to associate the route table. Instances in that subnet follow these routes for IP connections.

Type: Optional<List<Subnet>>

Field: tags

AWS tag key-value pairs to associate with the RouteTable.

Type: Optional<List<Tag>>

}

default

(Value)

default:
  tags: None

Route Table Specification (Default Values)