Table of Contents

Module Members



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

Currently unused.

Type: Optional<String>


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

Type: VpnGateway