Show / Hide Table of Contents

Class EnableVpnGatewayOptions

Options for the Vpc.enableVpnGateway() method.

Inheritance
object
EnableVpnGatewayOptions
Implements
IEnableVpnGatewayOptions
IVpnGatewayProps
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class EnableVpnGatewayOptions : IEnableVpnGatewayOptions, IVpnGatewayProps
Syntax (vb)
Public Class EnableVpnGatewayOptions 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;

            var 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",
                    Subnets = new [] { subnet },
                    SubnetType = SubnetType.PRIVATE_ISOLATED
                } }
            };

Synopsis

Constructors

EnableVpnGatewayOptions()

Options for the Vpc.enableVpnGateway() method.

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()

Options for the Vpc.enableVpnGateway() method.

public EnableVpnGatewayOptions()
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;

            var 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",
                    Subnets = new [] { subnet },
                    SubnetType = SubnetType.PRIVATE_ISOLATED
                } }
            };

Properties

AmazonSideAsn

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

public double? AmazonSideAsn { get; set; }
Property Value

double?

Remarks

Default: 65000

Type

Default type ipsec.1.

public string Type { get; set; }
Property Value

string

Remarks

ExampleMetadata: fixture=_generated

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