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 |
Registers a device certificate with IoT. If you have more than one CA certificate that has the same subject field, you must specify the CA certificate that was used to sign the device certificate being registered.
Requires permission to access the RegisterCertificate action.
Synopsis
- data RegisterCertificate = RegisterCertificate' {}
- newRegisterCertificate :: Text -> RegisterCertificate
- registerCertificate_status :: Lens' RegisterCertificate (Maybe CertificateStatus)
- registerCertificate_caCertificatePem :: Lens' RegisterCertificate (Maybe Text)
- registerCertificate_setAsActive :: Lens' RegisterCertificate (Maybe Bool)
- registerCertificate_certificatePem :: Lens' RegisterCertificate Text
- data RegisterCertificateResponse = RegisterCertificateResponse' {}
- newRegisterCertificateResponse :: Int -> RegisterCertificateResponse
- registerCertificateResponse_certificateArn :: Lens' RegisterCertificateResponse (Maybe Text)
- registerCertificateResponse_certificateId :: Lens' RegisterCertificateResponse (Maybe Text)
- registerCertificateResponse_httpStatus :: Lens' RegisterCertificateResponse Int
Creating a Request
data RegisterCertificate Source #
The input to the RegisterCertificate operation.
See: newRegisterCertificate
smart constructor.
RegisterCertificate' | |
|
Instances
newRegisterCertificate Source #
Create a value of RegisterCertificate
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:status:RegisterCertificate'
, registerCertificate_status
- The status of the register certificate request.
$sel:caCertificatePem:RegisterCertificate'
, registerCertificate_caCertificatePem
- The CA certificate used to sign the device certificate being registered.
$sel:setAsActive:RegisterCertificate'
, registerCertificate_setAsActive
- A boolean value that specifies if the certificate is set to active.
$sel:certificatePem:RegisterCertificate'
, registerCertificate_certificatePem
- The certificate data, in PEM format.
Request Lenses
registerCertificate_status :: Lens' RegisterCertificate (Maybe CertificateStatus) Source #
The status of the register certificate request.
registerCertificate_caCertificatePem :: Lens' RegisterCertificate (Maybe Text) Source #
The CA certificate used to sign the device certificate being registered.
registerCertificate_setAsActive :: Lens' RegisterCertificate (Maybe Bool) Source #
A boolean value that specifies if the certificate is set to active.
registerCertificate_certificatePem :: Lens' RegisterCertificate Text Source #
The certificate data, in PEM format.
Destructuring the Response
data RegisterCertificateResponse Source #
The output from the RegisterCertificate operation.
See: newRegisterCertificateResponse
smart constructor.
RegisterCertificateResponse' | |
|
Instances
newRegisterCertificateResponse Source #
Create a value of RegisterCertificateResponse
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:certificateArn:RegisterCertificateResponse'
, registerCertificateResponse_certificateArn
- The certificate ARN.
$sel:certificateId:RegisterCertificateResponse'
, registerCertificateResponse_certificateId
- The certificate identifier.
$sel:httpStatus:RegisterCertificateResponse'
, registerCertificateResponse_httpStatus
- The response's http status code.
Response Lenses
registerCertificateResponse_certificateArn :: Lens' RegisterCertificateResponse (Maybe Text) Source #
The certificate ARN.
registerCertificateResponse_certificateId :: Lens' RegisterCertificateResponse (Maybe Text) Source #
The certificate identifier.
registerCertificateResponse_httpStatus :: Lens' RegisterCertificateResponse Int Source #
The response's http status code.