:doc:`EC2 <../../ec2>` / Client / create_vpn_connection_route

***************************
create_vpn_connection_route
***************************



.. py:method:: 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 <https://docs.aws.amazon.com/vpn/latest/s2svpn/VPC_VPN.html>`__ in the *Amazon Web Services Site-to-Site VPN User Guide*.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVpnConnectionRoute>`_  


  **Request Syntax**
  ::

    response = client.create_vpn_connection_route(
        DestinationCidrBlock='string',
        VpnConnectionId='string'
    )
    
  :type DestinationCidrBlock: string
  :param DestinationCidrBlock: **[REQUIRED]** 

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

    

  
  :type VpnConnectionId: string
  :param VpnConnectionId: **[REQUIRED]** 

    The ID of the VPN connection.

    

  
  
  :returns: None