Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Deletes the specified certificate.
A certificate cannot be deleted if it has a policy attached to it or if its status is set to ACTIVE. To delete a certificate, first use the DetachPrincipalPolicy
API to detach all policies. Next, use the UpdateCertificate
API to set the certificate to the INACTIVE status.
Creating a Request
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:
dcForceDelete
- Forces a certificate request to be deleted.dcCertificateId
- The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)
data DeleteCertificate Source #
The input for the DeleteCertificate operation.
See: deleteCertificate
smart constructor.
Instances
Request Lenses
dcForceDelete :: Lens' DeleteCertificate (Maybe Bool) Source #
Forces a certificate request to be deleted.
dcCertificateId :: Lens' DeleteCertificate Text Source #
The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)
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.