Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Registers a device certificate with AWS 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.
- registerCertificate :: Text -> RegisterCertificate
- data RegisterCertificate
- rcCaCertificatePem :: Lens' RegisterCertificate (Maybe Text)
- rcSetAsActive :: Lens' RegisterCertificate (Maybe Bool)
- rcCertificatePem :: Lens' RegisterCertificate Text
- registerCertificateResponse :: Int -> RegisterCertificateResponse
- data RegisterCertificateResponse
- rcrsCertificateARN :: Lens' RegisterCertificateResponse (Maybe Text)
- rcrsCertificateId :: Lens' RegisterCertificateResponse (Maybe Text)
- rcrsResponseStatus :: Lens' RegisterCertificateResponse Int
Creating a Request
Creates a value of RegisterCertificate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data RegisterCertificate Source #
The input to the RegisterCertificate operation.
See: registerCertificate
smart constructor.
Request Lenses
rcCaCertificatePem :: Lens' RegisterCertificate (Maybe Text) Source #
The CA certificate used to sign the device certificate being registered.
rcSetAsActive :: Lens' RegisterCertificate (Maybe Bool) Source #
A boolean value that specifies if the CA certificate is set to active.
rcCertificatePem :: Lens' RegisterCertificate Text Source #
The certificate data, in PEM format.
Destructuring the Response
registerCertificateResponse Source #
Creates a value of RegisterCertificateResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data RegisterCertificateResponse Source #
The output from the RegisterCertificate operation.
See: registerCertificateResponse
smart constructor.
Response Lenses
rcrsCertificateARN :: Lens' RegisterCertificateResponse (Maybe Text) Source #
The certificate ARN.
rcrsCertificateId :: Lens' RegisterCertificateResponse (Maybe Text) Source #
The certificate identifier.
rcrsResponseStatus :: Lens' RegisterCertificateResponse Int Source #
The response status code.