Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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
.
- deleteHostedZone :: ResourceId -> DeleteHostedZone
- data DeleteHostedZone
- dhzId :: Lens' DeleteHostedZone ResourceId
- deleteHostedZoneResponse :: Int -> ChangeInfo -> DeleteHostedZoneResponse
- data DeleteHostedZoneResponse
- dhzrsResponseStatus :: Lens' DeleteHostedZoneResponse Int
- dhzrsChangeInfo :: Lens' DeleteHostedZoneResponse ChangeInfo
Creating a Request
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 complex type that contains information about the hosted zone that you want to delete.
See: deleteHostedZone
smart constructor.
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 your delete request.
data DeleteHostedZoneResponse Source #
A complex type containing the response information for the request.
See: deleteHostedZoneResponse
smart constructor.
Response Lenses
dhzrsResponseStatus :: Lens' DeleteHostedZoneResponse Int Source #
- - | The response status code.
dhzrsChangeInfo :: Lens' DeleteHostedZoneResponse ChangeInfo Source #
A complex type that contains the ID, the status, and the date and time of your delete request.