Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Transfers a domain from the current Amazon Web Services account to another Amazon Web Services account. Note the following:
- The Amazon Web Services account that you're transferring the domain to must accept the transfer. If the other account doesn't accept the transfer within 3 days, we cancel the transfer. See AcceptDomainTransferFromAnotherAwsAccount.
- You can cancel the transfer before the other account accepts it. See CancelDomainTransferToAnotherAwsAccount.
- The other account can reject the transfer. See RejectDomainTransferFromAnotherAwsAccount.
When you transfer a domain from one Amazon Web Services account to another, Route 53 doesn't transfer the hosted zone that is associated with the domain. DNS resolution isn't affected if the domain and the hosted zone are owned by separate accounts, so transferring the hosted zone is optional. For information about transferring the hosted zone to another Amazon Web Services account, see Migrating a Hosted Zone to a Different Amazon Web Services Account in the Amazon Route 53 Developer Guide.
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
.
Synopsis
- data TransferDomainToAnotherAwsAccount = TransferDomainToAnotherAwsAccount' {
- domainName :: Text
- accountId :: Text
- newTransferDomainToAnotherAwsAccount :: Text -> Text -> TransferDomainToAnotherAwsAccount
- transferDomainToAnotherAwsAccount_domainName :: Lens' TransferDomainToAnotherAwsAccount Text
- transferDomainToAnotherAwsAccount_accountId :: Lens' TransferDomainToAnotherAwsAccount Text
- data TransferDomainToAnotherAwsAccountResponse = TransferDomainToAnotherAwsAccountResponse' {
- operationId :: Maybe Text
- password :: Maybe Text
- httpStatus :: Int
- newTransferDomainToAnotherAwsAccountResponse :: Int -> TransferDomainToAnotherAwsAccountResponse
- transferDomainToAnotherAwsAccountResponse_operationId :: Lens' TransferDomainToAnotherAwsAccountResponse (Maybe Text)
- transferDomainToAnotherAwsAccountResponse_password :: Lens' TransferDomainToAnotherAwsAccountResponse (Maybe Text)
- transferDomainToAnotherAwsAccountResponse_httpStatus :: Lens' TransferDomainToAnotherAwsAccountResponse Int
Creating a Request
data TransferDomainToAnotherAwsAccount Source #
The TransferDomainToAnotherAwsAccount request includes the following elements.
See: newTransferDomainToAnotherAwsAccount
smart constructor.
TransferDomainToAnotherAwsAccount' | |
|
Instances
newTransferDomainToAnotherAwsAccount Source #
Create a value of TransferDomainToAnotherAwsAccount
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
TransferDomainToAnotherAwsAccount
, transferDomainToAnotherAwsAccount_domainName
- The name of the domain that you want to transfer from the current Amazon
Web Services account to another account.
$sel:accountId:TransferDomainToAnotherAwsAccount'
, transferDomainToAnotherAwsAccount_accountId
- The account ID of the Amazon Web Services account that you want to
transfer the domain to, for example, 111122223333
.
Request Lenses
transferDomainToAnotherAwsAccount_domainName :: Lens' TransferDomainToAnotherAwsAccount Text Source #
The name of the domain that you want to transfer from the current Amazon Web Services account to another account.
transferDomainToAnotherAwsAccount_accountId :: Lens' TransferDomainToAnotherAwsAccount Text Source #
The account ID of the Amazon Web Services account that you want to
transfer the domain to, for example, 111122223333
.
Destructuring the Response
data TransferDomainToAnotherAwsAccountResponse Source #
The TransferDomainToAnotherAwsAccount
response includes the following
elements.
See: newTransferDomainToAnotherAwsAccountResponse
smart constructor.
TransferDomainToAnotherAwsAccountResponse' | |
|
Instances
newTransferDomainToAnotherAwsAccountResponse Source #
Create a value of TransferDomainToAnotherAwsAccountResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
TransferDomainToAnotherAwsAccountResponse
, transferDomainToAnotherAwsAccountResponse_operationId
- Identifier for tracking the progress of the request. To query the
operation status, use
GetOperationDetail.
$sel:password:TransferDomainToAnotherAwsAccountResponse'
, transferDomainToAnotherAwsAccountResponse_password
- To finish transferring a domain to another Amazon Web Services account,
the account that the domain is being transferred to must submit an
AcceptDomainTransferFromAnotherAwsAccount
request. The request must include the value of the Password
element
that was returned in the TransferDomainToAnotherAwsAccount
response.
$sel:httpStatus:TransferDomainToAnotherAwsAccountResponse'
, transferDomainToAnotherAwsAccountResponse_httpStatus
- The response's http status code.
Response Lenses
transferDomainToAnotherAwsAccountResponse_operationId :: Lens' TransferDomainToAnotherAwsAccountResponse (Maybe Text) Source #
Identifier for tracking the progress of the request. To query the operation status, use GetOperationDetail.
transferDomainToAnotherAwsAccountResponse_password :: Lens' TransferDomainToAnotherAwsAccountResponse (Maybe Text) Source #
To finish transferring a domain to another Amazon Web Services account,
the account that the domain is being transferred to must submit an
AcceptDomainTransferFromAnotherAwsAccount
request. The request must include the value of the Password
element
that was returned in the TransferDomainToAnotherAwsAccount
response.
transferDomainToAnotherAwsAccountResponse_httpStatus :: Lens' TransferDomainToAnotherAwsAccountResponse Int Source #
The response's http status code.