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

  • 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 Source #

See: updateUser smart constructor.

Instances
Eq UpdateUser Source # 
Instance details

Defined in Network.AWS.IAM.UpdateUser

Data UpdateUser Source # 
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 Source # 
Instance details

Defined in Network.AWS.IAM.UpdateUser

Show UpdateUser Source # 
Instance details

Defined in Network.AWS.IAM.UpdateUser

Generic UpdateUser Source # 
Instance details

Defined in Network.AWS.IAM.UpdateUser

Associated Types

type Rep UpdateUser :: Type -> Type #

Hashable UpdateUser Source # 
Instance details

Defined in Network.AWS.IAM.UpdateUser

AWSRequest UpdateUser Source # 
Instance details

Defined in Network.AWS.IAM.UpdateUser

Associated Types

type Rs UpdateUser :: Type #

ToHeaders UpdateUser Source # 
Instance details

Defined in Network.AWS.IAM.UpdateUser

Methods

toHeaders :: UpdateUser -> [Header] #

ToPath UpdateUser Source # 
Instance details

Defined in Network.AWS.IAM.UpdateUser

ToQuery UpdateUser Source # 
Instance details

Defined in Network.AWS.IAM.UpdateUser

NFData UpdateUser Source # 
Instance details

Defined in Network.AWS.IAM.UpdateUser

Methods

rnf :: UpdateUser -> () #

type Rep UpdateUser Source # 
Instance details

Defined in Network.AWS.IAM.UpdateUser

type Rep UpdateUser = D1 (MetaData "UpdateUser" "Network.AWS.IAM.UpdateUser" "amazonka-iam-1.6.1-BDjAp2BAcQu3GSS4Bsr6zu" 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 Source # 
Instance details

Defined in Network.AWS.IAM.UpdateUser

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. 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) Source #

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 Source #

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

Defined in Network.AWS.IAM.UpdateUser

Data UpdateUserResponse Source # 
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 Source # 
Instance details

Defined in Network.AWS.IAM.UpdateUser

Show UpdateUserResponse Source # 
Instance details

Defined in Network.AWS.IAM.UpdateUser

Generic UpdateUserResponse Source # 
Instance details

Defined in Network.AWS.IAM.UpdateUser

Associated Types

type Rep UpdateUserResponse :: Type -> Type #

NFData UpdateUserResponse Source # 
Instance details

Defined in Network.AWS.IAM.UpdateUser

Methods

rnf :: UpdateUserResponse -> () #

type Rep UpdateUserResponse Source # 
Instance details

Defined in Network.AWS.IAM.UpdateUser

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