Table of Contents

Module Members



Create a reference to an externally managed vpn gateway.

Example usage:

vpngw: EC2.VpnGateway.external("vgw-1234abcd", AWS.Us-east-1)

Type Signature

 fun (String, Region) -> VpnGateway
Argument: vgwId

The ID of the target vpn gateway. Must be of the form “vgw-” followed by 8 characters from a-z and 0-9.

Type: String

Argument: region

The Region containing the target VPC.

Type: Region


A reference to the specified VPC.

Type: VpnGateway



new VpnGateway (Constructor)

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

Example usage:

import Fugue.AWS as AWS
import Fugue.AWS.EC2 as EC2
import Fugue.AWS.Pattern.Network as Network

network: Network.public {
  name: "vpn-example",
  region: AWS.Us-west-2,
  cidr: "",
  subnets: [
    (AWS.A, ""),

vpnGw: EC2.VpnGateway.new {
  region: network.region,
  vpcAttachment: network.vpc,
  tags: [AWS.tag("Name", "example-vpn")],

Type Signature

 fun { region: Region,
       vpnType: Optional<VpnGatewayType>,
       tags: Optional<List<Tag>>,
       vpcAttachment: Optional<Vpc>,
       resourceId: Optional<String> } -> VpnGateway
Argument: region

The region in which to create the vpn gateway.

Type: Region

Argument: vpnType

The type of vpn connection to support. EC2.Ipsec_1 is currently the only supported value. Defaults to EC2.Ipsec_1.

Type: Optional<VpnGatewayType>

Argument: tags

The AWS tag key-value pairs to associate with the vpn gateway. Mutable.

Type: Optional<List<Tag>>

Argument: vpcAttachment
Type: Optional<Vpc>
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: vgw-1234abcd

Type: Optional<String>


a Fugue.Core.AWS.EC2.VpnGateway value.

Type: VpnGateway