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 #

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

Defined in Network.AWS.IoT.CreateKeysAndCertificate

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

Defined in Network.AWS.IoT.CreateKeysAndCertificate

Show CreateKeysAndCertificate # 
Instance details

Defined in Network.AWS.IoT.CreateKeysAndCertificate

Generic CreateKeysAndCertificate # 
Instance details

Defined in Network.AWS.IoT.CreateKeysAndCertificate

Associated Types

type Rep CreateKeysAndCertificate :: Type -> Type #

Hashable CreateKeysAndCertificate # 
Instance details

Defined in Network.AWS.IoT.CreateKeysAndCertificate

ToJSON CreateKeysAndCertificate # 
Instance details

Defined in Network.AWS.IoT.CreateKeysAndCertificate

AWSRequest CreateKeysAndCertificate # 
Instance details

Defined in Network.AWS.IoT.CreateKeysAndCertificate

Associated Types

type Rs CreateKeysAndCertificate :: Type #

ToHeaders CreateKeysAndCertificate # 
Instance details

Defined in Network.AWS.IoT.CreateKeysAndCertificate

ToPath CreateKeysAndCertificate # 
Instance details

Defined in Network.AWS.IoT.CreateKeysAndCertificate

ToQuery CreateKeysAndCertificate # 
Instance details

Defined in Network.AWS.IoT.CreateKeysAndCertificate

NFData CreateKeysAndCertificate # 
Instance details

Defined in Network.AWS.IoT.CreateKeysAndCertificate

type Rep CreateKeysAndCertificate # 
Instance details

Defined in Network.AWS.IoT.CreateKeysAndCertificate

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

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

Defined in Network.AWS.IoT.CreateKeysAndCertificate

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

Defined in Network.AWS.IoT.CreateKeysAndCertificate

Generic CreateKeysAndCertificateResponse # 
Instance details

Defined in Network.AWS.IoT.CreateKeysAndCertificate

Associated Types

type Rep CreateKeysAndCertificateResponse :: Type -> Type #

NFData CreateKeysAndCertificateResponse # 
Instance details

Defined in Network.AWS.IoT.CreateKeysAndCertificate

type Rep CreateKeysAndCertificateResponse # 
Instance details

Defined in Network.AWS.IoT.CreateKeysAndCertificate

type Rep CreateKeysAndCertificateResponse = D1 (MetaData "CreateKeysAndCertificateResponse" "Network.AWS.IoT.CreateKeysAndCertificate" "amazonka-iot-1.6.1-nGAJeezEdVLHUPuibI4m" 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

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