amazonka-iam-1.4.5: Amazon Identity and Access Management SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@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 #

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. The regex pattern for this parameter is 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 #

See: attachGroupPolicy smart constructor.

Instances

Eq AttachGroupPolicy # 
Data AttachGroupPolicy # 

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 # 
Show AttachGroupPolicy # 
Generic AttachGroupPolicy # 
Hashable AttachGroupPolicy # 
NFData AttachGroupPolicy # 

Methods

rnf :: AttachGroupPolicy -> () #

AWSRequest AttachGroupPolicy # 
ToQuery AttachGroupPolicy # 
ToPath AttachGroupPolicy # 
ToHeaders AttachGroupPolicy # 
type Rep AttachGroupPolicy # 
type Rep AttachGroupPolicy = D1 (MetaData "AttachGroupPolicy" "Network.AWS.IAM.AttachGroupPolicy" "amazonka-iam-1.4.5-1ijrgQyRuWgA7Tx0390Dx2" 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 # 

Request Lenses

agpGroupName :: Lens' AttachGroupPolicy Text #

The name (friendly name, not ARN) of the group to attach the policy to. The regex pattern for this parameter is 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 #

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 #

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

data AttachGroupPolicyResponse #

See: attachGroupPolicyResponse smart constructor.

Instances

Eq AttachGroupPolicyResponse # 
Data AttachGroupPolicyResponse # 

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 # 
Show AttachGroupPolicyResponse # 
Generic AttachGroupPolicyResponse # 
NFData AttachGroupPolicyResponse # 
type Rep AttachGroupPolicyResponse # 
type Rep AttachGroupPolicyResponse = D1 (MetaData "AttachGroupPolicyResponse" "Network.AWS.IAM.AttachGroupPolicy" "amazonka-iam-1.4.5-1ijrgQyRuWgA7Tx0390Dx2" False) (C1 (MetaCons "AttachGroupPolicyResponse'" PrefixI False) U1)