interface VPNGatewayV2Props
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.ec2.Alpha.VPNGatewayV2Props |
![]() | github.com/aws/aws-cdk-go/awsec2alpha/v2#VPNGatewayV2Props |
![]() | software.amazon.awscdk.services.ec2.alpha.VPNGatewayV2Props |
![]() | aws_cdk.aws_ec2_alpha.VPNGatewayV2Props |
![]() | @aws-cdk/aws-ec2-alpha ยป VPNGatewayV2Props |
Properties to define a VPN gateway.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as ec2_alpha from '@aws-cdk/aws-ec2-alpha';
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
declare const subnet: ec2.Subnet;
declare const subnetFilter: ec2.SubnetFilter;
declare const vpcV2: ec2_alpha.VpcV2;
const vPNGatewayV2Props: ec2_alpha.VPNGatewayV2Props = {
type: ec2.VpnConnectionType.IPSEC_1,
vpc: vpcV2,
// the properties below are optional
amazonSideAsn: 123,
vpnGatewayName: 'vpnGatewayName',
vpnRoutePropagation: [{
availabilityZones: ['availabilityZones'],
onePerAz: false,
subnetFilters: [subnetFilter],
subnetGroupName: 'subnetGroupName',
subnets: [subnet],
subnetType: ec2.SubnetType.PRIVATE_ISOLATED,
}],
};
Properties
Name | Type | Description |
---|---|---|
type | Vpn | The type of VPN connection the virtual private gateway supports. |
vpc | IVpc | The ID of the VPC for which to create the VPN gateway. |
amazon | number | The private Autonomous System Number (ASN) for the Amazon side of a BGP session. |
vpn | string | The resource name of the VPN gateway. |
vpn | Subnet [] | Subnets where the route propagation should be added. |
type
Type:
Vpn
The type of VPN connection the virtual private gateway supports.
vpc
Type:
IVpc
The ID of the VPC for which to create the VPN gateway.
amazonSideAsn?
Type:
number
(optional, default: no ASN set for BGP session)
The private Autonomous System Number (ASN) for the Amazon side of a BGP session.
vpnGatewayName?
Type:
string
(optional, default: resource provisioned without any name)
The resource name of the VPN gateway.
vpnRoutePropagation?
Type:
Subnet
[]
(optional, default: no propogation for routes)
Subnets where the route propagation should be added.