| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.OpenSearch.DeleteDomain
Description
Deletes an Amazon OpenSearch Service domain and all of its data. You can't recover a domain after you delete it.
Synopsis
- data DeleteDomain = DeleteDomain' {
- domainName :: Text
- newDeleteDomain :: Text -> DeleteDomain
- deleteDomain_domainName :: Lens' DeleteDomain Text
- data DeleteDomainResponse = DeleteDomainResponse' {}
- newDeleteDomainResponse :: Int -> DeleteDomainResponse
- deleteDomainResponse_domainStatus :: Lens' DeleteDomainResponse (Maybe DomainStatus)
- deleteDomainResponse_httpStatus :: Lens' DeleteDomainResponse Int
Creating a Request
data DeleteDomain Source #
Container for the parameters to the DeleteDomain operation.
See: newDeleteDomain smart constructor.
Constructors
| DeleteDomain' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> DeleteDomain |
Create a value of DeleteDomain with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
DeleteDomain, deleteDomain_domainName - The name of the domain you want to permanently delete.
Request Lenses
deleteDomain_domainName :: Lens' DeleteDomain Text Source #
The name of the domain you want to permanently delete.
Destructuring the Response
data DeleteDomainResponse Source #
The results of a DeleteDomain request. Contains the status of the
pending deletion, or a "domain not found" error if the domain and all
of its resources have been deleted.
See: newDeleteDomainResponse smart constructor.
Constructors
| DeleteDomainResponse' | |
Fields
| |
Instances
newDeleteDomainResponse Source #
Arguments
| :: Int | |
| -> DeleteDomainResponse |
Create a value of DeleteDomainResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:domainStatus:DeleteDomainResponse', deleteDomainResponse_domainStatus - The status of the domain being deleted.
$sel:httpStatus:DeleteDomainResponse', deleteDomainResponse_httpStatus - The response's http status code.
Response Lenses
deleteDomainResponse_domainStatus :: Lens' DeleteDomainResponse (Maybe DomainStatus) Source #
The status of the domain being deleted.
deleteDomainResponse_httpStatus :: Lens' DeleteDomainResponse Int Source #
The response's http status code.