| 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.Lightsail.DeleteCertificate
Description
Deletes an SSL/TLS certificate for your Amazon Lightsail content delivery network (CDN) distribution.
Certificates that are currently attached to a distribution cannot be
deleted. Use the DetachCertificateFromDistribution action to detach a
certificate from a distribution.
Synopsis
- data DeleteCertificate = DeleteCertificate' {}
- newDeleteCertificate :: Text -> DeleteCertificate
- deleteCertificate_certificateName :: Lens' DeleteCertificate Text
- data DeleteCertificateResponse = DeleteCertificateResponse' {
- operations :: Maybe [Operation]
- httpStatus :: Int
- newDeleteCertificateResponse :: Int -> DeleteCertificateResponse
- deleteCertificateResponse_operations :: Lens' DeleteCertificateResponse (Maybe [Operation])
- deleteCertificateResponse_httpStatus :: Lens' DeleteCertificateResponse Int
Creating a Request
data DeleteCertificate Source #
See: newDeleteCertificate smart constructor.
Constructors
| DeleteCertificate' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> DeleteCertificate |
Create a value of DeleteCertificate 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:
DeleteCertificate, deleteCertificate_certificateName - The name of the certificate to delete.
Use the GetCertificates action to get a list of certificate names that
you can specify.
Request Lenses
deleteCertificate_certificateName :: Lens' DeleteCertificate Text Source #
The name of the certificate to delete.
Use the GetCertificates action to get a list of certificate names that
you can specify.
Destructuring the Response
data DeleteCertificateResponse Source #
See: newDeleteCertificateResponse smart constructor.
Constructors
| DeleteCertificateResponse' | |
Fields
| |
Instances
newDeleteCertificateResponse Source #
Create a value of DeleteCertificateResponse 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:operations:DeleteCertificateResponse', deleteCertificateResponse_operations - An array of objects that describe the result of the action, such as the
status of the request, the timestamp of the request, and the resources
affected by the request.
$sel:httpStatus:DeleteCertificateResponse', deleteCertificateResponse_httpStatus - The response's http status code.
Response Lenses
deleteCertificateResponse_operations :: Lens' DeleteCertificateResponse (Maybe [Operation]) Source #
An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
deleteCertificateResponse_httpStatus :: Lens' DeleteCertificateResponse Int Source #
The response's http status code.