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

******************
replace_vpn_tunnel
******************



.. py:method:: EC2.Client.replace_vpn_tunnel(**kwargs)

  

  Trigger replacement of specified VPN tunnel.

  

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


  **Request Syntax**
  ::

    response = client.replace_vpn_tunnel(
        VpnConnectionId='string',
        VpnTunnelOutsideIpAddress='string',
        ApplyPendingMaintenance=True|False,
        DryRun=True|False
    )
    
  :type VpnConnectionId: string
  :param VpnConnectionId: **[REQUIRED]** 

    The ID of the Site-to-Site VPN connection.

    

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

    The external IP address of the VPN tunnel.

    

  
  :type ApplyPendingMaintenance: boolean
  :param ApplyPendingMaintenance: 

    Trigger pending tunnel endpoint maintenance.

    

  
  :type DryRun: boolean
  :param DryRun: 

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is ``DryRunOperation``. Otherwise, it is ``UnauthorizedOperation``.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'Return': True|False
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Return** *(boolean) --* 

        Confirmation of replace tunnel operation.

        
  