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 |
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.
Creating a Request
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:
ucCertificateId
- The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)ucNewStatus
- 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. Note: The status value REGISTER_INACTIVE is deprecated and should not be used.
data UpdateCertificate Source #
The input for the UpdateCertificate operation.
See: updateCertificate
smart constructor.
Instances
Request Lenses
ucCertificateId :: Lens' UpdateCertificate Text Source #
The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)
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. Note: The status value REGISTER_INACTIVE is deprecated and should not be used.
Destructuring the Response
updateCertificateResponse :: UpdateCertificateResponse Source #
Creates a value of UpdateCertificateResponse
with the minimum fields required to make a request.
data UpdateCertificateResponse Source #
See: updateCertificateResponse
smart constructor.