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 #

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 #

See: attachPolicy smart constructor.

Instances
Eq AttachPolicy # 
Instance details

Defined in Network.AWS.IoT.AttachPolicy

Data AttachPolicy # 
Instance details

Defined in Network.AWS.IoT.AttachPolicy

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

Defined in Network.AWS.IoT.AttachPolicy

Show AttachPolicy # 
Instance details

Defined in Network.AWS.IoT.AttachPolicy

Generic AttachPolicy # 
Instance details

Defined in Network.AWS.IoT.AttachPolicy

Associated Types

type Rep AttachPolicy :: * -> * #

Hashable AttachPolicy # 
Instance details

Defined in Network.AWS.IoT.AttachPolicy

ToJSON AttachPolicy # 
Instance details

Defined in Network.AWS.IoT.AttachPolicy

AWSRequest AttachPolicy # 
Instance details

Defined in Network.AWS.IoT.AttachPolicy

Associated Types

type Rs AttachPolicy :: * #

ToHeaders AttachPolicy # 
Instance details

Defined in Network.AWS.IoT.AttachPolicy

ToPath AttachPolicy # 
Instance details

Defined in Network.AWS.IoT.AttachPolicy

ToQuery AttachPolicy # 
Instance details

Defined in Network.AWS.IoT.AttachPolicy

NFData AttachPolicy # 
Instance details

Defined in Network.AWS.IoT.AttachPolicy

Methods

rnf :: AttachPolicy -> () #

type Rep AttachPolicy # 
Instance details

Defined in Network.AWS.IoT.AttachPolicy

type Rep AttachPolicy = D1 (MetaData "AttachPolicy" "Network.AWS.IoT.AttachPolicy" "amazonka-iot-1.6.0-CAejnyMMkfk3pNFUOERBSd" False) (C1 (MetaCons "AttachPolicy'" PrefixI True) (S1 (MetaSel (Just "_apPolicyName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_apTarget") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs AttachPolicy # 
Instance details

Defined in Network.AWS.IoT.AttachPolicy

Request Lenses

apPolicyName :: Lens' AttachPolicy Text #

The name of the policy to attach.

apTarget :: Lens' AttachPolicy Text #

The identity to which the policy is attached.

Destructuring the Response

attachPolicyResponse :: AttachPolicyResponse #

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

data AttachPolicyResponse #

See: attachPolicyResponse smart constructor.

Instances
Eq AttachPolicyResponse # 
Instance details

Defined in Network.AWS.IoT.AttachPolicy

Data AttachPolicyResponse # 
Instance details

Defined in Network.AWS.IoT.AttachPolicy

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

Defined in Network.AWS.IoT.AttachPolicy

Show AttachPolicyResponse # 
Instance details

Defined in Network.AWS.IoT.AttachPolicy

Generic AttachPolicyResponse # 
Instance details

Defined in Network.AWS.IoT.AttachPolicy

Associated Types

type Rep AttachPolicyResponse :: * -> * #

NFData AttachPolicyResponse # 
Instance details

Defined in Network.AWS.IoT.AttachPolicy

Methods

rnf :: AttachPolicyResponse -> () #

type Rep AttachPolicyResponse # 
Instance details

Defined in Network.AWS.IoT.AttachPolicy

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