amazonka-iot-1.6.0: 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 #

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 #

The input to the RegisterCACertificate operation.

See: registerCACertificate smart constructor.

Instances
Eq RegisterCACertificate # 
Instance details

Defined in Network.AWS.IoT.RegisterCACertificate

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

Defined in Network.AWS.IoT.RegisterCACertificate

Show RegisterCACertificate # 
Instance details

Defined in Network.AWS.IoT.RegisterCACertificate

Generic RegisterCACertificate # 
Instance details

Defined in Network.AWS.IoT.RegisterCACertificate

Associated Types

type Rep RegisterCACertificate :: * -> * #

Hashable RegisterCACertificate # 
Instance details

Defined in Network.AWS.IoT.RegisterCACertificate

ToJSON RegisterCACertificate # 
Instance details

Defined in Network.AWS.IoT.RegisterCACertificate

AWSRequest RegisterCACertificate # 
Instance details

Defined in Network.AWS.IoT.RegisterCACertificate

Associated Types

type Rs RegisterCACertificate :: * #

ToHeaders RegisterCACertificate # 
Instance details

Defined in Network.AWS.IoT.RegisterCACertificate

ToPath RegisterCACertificate # 
Instance details

Defined in Network.AWS.IoT.RegisterCACertificate

ToQuery RegisterCACertificate # 
Instance details

Defined in Network.AWS.IoT.RegisterCACertificate

NFData RegisterCACertificate # 
Instance details

Defined in Network.AWS.IoT.RegisterCACertificate

Methods

rnf :: RegisterCACertificate -> () #

type Rep RegisterCACertificate # 
Instance details

Defined in Network.AWS.IoT.RegisterCACertificate

type Rep RegisterCACertificate = D1 (MetaData "RegisterCACertificate" "Network.AWS.IoT.RegisterCACertificate" "amazonka-iot-1.6.0-CAejnyMMkfk3pNFUOERBSd" 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 # 
Instance details

Defined in Network.AWS.IoT.RegisterCACertificate

Request Lenses

rcacSetAsActive :: Lens' RegisterCACertificate (Maybe Bool) #

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

rcacAllowAutoRegistration :: Lens' RegisterCACertificate (Maybe Bool) #

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

rcacRegistrationConfig :: Lens' RegisterCACertificate (Maybe RegistrationConfig) #

Information about the registration configuration.

rcacVerificationCertificate :: Lens' RegisterCACertificate Text #

The private key verification certificate.

Destructuring the Response

registerCACertificateResponse #

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 #

The output from the RegisterCACertificateResponse operation.

See: registerCACertificateResponse smart constructor.

Instances
Eq RegisterCACertificateResponse # 
Instance details

Defined in Network.AWS.IoT.RegisterCACertificate

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

Defined in Network.AWS.IoT.RegisterCACertificate

Show RegisterCACertificateResponse # 
Instance details

Defined in Network.AWS.IoT.RegisterCACertificate

Generic RegisterCACertificateResponse # 
Instance details

Defined in Network.AWS.IoT.RegisterCACertificate

Associated Types

type Rep RegisterCACertificateResponse :: * -> * #

NFData RegisterCACertificateResponse # 
Instance details

Defined in Network.AWS.IoT.RegisterCACertificate

type Rep RegisterCACertificateResponse # 
Instance details

Defined in Network.AWS.IoT.RegisterCACertificate

type Rep RegisterCACertificateResponse = D1 (MetaData "RegisterCACertificateResponse" "Network.AWS.IoT.RegisterCACertificate" "amazonka-iot-1.6.0-CAejnyMMkfk3pNFUOERBSd" 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