interface VpnTunnelOption
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.EC2.VpnTunnelOption |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#VpnTunnelOption |
![]() | software.amazon.awscdk.services.ec2.VpnTunnelOption |
![]() | aws_cdk.aws_ec2.VpnTunnelOption |
![]() | aws-cdk-lib » aws_ec2 » VpnTunnelOption |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
declare const secretValue: cdk.SecretValue;
const vpnTunnelOption: ec2.VpnTunnelOption = {
preSharedKey: 'preSharedKey',
preSharedKeySecret: secretValue,
tunnelInsideCidr: 'tunnelInsideCidr',
};
Properties
Name | Type | Description |
---|---|---|
pre | string | The pre-shared key (PSK) to establish initial authentication between the virtual private gateway and customer gateway. |
pre | Secret | The pre-shared key (PSK) to establish initial authentication between the virtual private gateway and customer gateway. |
tunnel | string | The range of inside IP addresses for the tunnel. |
preSharedKey?
⚠️ Deprecated: Use preSharedKeySecret
instead
Type:
string
(optional, default: an Amazon generated pre-shared key)
The pre-shared key (PSK) to establish initial authentication between the virtual private gateway and customer gateway.
Allowed characters are
alphanumeric characters period .
and underscores _
. Must be between 8
and 64 characters in length and cannot start with zero (0).
preSharedKeySecret?
Type:
Secret
(optional, default: an Amazon generated pre-shared key)
The pre-shared key (PSK) to establish initial authentication between the virtual private gateway and customer gateway.
Allowed characters are
alphanumeric characters period .
and underscores _
. Must be between 8
and 64 characters in length and cannot start with zero (0).
tunnelInsideCidr?
Type:
string
(optional, default: an Amazon generated inside IP CIDR)
The range of inside IP addresses for the tunnel.
Any specified CIDR blocks must be unique across all VPN connections that use the same virtual private gateway. A size /30 CIDR block from the 169.254.0.0/16 range.