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

Contents

Description

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

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

Synopsis

Creating a Request

updateUser #

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:

  • uuNewUserName - New name for the user. Include this parameter only if you're changing the user's name. 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: _+=,.@-
  • uuNewPath - New path for the IAM user. Include this parameter only if you're changing the user's path. This parameter allows (per its regex pattern ) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any ASCII character from the ! (u0021) through the DEL character (u007F), including most punctuation characters, digits, and upper and lowercased letters.
  • uuUserName - Name of the user to update. If you're changing the name of the user, this is the original user name. 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 UpdateUser #

See: updateUser smart constructor.

Instances
Eq UpdateUser # 
Instance details

Defined in Network.AWS.IAM.UpdateUser

Data UpdateUser # 
Instance details

Defined in Network.AWS.IAM.UpdateUser

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

Defined in Network.AWS.IAM.UpdateUser

Show UpdateUser # 
Instance details

Defined in Network.AWS.IAM.UpdateUser

Generic UpdateUser # 
Instance details

Defined in Network.AWS.IAM.UpdateUser

Associated Types

type Rep UpdateUser :: * -> * #

Hashable UpdateUser # 
Instance details

Defined in Network.AWS.IAM.UpdateUser

AWSRequest UpdateUser # 
Instance details

Defined in Network.AWS.IAM.UpdateUser

Associated Types

type Rs UpdateUser :: * #

ToHeaders UpdateUser # 
Instance details

Defined in Network.AWS.IAM.UpdateUser

Methods

toHeaders :: UpdateUser -> [Header] #

ToPath UpdateUser # 
Instance details

Defined in Network.AWS.IAM.UpdateUser

ToQuery UpdateUser # 
Instance details

Defined in Network.AWS.IAM.UpdateUser

NFData UpdateUser # 
Instance details

Defined in Network.AWS.IAM.UpdateUser

Methods

rnf :: UpdateUser -> () #

type Rep UpdateUser # 
Instance details

Defined in Network.AWS.IAM.UpdateUser

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

Defined in Network.AWS.IAM.UpdateUser

Request Lenses

uuNewUserName :: Lens' UpdateUser (Maybe Text) #

New name for the user. Include this parameter only if you're changing the user's name. 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: _+=,.@-

uuNewPath :: Lens' UpdateUser (Maybe Text) #

New path for the IAM user. Include this parameter only if you're changing the user's path. This parameter allows (per its regex pattern ) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any ASCII character from the ! (u0021) through the DEL character (u007F), including most punctuation characters, digits, and upper and lowercased letters.

uuUserName :: Lens' UpdateUser Text #

Name of the user to update. If you're changing the name of the user, this is the original user name. 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

updateUserResponse :: UpdateUserResponse #

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

data UpdateUserResponse #

See: updateUserResponse smart constructor.

Instances
Eq UpdateUserResponse # 
Instance details

Defined in Network.AWS.IAM.UpdateUser

Data UpdateUserResponse # 
Instance details

Defined in Network.AWS.IAM.UpdateUser

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

Defined in Network.AWS.IAM.UpdateUser

Show UpdateUserResponse # 
Instance details

Defined in Network.AWS.IAM.UpdateUser

Generic UpdateUserResponse # 
Instance details

Defined in Network.AWS.IAM.UpdateUser

Associated Types

type Rep UpdateUserResponse :: * -> * #

NFData UpdateUserResponse # 
Instance details

Defined in Network.AWS.IAM.UpdateUser

Methods

rnf :: UpdateUserResponse -> () #

type Rep UpdateUserResponse # 
Instance details

Defined in Network.AWS.IAM.UpdateUser

type Rep UpdateUserResponse = D1 (MetaData "UpdateUserResponse" "Network.AWS.IAM.UpdateUser" "amazonka-iam-1.6.0-KLHg33OPBsA2oss7MTCyZq" False) (C1 (MetaCons "UpdateUserResponse'" PrefixI False) (U1 :: * -> *))