amazonka-route53-1.6.0: Amazon Route 53 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.Route53.CreateHostedZone

Contents

Description

Creates a new public hosted zone, which you use to specify how the Domain Name System (DNS) routes traffic on the Internet for a domain, such as example.com, and its subdomains.

Important: You can't convert a public hosted zones to a private hosted zone or vice versa. Instead, you must create a new hosted zone with the same name and create new resource record sets.

For more information about charges for hosted zones, see Amazon Route 53 Pricing .

Note the following:

If you want to use the same name servers for multiple hosted zones, you can optionally associate a reusable delegation set with the hosted zone. See the DelegationSetId element.

  • If your domain is registered with a registrar other than Amazon Route 53, you must update the name servers with your registrar to make Amazon Route 53 your DNS service. For more information, see Configuring Amazon Route 53 as your DNS Service in the Amazon Route 53 Developer Guide .

When you submit a CreateHostedZone request, the initial status of the hosted zone is PENDING . This means that the NS and SOA records are not yet available on all Amazon Route 53 DNS servers. When the NS and SOA records are available, the status of the zone changes to INSYNC .

Synopsis

Creating a Request

createHostedZone Source #

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

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

  • chzDelegationSetId - If you want to associate a reusable delegation set with this hosted zone, the ID that Amazon Route 53 assigned to the reusable delegation set when you created it. For more information about reusable delegation sets, see CreateReusableDelegationSet .
  • chzVPC - (Private hosted zones only) A complex type that contains information about the Amazon VPC that you're associating with this hosted zone. You can specify only one Amazon VPC when you create a private hosted zone. To associate additional Amazon VPCs with the hosted zone, use AssociateVPCWithHostedZone after you create a hosted zone.
  • chzHostedZoneConfig - (Optional) A complex type that contains the following optional values: * For public and private hosted zones, an optional comment * For private hosted zones, an optional PrivateZone element If you don't specify a comment or the PrivateZone element, omit HostedZoneConfig and the other elements.
  • chzName - The name of the domain. For resource record types that include a domain name, specify a fully qualified domain name, for example, www.example.com . The trailing dot is optional; Amazon Route 53 assumes that the domain name is fully qualified. This means that Amazon Route 53 treats www.example.com (without a trailing dot) and www.example.com. (with a trailing dot) as identical. If you're creating a public hosted zone, this is the name you have registered with your DNS registrar. If your domain name is registered with a registrar other than Amazon Route 53, change the name servers for your domain to the set of NameServers that CreateHostedZone returns in DelegationSet .
  • chzCallerReference - A unique string that identifies the request and that allows failed CreateHostedZone requests to be retried without the risk of executing the operation twice. You must use a unique CallerReference string every time you submit a CreateHostedZone request. CallerReference can be any unique string, for example, a date/time stamp.

data CreateHostedZone Source #

A complex type that contains information about the request to create a hosted zone.

See: createHostedZone smart constructor.

Instances

Eq CreateHostedZone Source # 
Data CreateHostedZone Source # 

Methods

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

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

toConstr :: CreateHostedZone -> Constr #

dataTypeOf :: CreateHostedZone -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateHostedZone Source # 
Show CreateHostedZone Source # 
Generic CreateHostedZone Source # 
Hashable CreateHostedZone Source # 
NFData CreateHostedZone Source # 

Methods

rnf :: CreateHostedZone -> () #

AWSRequest CreateHostedZone Source # 
ToElement CreateHostedZone Source # 
ToXML CreateHostedZone Source # 
ToHeaders CreateHostedZone Source # 
ToPath CreateHostedZone Source # 
ToQuery CreateHostedZone Source # 
type Rep CreateHostedZone Source # 
type Rep CreateHostedZone = D1 * (MetaData "CreateHostedZone" "Network.AWS.Route53.CreateHostedZone" "amazonka-route53-1.6.0-Ak5sZypnFS3AFXHlAYIveI" False) (C1 * (MetaCons "CreateHostedZone'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_chzDelegationSetId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe ResourceId))) (S1 * (MetaSel (Just Symbol "_chzVPC") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe VPC)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_chzHostedZoneConfig") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe HostedZoneConfig))) ((:*:) * (S1 * (MetaSel (Just Symbol "_chzName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_chzCallerReference") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))))
type Rs CreateHostedZone Source # 

Request Lenses

chzDelegationSetId :: Lens' CreateHostedZone (Maybe ResourceId) Source #

