amazonka-route53-1.5.0: Amazon Route 53 SDK.

Copyright(c) 2013-2017 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.DeleteHostedZone

Contents

Description

Deletes a hosted zone.

Important: If the name servers for the hosted zone are associated with a domain and if you want to make the domain unavailable on the Internet, we recommend that you delete the name servers from the domain to prevent future DNS queries from possibly being misrouted. If the domain is registered with Amazon Route 53, see UpdateDomainNameservers . If the domain is registered with another registrar, use the method provided by the registrar to delete name servers for the domain.

Some domain registries don't allow you to remove all of the name servers for a domain. If the registry for your domain requires one or more name servers, we recommend that you delete the hosted zone only if you transfer DNS service to another service provider, and you replace the name servers for the domain with name servers from the new provider.

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

To verify that the hosted zone has been deleted, do one of the following:

  • Use the GetHostedZone action to request information about the hosted zone.
  • Use the ListHostedZones action to get a list of the hosted zones associated with the current AWS account.

Synopsis

Creating a Request

deleteHostedZone Source #

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 Source #

A request to delete a hosted zone.

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 # 
ToQuery DeleteHostedZone Source # 
ToPath DeleteHostedZone Source # 
ToHeaders DeleteHostedZone Source # 
type Rep DeleteHostedZone Source # 
type Rep DeleteHostedZone = D1 (MetaData "DeleteHostedZone" "Network.AWS.Route53.DeleteHostedZone" "amazonka-route53-1.5.0-A9em4xt2RK07uc01kiXLe0" True) (C1 (MetaCons "DeleteHostedZone'" PrefixI True) (S1 (MetaSel (Just Symbol "_dhzId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ResourceId)))
type Rs DeleteHostedZone Source # 

Request Lenses

dhzId :: Lens' DeleteHostedZone ResourceId 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:

  • dhzrsResponseStatus - -- | The response status code.
  • dhzrsChangeInfo - A complex type that contains the ID, the status, and the date and time of a request to delete a hosted zone.

data DeleteHostedZoneResponse Source #

A complex type that contains the response to a DeleteHostedZone 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.5.0-A9em4xt2RK07uc01kiXLe0" 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 a request to delete a hosted zone.