VpnTunnelOption

class aws_cdk.aws_ec2.VpnTunnelOption(*, pre_shared_key=None, pre_shared_key_secret=None, tunnel_inside_cidr=None)

Bases: object

Parameters:
  • pre_shared_key (Optional[str]) – (deprecated) 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). Default: an Amazon generated pre-shared key

  • pre_shared_key_secret (Optional[SecretValue]) – 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). Default: an Amazon generated pre-shared key

  • tunnel_inside_cidr (Optional[str]) – 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. Default: an Amazon generated inside IP CIDR

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk
from aws_cdk import aws_ec2 as ec2

# secret_value: cdk.SecretValue

vpn_tunnel_option = ec2.VpnTunnelOption(
    pre_shared_key="preSharedKey",
    pre_shared_key_secret=secret_value,
    tunnel_inside_cidr="tunnelInsideCidr"
)

Attributes

pre_shared_key

(deprecated) 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).

Default:

an Amazon generated pre-shared key

Deprecated:

Use preSharedKeySecret instead

Stability:

deprecated

pre_shared_key_secret

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).

Default:

an Amazon generated pre-shared key

tunnel_inside_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.

Default:

an Amazon generated inside IP CIDR