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

***********************************************
reject_domain_transfer_from_another_aws_account
***********************************************



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

  

  Rejects the transfer of a domain from another Amazon Web Services account to the current 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>`__.

   

  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/RejectDomainTransferFromAnotherAwsAccount>`_  


  **Request Syntax**
  ::

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

    The name of the domain that was specified when another Amazon Web Services account submitted a `TransferDomainToAnotherAwsAccount <https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_TransferDomainToAnotherAwsAccount.html>`__ request.

    

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

    
    ::

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

    

    - *(dict) --* 

      The RejectDomainTransferFromAnotherAwsAccount response includes the following element.

      
      

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

        The identifier that ``TransferDomainToAnotherAwsAccount`` returned to track the progress of the request. Because the transfer request was rejected, 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`

  