amazonka-iam-1.6.1: Amazon Identity and Access Management 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.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. 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 #

See: attachGroupPolicy smart constructor.

Instances
Eq AttachGroupPolicy # 
Instance details

Defined in Network.AWS.IAM.AttachGroupPolicy

Data AttachGroupPolicy # 
Instance details

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

Defined in Network.AWS.IAM.AttachGroupPolicy

Show AttachGroupPolicy # 
Instance details

Defined in Network.AWS.IAM.AttachGroupPolicy

Generic AttachGroupPolicy # 
Instance details

Defined in Network.AWS.IAM.AttachGroupPolicy

Associated Types

type Rep AttachGroupPolicy :: Type -> Type #

Hashable AttachGroupPolicy # 
Instance details

Defined in Network.AWS.IAM.AttachGroupPolicy

AWSRequest AttachGroupPolicy # 
Instance details

Defined in Network.AWS.IAM.AttachGroupPolicy

Associated Types

type Rs AttachGroupPolicy :: Type #

ToHeaders AttachGroupPolicy # 
Instance details

Defined in Network.AWS.IAM.AttachGroupPolicy

ToPath AttachGroupPolicy # 
Instance details

Defined in Network.AWS.IAM.AttachGroupPolicy

ToQuery AttachGroupPolicy # 
Instance details

Defined in Network.AWS.IAM.AttachGroupPolicy

NFData AttachGroupPolicy # 
Instance details

Defined in Network.AWS.IAM.AttachGroupPolicy

Methods

rnf :: AttachGroupPolicy -> () #

type Rep AttachGroupPolicy # 
Instance details

Defined in Network.AWS.IAM.AttachGroupPolicy

type Rep AttachGroupPolicy = D1 (MetaData "AttachGroupPolicy" "Network.AWS.IAM.AttachGroupPolicy" "amazonka-iam-1.6.1-GVjkJ4xTMMc7GNa2rMCkPz" False) (C1 (MetaCons "AttachGroupPolicy'" PrefixI True) (S1 (MetaSel (Just "_agpGroupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_agpPolicyARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs AttachGroupPolicy # 
Instance details

Defined in Network.AWS.IAM.AttachGroupPolicy

Request Lenses

agpGroupName :: Lens' AttachGroupPolicy Text #

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 #

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

Defined in Network.AWS.IAM.AttachGroupPolicy

Data AttachGroupPolicyResponse # 
Instance details

Defined in Network.AWS.IAM.AttachGroupPolicy

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

Defined in Network.AWS.IAM.AttachGroupPolicy

Show AttachGroupPolicyResponse # 
Instance details

Defined in Network.AWS.IAM.AttachGroupPolicy

Generic AttachGroupPolicyResponse # 
Instance details

Defined in Network.AWS.IAM.AttachGroupPolicy

Associated Types

type Rep AttachGroupPolicyResponse :: Type -> Type #

NFData AttachGroupPolicyResponse # 
Instance details

Defined in Network.AWS.IAM.AttachGroupPolicy

type Rep AttachGroupPolicyResponse # 
Instance details

Defined in Network.AWS.IAM.AttachGroupPolicy

type Rep AttachGroupPolicyResponse = D1 (MetaData "AttachGroupPolicyResponse" "Network.AWS.IAM.AttachGroupPolicy" "amazonka-iam-1.6.1-GVjkJ4xTMMc7GNa2rMCkPz" False) (C1 (MetaCons "AttachGroupPolicyResponse'" PrefixI False) (U1 :: Type -> Type))