Copyright | (c) 2013-2021 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 |
Deletes the specified certificate.
A certificate cannot be deleted if it has a policy or IoT thing attached to it or if its status is set to ACTIVE. To delete a certificate, first use the DetachPolicy action to detach all policies. Next, use the UpdateCertificate action to set the certificate to the INACTIVE status.
Requires permission to access the DeleteCertificate action.
Synopsis
- data DeleteCertificate = DeleteCertificate' {}
- newDeleteCertificate :: Text -> DeleteCertificate
- deleteCertificate_forceDelete :: Lens' DeleteCertificate (Maybe Bool)
- deleteCertificate_certificateId :: Lens' DeleteCertificate Text
- data DeleteCertificateResponse = DeleteCertificateResponse' {
- newDeleteCertificateResponse :: DeleteCertificateResponse
Creating a Request
data DeleteCertificate Source #
The input for the DeleteCertificate operation.
See: newDeleteCertificate
smart constructor.
DeleteCertificate' | |
|
Instances
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:
$sel:forceDelete:DeleteCertificate'
, deleteCertificate_forceDelete
- Forces the deletion of a certificate if it is inactive and is not
attached to an IoT thing.
$sel:certificateId:DeleteCertificate'
, deleteCertificate_certificateId
- The ID of the certificate. (The last part of the certificate ARN
contains the certificate ID.)
Request Lenses
deleteCertificate_forceDelete :: Lens' DeleteCertificate (Maybe Bool) Source #
Forces the deletion of a certificate if it is inactive and is not attached to an IoT thing.
deleteCertificate_certificateId :: Lens' DeleteCertificate Text Source #
The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)
Destructuring the Response
data DeleteCertificateResponse Source #
See: newDeleteCertificateResponse
smart constructor.
Instances
Eq DeleteCertificateResponse Source # | |
Defined in Amazonka.IoT.DeleteCertificate | |
Read DeleteCertificateResponse Source # | |
Show DeleteCertificateResponse Source # | |
Defined in Amazonka.IoT.DeleteCertificate showsPrec :: Int -> DeleteCertificateResponse -> ShowS # show :: DeleteCertificateResponse -> String # showList :: [DeleteCertificateResponse] -> ShowS # | |
Generic DeleteCertificateResponse Source # | |
Defined in Amazonka.IoT.DeleteCertificate type Rep DeleteCertificateResponse :: Type -> Type # | |
NFData DeleteCertificateResponse Source # | |
Defined in Amazonka.IoT.DeleteCertificate rnf :: DeleteCertificateResponse -> () # | |
type Rep DeleteCertificateResponse Source # | |
newDeleteCertificateResponse :: DeleteCertificateResponse Source #
Create a value of DeleteCertificateResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.