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 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. 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.
Synopsis
- registerCACertificate :: Text -> Text -> RegisterCACertificate
- data RegisterCACertificate
- rcacSetAsActive :: Lens' RegisterCACertificate (Maybe Bool)
- rcacAllowAutoRegistration :: Lens' RegisterCACertificate (Maybe Bool)
- rcacRegistrationConfig :: Lens' RegisterCACertificate (Maybe RegistrationConfig)
- 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:
rcacSetAsActive
- A boolean value that specifies if the CA certificate is set to active.rcacAllowAutoRegistration
- Allows this CA certificate to be used for auto registration of device certificates.rcacRegistrationConfig
- Information about the registration configuration.rcacCaCertificate
- The CA certificate.rcacVerificationCertificate
- The private key verification certificate.
data RegisterCACertificate Source #
The input to the RegisterCACertificate operation.
See: registerCACertificate
smart constructor.
Instances
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.
rcacRegistrationConfig :: Lens' RegisterCACertificate (Maybe RegistrationConfig) Source #
Information about the registration configuration.
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:
rcacrsCertificateARN
- The CA certificate ARN.rcacrsCertificateId
- The CA certificate identifier.rcacrsResponseStatus
- -- | The response status code.
data RegisterCACertificateResponse Source #
The output from the RegisterCACertificateResponse operation.
See: registerCACertificateResponse
smart constructor.
Instances
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.