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 CA certificate with AWS IoT. This CA certificate can then be used to sign device certificates, which can be then registered with AWS IoT. You can register up to 10 CA certificates per AWS account that have the same subject field and public key. This enables you to have up to 10 certificate authorities sign your device certificates. If you have more than one CA certificate registered, make sure you pass the CA certificate when you register your device certificates with the RegisterCertificate API.
- registerCACertificate :: Text -> Text -> RegisterCACertificate
- data RegisterCACertificate
- rcacSetAsActive :: Lens' RegisterCACertificate (Maybe Bool)
- rcacAllowAutoRegistration :: Lens' RegisterCACertificate (Maybe Bool)
- rcacCaCertificate :: Lens' RegisterCACertificate Text
- rcacVerificationCertificate :: Lens' RegisterCACertificate Text
- registerCACertificateResponse :: Int -> RegisterCACertificateResponse
- data RegisterCACertificateResponse
- rcacrsCertificateARN :: Lens' RegisterCACertificateResponse (Maybe Text)
- rcacrsCertificateId :: Lens' RegisterCACertificateResponse (Maybe Text)
- rcacrsResponseStatus :: Lens' RegisterCACertificateResponse Int
Creating a Request
registerCACertificate Source #
Creates a value of RegisterCACertificate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data RegisterCACertificate Source #
The input to the RegisterCACertificate operation.
See: registerCACertificate
smart constructor.
Request Lenses
rcacSetAsActive :: Lens' RegisterCACertificate (Maybe Bool) Source #
A boolean value that specifies if the CA certificate is set to active.
rcacAllowAutoRegistration :: Lens' RegisterCACertificate (Maybe Bool) Source #
Allows this CA certificate to be used for auto registration of device certificates.
rcacCaCertificate :: Lens' RegisterCACertificate Text Source #
The CA certificate.
rcacVerificationCertificate :: Lens' RegisterCACertificate Text Source #
The private key verification certificate.
Destructuring the Response
registerCACertificateResponse Source #
Creates a value of RegisterCACertificateResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data RegisterCACertificateResponse Source #
The output from the RegisterCACertificateResponse operation.
See: registerCACertificateResponse
smart constructor.
Response Lenses
rcacrsCertificateARN :: Lens' RegisterCACertificateResponse (Maybe Text) Source #
The CA certificate ARN.
rcacrsCertificateId :: Lens' RegisterCACertificateResponse (Maybe Text) Source #
The CA certificate identifier.
rcacrsResponseStatus :: Lens' RegisterCACertificateResponse Int Source #
The response status code.