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

Contents

Description

Registers a CA certificate with AWS IoT. This CA certificate can then be used to sign device certificates, which can be then registered with AWS IoT. You can register up to 10 CA certificates per AWS account that have the same subject field. This enables you to have up to 10 certificate authorities sign your device certificates. If you have more than one CA certificate registered, make sure you pass the CA certificate when you register your device certificates with the RegisterCertificate API.

Synopsis

Creating a Request

registerCACertificate Source #

Creates a value of RegisterCACertificate with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data RegisterCACertificate Source #

The input to the RegisterCACertificate operation.

See: registerCACertificate smart constructor.

Instances
Eq RegisterCACertificate Source # 
Instance details

Defined in Network.AWS.IoT.RegisterCACertificate

Data RegisterCACertificate Source # 
Instance details

Defined in Network.AWS.IoT.RegisterCACertificate

Methods

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

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

toConstr :: RegisterCACertificate -> Constr #

dataTypeOf :: RegisterCACertificate -> DataType #

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

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

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

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

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

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

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

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

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

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

Read RegisterCACertificate Source # 
Instance details

Defined in Network.AWS.IoT.RegisterCACertificate

Show RegisterCACertificate Source # 
Instance details

Defined in Network.AWS.IoT.RegisterCACertificate

Generic RegisterCACertificate Source # 
Instance details

Defined in Network.AWS.IoT.RegisterCACertificate

Associated Types

type Rep RegisterCACertificate :: Type -> Type #

Hashable RegisterCACertificate Source # 
Instance details

Defined in Network.AWS.IoT.RegisterCACertificate

ToJSON RegisterCACertificate Source # 
Instance details

Defined in Network.AWS.IoT.RegisterCACertificate

AWSRequest RegisterCACertificate Source # 
Instance details

Defined in Network.AWS.IoT.RegisterCACertificate

Associated Types

type Rs RegisterCACertificate :: Type #

ToHeaders RegisterCACertificate Source # 
Instance details

Defined in Network.AWS.IoT.RegisterCACertificate

ToPath RegisterCACertificate Source # 
Instance details

Defined in Network.AWS.IoT.RegisterCACertificate

ToQuery RegisterCACertificate Source # 
Instance details

Defined in Network.AWS.IoT.RegisterCACertificate

NFData RegisterCACertificate Source # 
Instance details

Defined in Network.AWS.IoT.RegisterCACertificate

Methods

rnf :: RegisterCACertificate -> () #

type Rep RegisterCACertificate Source # 
Instance details

Defined in Network.AWS.IoT.RegisterCACertificate

type Rep RegisterCACertificate = D1 (MetaData "RegisterCACertificate" "Network.AWS.IoT.RegisterCACertificate" "amazonka-iot-1.6.1-1U0NSVSRVsCEeZIE9W0TkV" False) (C1 (MetaCons "RegisterCACertificate'" PrefixI True) ((S1 (MetaSel (Just "_rcacSetAsActive") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_rcacAllowAutoRegistration") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 (MetaSel (Just "_rcacRegistrationConfig") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe RegistrationConfig)) :*: (S1 (MetaSel (Just "_rcacCaCertificate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_rcacVerificationCertificate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs RegisterCACertificate Source # 
Instance details

Defined in Network.AWS.IoT.RegisterCACertificate

Request Lenses

rcacSetAsActive :: Lens' RegisterCACertificate (Maybe Bool) Source #

A boolean value that specifies if the CA certificate is set to active.

rcacAllowAutoRegistration :: Lens' RegisterCACertificate (Maybe Bool) Source #

Allows this CA certificate to be used for auto registration of device certificates.

rcacRegistrationConfig :: Lens' RegisterCACertificate (Maybe RegistrationConfig) Source #

Information about the registration configuration.

rcacVerificationCertificate :: Lens' RegisterCACertificate Text Source #

The private key verification certificate.

Destructuring the Response

registerCACertificateResponse Source #

Creates a value of RegisterCACertificateResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data RegisterCACertificateResponse Source #

The output from the RegisterCACertificateResponse operation.

See: registerCACertificateResponse smart constructor.

Instances
Eq RegisterCACertificateResponse Source # 
Instance details

Defined in Network.AWS.IoT.RegisterCACertificate

Data RegisterCACertificateResponse Source # 
Instance details

Defined in Network.AWS.IoT.RegisterCACertificate

Methods

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

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

toConstr :: RegisterCACertificateResponse -> Constr #

dataTypeOf :: RegisterCACertificateResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read RegisterCACertificateResponse Source # 
Instance details

Defined in Network.AWS.IoT.RegisterCACertificate

Show RegisterCACertificateResponse Source # 
Instance details

Defined in Network.AWS.IoT.RegisterCACertificate

Generic RegisterCACertificateResponse Source # 
Instance details

Defined in Network.AWS.IoT.RegisterCACertificate

Associated Types

type Rep RegisterCACertificateResponse :: Type -> Type #

NFData RegisterCACertificateResponse Source # 
Instance details

Defined in Network.AWS.IoT.RegisterCACertificate

type Rep RegisterCACertificateResponse Source # 
Instance details

Defined in Network.AWS.IoT.RegisterCACertificate

type Rep RegisterCACertificateResponse = D1 (MetaData "RegisterCACertificateResponse" "Network.AWS.IoT.RegisterCACertificate" "amazonka-iot-1.6.1-1U0NSVSRVsCEeZIE9W0TkV" False) (C1 (MetaCons "RegisterCACertificateResponse'" PrefixI True) (S1 (MetaSel (Just "_rcacrsCertificateARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_rcacrsCertificateId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_rcacrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses