| 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.CodeArtifact.DeleteDomain
Description
Deletes a domain. You cannot delete a domain that contains repositories. If you want to delete a domain with repositories, first delete its repositories.
Synopsis
- data DeleteDomain = DeleteDomain' {
- domainOwner :: Maybe Text
- domain :: Text
- newDeleteDomain :: Text -> DeleteDomain
- deleteDomain_domainOwner :: Lens' DeleteDomain (Maybe Text)
- deleteDomain_domain :: Lens' DeleteDomain Text
- data DeleteDomainResponse = DeleteDomainResponse' {}
- newDeleteDomainResponse :: Int -> DeleteDomainResponse
- deleteDomainResponse_domain :: Lens' DeleteDomainResponse (Maybe DomainDescription)
- deleteDomainResponse_httpStatus :: Lens' DeleteDomainResponse Int
Creating a Request
data DeleteDomain Source #
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_domainOwner - The 12-digit account number of the Amazon Web Services account that owns
the domain. It does not include dashes or spaces.
DeleteDomain, deleteDomain_domain - The name of the domain to delete.
Request Lenses
deleteDomain_domainOwner :: Lens' DeleteDomain (Maybe Text) Source #
The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.
deleteDomain_domain :: Lens' DeleteDomain Text Source #
The name of the domain to delete.
Destructuring the Response
data DeleteDomainResponse Source #
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:
DeleteDomain, deleteDomainResponse_domain - Contains information about the deleted domain after processing the
request.
$sel:httpStatus:DeleteDomainResponse', deleteDomainResponse_httpStatus - The response's http status code.
Response Lenses
deleteDomainResponse_domain :: Lens' DeleteDomainResponse (Maybe DomainDescription) Source #
Contains information about the deleted domain after processing the request.
deleteDomainResponse_httpStatus :: Lens' DeleteDomainResponse Int Source #
The response's http status code.