amazonka-iam-1.6.0: 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.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 Source #

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. 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: _+=,.@-
  • 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 Source #

See: detachGroupPolicy smart constructor.

Instances

Eq DetachGroupPolicy Source # 
Data DetachGroupPolicy Source # 

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

Methods

rnf :: DetachGroupPolicy -> () #

AWSRequest DetachGroupPolicy Source # 
ToHeaders DetachGroupPolicy Source # 
ToPath DetachGroupPolicy Source # 
ToQuery DetachGroupPolicy Source # 
type Rep DetachGroupPolicy Source # 
type Rep DetachGroupPolicy = D1 * (MetaData "DetachGroupPolicy" "Network.AWS.IAM.DetachGroupPolicy" "amazonka-iam-1.6.0-CI3f7XZIc4eD0Ehb04tNY7" 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 Source # 

Request Lenses

dgpGroupName :: Lens' DetachGroupPolicy Text Source #

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

dgpPolicyARN :: Lens' DetachGroupPolicy Text Source #

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 Source #

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

data DetachGroupPolicyResponse Source #

See: detachGroupPolicyResponse smart constructor.

Instances

Eq DetachGroupPolicyResponse Source # 
Data DetachGroupPolicyResponse Source # 

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 Source # 
Show DetachGroupPolicyResponse Source # 
Generic DetachGroupPolicyResponse Source # 
NFData DetachGroupPolicyResponse Source # 
type Rep DetachGroupPolicyResponse Source # 
type Rep DetachGroupPolicyResponse = D1 * (MetaData "DetachGroupPolicyResponse" "Network.AWS.IAM.DetachGroupPolicy" "amazonka-iam-1.6.0-CI3f7XZIc4eD0Ehb04tNY7" False) (C1 * (MetaCons "DetachGroupPolicyResponse'" PrefixI False) (U1 *))