cancel_domain_transfer_to_another_aws_account

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.

Warning

You must cancel the transfer before the other Amazon Web Services account accepts the transfer using AcceptDomainTransferFromAnotherAwsAccount.

Use either ListOperations or GetOperationDetail to determine whether the operation succeeded. GetOperationDetail provides additional information, for example, Domain Transfer from Aws Account 111122223333 has been cancelled .

See also: AWS API Documentation

Request Syntax

response = client.cancel_domain_transfer_to_another_aws_account(
    DomainName='string'
)
Parameters
DomainName (string) --

[REQUIRED]

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

Return type
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

  • Route53Domains.Client.exceptions.InvalidInput
  • Route53Domains.Client.exceptions.OperationLimitExceeded
  • Route53Domains.Client.exceptions.UnsupportedTLD