amazonka-route53-1.4.5: 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

Deletes a hosted zone. Send a DELETE request to the /Amazon Route 53 API version hostedzonehosted zone ID resource.

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

Synopsis

Creating a Request

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:

  • dhzId - The ID of the hosted zone you want to delete.

data DeleteHostedZone #

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

See: deleteHostedZone smart constructor.

Instances

Eq DeleteHostedZone # 
Data DeleteHostedZone # 

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 # 
Show DeleteHostedZone # 
Generic DeleteHostedZone # 
Hashable DeleteHostedZone # 
NFData DeleteHostedZone # 

Methods

rnf :: DeleteHostedZone -> () #

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

Request Lenses

dhzId :: Lens' DeleteHostedZone ResourceId #

The ID of the hosted zone you want to delete.

Destructuring the Response

deleteHostedZoneResponse #

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 #

A complex type containing the response information for the request.

See: deleteHostedZoneResponse smart constructor.

Instances

Eq DeleteHostedZoneResponse # 
Data DeleteHostedZoneResponse # 

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 # 
Show DeleteHostedZoneResponse # 
Generic DeleteHostedZoneResponse # 
NFData DeleteHostedZoneResponse # 
type Rep DeleteHostedZoneResponse # 
type Rep DeleteHostedZoneResponse = D1 (MetaData "DeleteHostedZoneResponse" "Network.AWS.Route53.DeleteHostedZone" "amazonka-route53-1.4.5-1GBIEWLx4PAkG5NoOOGoJ" False) (C1 (MetaCons "DeleteHostedZoneResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_dhzrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)) (S1 (MetaSel (Just Symbol "_dhzrsChangeInfo") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ChangeInfo))))

Response Lenses

dhzrsResponseStatus :: Lens' DeleteHostedZoneResponse Int #

  • - | The response status code.

dhzrsChangeInfo :: Lens' DeleteHostedZoneResponse ChangeInfo #

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