:doc:`drs <../../drs>` / Client / reverse_replication

*******************
reverse_replication
*******************



.. py:method:: drs.Client.reverse_replication(**kwargs)

  

  Start replication to origin / target region - applies only to protected instances that originated in EC2. For recovery instances on target region - starts replication back to origin region. For failback instances on origin region - starts replication to target region to re-protect them.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/drs-2020-02-26/ReverseReplication>`_  


  **Request Syntax**
  ::

    response = client.reverse_replication(
        recoveryInstanceID='string'
    )
    
  :type recoveryInstanceID: string
  :param recoveryInstanceID: **[REQUIRED]** 

    The ID of the Recovery Instance that we want to reverse the replication for.

    

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

    
    ::

      {
          'reversedDirectionSourceServerArn': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **reversedDirectionSourceServerArn** *(string) --* 

        ARN of created SourceServer.

        
  
  **Exceptions**
  
  *   :py:class:`drs.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`drs.Client.exceptions.InternalServerException`

  
  *   :py:class:`drs.Client.exceptions.ConflictException`

  
  *   :py:class:`drs.Client.exceptions.ThrottlingException`

  
  *   :py:class:`drs.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`drs.Client.exceptions.ValidationException`

  
  *   :py:class:`drs.Client.exceptions.UninitializedAccountException`

  