Fugue.AWS.EC2.VpnGateway

Table of Contents

Module Members

new

(Function)

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: "10.42.0.0/16",
  subnets: [
    (AWS.A, "10.42.10.0/24"),
  ],
}

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>

Returns:

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

Type: VpnGateway