amazonka-iam-1.5.0: Amazon Identity and Access Management 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.IAM.AttachGroupPolicy

Contents

Description

Attaches the specified managed policy to the specified IAM group.

You use this API to attach a managed policy to a group. To embed an inline policy in a group, use PutGroupPolicy .

For more information about policies, see Managed Policies and Inline Policies in the IAM User Guide .

Synopsis

Creating a Request

attachGroupPolicy Source #

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

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

  • agpGroupName - The name (friendly name, not ARN) of the group to attach the policy to. This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
  • agpPolicyARN - The Amazon Resource Name (ARN) of the IAM policy you want to attach. For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference .

data AttachGroupPolicy Source #

See: attachGroupPolicy smart constructor.

Instances

Eq AttachGroupPolicy Source # 
Data AttachGroupPolicy Source # 

Methods

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

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

toConstr :: AttachGroupPolicy -> Constr #

dataTypeOf :: AttachGroupPolicy -> DataType #

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

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

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

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

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

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

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

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

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

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

Read AttachGroupPolicy Source # 
Show AttachGroupPolicy Source # 
Generic AttachGroupPolicy Source # 
Hashable AttachGroupPolicy Source # 
NFData AttachGroupPolicy Source # 

Methods

rnf :: AttachGroupPolicy -> () #

AWSRequest AttachGroupPolicy Source # 
ToQuery AttachGroupPolicy Source # 
ToPath AttachGroupPolicy Source # 
ToHeaders AttachGroupPolicy Source # 
type Rep AttachGroupPolicy Source # 
type Rep AttachGroupPolicy = D1 (MetaData "AttachGroupPolicy" "Network.AWS.IAM.AttachGroupPolicy" "amazonka-iam-1.5.0-2w4nVHAOrDgI2P1QVLKd9e" False) (C1 (MetaCons "AttachGroupPolicy'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_agpGroupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_agpPolicyARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs AttachGroupPolicy Source # 

Request Lenses

agpGroupName :: Lens' AttachGroupPolicy Text Source #

The name (friendly name, not ARN) of the group to attach the policy to. This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

agpPolicyARN :: Lens' AttachGroupPolicy Text Source #

The Amazon Resource Name (ARN) of the IAM policy you want to attach. For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference .

Destructuring the Response

attachGroupPolicyResponse :: AttachGroupPolicyResponse Source #

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

data AttachGroupPolicyResponse Source #

See: attachGroupPolicyResponse smart constructor.

Instances

Eq AttachGroupPolicyResponse Source # 
Data AttachGroupPolicyResponse Source # 

Methods

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

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

toConstr :: AttachGroupPolicyResponse -> Constr #

dataTypeOf :: AttachGroupPolicyResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read AttachGroupPolicyResponse Source # 
Show AttachGroupPolicyResponse Source # 
Generic AttachGroupPolicyResponse Source # 
NFData AttachGroupPolicyResponse Source # 
type Rep AttachGroupPolicyResponse Source # 
type Rep AttachGroupPolicyResponse = D1 (MetaData "AttachGroupPolicyResponse" "Network.AWS.IAM.AttachGroupPolicy" "amazonka-iam-1.5.0-2w4nVHAOrDgI2P1QVLKd9e" False) (C1 (MetaCons "AttachGroupPolicyResponse'" PrefixI False) U1)