amazonka-iam-1.5.0: Amazon Identity and Access Management SDK.

Copyright(c) 2013-2017 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.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 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:

  • dUserName - The name (friendly name, not ARN) of the IAM user 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: =,.@-
  • 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 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 # 
ToQuery DetachUserPolicy Source # 
ToPath DetachUserPolicy Source # 
ToHeaders DetachUserPolicy Source # 
type Rep DetachUserPolicy Source # 
type Rep DetachUserPolicy = D1 (MetaData "DetachUserPolicy" "Network.AWS.IAM.DetachUserPolicy" "amazonka-iam-1.5.0-2w4nVHAOrDgI2P1QVLKd9e" 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 IAM user 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: =,.@-

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

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.5.0-2w4nVHAOrDgI2P1QVLKd9e" False) (C1 (MetaCons "DetachUserPolicyResponse'" PrefixI False) U1)