| Copyright | (c) 2013-2021 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
Amazonka.Route53Domains.RetrieveDomainAuthCode
Description
This operation returns the AuthCode for the domain. To transfer a domain to another registrar, you provide this value to the new registrar.
Synopsis
- data RetrieveDomainAuthCode = RetrieveDomainAuthCode' {
- domainName :: Text
- newRetrieveDomainAuthCode :: Text -> RetrieveDomainAuthCode
- retrieveDomainAuthCode_domainName :: Lens' RetrieveDomainAuthCode Text
- data RetrieveDomainAuthCodeResponse = RetrieveDomainAuthCodeResponse' {
- httpStatus :: Int
- authCode :: Sensitive Text
- newRetrieveDomainAuthCodeResponse :: Int -> Text -> RetrieveDomainAuthCodeResponse
- retrieveDomainAuthCodeResponse_httpStatus :: Lens' RetrieveDomainAuthCodeResponse Int
- retrieveDomainAuthCodeResponse_authCode :: Lens' RetrieveDomainAuthCodeResponse Text
Creating a Request
data RetrieveDomainAuthCode Source #
A request for the authorization code for the specified domain. To transfer a domain to another registrar, you provide this value to the new registrar.
See: newRetrieveDomainAuthCode smart constructor.
Constructors
| RetrieveDomainAuthCode' | |
Fields
| |
Instances
newRetrieveDomainAuthCode Source #
Create a value of RetrieveDomainAuthCode 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:
$sel:domainName:RetrieveDomainAuthCode', retrieveDomainAuthCode_domainName - The name of the domain that you want to get an authorization code for.
Request Lenses
retrieveDomainAuthCode_domainName :: Lens' RetrieveDomainAuthCode Text Source #
The name of the domain that you want to get an authorization code for.
Destructuring the Response
data RetrieveDomainAuthCodeResponse Source #
The RetrieveDomainAuthCode response includes the following element.
See: newRetrieveDomainAuthCodeResponse smart constructor.
Constructors
| RetrieveDomainAuthCodeResponse' | |
Fields
| |
Instances
newRetrieveDomainAuthCodeResponse Source #
Arguments
| :: Int | |
| -> Text | |
| -> RetrieveDomainAuthCodeResponse |
Create a value of RetrieveDomainAuthCodeResponse 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:
$sel:httpStatus:RetrieveDomainAuthCodeResponse', retrieveDomainAuthCodeResponse_httpStatus - The response's http status code.
$sel:authCode:RetrieveDomainAuthCodeResponse', retrieveDomainAuthCodeResponse_authCode - The authorization code for the domain.
Response Lenses
retrieveDomainAuthCodeResponse_httpStatus :: Lens' RetrieveDomainAuthCodeResponse Int Source #
The response's http status code.
retrieveDomainAuthCodeResponse_authCode :: Lens' RetrieveDomainAuthCodeResponse Text Source #
The authorization code for the domain.