amazonka-route53-1.4.2: 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.DeleteHostedZone

Contents

Description

This action deletes a hosted zone. To delete a hosted zone, send a DELETE request to the '/Route 53 API version/hostedzone/hosted zone ID' resource.

For more information about deleting a hosted zone, see Deleting a Hosted Zone in the Amazon Route 53 Developer Guide.

You can delete a hosted zone only if there are no resource record sets other than the default SOA record and NS resource record sets. If your hosted zone contains other resource record sets, you must delete them before you can delete your hosted zone. If you try to delete a hosted zone that contains other resource record sets, Amazon Route 53 will deny your request with a HostedZoneNotEmpty error. For information about deleting records from your hosted zone, see ChangeResourceRecordSets.

Synopsis

Creating a Request

deleteHostedZone Source #

Arguments

:: Text

dhzId

-> DeleteHostedZone 

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

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

data DeleteHostedZone Source #

A complex type that contains information about the hosted zone that you want to delete.

See: deleteHostedZone smart constructor.

Instances

Eq DeleteHostedZone Source # 
Data DeleteHostedZone Source # 

Methods

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

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

toConstr :: DeleteHostedZone -> Constr #

dataTypeOf :: DeleteHostedZone -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteHostedZone Source # 
Show DeleteHostedZone Source # 
Generic DeleteHostedZone Source # 
Hashable DeleteHostedZone Source # 
NFData DeleteHostedZone Source # 

Methods

rnf :: DeleteHostedZone -> () #

AWSRequest DeleteHostedZone Source # 
ToPath DeleteHostedZone Source # 
ToHeaders DeleteHostedZone Source # 
ToQuery DeleteHostedZone Source # 
type Rep DeleteHostedZone Source # 
type Rep DeleteHostedZone = D1 (MetaData "DeleteHostedZone" "Network.AWS.Route53.DeleteHostedZone" "amazonka-route53-1.4.2-5wB4fBZ2k8UCgPOMIGXT9n" True) (C1 (MetaCons "DeleteHostedZone'" PrefixI True) (S1 (MetaSel (Just Symbol "_dhzId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs DeleteHostedZone Source # 

Request Lenses

dhzId :: Lens' DeleteHostedZone Text Source #

The ID of the hosted zone you want to delete.

Destructuring the Response

deleteHostedZoneResponse Source #

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

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

data DeleteHostedZoneResponse Source #

A complex type containing the response information for the request.

See: deleteHostedZoneResponse smart constructor.

Instances

Eq DeleteHostedZoneResponse Source # 
Data DeleteHostedZoneResponse Source # 

Methods

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

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

toConstr :: DeleteHostedZoneResponse -> Constr #

dataTypeOf :: DeleteHostedZoneResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteHostedZoneResponse Source # 
Show DeleteHostedZoneResponse Source # 
Generic DeleteHostedZoneResponse Source # 
NFData DeleteHostedZoneResponse Source # 
type Rep DeleteHostedZoneResponse Source # 
type Rep DeleteHostedZoneResponse = D1 (MetaData "DeleteHostedZoneResponse" "Network.AWS.Route53.DeleteHostedZone" "amazonka-route53-1.4.2-5wB4fBZ2k8UCgPOMIGXT9n" False) (C1 (MetaCons "DeleteHostedZoneResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_dhzrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)) (S1 (MetaSel (Just Symbol "_dhzrsChangeInfo") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ChangeInfo))))

Response Lenses

dhzrsChangeInfo :: Lens' DeleteHostedZoneResponse ChangeInfo Source #

A complex type that contains the ID, the status, and the date and time of your delete request.