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

Contents

Description

Detaches the specified principal from the specified thing.

Synopsis

Creating a Request

detachThingPrincipal Source #

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

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

  • dtpThingName - The name of the thing.
  • dtpPrincipal - If the principal is a certificate, this value must be ARN of the certificate. If the principal is an Amazon Cognito identity, this value must be the ID of the Amazon Cognito identity.

data DetachThingPrincipal Source #

The input for the DetachThingPrincipal operation.

See: detachThingPrincipal smart constructor.

Instances

Eq DetachThingPrincipal Source # 
Data DetachThingPrincipal Source # 

Methods

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

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

toConstr :: DetachThingPrincipal -> Constr #

dataTypeOf :: DetachThingPrincipal -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DetachThingPrincipal Source # 
Show DetachThingPrincipal Source # 
Generic DetachThingPrincipal Source # 
Hashable DetachThingPrincipal Source # 
NFData DetachThingPrincipal Source # 

Methods

rnf :: DetachThingPrincipal -> () #

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

Request Lenses

dtpPrincipal :: Lens' DetachThingPrincipal Text Source #

If the principal is a certificate, this value must be ARN of the certificate. If the principal is an Amazon Cognito identity, this value must be the ID of the Amazon Cognito identity.

Destructuring the Response

detachThingPrincipalResponse Source #

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

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

data DetachThingPrincipalResponse Source #

The output from the DetachThingPrincipal operation.

See: detachThingPrincipalResponse smart constructor.

Instances

Eq DetachThingPrincipalResponse Source # 
Data DetachThingPrincipalResponse Source # 

Methods

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

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

toConstr :: DetachThingPrincipalResponse -> Constr #

dataTypeOf :: DetachThingPrincipalResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

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

Response Lenses