amazonka-iam-1.4.1: 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.UpdateUser

Contents

Description

Updates the name and/or the path of the specified user.

You should understand the implications of changing a user's path or name. For more information, see Renaming an IAM User and Renaming an IAM Group in the IAM User Guide.

To change a user name the requester must have appropriate permissions on both the source object and the target object. For example, to change Bob to Robert, the entity making the request must have permission on Bob and Robert, or must have permission on all (*). For more information about permissions, see Permissions and Policies.

Synopsis

Creating a Request

updateUser Source #

Arguments

:: Text

uuUserName

-> UpdateUser 

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

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

data UpdateUser Source #

See: updateUser smart constructor.

Instances

Eq UpdateUser Source # 
Data UpdateUser Source # 

Methods

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

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

toConstr :: UpdateUser -> Constr #

dataTypeOf :: UpdateUser -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateUser Source # 
Show UpdateUser Source # 
Generic UpdateUser Source # 

Associated Types

type Rep UpdateUser :: * -> * #

Hashable UpdateUser Source # 
NFData UpdateUser Source # 

Methods

rnf :: UpdateUser -> () #

AWSRequest UpdateUser Source # 
ToQuery UpdateUser Source # 
ToPath UpdateUser Source # 
ToHeaders UpdateUser Source # 

Methods

toHeaders :: UpdateUser -> [Header] #

type Rep UpdateUser Source # 
type Rep UpdateUser = D1 (MetaData "UpdateUser" "Network.AWS.IAM.UpdateUser" "amazonka-iam-1.4.1-7UxTCVdPNcf8CA4oHmoXZ6" False) (C1 (MetaCons "UpdateUser'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_uuNewUserName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_uuNewPath") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_uuUserName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs UpdateUser Source # 

Request Lenses

uuNewUserName :: Lens' UpdateUser (Maybe Text) Source #

New name for the user. Include this parameter only if you're changing the user's name.

uuNewPath :: Lens' UpdateUser (Maybe Text) Source #

New path for the user. Include this parameter only if you're changing the user's path.

uuUserName :: Lens' UpdateUser Text Source #

Name of the user to update. If you're changing the name of the user, this is the original user name.

Destructuring the Response

updateUserResponse :: UpdateUserResponse Source #

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

data UpdateUserResponse Source #

See: updateUserResponse smart constructor.

Instances

Eq UpdateUserResponse Source # 
Data UpdateUserResponse Source # 

Methods

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

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

toConstr :: UpdateUserResponse -> Constr #

dataTypeOf :: UpdateUserResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateUserResponse Source # 
Show UpdateUserResponse Source # 
Generic UpdateUserResponse Source # 
NFData UpdateUserResponse Source # 

Methods

rnf :: UpdateUserResponse -> () #

type Rep UpdateUserResponse Source # 
type Rep UpdateUserResponse = D1 (MetaData "UpdateUserResponse" "Network.AWS.IAM.UpdateUser" "amazonka-iam-1.4.1-7UxTCVdPNcf8CA4oHmoXZ6" False) (C1 (MetaCons "UpdateUserResponse'" PrefixI False) U1)