interface VpnConnectionOptions
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.EC2.VpnConnectionOptions |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#VpnConnectionOptions |
![]() | software.amazon.awscdk.services.ec2.VpnConnectionOptions |
![]() | aws_cdk.aws_ec2.VpnConnectionOptions |
![]() | aws-cdk-lib » aws_ec2 » VpnConnectionOptions |
Example
// Across all tunnels in the account/region
const allDataOut = ec2.VpnConnection.metricAllTunnelDataOut();
// For a specific vpn connection
const vpnConnection = vpc.addVpnConnection('Dynamic', {
ip: '1.2.3.4'
});
const state = vpnConnection.metricTunnelState();
Properties
Name | Type | Description |
---|---|---|
ip | string | The ip address of the customer gateway. |
asn? | number | The ASN of the customer gateway. |
static | string[] | The static routes to be routed from the VPN gateway to the customer gateway. |
tunnel | Vpn [] | The tunnel options for the VPN connection. |
ip
Type:
string
The ip address of the customer gateway.
asn?
Type:
number
(optional, default: 65000)
The ASN of the customer gateway.
staticRoutes?
Type:
string[]
(optional, default: Dynamic routing (BGP))
The static routes to be routed from the VPN gateway to the customer gateway.
tunnelOptions?
Type:
Vpn
[]
(optional, default: Amazon generated tunnel options)
The tunnel options for the VPN connection.
At most two elements (one per tunnel). Duplicates not allowed.