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

Defined in Network.AWS.IAM.DetachGroupPolicy

Data DetachGroupPolicy Source # 
Instance details

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

Defined in Network.AWS.IAM.DetachGroupPolicy

Show DetachGroupPolicy Source # 
Instance details

Defined in Network.AWS.IAM.DetachGroupPolicy

Generic DetachGroupPolicy Source # 
Instance details

Defined in Network.AWS.IAM.DetachGroupPolicy

Associated Types

type Rep DetachGroupPolicy :: Type -> Type #

Hashable DetachGroupPolicy Source # 
Instance details

Defined in Network.AWS.IAM.DetachGroupPolicy

AWSRequest DetachGroupPolicy Source # 
Instance details

Defined in Network.AWS.IAM.DetachGroupPolicy

Associated Types

type Rs DetachGroupPolicy :: Type #

ToHeaders DetachGroupPolicy Source # 
Instance details

Defined in Network.AWS.IAM.DetachGroupPolicy

ToPath DetachGroupPolicy Source # 
Instance details

Defined in Network.AWS.IAM.DetachGroupPolicy

ToQuery DetachGroupPolicy Source # 
Instance details

Defined in Network.AWS.IAM.DetachGroupPolicy

NFData DetachGroupPolicy Source # 
Instance details

Defined in Network.AWS.IAM.DetachGroupPolicy

Methods

rnf :: DetachGroupPolicy -> () #

type Rep DetachGroupPolicy Source # 
Instance details

Defined in Network.AWS.IAM.DetachGroupPolicy

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

Defined in Network.AWS.IAM.DetachGroupPolicy

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

Defined in Network.AWS.IAM.DetachGroupPolicy

Data DetachGroupPolicyResponse Source # 
Instance details

Defined in Network.AWS.IAM.DetachGroupPolicy

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

Defined in Network.AWS.IAM.DetachGroupPolicy

Show DetachGroupPolicyResponse Source # 
Instance details

Defined in Network.AWS.IAM.DetachGroupPolicy

Generic DetachGroupPolicyResponse Source # 
Instance details

Defined in Network.AWS.IAM.DetachGroupPolicy

Associated Types

type Rep DetachGroupPolicyResponse :: Type -> Type #

NFData DetachGroupPolicyResponse Source # 
Instance details

Defined in Network.AWS.IAM.DetachGroupPolicy

type Rep DetachGroupPolicyResponse Source # 
Instance details

Defined in Network.AWS.IAM.DetachGroupPolicy

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