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.DetachGroupPolicy

Contents

Description

Removes the specified managed policy from the specified IAM group.

A group can also have inline policies embedded with it. To delete an inline policy, use the DeleteGroupPolicy API. For information about policies, see Managed Policies and Inline Policies in the IAM User Guide .

Synopsis

Creating a Request

detachGroupPolicy #

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

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

  • dgpGroupName - The name (friendly name, not ARN) of the IAM group to detach the policy from. 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: =,.@-
  • dgpPolicyARN - The Amazon Resource Name (ARN) of the IAM policy you want to detach. For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference .

data DetachGroupPolicy #

See: detachGroupPolicy smart constructor.

Instances

Eq DetachGroupPolicy # 
Data DetachGroupPolicy # 

Methods

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

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

toConstr :: DetachGroupPolicy -> Constr #

dataTypeOf :: DetachGroupPolicy -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DetachGroupPolicy # 
Show DetachGroupPolicy # 
Generic DetachGroupPolicy # 
Hashable DetachGroupPolicy # 
NFData DetachGroupPolicy # 

Methods

rnf :: DetachGroupPolicy -> () #

AWSRequest DetachGroupPolicy # 
ToQuery DetachGroupPolicy # 
ToPath DetachGroupPolicy # 
ToHeaders DetachGroupPolicy # 
type Rep DetachGroupPolicy # 
type Rep DetachGroupPolicy = D1 (MetaData "DetachGroupPolicy" "Network.AWS.IAM.DetachGroupPolicy" "amazonka-iam-1.4.5-1ijrgQyRuWgA7Tx0390Dx2" False) (C1 (MetaCons "DetachGroupPolicy'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_dgpGroupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_dgpPolicyARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs DetachGroupPolicy # 

Request Lenses

dgpGroupName :: Lens' DetachGroupPolicy Text #

The name (friendly name, not ARN) of the IAM group to detach the policy from. 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: =,.@-

dgpPolicyARN :: Lens' DetachGroupPolicy Text #

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

Destructuring the Response

detachGroupPolicyResponse :: DetachGroupPolicyResponse #

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

data DetachGroupPolicyResponse #

See: detachGroupPolicyResponse smart constructor.

Instances

Eq DetachGroupPolicyResponse # 
Data DetachGroupPolicyResponse # 

Methods

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

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

toConstr :: DetachGroupPolicyResponse -> Constr #

dataTypeOf :: DetachGroupPolicyResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DetachGroupPolicyResponse # 
Show DetachGroupPolicyResponse # 
Generic DetachGroupPolicyResponse # 
NFData DetachGroupPolicyResponse # 
type Rep DetachGroupPolicyResponse # 
type Rep DetachGroupPolicyResponse = D1 (MetaData "DetachGroupPolicyResponse" "Network.AWS.IAM.DetachGroupPolicy" "amazonka-iam-1.4.5-1ijrgQyRuWgA7Tx0390Dx2" False) (C1 (MetaCons "DetachGroupPolicyResponse'" PrefixI False) U1)