amazonka-iot-1.3.7: Amazon IoT SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.IoT.DeleteCertificate

Contents

Description

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 detach all policies using the DetachPrincipalPolicy API. Next use the UpdateCertificate API to set the certificate to the INACTIVE status.

See: AWS API Reference for DeleteCertificate.

Synopsis

Creating a Request

deleteCertificate Source

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:

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.