Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Registers a device certificate with IoT in the same certificate mode as the signing CA. 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_caCertificatePem :: Lens' RegisterCertificate (Maybe Text)
- registerCertificate_setAsActive :: Lens' RegisterCertificate (Maybe Bool)
- registerCertificate_status :: Lens' RegisterCertificate (Maybe CertificateStatus)
- 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: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.
Valid values: ACTIVE | INACTIVE
RegisterCertificate
, registerCertificate_status
- The status of the register certificate request. Valid values that you
can use include ACTIVE
, INACTIVE
, and REVOKED
.
RegisterCertificate
, registerCertificate_certificatePem
- The certificate data, in PEM format.
Request Lenses
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.
Valid values: ACTIVE | INACTIVE
registerCertificate_status :: Lens' RegisterCertificate (Maybe CertificateStatus) Source #
The status of the register certificate request. Valid values that you
can use include ACTIVE
, INACTIVE
, and REVOKED
.
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:
RegisterCertificateResponse
, registerCertificateResponse_certificateArn
- The certificate ARN.
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.