amazonka-iot-1.3.5: Amazon IoT SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.IoT.CreateKeysAndCertificate

Contents

Description

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. It is important to keep track of the private key.

See: AWS API Reference for CreateKeysAndCertificate.

Synopsis

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:

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:

Response Lenses

ckacrsCertificateId :: Lens' CreateKeysAndCertificateResponse (Maybe Text) Source

The ID of the certificate. AWS IoT issues a default subject name for the certificate (e.g., AWS IoT Certificate).