VpnTunnelOption

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

Bases: object

Parameters
  • pre_shared_key (Optional[str]) – The pre-shared key (PSK) to establish initial authentication between the virtual private gateway and customer gateway. Allowed characters are alphanumeric characters and ._. 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.aws_ec2 as ec2

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

Attributes

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 and ._. Must be between 8 and 64 characters in length and cannot start with zero (0).

Default

an Amazon generated pre-shared key

Return type

Optional[str]

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

Return type

Optional[str]