amazonka-clouddirectory-1.5.0: Amazon CloudDirectory 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.CloudDirectory.AttachPolicy

Contents

Description

Attaches a policy object to a regular object. An object can have a limited number of attached policies.

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:

  • apDirectoryARN - The Amazon Resource Name (ARN) that is associated with the Directory where both objects reside. For more information, see arns .
  • apPolicyReference - The reference that is associated with the policy object.
  • apObjectReference - The reference that identifies the object to which the policy will be 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 # 
ToQuery AttachPolicy Source # 
ToPath AttachPolicy Source # 
ToHeaders AttachPolicy Source # 
type Rep AttachPolicy Source # 
type Rep AttachPolicy = D1 (MetaData "AttachPolicy" "Network.AWS.CloudDirectory.AttachPolicy" "amazonka-clouddirectory-1.5.0-4g2rtj0PtNBHCN8G8qmiXW" False) (C1 (MetaCons "AttachPolicy'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_apDirectoryARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_apPolicyReference") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ObjectReference)) (S1 (MetaSel (Just Symbol "_apObjectReference") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ObjectReference)))))
type Rs AttachPolicy Source # 

Request Lenses

apDirectoryARN :: Lens' AttachPolicy (Maybe Text) Source #

The Amazon Resource Name (ARN) that is associated with the Directory where both objects reside. For more information, see arns .

apPolicyReference :: Lens' AttachPolicy ObjectReference Source #

The reference that is associated with the policy object.

apObjectReference :: Lens' AttachPolicy ObjectReference Source #

The reference that identifies the object to which the policy will be attached.

Destructuring the Response

attachPolicyResponse Source #

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

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

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.CloudDirectory.AttachPolicy" "amazonka-clouddirectory-1.5.0-4g2rtj0PtNBHCN8G8qmiXW" True) (C1 (MetaCons "AttachPolicyResponse'" PrefixI True) (S1 (MetaSel (Just Symbol "_aprsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

Response Lenses

aprsResponseStatus :: Lens' AttachPolicyResponse Int Source #

  • - | The response status code.