Skip to content
v2.274.0

VpnTunnelOption Struct ​

Example ​

ts
// 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 ​

preSharedKeystringpre_shared_keystrpreSharedKeyStringPreSharedKeystringPreSharedKey*stringdeprecated#
Use `preSharedKeySecret` instead

Default: an Amazon generated pre-shared key

Allowed characters are alphanumeric characters period . and underscores _. Must be between 8 and 64 characters in length and cannot start with zero (0).

preSharedKeySecretSecretValuepre_shared_key_secretSecretValuepreSharedKeySecretSecretValuePreSharedKeySecretSecretValuePreSharedKeySecretSecretValue#
The pre-shared key (PSK) to establish initial authentication between the virtual private gateway and customer gateway.

Default: an Amazon generated pre-shared key

Allowed characters are alphanumeric characters period . and underscores _. Must be between 8 and 64 characters in length and cannot start with zero (0).

tunnelInsideCidrstringtunnel_inside_cidrstrtunnelInsideCidrStringTunnelInsideCidrstringTunnelInsideCidr*string#
The range of inside IP addresses for the tunnel.

Default: an Amazon generated inside IP CIDR

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.