amazonka-iot-1.5.0: Amazon IoT SDK.

Copyright(c) 2013-2017 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.AttachThingPrincipal

Contents

Description

Attaches the specified principal to the specified thing.

Synopsis

Creating a Request

attachThingPrincipal Source #

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

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

data AttachThingPrincipal Source #

The input for the AttachThingPrincipal operation.

See: attachThingPrincipal smart constructor.

Instances

Eq AttachThingPrincipal Source # 
Data AttachThingPrincipal Source # 

Methods

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

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

toConstr :: AttachThingPrincipal -> Constr #

dataTypeOf :: AttachThingPrincipal -> DataType #

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

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

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

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

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

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

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

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

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

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

Read AttachThingPrincipal Source # 
Show AttachThingPrincipal Source # 
Generic AttachThingPrincipal Source # 
Hashable AttachThingPrincipal Source # 
ToJSON AttachThingPrincipal Source # 
NFData AttachThingPrincipal Source # 

Methods

rnf :: AttachThingPrincipal -> () #

AWSRequest AttachThingPrincipal Source # 
ToQuery AttachThingPrincipal Source # 
ToPath AttachThingPrincipal Source # 
ToHeaders AttachThingPrincipal Source # 
type Rep AttachThingPrincipal Source # 
type Rep AttachThingPrincipal = D1 (MetaData "AttachThingPrincipal" "Network.AWS.IoT.AttachThingPrincipal" "amazonka-iot-1.5.0-JgZt78ORX3d9eQviclu51b" False) (C1 (MetaCons "AttachThingPrincipal'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_atpThingName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_atpPrincipal") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs AttachThingPrincipal Source # 

Request Lenses

atpPrincipal :: Lens' AttachThingPrincipal Text Source #

The principal, such as a certificate or other credential.

Destructuring the Response

attachThingPrincipalResponse Source #

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

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

data AttachThingPrincipalResponse Source #

The output from the AttachThingPrincipal operation.

See: attachThingPrincipalResponse smart constructor.

Instances

Eq AttachThingPrincipalResponse Source # 
Data AttachThingPrincipalResponse Source # 

Methods

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

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

toConstr :: AttachThingPrincipalResponse -> Constr #

dataTypeOf :: AttachThingPrincipalResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read AttachThingPrincipalResponse Source # 
Show AttachThingPrincipalResponse Source # 
Generic AttachThingPrincipalResponse Source # 
NFData AttachThingPrincipalResponse Source # 
type Rep AttachThingPrincipalResponse Source # 
type Rep AttachThingPrincipalResponse = D1 (MetaData "AttachThingPrincipalResponse" "Network.AWS.IoT.AttachThingPrincipal" "amazonka-iot-1.5.0-JgZt78ORX3d9eQviclu51b" True) (C1 (MetaCons "AttachThingPrincipalResponse'" PrefixI True) (S1 (MetaSel (Just Symbol "_atprsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

Response Lenses