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

Copyright(c) 2013-2015 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 Users and Groups in the Using IAM 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.

See: AWS API Reference for UpdateUser.

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:

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.