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 |
Creates a 2048-bit RSA key pair and issues an X.509 certificate using the issued public key.
Note This is the only time AWS IoT issues the private key for this certificate, so it is important to keep it in a secure location.
- createKeysAndCertificate :: CreateKeysAndCertificate
- data CreateKeysAndCertificate
- ckacSetAsActive :: Lens' CreateKeysAndCertificate (Maybe Bool)
- createKeysAndCertificateResponse :: Int -> CreateKeysAndCertificateResponse
- data CreateKeysAndCertificateResponse
- ckacrsKeyPair :: Lens' CreateKeysAndCertificateResponse (Maybe KeyPair)
- ckacrsCertificatePem :: Lens' CreateKeysAndCertificateResponse (Maybe Text)
- ckacrsCertificateARN :: Lens' CreateKeysAndCertificateResponse (Maybe Text)
- ckacrsCertificateId :: Lens' CreateKeysAndCertificateResponse (Maybe Text)
- ckacrsResponseStatus :: Lens' CreateKeysAndCertificateResponse Int
Creating a Request
createKeysAndCertificate :: CreateKeysAndCertificate Source #
Creates a value of CreateKeysAndCertificate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CreateKeysAndCertificate Source #
The input for the CreateKeysAndCertificate operation.
See: createKeysAndCertificate
smart constructor.
Request Lenses
ckacSetAsActive :: Lens' CreateKeysAndCertificate (Maybe Bool) Source #
Specifies whether the certificate is active.
Destructuring the Response
createKeysAndCertificateResponse Source #
Creates a value of CreateKeysAndCertificateResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CreateKeysAndCertificateResponse Source #
The output of the CreateKeysAndCertificate operation.
See: createKeysAndCertificateResponse
smart constructor.
Response Lenses
ckacrsKeyPair :: Lens' CreateKeysAndCertificateResponse (Maybe KeyPair) Source #
The generated key pair.
ckacrsCertificatePem :: Lens' CreateKeysAndCertificateResponse (Maybe Text) Source #
The certificate data, in PEM format.
ckacrsCertificateARN :: Lens' CreateKeysAndCertificateResponse (Maybe Text) Source #
The ARN of the certificate.
ckacrsCertificateId :: Lens' CreateKeysAndCertificateResponse (Maybe Text) Source #
The ID of the certificate. AWS IoT issues a default subject name for the certificate (for example, AWS IoT Certificate).
ckacrsResponseStatus :: Lens' CreateKeysAndCertificateResponse Int Source #
The response status code.