amazonka-route53-1.6.1: 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.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 # 
Instance details

Defined in Network.AWS.Route53.DeleteHostedZone

Data DeleteHostedZone Source # 
Instance details

Defined in Network.AWS.Route53.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 Source # 
Instance details

Defined in Network.AWS.Route53.DeleteHostedZone

Show DeleteHostedZone Source # 
Instance details

Defined in Network.AWS.Route53.DeleteHostedZone

Generic DeleteHostedZone Source # 
Instance details

Defined in Network.AWS.Route53.DeleteHostedZone

Associated Types

type Rep DeleteHostedZone :: Type -> Type #

Hashable DeleteHostedZone Source # 
Instance details

Defined in Network.AWS.Route53.DeleteHostedZone

AWSRequest DeleteHostedZone Source # 
Instance details

Defined in Network.AWS.Route53.DeleteHostedZone

Associated Types

type Rs DeleteHostedZone :: Type #

ToHeaders DeleteHostedZone Source # 
Instance details

Defined in Network.AWS.Route53.DeleteHostedZone

ToPath DeleteHostedZone Source # 
Instance details

Defined in Network.AWS.Route53.DeleteHostedZone

ToQuery DeleteHostedZone Source # 
Instance details

Defined in Network.AWS.Route53.DeleteHostedZone

NFData DeleteHostedZone Source # 
Instance details

Defined in Network.AWS.Route53.DeleteHostedZone

Methods

rnf :: DeleteHostedZone -> () #

type Rep DeleteHostedZone Source # 
Instance details

Defined in Network.AWS.Route53.DeleteHostedZone

type Rep DeleteHostedZone = D1 (MetaData "DeleteHostedZone" "Network.AWS.Route53.DeleteHostedZone" "amazonka-route53-1.6.1-FKj3w6bny4r4NCyL7bsSVl" True) (C1 (MetaCons "DeleteHostedZone'" PrefixI True) (S1 (MetaSel (Just "_dhzId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ResourceId)))
type Rs DeleteHostedZone Source # 
Instance details

Defined in Network.AWS.Route53.DeleteHostedZone

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 # 
Instance details

Defined in Network.AWS.Route53.DeleteHostedZone

Data DeleteHostedZoneResponse Source # 
Instance details

Defined in Network.AWS.Route53.DeleteHostedZone

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 # 
Instance details

Defined in Network.AWS.Route53.DeleteHostedZone

Show DeleteHostedZoneResponse Source # 
Instance details

Defined in Network.AWS.Route53.DeleteHostedZone

Generic DeleteHostedZoneResponse Source # 
Instance details

Defined in Network.AWS.Route53.DeleteHostedZone

Associated Types

type Rep DeleteHostedZoneResponse :: Type -> Type #

NFData DeleteHostedZoneResponse Source # 
Instance details

Defined in Network.AWS.Route53.DeleteHostedZone

type Rep DeleteHostedZoneResponse Source # 
Instance details

Defined in Network.AWS.Route53.DeleteHostedZone

type Rep DeleteHostedZoneResponse = D1 (MetaData "DeleteHostedZoneResponse" "Network.AWS.Route53.DeleteHostedZone" "amazonka-route53-1.6.1-FKj3w6bny4r4NCyL7bsSVl" False) (C1 (MetaCons "DeleteHostedZoneResponse'" PrefixI True) (S1 (MetaSel (Just "_dhzrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int) :*: S1 (MetaSel (Just "_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.