:doc:`Route53Domains <../../route53domains>` / Client / cancel_domain_transfer_to_another_aws_account

*********************************************
cancel_domain_transfer_to_another_aws_account
*********************************************



.. py:method:: Route53Domains.Client.cancel_domain_transfer_to_another_aws_account(**kwargs)

  

  Cancels the transfer of a domain from the current Amazon Web Services account to another Amazon Web Services account. You initiate a transfer betweenAmazon Web Services accounts using `TransferDomainToAnotherAwsAccount <https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_TransferDomainToAnotherAwsAccount.html>`__.

   

  .. warning::

     

    You must cancel the transfer before the other Amazon Web Services account accepts the transfer using `AcceptDomainTransferFromAnotherAwsAccount <https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_AcceptDomainTransferFromAnotherAwsAccount.html>`__.

     

   

  Use either `ListOperations <https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_ListOperations.html>`__ or `GetOperationDetail <https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html>`__ to determine whether the operation succeeded. `GetOperationDetail <https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html>`__ provides additional information, for example, ``Domain Transfer from Aws Account 111122223333 has been cancelled``.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/CancelDomainTransferToAnotherAwsAccount>`_  


  **Request Syntax**
  ::

    response = client.cancel_domain_transfer_to_another_aws_account(
        DomainName='string'
    )
    
  :type DomainName: string
  :param DomainName: **[REQUIRED]** 

    The name of the domain for which you want to cancel the transfer to another Amazon Web Services account.

    

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

    
    ::

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

    

    - *(dict) --* 

      The ``CancelDomainTransferToAnotherAwsAccount`` response includes the following element.

      
      

      - **OperationId** *(string) --* 

        The identifier that ``TransferDomainToAnotherAwsAccount`` returned to track the progress of the request. Because the transfer request was canceled, the value is no longer valid, and you can't use ``GetOperationDetail`` to query the operation status.

        
  
  **Exceptions**
  
  *   :py:class:`Route53Domains.Client.exceptions.InvalidInput`

  
  *   :py:class:`Route53Domains.Client.exceptions.OperationLimitExceeded`

  
  *   :py:class:`Route53Domains.Client.exceptions.UnsupportedTLD`

  