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.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, see Managed Policies and Inline Policies in the IAM User Guide .

Synopsis

Creating a Request

detachUserPolicy #

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:

  • dUserName - The name (friendly name, not ARN) of the IAM user 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: =,.@-
  • dPolicyARN - 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 DetachUserPolicy #

See: detachUserPolicy smart constructor.

Instances

Eq DetachUserPolicy # 
Data DetachUserPolicy # 

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

Methods

rnf :: DetachUserPolicy -> () #

AWSRequest DetachUserPolicy # 
ToQuery DetachUserPolicy # 
ToPath DetachUserPolicy # 
ToHeaders DetachUserPolicy # 
type Rep DetachUserPolicy # 
type Rep DetachUserPolicy = D1 (MetaData "DetachUserPolicy" "Network.AWS.IAM.DetachUserPolicy" "amazonka-iam-1.4.5-1ijrgQyRuWgA7Tx0390Dx2" 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 # 

Request Lenses

dUserName :: Lens' DetachUserPolicy Text #

The name (friendly name, not ARN) of the IAM user 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: =,.@-

dPolicyARN :: Lens' DetachUserPolicy 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

detachUserPolicyResponse :: DetachUserPolicyResponse #

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

data DetachUserPolicyResponse #

See: detachUserPolicyResponse smart constructor.

Instances

Eq DetachUserPolicyResponse # 
Data DetachUserPolicyResponse # 

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 # 
Show DetachUserPolicyResponse # 
Generic DetachUserPolicyResponse # 
NFData DetachUserPolicyResponse # 
type Rep DetachUserPolicyResponse # 
type Rep DetachUserPolicyResponse = D1 (MetaData "DetachUserPolicyResponse" "Network.AWS.IAM.DetachUserPolicy" "amazonka-iam-1.4.5-1ijrgQyRuWgA7Tx0390Dx2" False) (C1 (MetaCons "DetachUserPolicyResponse'" PrefixI False) U1)