| Copyright | (c) 2013-2015 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 |
Network.AWS.IoT.DeleteCertificate
Description
Deletes the specified certificate.
A certificate cannot be deleted if it has a policy attached to it. To delete a certificate, first detach all policies using the DetachPrincipalPolicy operation.
In addition, a certificate cannot be deleted if it is in ACTIVE status. To delete a certificate, first change the status to INACTIVE using the UpdateCertificate operation.
See: AWS API Reference for DeleteCertificate.
Creating a Request
Arguments
| :: Text | |
| -> DeleteCertificate |
Creates a value of DeleteCertificate with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DeleteCertificate Source
The input for the DeleteCertificate operation.
See: deleteCertificate smart constructor.
Instances
Request Lenses
dcCertificateId :: Lens' DeleteCertificate Text Source
The ID of the certificate.
Destructuring the Response
deleteCertificateResponse :: DeleteCertificateResponse Source
Creates a value of DeleteCertificateResponse with the minimum fields required to make a request.
data DeleteCertificateResponse Source
See: deleteCertificateResponse smart constructor.