amazonka-route53-1.4.3: Amazon Route 53 SDK.

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

Network.AWS.Route53.CreateHostedZone

Contents

Description

This action creates a new hosted zone.

To create a new hosted zone, send a POST request to the '/Route 53 API version/hostedzone' resource. The request body must include a document with a CreateHostedZoneRequest element. The response returns the CreateHostedZoneResponse element that contains metadata about the hosted zone.

Amazon Route 53 automatically creates a default SOA record and four NS records for the zone. The NS records in the hosted zone are the name servers you give your registrar to delegate your domain to. For more information about SOA and NS records, see NS and SOA Records that Amazon Route 53 Creates for a Hosted Zone in the Amazon Route 53 Developer Guide.

When you create a zone, its initial status is PENDING. This means that it is not yet available on all DNS servers. The status of the zone changes to INSYNC when the NS and SOA records are available on all Amazon Route 53 DNS servers.

When trying to create a hosted zone using a reusable delegation set, you could specify an optional DelegationSetId, and Route53 would assign those 4 NS records for the zone, instead of alloting a new one.

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:

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 # 
ToPath CreateHostedZone Source # 
ToHeaders CreateHostedZone Source # 
ToElement CreateHostedZone Source # 
ToXML CreateHostedZone Source # 
ToQuery CreateHostedZone Source # 
type Rep CreateHostedZone Source # 
type Rep CreateHostedZone = D1 (MetaData "CreateHostedZone" "Network.AWS.Route53.CreateHostedZone" "amazonka-route53-1.4.3-GVCZrM1VgYbI4WdWSABHKg" False) (C1 (MetaCons "CreateHostedZone'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_chzDelegationSetId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (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 Text) Source #

The delegation set id of the reusable delgation set whose NS records you want to assign to the new hosted zone.

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

The VPC that you want your hosted zone to be associated with. By providing this parameter, your newly created hosted cannot be resolved anywhere other than the given VPC.

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

A complex type that contains an optional comment about your hosted zone.

chzName :: Lens' CreateHostedZone Text Source #

The name of the domain. This must be a fully-specified domain, 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.

This is the name you have registered with your DNS registrar. You should ask your registrar to change the authoritative name servers for your domain to the set of NameServers elements returned 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 create a hosted zone. CallerReference can be any unique string; you might choose to use a string that identifies your project, such as DNSMigration_01.

Valid characters are any Unicode code points that are legal in an XML 1.0 document. The UTF-8 encoding of the value must be less than 128 bytes.

Destructuring the Response

data CreateHostedZoneResponse Source #

A complex type containing the response information for the new 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.4.3-GVCZrM1VgYbI4WdWSABHKg" 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

chzrsHostedZone :: Lens' CreateHostedZoneResponse HostedZone Source #

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

chzrsChangeInfo :: Lens' CreateHostedZoneResponse ChangeInfo Source #

A complex type that contains information about the request to create a hosted zone. This includes an ID that you use when you call the GetChange action to get the current status of the change request.

chzrsDelegationSet :: Lens' CreateHostedZoneResponse DelegationSet Source #

A complex type that contains name server information.

chzrsLocation :: Lens' CreateHostedZoneResponse Text Source #

The unique URL representing the new hosted zone.