amazonka-iam-1.6.0: 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.DeleteUserPolicy

Contents

Description

Deletes the specified inline policy that is embedded in the specified IAM user.

A user can also have managed policies attached to it. To detach a managed policy from a user, use DetachUserPolicy . For more information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .

Synopsis

Creating a Request

deleteUserPolicy Source #

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

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

  • dupUserName - The name (friendly name, not ARN) identifying the user that the policy is embedded in. 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: _+=,.@-
  • dupPolicyName - The name identifying the policy document to delete. 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: _+=,.@-

data DeleteUserPolicy Source #

See: deleteUserPolicy smart constructor.

Instances

Eq DeleteUserPolicy Source # 
Data DeleteUserPolicy Source # 

Methods

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

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

toConstr :: DeleteUserPolicy -> Constr #

dataTypeOf :: DeleteUserPolicy -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteUserPolicy Source # 
Show DeleteUserPolicy Source # 
Generic DeleteUserPolicy Source # 
Hashable DeleteUserPolicy Source # 
NFData DeleteUserPolicy Source # 

Methods

rnf :: DeleteUserPolicy -> () #

AWSRequest DeleteUserPolicy Source # 
ToHeaders DeleteUserPolicy Source # 
ToPath DeleteUserPolicy Source # 
ToQuery DeleteUserPolicy Source # 
type Rep DeleteUserPolicy Source # 
type Rep DeleteUserPolicy = D1 * (MetaData "DeleteUserPolicy" "Network.AWS.IAM.DeleteUserPolicy" "amazonka-iam-1.6.0-CI3f7XZIc4eD0Ehb04tNY7" False) (C1 * (MetaCons "DeleteUserPolicy'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_dupUserName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_dupPolicyName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))
type Rs DeleteUserPolicy Source # 

Request Lenses

dupUserName :: Lens' DeleteUserPolicy Text Source #

The name (friendly name, not ARN) identifying the user that the policy is embedded in. 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: _+=,.@-

dupPolicyName :: Lens' DeleteUserPolicy Text Source #

The name identifying the policy document to delete. 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: _+=,.@-

Destructuring the Response

deleteUserPolicyResponse :: DeleteUserPolicyResponse Source #

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

data DeleteUserPolicyResponse Source #

See: deleteUserPolicyResponse smart constructor.

Instances

Eq DeleteUserPolicyResponse Source # 
Data DeleteUserPolicyResponse Source # 

Methods

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

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

toConstr :: DeleteUserPolicyResponse -> Constr #

dataTypeOf :: DeleteUserPolicyResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteUserPolicyResponse Source # 
Show DeleteUserPolicyResponse Source # 
Generic DeleteUserPolicyResponse Source # 
NFData DeleteUserPolicyResponse Source # 
type Rep DeleteUserPolicyResponse Source # 
type Rep DeleteUserPolicyResponse = D1 * (MetaData "DeleteUserPolicyResponse" "Network.AWS.IAM.DeleteUserPolicy" "amazonka-iam-1.6.0-CI3f7XZIc4eD0Ehb04tNY7" False) (C1 * (MetaCons "DeleteUserPolicyResponse'" PrefixI False) (U1 *))