amazonka-clouddirectory-1.6.1: Amazon CloudDirectory 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.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 # 
Instance details

Defined in Network.AWS.CloudDirectory.AttachPolicy

Data AttachPolicy Source # 
Instance details

Defined in Network.AWS.CloudDirectory.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 Source # 
Instance details

Defined in Network.AWS.CloudDirectory.AttachPolicy

Show AttachPolicy Source # 
Instance details

Defined in Network.AWS.CloudDirectory.AttachPolicy

Generic AttachPolicy Source # 
Instance details

Defined in Network.AWS.CloudDirectory.AttachPolicy

Associated Types

type Rep AttachPolicy :: Type -> Type #

Hashable AttachPolicy Source # 
Instance details

Defined in Network.AWS.CloudDirectory.AttachPolicy

ToJSON AttachPolicy Source # 
Instance details

Defined in Network.AWS.CloudDirectory.AttachPolicy

AWSRequest AttachPolicy Source # 
Instance details

Defined in Network.AWS.CloudDirectory.AttachPolicy

Associated Types

type Rs AttachPolicy :: Type #

ToHeaders AttachPolicy Source # 
Instance details

Defined in Network.AWS.CloudDirectory.AttachPolicy

ToPath AttachPolicy Source # 
Instance details

Defined in Network.AWS.CloudDirectory.AttachPolicy

ToQuery AttachPolicy Source # 
Instance details

Defined in Network.AWS.CloudDirectory.AttachPolicy

NFData AttachPolicy Source # 
Instance details

Defined in Network.AWS.CloudDirectory.AttachPolicy

Methods

rnf :: AttachPolicy -> () #

type Rep AttachPolicy Source # 
Instance details

Defined in Network.AWS.CloudDirectory.AttachPolicy

type Rep AttachPolicy = D1 (MetaData "AttachPolicy" "Network.AWS.CloudDirectory.AttachPolicy" "amazonka-clouddirectory-1.6.1-JrYxtgIzVKD25mU0ZgOTPe" False) (C1 (MetaCons "AttachPolicy'" PrefixI True) (S1 (MetaSel (Just "_apDirectoryARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_apPolicyReference") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ObjectReference) :*: S1 (MetaSel (Just "_apObjectReference") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ObjectReference))))
type Rs AttachPolicy Source # 
Instance details

Defined in Network.AWS.CloudDirectory.AttachPolicy

Request Lenses

apDirectoryARN :: Lens' AttachPolicy 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 # 
Instance details

Defined in Network.AWS.CloudDirectory.AttachPolicy

Data AttachPolicyResponse Source # 
Instance details

Defined in Network.AWS.CloudDirectory.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 Source # 
Instance details

Defined in Network.AWS.CloudDirectory.AttachPolicy

Show AttachPolicyResponse Source # 
Instance details

Defined in Network.AWS.CloudDirectory.AttachPolicy

Generic AttachPolicyResponse Source # 
Instance details

Defined in Network.AWS.CloudDirectory.AttachPolicy

Associated Types

type Rep AttachPolicyResponse :: Type -> Type #

NFData AttachPolicyResponse Source # 
Instance details

Defined in Network.AWS.CloudDirectory.AttachPolicy

Methods

rnf :: AttachPolicyResponse -> () #

type Rep AttachPolicyResponse Source # 
Instance details

Defined in Network.AWS.CloudDirectory.AttachPolicy

type Rep AttachPolicyResponse = D1 (MetaData "AttachPolicyResponse" "Network.AWS.CloudDirectory.AttachPolicy" "amazonka-clouddirectory-1.6.1-JrYxtgIzVKD25mU0ZgOTPe" True) (C1 (MetaCons "AttachPolicyResponse'" PrefixI True) (S1 (MetaSel (Just "_aprsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

Response Lenses

aprsResponseStatus :: Lens' AttachPolicyResponse Int Source #

  • - | The response status code.