amazonka-iot-1.4.3: 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 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.

Instances

Eq CreateKeysAndCertificate Source # 
Data CreateKeysAndCertificate Source # 

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 Source # 
Show CreateKeysAndCertificate Source # 
Generic CreateKeysAndCertificate Source # 
ToJSON CreateKeysAndCertificate Source # 
Hashable CreateKeysAndCertificate Source # 
NFData CreateKeysAndCertificate Source # 
AWSRequest CreateKeysAndCertificate Source # 
ToPath CreateKeysAndCertificate Source # 
ToHeaders CreateKeysAndCertificate Source # 
ToQuery CreateKeysAndCertificate Source # 
type Rep CreateKeysAndCertificate Source # 
type Rep CreateKeysAndCertificate = D1 (MetaData "CreateKeysAndCertificate" "Network.AWS.IoT.CreateKeysAndCertificate" "amazonka-iot-1.4.3-GQ8Z5ol1Knl4MG0H0roOVJ" True) (C1 (MetaCons "CreateKeysAndCertificate'" PrefixI True) (S1 (MetaSel (Just Symbol "_ckacSetAsActive") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Bool))))
type Rs CreateKeysAndCertificate Source # 

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.

Instances

Eq CreateKeysAndCertificateResponse Source # 
Data CreateKeysAndCertificateResponse Source # 

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 Source # 
Show CreateKeysAndCertificateResponse Source # 
Generic CreateKeysAndCertificateResponse Source # 
NFData CreateKeysAndCertificateResponse Source # 
type Rep CreateKeysAndCertificateResponse Source # 
type Rep CreateKeysAndCertificateResponse = D1 (MetaData "CreateKeysAndCertificateResponse" "Network.AWS.IoT.CreateKeysAndCertificate" "amazonka-iot-1.4.3-GQ8Z5ol1Knl4MG0H0roOVJ" 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 DecidedStrict) (Rec0 Int))))))

Response Lenses

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).