Show / Hide Table of Contents

Class EnableVpnGatewayOptions

Options for the Vpc.enableVpnGateway() method.

Inheritance
System.Object
EnableVpnGatewayOptions
Implements
IEnableVpnGatewayOptions
IVpnGatewayProps
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.AWS.EC2.dll
Syntax (csharp)
public class EnableVpnGatewayOptions : Object, IEnableVpnGatewayOptions, IVpnGatewayProps
Syntax (vb)
Public Class EnableVpnGatewayOptions
    Inherits Object
    Implements IEnableVpnGatewayOptions, IVpnGatewayProps
Remarks

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;

Subnet subnet;
SubnetFilter subnetFilter;

EnableVpnGatewayOptions enableVpnGatewayOptions = new EnableVpnGatewayOptions {
    Type = "type",

    // the properties below are optional
    AmazonSideAsn = 123,
    VpnRoutePropagation = new [] { new SubnetSelection {
        AvailabilityZones = new [] { "availabilityZones" },
        OnePerAz = false,
        SubnetFilters = new [] { subnetFilter },
        SubnetGroupName = "subnetGroupName",
        SubnetName = "subnetName",
        Subnets = new [] { subnet },
        SubnetType = SubnetType.ISOLATED
    } }
};

Synopsis

Constructors

EnableVpnGatewayOptions()

Properties

AmazonSideAsn

Explicitly specify an Asn or let aws pick an Asn for you.

Type

Default type ipsec.1.

VpnRoutePropagation

Provide an array of subnets where the route propagation should be added.

Constructors

EnableVpnGatewayOptions()

public EnableVpnGatewayOptions()

Properties

AmazonSideAsn

Explicitly specify an Asn or let aws pick an Asn for you.

public Nullable<double> AmazonSideAsn { get; set; }
Property Value

System.Nullable<System.Double>

Remarks

Default: 65000

Type

Default type ipsec.1.

public string Type { get; set; }
Property Value

System.String

VpnRoutePropagation

Provide an array of subnets where the route propagation should be added.

public ISubnetSelection[] VpnRoutePropagation { get; set; }
Property Value

ISubnetSelection[]

Remarks

Default: noPropagation

Implements

IEnableVpnGatewayOptions
IVpnGatewayProps
Back to top Generated by DocFX