EC2 / Client / create_vpn_connection_route

create_vpn_connection_route#

EC2.Client.create_vpn_connection_route(**kwargs)#

Creates a static route associated with a VPN connection between an existing virtual private gateway and a VPN customer gateway. The static route allows traffic to be routed from the virtual private gateway to the VPN customer gateway.

For more information, see Amazon Web Services Site-to-Site VPN in the Amazon Web Services Site-to-Site VPN User Guide.

See also: AWS API Documentation

Request Syntax

response = client.create_vpn_connection_route(
    DestinationCidrBlock='string',
    VpnConnectionId='string'
)
Parameters:
  • DestinationCidrBlock (string) –

    [REQUIRED]

    The CIDR block associated with the local subnet of the customer network.

  • VpnConnectionId (string) –

    [REQUIRED]

    The ID of the VPN connection.

Returns:

None