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 |
Amazonka.IoT.UpdateCertificate
Description
Updates the status of the specified certificate. This operation is idempotent.
Requires permission to access the UpdateCertificate action.
Certificates must be in the ACTIVE state to authenticate devices that use a certificate to connect to IoT.
Within a few minutes of updating a certificate from the ACTIVE state to any other state, IoT disconnects all devices that used that certificate to connect. Devices cannot use a certificate that is not in the ACTIVE state to reconnect.
Synopsis
- data UpdateCertificate = UpdateCertificate' {}
- newUpdateCertificate :: Text -> CertificateStatus -> UpdateCertificate
- updateCertificate_certificateId :: Lens' UpdateCertificate Text
- updateCertificate_newStatus :: Lens' UpdateCertificate CertificateStatus
- data UpdateCertificateResponse = UpdateCertificateResponse' {
- newUpdateCertificateResponse :: UpdateCertificateResponse
Creating a Request
data UpdateCertificate Source #
The input for the UpdateCertificate operation.
See: newUpdateCertificate
smart constructor.
Constructors
UpdateCertificate' | |
Fields
|
Instances
Arguments
:: Text | |
-> CertificateStatus | |
-> UpdateCertificate |
Create a value of UpdateCertificate
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:certificateId:UpdateCertificate'
, updateCertificate_certificateId
- The ID of the certificate. (The last part of the certificate ARN
contains the certificate ID.)
$sel:newStatus':UpdateCertificate'
, updateCertificate_newStatus
- The new status.
Note: Setting the status to PENDING_TRANSFER or PENDING_ACTIVATION will result in an exception being thrown. PENDING_TRANSFER and PENDING_ACTIVATION are statuses used internally by IoT. They are not intended for developer use.
Note: The status value REGISTER_INACTIVE is deprecated and should not be used.
Request Lenses
updateCertificate_certificateId :: Lens' UpdateCertificate Text Source #
The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)
updateCertificate_newStatus :: Lens' UpdateCertificate CertificateStatus Source #
The new status.
Note: Setting the status to PENDING_TRANSFER or PENDING_ACTIVATION will result in an exception being thrown. PENDING_TRANSFER and PENDING_ACTIVATION are statuses used internally by IoT. They are not intended for developer use.
Note: The status value REGISTER_INACTIVE is deprecated and should not be used.
Destructuring the Response
data UpdateCertificateResponse Source #
See: newUpdateCertificateResponse
smart constructor.
Constructors
UpdateCertificateResponse' | |
Instances
newUpdateCertificateResponse :: UpdateCertificateResponse Source #
Create a value of UpdateCertificateResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.