aws-cdk-lib.aws_ec2.VpnTunnelOption

interface VpnTunnelOption

LanguageType name
.NETAmazon.CDK.AWS.EC2.VpnTunnelOption
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsec2#VpnTunnelOption
Javasoftware.amazon.awscdk.services.ec2.VpnTunnelOption
Pythonaws_cdk.aws_ec2.VpnTunnelOption
TypeScript (source)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

NameTypeDescription
preSharedKey?⚠️stringThe pre-shared key (PSK) to establish initial authentication between the virtual private gateway and customer gateway.
preSharedKeySecret?SecretValueThe pre-shared key (PSK) to establish initial authentication between the virtual private gateway and customer gateway.
tunnelInsideCidr?stringThe 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: SecretValue (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.