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

Defined in Network.AWS.IAM.DeleteUserPolicy

Data DeleteUserPolicy Source # 
Instance details

Defined in Network.AWS.IAM.DeleteUserPolicy

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

Defined in Network.AWS.IAM.DeleteUserPolicy

Show DeleteUserPolicy Source # 
Instance details

Defined in Network.AWS.IAM.DeleteUserPolicy

Generic DeleteUserPolicy Source # 
Instance details

Defined in Network.AWS.IAM.DeleteUserPolicy

Associated Types

type Rep DeleteUserPolicy :: Type -> Type #

Hashable DeleteUserPolicy Source # 
Instance details

Defined in Network.AWS.IAM.DeleteUserPolicy

AWSRequest DeleteUserPolicy Source # 
Instance details

Defined in Network.AWS.IAM.DeleteUserPolicy

Associated Types

type Rs DeleteUserPolicy :: Type #

ToHeaders DeleteUserPolicy Source # 
Instance details

Defined in Network.AWS.IAM.DeleteUserPolicy

ToPath DeleteUserPolicy Source # 
Instance details

Defined in Network.AWS.IAM.DeleteUserPolicy

ToQuery DeleteUserPolicy Source # 
Instance details

Defined in Network.AWS.IAM.DeleteUserPolicy

NFData DeleteUserPolicy Source # 
Instance details

Defined in Network.AWS.IAM.DeleteUserPolicy

Methods

rnf :: DeleteUserPolicy -> () #

type Rep DeleteUserPolicy Source # 
Instance details

Defined in Network.AWS.IAM.DeleteUserPolicy

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

Defined in Network.AWS.IAM.DeleteUserPolicy

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

Defined in Network.AWS.IAM.DeleteUserPolicy

Data DeleteUserPolicyResponse Source # 
Instance details

Defined in Network.AWS.IAM.DeleteUserPolicy

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

Defined in Network.AWS.IAM.DeleteUserPolicy

Show DeleteUserPolicyResponse Source # 
Instance details

Defined in Network.AWS.IAM.DeleteUserPolicy

Generic DeleteUserPolicyResponse Source # 
Instance details

Defined in Network.AWS.IAM.DeleteUserPolicy

Associated Types

type Rep DeleteUserPolicyResponse :: Type -> Type #

NFData DeleteUserPolicyResponse Source # 
Instance details

Defined in Network.AWS.IAM.DeleteUserPolicy

type Rep DeleteUserPolicyResponse Source # 
Instance details

Defined in Network.AWS.IAM.DeleteUserPolicy

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