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

See: detachUserPolicy smart constructor.

Instances
Eq DetachUserPolicy # 
Instance details

Defined in Network.AWS.IAM.DetachUserPolicy

Data DetachUserPolicy # 
Instance details

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

Defined in Network.AWS.IAM.DetachUserPolicy

Show DetachUserPolicy # 
Instance details

Defined in Network.AWS.IAM.DetachUserPolicy

Generic DetachUserPolicy # 
Instance details

Defined in Network.AWS.IAM.DetachUserPolicy

Associated Types

type Rep DetachUserPolicy :: Type -> Type #

Hashable DetachUserPolicy # 
Instance details

Defined in Network.AWS.IAM.DetachUserPolicy

AWSRequest DetachUserPolicy # 
Instance details

Defined in Network.AWS.IAM.DetachUserPolicy

Associated Types

type Rs DetachUserPolicy :: Type #

ToHeaders DetachUserPolicy # 
Instance details

Defined in Network.AWS.IAM.DetachUserPolicy

ToPath DetachUserPolicy # 
Instance details

Defined in Network.AWS.IAM.DetachUserPolicy

ToQuery DetachUserPolicy # 
Instance details

Defined in Network.AWS.IAM.DetachUserPolicy

NFData DetachUserPolicy # 
Instance details

Defined in Network.AWS.IAM.DetachUserPolicy

Methods

rnf :: DetachUserPolicy -> () #

type Rep DetachUserPolicy # 
Instance details

Defined in Network.AWS.IAM.DetachUserPolicy

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

Defined in Network.AWS.IAM.DetachUserPolicy

Request Lenses

dUserName :: Lens' DetachUserPolicy Text #

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 #

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

Defined in Network.AWS.IAM.DetachUserPolicy

Data DetachUserPolicyResponse # 
Instance details

Defined in Network.AWS.IAM.DetachUserPolicy

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

Defined in Network.AWS.IAM.DetachUserPolicy

Show DetachUserPolicyResponse # 
Instance details

Defined in Network.AWS.IAM.DetachUserPolicy

Generic DetachUserPolicyResponse # 
Instance details

Defined in Network.AWS.IAM.DetachUserPolicy

Associated Types

type Rep DetachUserPolicyResponse :: Type -> Type #

NFData DetachUserPolicyResponse # 
Instance details

Defined in Network.AWS.IAM.DetachUserPolicy

type Rep DetachUserPolicyResponse # 
Instance details

Defined in Network.AWS.IAM.DetachUserPolicy

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