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 |
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.
Synopsis
- registerCertificate :: Text -> RegisterCertificate
- data RegisterCertificate
- rcStatus :: Lens' RegisterCertificate (Maybe CertificateStatus)
- 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:
rcStatus
- The status of the register certificate request.rcCaCertificatePem
- The CA certificate used to sign the device certificate being registered.rcSetAsActive
- A boolean value that specifies if the CA certificate is set to active.rcCertificatePem
- The certificate data, in PEM format.
data RegisterCertificate Source #
The input to the RegisterCertificate operation.
See: registerCertificate
smart constructor.
Instances
Request Lenses
rcStatus :: Lens' RegisterCertificate (Maybe CertificateStatus) Source #
The status of the register certificate request.
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:
rcrsCertificateARN
- The certificate ARN.rcrsCertificateId
- The certificate identifier.rcrsResponseStatus
- -- | The response status code.
data RegisterCertificateResponse Source #
The output from the RegisterCertificate operation.
See: registerCertificateResponse
smart constructor.
Instances
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.