amazonka-route53-1.0.1: Amazon Route 53 SDK.

Copyright(c) 2013-2015 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 '2013-04-01/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, Route 53 will deny your request with a HostedZoneNotEmpty error. For information about deleting records from your hosted zone, see ChangeResourceRecordSets.

See: AWS API Reference for DeleteHostedZone.

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:

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:

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.