amazonka-iot-1.4.5: Amazon IoT SDK.

Copyright(c) 2013-2016 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, so it is important to keep it in a secure location.

Synopsis

Creating a Request

createKeysAndCertificate :: CreateKeysAndCertificate #

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 #

The input for the CreateKeysAndCertificate operation.

See: createKeysAndCertificate smart constructor.

Instances

Eq CreateKeysAndCertificate # 
Data CreateKeysAndCertificate # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateKeysAndCertificate -> c CreateKeysAndCertificate #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateKeysAndCertificate #

toConstr :: CreateKeysAndCertificate -> Constr #

dataTypeOf :: CreateKeysAndCertificate -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreateKeysAndCertificate) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateKeysAndCertificate) #

gmapT :: (forall b. Data b => b -> b) -> CreateKeysAndCertificate -> CreateKeysAndCertificate #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateKeysAndCertificate -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateKeysAndCertificate -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateKeysAndCertificate -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateKeysAndCertificate -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateKeysAndCertificate -> m CreateKeysAndCertificate #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateKeysAndCertificate -> m CreateKeysAndCertificate #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateKeysAndCertificate -> m CreateKeysAndCertificate #

Read CreateKeysAndCertificate # 
Show CreateKeysAndCertificate # 
Generic CreateKeysAndCertificate # 
Hashable CreateKeysAndCertificate # 
ToJSON CreateKeysAndCertificate # 
NFData CreateKeysAndCertificate # 
AWSRequest CreateKeysAndCertificate # 
ToQuery CreateKeysAndCertificate # 
ToPath CreateKeysAndCertificate # 
ToHeaders CreateKeysAndCertificate # 
type Rep CreateKeysAndCertificate # 
type Rep CreateKeysAndCertificate = D1 (MetaData "CreateKeysAndCertificate" "Network.AWS.IoT.CreateKeysAndCertificate" "amazonka-iot-1.4.5-HnBhW38Gbiq1QAd2zPEJmJ" True) (C1 (MetaCons "CreateKeysAndCertificate'" PrefixI True) (S1 (MetaSel (Just Symbol "_ckacSetAsActive") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Bool))))
type Rs CreateKeysAndCertificate # 

Request Lenses

ckacSetAsActive :: Lens' CreateKeysAndCertificate (Maybe Bool) #

Specifies whether the certificate is active.

Destructuring the Response

createKeysAndCertificateResponse #

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 #

The output of the CreateKeysAndCertificate operation.

See: createKeysAndCertificateResponse smart constructor.

Instances

Eq CreateKeysAndCertificateResponse # 
Data CreateKeysAndCertificateResponse # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateKeysAndCertificateResponse -> c CreateKeysAndCertificateResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateKeysAndCertificateResponse #

toConstr :: CreateKeysAndCertificateResponse -> Constr #

dataTypeOf :: CreateKeysAndCertificateResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreateKeysAndCertificateResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateKeysAndCertificateResponse) #

gmapT :: (forall b. Data b => b -> b) -> CreateKeysAndCertificateResponse -> CreateKeysAndCertificateResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateKeysAndCertificateResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateKeysAndCertificateResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateKeysAndCertificateResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateKeysAndCertificateResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateKeysAndCertificateResponse -> m CreateKeysAndCertificateResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateKeysAndCertificateResponse -> m CreateKeysAndCertificateResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateKeysAndCertificateResponse -> m CreateKeysAndCertificateResponse #

Read CreateKeysAndCertificateResponse # 
Show CreateKeysAndCertificateResponse # 
Generic CreateKeysAndCertificateResponse # 
NFData CreateKeysAndCertificateResponse # 
type Rep CreateKeysAndCertificateResponse # 
type Rep CreateKeysAndCertificateResponse = D1 (MetaData "CreateKeysAndCertificateResponse" "Network.AWS.IoT.CreateKeysAndCertificate" "amazonka-iot-1.4.5-HnBhW38Gbiq1QAd2zPEJmJ" False) (C1 (MetaCons "CreateKeysAndCertificateResponse'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_ckacrsKeyPair") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe KeyPair))) (S1 (MetaSel (Just Symbol "_ckacrsCertificatePem") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_ckacrsCertificateARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_ckacrsCertificateId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_ckacrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))))

Response Lenses

ckacrsCertificatePem :: Lens' CreateKeysAndCertificateResponse (Maybe Text) #

The certificate data, in PEM format.

ckacrsCertificateId :: Lens' CreateKeysAndCertificateResponse (Maybe Text) #

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