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

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>> } -> 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>>

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)