- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
AcceptDomainTransferFromAnotherAwsAccountCommand
Accepts the transfer of a domain from another Amazon Web Services account to the currentAmazon Web Services account. You initiate a transfer between Amazon Web Services accounts using TransferDomainToAnotherAwsAccount .
If you use the CLI command at accept-domain-transfer-from-another-aws-account , use JSON format as input instead of text because otherwise CLI will throw an error from domain transfer input that includes single quotes.
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
.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { Route53DomainsClient, AcceptDomainTransferFromAnotherAwsAccountCommand } from "@aws-sdk/client-route-53-domains"; // ES Modules import
// const { Route53DomainsClient, AcceptDomainTransferFromAnotherAwsAccountCommand } = require("@aws-sdk/client-route-53-domains"); // CommonJS import
const client = new Route53DomainsClient(config);
const input = { // AcceptDomainTransferFromAnotherAwsAccountRequest
DomainName: "STRING_VALUE", // required
Password: "STRING_VALUE", // required
};
const command = new AcceptDomainTransferFromAnotherAwsAccountCommand(input);
const response = await client.send(command);
// { // AcceptDomainTransferFromAnotherAwsAccountResponse
// OperationId: "STRING_VALUE",
// };
AcceptDomainTransferFromAnotherAwsAccountCommand Input
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
DomainName Required | string | undefined | The name of the domain that was specified when another Amazon Web Services account submitted a TransferDomainToAnotherAwsAccount request. |
Password Required | string | undefined | The password that was returned by the TransferDomainToAnotherAwsAccount request. |
AcceptDomainTransferFromAnotherAwsAccountCommand Output
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
OperationId | string | undefined | Identifier for tracking the progress of the request. To query the operation status, use GetOperationDetail . |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
DomainLimitExceeded | client | The number of domains has exceeded the allowed threshold for the account. |
InvalidInput | client | The requested item is not acceptable. For example, for APIs that accept a domain name, the request might specify a domain name that doesn't belong to the account that submitted the request. For |
OperationLimitExceeded | client | The number of operations or jobs running exceeded the allowed threshold for the account. |
UnsupportedTLD | client | Amazon Route 53 does not support this top-level domain (TLD). |
Route53DomainsServiceException | Base exception class for all service exceptions from Route53Domains service. |