amazonka-route53-domains-1.6.0: Amazon Route 53 Domains SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.Route53Domains.RegisterDomain

Contents

Description

This operation registers a domain. Domains are registered either by Amazon Registrar (for .com, .net, and .org domains) or by our registrar associate, Gandi (for all other domains). For some top-level domains (TLDs), this operation requires extra parameters.

When you register a domain, Amazon Route 53 does the following:

  • Creates a Amazon Route 53 hosted zone that has the same name as the domain. Amazon Route 53 assigns four name servers to your hosted zone and automatically updates your domain registration with the names of these name servers.
  • Enables autorenew, so your domain registration will renew automatically each year. We'll notify you in advance of the renewal date so you can choose whether to renew the registration.
  • Optionally enables privacy protection, so WHOIS queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you don't enable privacy protection, WHOIS queries return the information that you entered for the registrant, admin, and tech contacts.
  • If registration is successful, returns an operation ID that you can use to track the progress and completion of the action. If the request is not completed successfully, the domain registrant is notified by email.
  • Charges your AWS account an amount based on the top-level domain. For more information, see Amazon Route 53 Pricing .

Synopsis

Creating a Request

registerDomain Source #

Creates a value of RegisterDomain with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • rPrivacyProtectTechContact - Whether you want to conceal contact information from WHOIS queries. If you specify true , WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false , WHOIS queries return the information that you entered for the technical contact. Default: true
  • rPrivacyProtectRegistrantContact - Whether you want to conceal contact information from WHOIS queries. If you specify true , WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false , WHOIS queries return the information that you entered for the registrant contact (the domain owner). Default: true
  • rAutoRenew - Indicates whether the domain will be automatically renewed (true ) or not (false ). Autorenewal only takes effect after the account is charged. Default: true
  • rPrivacyProtectAdminContact - Whether you want to conceal contact information from WHOIS queries. If you specify true , WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false , WHOIS queries return the information that you entered for the admin contact. Default: true
  • rIdNLangCode - Reserved for future use.
  • rDomainName - The domain name that you want to register. Constraints: The domain name can contain only the letters a through z, the numbers 0 through 9, and hyphen (-). Internationalized Domain Names are not supported.
  • rDurationInYears - The number of years that you want to register the domain for. Domains are registered for a minimum of one year. The maximum period depends on the top-level domain. For the range of valid values for your domain, see Domains that You Can Register with Amazon Route 53 in the Amazon Route 53 Developer Guide . Default: 1
  • rAdminContact - Provides detailed contact information.
  • rRegistrantContact - Provides detailed contact information.
  • rTechContact - Provides detailed contact information.

data RegisterDomain Source #

The RegisterDomain request includes the following elements.

See: registerDomain smart constructor.

Instances

Eq RegisterDomain Source # 
Data RegisterDomain Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RegisterDomain -> c RegisterDomain #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RegisterDomain #

toConstr :: RegisterDomain -> Constr #

dataTypeOf :: RegisterDomain -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c RegisterDomain) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RegisterDomain) #

gmapT :: (forall b. Data b => b -> b) -> RegisterDomain -> RegisterDomain #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RegisterDomain -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RegisterDomain -> r #

gmapQ :: (forall d. Data d => d -> u) -> RegisterDomain -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> RegisterDomain -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RegisterDomain -> m RegisterDomain #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RegisterDomain -> m RegisterDomain #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RegisterDomain -> m RegisterDomain #

Show RegisterDomain Source # 
Generic RegisterDomain Source # 

Associated Types

type Rep RegisterDomain :: * -> * #

Hashable RegisterDomain Source # 
ToJSON RegisterDomain Source # 
NFData RegisterDomain Source # 

Methods

rnf :: RegisterDomain -> () #

AWSRequest RegisterDomain Source # 
ToHeaders RegisterDomain Source # 
ToPath RegisterDomain Source # 
ToQuery RegisterDomain Source # 
type Rep RegisterDomain Source # 
type Rep RegisterDomain = D1 * (MetaData "RegisterDomain" "Network.AWS.Route53Domains.RegisterDomain" "amazonka-route53-domains-1.6.0-DMj3MRpMzLoGzgJ257wZEh" False) (C1 * (MetaCons "RegisterDomain'" PrefixI True) ((:*:) * ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_rPrivacyProtectTechContact") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Bool))) (S1 * (MetaSel (Just Symbol "_rPrivacyProtectRegistrantContact") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Bool)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_rAutoRenew") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Bool))) ((:*:) * (S1 * (MetaSel (Just Symbol "_rPrivacyProtectAdminContact") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Bool))) (S1 * (MetaSel (Just Symbol "_rIdNLangCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_rDomainName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_rDurationInYears") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Nat))) ((:*:) * (S1 * (MetaSel (Just Symbol "_rAdminContact") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Sensitive ContactDetail))) ((:*:) * (S1 * (MetaSel (Just Symbol "_rRegistrantContact") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Sensitive ContactDetail))) (S1 * (MetaSel (Just Symbol "_rTechContact") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Sensitive ContactDetail))))))))
type Rs RegisterDomain Source # 

