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

Contents

Description

Detaches the specified principal from the specified thing.

Synopsis

Creating a Request

detachThingPrincipal #

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 #

The input for the DetachThingPrincipal operation.

See: detachThingPrincipal smart constructor.

Instances
Eq DetachThingPrincipal # 
Instance details

Defined in Network.AWS.IoT.DetachThingPrincipal

Data DetachThingPrincipal # 
Instance details

Defined in Network.AWS.IoT.DetachThingPrincipal

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

Defined in Network.AWS.IoT.DetachThingPrincipal

Show DetachThingPrincipal # 
Instance details

Defined in Network.AWS.IoT.DetachThingPrincipal

Generic DetachThingPrincipal # 
Instance details

Defined in Network.AWS.IoT.DetachThingPrincipal

Associated Types

type Rep DetachThingPrincipal :: Type -> Type #

Hashable DetachThingPrincipal # 
Instance details

Defined in Network.AWS.IoT.DetachThingPrincipal

AWSRequest DetachThingPrincipal # 
Instance details

Defined in Network.AWS.IoT.DetachThingPrincipal

Associated Types

type Rs DetachThingPrincipal :: Type #

ToHeaders DetachThingPrincipal # 
Instance details

Defined in Network.AWS.IoT.DetachThingPrincipal

ToPath DetachThingPrincipal # 
Instance details

Defined in Network.AWS.IoT.DetachThingPrincipal

ToQuery DetachThingPrincipal # 
Instance details

Defined in Network.AWS.IoT.DetachThingPrincipal

NFData DetachThingPrincipal # 
Instance details

Defined in Network.AWS.IoT.DetachThingPrincipal

Methods

rnf :: DetachThingPrincipal -> () #

type Rep DetachThingPrincipal # 
Instance details

Defined in Network.AWS.IoT.DetachThingPrincipal

type Rep DetachThingPrincipal = D1 (MetaData "DetachThingPrincipal" "Network.AWS.IoT.DetachThingPrincipal" "amazonka-iot-1.6.1-nGAJeezEdVLHUPuibI4m" False) (C1 (MetaCons "DetachThingPrincipal'" PrefixI True) (S1 (MetaSel (Just "_dtpThingName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_dtpPrincipal") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs DetachThingPrincipal # 
Instance details

Defined in Network.AWS.IoT.DetachThingPrincipal

Request Lenses

dtpThingName :: Lens' DetachThingPrincipal Text #

The name of the thing.

dtpPrincipal :: Lens' DetachThingPrincipal Text #

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 #

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 #

The output from the DetachThingPrincipal operation.

See: detachThingPrincipalResponse smart constructor.

Instances
Eq DetachThingPrincipalResponse # 
Instance details

Defined in Network.AWS.IoT.DetachThingPrincipal

Data DetachThingPrincipalResponse # 
Instance details

Defined in Network.AWS.IoT.DetachThingPrincipal

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

Defined in Network.AWS.IoT.DetachThingPrincipal

Show DetachThingPrincipalResponse # 
Instance details

Defined in Network.AWS.IoT.DetachThingPrincipal

Generic DetachThingPrincipalResponse # 
Instance details

Defined in Network.AWS.IoT.DetachThingPrincipal

Associated Types

type Rep DetachThingPrincipalResponse :: Type -> Type #

NFData DetachThingPrincipalResponse # 
Instance details

Defined in Network.AWS.IoT.DetachThingPrincipal

type Rep DetachThingPrincipalResponse # 
Instance details

Defined in Network.AWS.IoT.DetachThingPrincipal

type Rep DetachThingPrincipalResponse = D1 (MetaData "DetachThingPrincipalResponse" "Network.AWS.IoT.DetachThingPrincipal" "amazonka-iot-1.6.1-nGAJeezEdVLHUPuibI4m" True) (C1 (MetaCons "DetachThingPrincipalResponse'" PrefixI True) (S1 (MetaSel (Just "_dtprsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

Response Lenses