amazonka-iot-1.4.0: Amazon IoT SDK.

Copyright(c) 2013-2016 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.UpdateCertificate

Contents

Description

Updates the status of the specified certificate. This operation is idempotent.

Moving a certificate from the ACTIVE state (including REVOKED) will not disconnect currently connected devices, but these devices will be unable to reconnect.

The ACTIVE state is required to authenticate devices connecting to AWS IoT using a certificate.

Synopsis

Creating a Request

updateCertificate Source

Creates a value of UpdateCertificate with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

ucCertificateId :: Lens' UpdateCertificate Text Source

The ID of the certificate.

ucNewStatus :: Lens' UpdateCertificate CertificateStatus Source

The new status.

Note: Setting the status to PENDING_TRANSFER will result in an exception being thrown. PENDING_TRANSFER is a status used internally by AWS IoT. It is not intended for developer use.

Destructuring the Response

updateCertificateResponse :: UpdateCertificateResponse Source

Creates a value of UpdateCertificateResponse with the minimum fields required to make a request.