amazonka-iam-1.4.3: 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.DetachUserPolicy

Contents

Description

Removes the specified managed policy from the specified user.

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

Synopsis

Creating a Request

detachUserPolicy Source #

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

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

data DetachUserPolicy Source #

See: detachUserPolicy smart constructor.

Instances

Eq DetachUserPolicy Source # 
Data DetachUserPolicy Source # 

Methods

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

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

toConstr :: DetachUserPolicy -> Constr #

dataTypeOf :: DetachUserPolicy -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DetachUserPolicy Source # 
Show DetachUserPolicy Source # 
Generic DetachUserPolicy Source # 
Hashable DetachUserPolicy Source # 
NFData DetachUserPolicy Source # 

Methods

rnf :: DetachUserPolicy -> () #

AWSRequest DetachUserPolicy Source # 
ToPath DetachUserPolicy Source # 
ToHeaders DetachUserPolicy Source # 
ToQuery DetachUserPolicy Source # 
type Rep DetachUserPolicy Source # 
type Rep DetachUserPolicy = D1 (MetaData "DetachUserPolicy" "Network.AWS.IAM.DetachUserPolicy" "amazonka-iam-1.4.3-KkHaDC3pmsZLURksVtoSGT" False) (C1 (MetaCons "DetachUserPolicy'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_dUserName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_dPolicyARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs DetachUserPolicy Source # 

Request Lenses

dUserName :: Lens' DetachUserPolicy Text Source #

The name (friendly name, not ARN) of the user to detach the policy from.

dPolicyARN :: Lens' DetachUserPolicy Text Source #

Undocumented member.

Destructuring the Response

detachUserPolicyResponse :: DetachUserPolicyResponse Source #

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

data DetachUserPolicyResponse Source #

See: detachUserPolicyResponse smart constructor.

Instances

Eq DetachUserPolicyResponse Source # 
Data DetachUserPolicyResponse Source # 

Methods

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

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

toConstr :: DetachUserPolicyResponse -> Constr #

dataTypeOf :: DetachUserPolicyResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DetachUserPolicyResponse Source # 
Show DetachUserPolicyResponse Source # 
Generic DetachUserPolicyResponse Source # 
NFData DetachUserPolicyResponse Source # 
type Rep DetachUserPolicyResponse Source # 
type Rep DetachUserPolicyResponse = D1 (MetaData "DetachUserPolicyResponse" "Network.AWS.IAM.DetachUserPolicy" "amazonka-iam-1.4.3-KkHaDC3pmsZLURksVtoSGT" False) (C1 (MetaCons "DetachUserPolicyResponse'" PrefixI False) U1)