amazonka-iot-1.6.1: Amazon IoT SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@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 # 
Instance details

Defined in Network.AWS.IoT.CreateKeysAndCertificate

Data CreateKeysAndCertificate Source # 
Instance details

Defined in Network.AWS.IoT.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 Source # 
Instance details

Defined in Network.AWS.IoT.CreateKeysAndCertificate

Show CreateKeysAndCertificate Source # 
Instance details

Defined in Network.AWS.IoT.CreateKeysAndCertificate

Generic CreateKeysAndCertificate Source # 
Instance details

Defined in Network.AWS.IoT.CreateKeysAndCertificate

Associated Types

type Rep CreateKeysAndCertificate :: Type -> Type #

Hashable CreateKeysAndCertificate Source # 
Instance details

Defined in Network.AWS.IoT.CreateKeysAndCertificate

ToJSON CreateKeysAndCertificate Source # 
Instance details

Defined in Network.AWS.IoT.CreateKeysAndCertificate

AWSRequest CreateKeysAndCertificate Source # 
Instance details

Defined in Network.AWS.IoT.CreateKeysAndCertificate

Associated Types

type Rs CreateKeysAndCertificate :: Type #

ToHeaders CreateKeysAndCertificate Source # 
Instance details

Defined in Network.AWS.IoT.CreateKeysAndCertificate

ToPath CreateKeysAndCertificate Source # 
Instance details

Defined in Network.AWS.IoT.CreateKeysAndCertificate

ToQuery CreateKeysAndCertificate Source # 
Instance details

Defined in Network.AWS.IoT.CreateKeysAndCertificate

NFData CreateKeysAndCertificate Source # 
Instance details

Defined in Network.AWS.IoT.CreateKeysAndCertificate

type Rep CreateKeysAndCertificate Source # 
Instance details

Defined in Network.AWS.IoT.CreateKeysAndCertificate

type Rep CreateKeysAndCertificate = D1 (MetaData "CreateKeysAndCertificate" "Network.AWS.IoT.CreateKeysAndCertificate" "amazonka-iot-1.6.1-1U0NSVSRVsCEeZIE9W0TkV" True) (C1 (MetaCons "CreateKeysAndCertificate'" PrefixI True) (S1 (MetaSel (Just "_ckacSetAsActive") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Bool))))
type Rs CreateKeysAndCertificate Source # 
Instance details

Defined in Network.AWS.IoT.CreateKeysAndCertificate

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 # 
Instance details

Defined in Network.AWS.IoT.CreateKeysAndCertificate

Data CreateKeysAndCertificateResponse Source # 
Instance details

Defined in Network.AWS.IoT.CreateKeysAndCertificate

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 #

Show CreateKeysAndCertificateResponse Source # 
Instance details

Defined in Network.AWS.IoT.CreateKeysAndCertificate

Generic CreateKeysAndCertificateResponse Source # 
Instance details

Defined in Network.AWS.IoT.CreateKeysAndCertificate

Associated Types

type Rep CreateKeysAndCertificateResponse :: Type -> Type #

NFData CreateKeysAndCertificateResponse Source # 
Instance details

Defined in Network.AWS.IoT.CreateKeysAndCertificate

type Rep CreateKeysAndCertificateResponse Source # 
Instance details

Defined in Network.AWS.IoT.CreateKeysAndCertificate

type Rep CreateKeysAndCertificateResponse = D1 (MetaData "CreateKeysAndCertificateResponse" "Network.AWS.IoT.CreateKeysAndCertificate" "amazonka-iot-1.6.1-1U0NSVSRVsCEeZIE9W0TkV" False) (C1 (MetaCons "CreateKeysAndCertificateResponse'" PrefixI True) ((S1 (MetaSel (Just "_ckacrsKeyPair") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe KeyPair)) :*: S1 (MetaSel (Just "_ckacrsCertificatePem") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_ckacrsCertificateARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_ckacrsCertificateId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_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).