If you want to associate a reusable delegation set with this hosted zone, the ID that Amazon Route 53 assigned to the reusable delegation set when you created it. For more information about reusable delegation sets, see CreateReusableDelegationSet .

chzVPC :: Lens' CreateHostedZone (Maybe VPC) Source #

(Private hosted zones only) A complex type that contains information about the Amazon VPC that you're associating with this hosted zone. You can specify only one Amazon VPC when you create a private hosted zone. To associate additional Amazon VPCs with the hosted zone, use AssociateVPCWithHostedZone after you create a hosted zone.

chzHostedZoneConfig :: Lens' CreateHostedZone (Maybe HostedZoneConfig) Source #

(Optional) A complex type that contains the following optional values: * For public and private hosted zones, an optional comment * For private hosted zones, an optional PrivateZone element If you don't specify a comment or the PrivateZone element, omit HostedZoneConfig and the other elements.

chzName :: Lens' CreateHostedZone Text Source #

The name of the domain. For resource record types that include a domain name, specify a fully qualified domain name, for example, www.example.com . The trailing dot is optional; Amazon Route 53 assumes that the domain name is fully qualified. This means that Amazon Route 53 treats www.example.com (without a trailing dot) and www.example.com. (with a trailing dot) as identical. If you're creating a public hosted zone, this is the name you have registered with your DNS registrar. If your domain name is registered with a registrar other than Amazon Route 53, change the name servers for your domain to the set of NameServers that CreateHostedZone returns in DelegationSet .

chzCallerReference :: Lens' CreateHostedZone Text Source #

A unique string that identifies the request and that allows failed CreateHostedZone requests to be retried without the risk of executing the operation twice. You must use a unique CallerReference string every time you submit a CreateHostedZone request. CallerReference can be any unique string, for example, a date/time stamp.

Destructuring the Response

createHostedZoneResponse Source #

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

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

  • chzrsVPC - A complex type that contains information about an Amazon VPC that you associated with this hosted zone.
  • chzrsResponseStatus - -- | The response status code.
  • chzrsHostedZone - A complex type that contains general information about the hosted zone.
  • chzrsChangeInfo - A complex type that contains information about the CreateHostedZone request.
  • chzrsDelegationSet - A complex type that describes the name servers for this hosted zone.
  • chzrsLocation - The unique URL representing the new hosted zone.

data CreateHostedZoneResponse Source #

A complex type containing the response information for the hosted zone.

See: createHostedZoneResponse smart constructor.

Instances

Eq CreateHostedZoneResponse Source # 
Data CreateHostedZoneResponse Source # 

Methods

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

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

toConstr :: CreateHostedZoneResponse -> Constr #

dataTypeOf :: CreateHostedZoneResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateHostedZoneResponse Source # 
Show CreateHostedZoneResponse Source # 
Generic CreateHostedZoneResponse Source # 
NFData CreateHostedZoneResponse Source # 
type Rep CreateHostedZoneResponse Source # 
type Rep CreateHostedZoneResponse = D1 * (MetaData "CreateHostedZoneResponse" "Network.AWS.Route53.CreateHostedZone" "amazonka-route53-1.6.0-Ak5sZypnFS3AFXHlAYIveI" False) (C1 * (MetaCons "CreateHostedZoneResponse'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_chzrsVPC") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe VPC))) ((:*:) * (S1 * (MetaSel (Just Symbol "_chzrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)) (S1 * (MetaSel (Just Symbol "_chzrsHostedZone") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * HostedZone)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_chzrsChangeInfo") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * ChangeInfo)) ((:*:) * (S1 * (MetaSel (Just Symbol "_chzrsDelegationSet") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * DelegationSet)) (S1 * (MetaSel (Just Symbol "_chzrsLocation") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))))

Response Lenses

chzrsVPC :: Lens' CreateHostedZoneResponse (Maybe VPC) Source #

A complex type that contains information about an Amazon VPC that you associated with this hosted zone.

chzrsHostedZone :: Lens' CreateHostedZoneResponse HostedZone Source #

A complex type that contains general information about the hosted zone.

chzrsChangeInfo :: Lens' CreateHostedZoneResponse ChangeInfo Source #

A complex type that contains information about the CreateHostedZone request.

chzrsDelegationSet :: Lens' CreateHostedZoneResponse DelegationSet Source #

A complex type that describes the name servers for this hosted zone.

chzrsLocation :: Lens' CreateHostedZoneResponse Text Source #

The unique URL representing the new hosted zone.