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

Contents

Description

Attaches a policy to the specified target.

Synopsis

Creating a Request

attachPolicy Source #

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

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

  • apPolicyName - The name of the policy to attach.
  • apTarget - The identity to which the policy is attached.

data AttachPolicy Source #

See: attachPolicy smart constructor.

Instances

Eq AttachPolicy Source # 
Data AttachPolicy Source # 

Methods

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

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

toConstr :: AttachPolicy -> Constr #

dataTypeOf :: AttachPolicy -> DataType #

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

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

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

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

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

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

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

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

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

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

Read AttachPolicy Source # 
Show AttachPolicy Source # 
Generic AttachPolicy Source # 

Associated Types

type Rep AttachPolicy :: * -> * #

Hashable AttachPolicy Source # 
ToJSON AttachPolicy Source # 
NFData AttachPolicy Source # 

Methods

rnf :: AttachPolicy -> () #

AWSRequest AttachPolicy Source # 
ToHeaders AttachPolicy Source # 
ToPath AttachPolicy Source # 
ToQuery AttachPolicy Source # 
type Rep AttachPolicy Source # 
type Rep AttachPolicy = D1 * (MetaData "AttachPolicy" "Network.AWS.IoT.AttachPolicy" "amazonka-iot-1.6.0-GZYdsKS1TEjHFZo6BqaYJk" False) (C1 * (MetaCons "AttachPolicy'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_apPolicyName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_apTarget") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))
type Rs AttachPolicy Source # 

Request Lenses

apPolicyName :: Lens' AttachPolicy Text Source #

The name of the policy to attach.

apTarget :: Lens' AttachPolicy Text Source #

The identity to which the policy is attached.

Destructuring the Response

attachPolicyResponse :: AttachPolicyResponse Source #

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

data AttachPolicyResponse Source #

See: attachPolicyResponse smart constructor.

Instances

Eq AttachPolicyResponse Source # 
Data AttachPolicyResponse Source # 

Methods

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

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

toConstr :: AttachPolicyResponse -> Constr #

dataTypeOf :: AttachPolicyResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read AttachPolicyResponse Source # 
Show AttachPolicyResponse Source # 
Generic AttachPolicyResponse Source # 
NFData AttachPolicyResponse Source # 

Methods

rnf :: AttachPolicyResponse -> () #

type Rep AttachPolicyResponse Source # 
type Rep AttachPolicyResponse = D1 * (MetaData "AttachPolicyResponse" "Network.AWS.IoT.AttachPolicy" "amazonka-iot-1.6.0-GZYdsKS1TEjHFZo6BqaYJk" False) (C1 * (MetaCons "AttachPolicyResponse'" PrefixI False) (U1 *))