Request Lenses

rPrivacyProtectTechContact :: Lens' RegisterDomain (Maybe Bool) Source #

Whether you want to conceal contact information from WHOIS queries. If you specify true , WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false , WHOIS queries return the information that you entered for the technical contact. Default: true

rPrivacyProtectRegistrantContact :: Lens' RegisterDomain (Maybe Bool) Source #

Whether you want to conceal contact information from WHOIS queries. If you specify true , WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false , WHOIS queries return the information that you entered for the registrant contact (the domain owner). Default: true

rAutoRenew :: Lens' RegisterDomain (Maybe Bool) Source #

Indicates whether the domain will be automatically renewed (true ) or not (false ). Autorenewal only takes effect after the account is charged. Default: true

rPrivacyProtectAdminContact :: Lens' RegisterDomain (Maybe Bool) Source #

Whether you want to conceal contact information from WHOIS queries. If you specify true , WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify false , WHOIS queries return the information that you entered for the admin contact. Default: true

rIdNLangCode :: Lens' RegisterDomain (Maybe Text) Source #

Reserved for future use.

rDomainName :: Lens' RegisterDomain Text Source #

The domain name that you want to register. Constraints: The domain name can contain only the letters a through z, the numbers 0 through 9, and hyphen (-). Internationalized Domain Names are not supported.

rDurationInYears :: Lens' RegisterDomain Natural Source #

The number of years that you want to register the domain for. Domains are registered for a minimum of one year. The maximum period depends on the top-level domain. For the range of valid values for your domain, see Domains that You Can Register with Amazon Route 53 in the Amazon Route 53 Developer Guide . Default: 1

rAdminContact :: Lens' RegisterDomain ContactDetail Source #

Provides detailed contact information.

rRegistrantContact :: Lens' RegisterDomain ContactDetail Source #

Provides detailed contact information.

rTechContact :: Lens' RegisterDomain ContactDetail Source #

Provides detailed contact information.

Destructuring the Response

registerDomainResponse Source #

Creates a value of RegisterDomainResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • rdrsResponseStatus - -- | The response status code.
  • rdrsOperationId - Identifier for tracking the progress of the request. To use this ID to query the operation status, use GetOperationDetail .

data RegisterDomainResponse Source #

The RegisterDomain response includes the following element.

See: registerDomainResponse smart constructor.

Instances

Eq RegisterDomainResponse Source # 
Data RegisterDomainResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RegisterDomainResponse -> c RegisterDomainResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RegisterDomainResponse #

toConstr :: RegisterDomainResponse -> Constr #

dataTypeOf :: RegisterDomainResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c RegisterDomainResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RegisterDomainResponse) #

gmapT :: (forall b. Data b => b -> b) -> RegisterDomainResponse -> RegisterDomainResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RegisterDomainResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RegisterDomainResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> RegisterDomainResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> RegisterDomainResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RegisterDomainResponse -> m RegisterDomainResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RegisterDomainResponse -> m RegisterDomainResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RegisterDomainResponse -> m RegisterDomainResponse #

Read RegisterDomainResponse Source # 
Show RegisterDomainResponse Source # 
Generic RegisterDomainResponse Source # 
NFData RegisterDomainResponse Source # 

Methods

rnf :: RegisterDomainResponse -> () #

type Rep RegisterDomainResponse Source # 
type Rep RegisterDomainResponse = D1 * (MetaData "RegisterDomainResponse" "Network.AWS.Route53Domains.RegisterDomain" "amazonka-route53-domains-1.6.0-DMj3MRpMzLoGzgJ257wZEh" False) (C1 * (MetaCons "RegisterDomainResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_rdrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)) (S1 * (MetaSel (Just Symbol "_rdrsOperationId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))

Response Lenses

rdrsResponseStatus :: Lens' RegisterDomainResponse Int Source #

  • - | The response status code.

rdrsOperationId :: Lens' RegisterDomainResponse Text Source #

Identifier for tracking the progress of the request. To use this ID to query the operation status, use GetOperationDetail .