Table of Contents

Module Members



Create a reference to an externally managed customer gateway.

Example usage:

customerGw: EC2.CustomerGateway.external("cgw-1234abcd", AWS.Us-east-1)

Type Signature

 fun (String, Region) -> CustomerGateway
Argument: cgwId

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

Type: String

Argument: region

The Region containing the target customer gateway.

Type: Region


A reference to the specified customer gateway.

Type: CustomerGateway



new CustomerGateway (Constructor)

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

Example usage:

import Fugue.AWS as AWS
import Fugue.AWS.EC2 as EC2

customerGw: EC2.CustomerGateway.new {
  region: AWS.Us-west-2,
  bgpAsn: 65123,
  ipAddress: "",
  tags: [AWS.tag("Name", "example-vpn")],

Type Signature

 fun { region: Region,
       vpnType: Optional<VpnGatewayType>,
       tags: Optional<List<Tag>>,
       bgpAsn: Int,
       ipAddress: String,
       resourceId: Optional<String> } -> CustomerGateway
Argument: region

The region in which to create the customer 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 customer gateway. *Mutable.

Type: Optional<List<Tag>>

Argument: bgpAsn

The BGP ASN for your device. Use a value in the private range, 64,512 to 65,534, if your device does not support BGP.

Type: Int

Argument: ipAddress

The IP address of the device. Must be a static, publicly routable address.

Type: String

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

Type: Optional<String>


a Fugue.Core.AWS.EC2.CustomerGateway value.

Type: CustomerGateway