amazonka-workdocs-2.0: Amazon WorkDocs SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.WorkDocs.UpdateUser

Description

Updates the specified attributes of the specified user, and grants or revokes administrative privileges to the Amazon WorkDocs site.

Synopsis

Creating a Request

data UpdateUser Source #

See: newUpdateUser smart constructor.

Constructors

UpdateUser' 

Fields

Instances

Instances details
ToJSON UpdateUser Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateUser

ToHeaders UpdateUser Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateUser

Methods

toHeaders :: UpdateUser -> [Header] #

ToPath UpdateUser Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateUser

ToQuery UpdateUser Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateUser

AWSRequest UpdateUser Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateUser

Associated Types

type AWSResponse UpdateUser #

Generic UpdateUser Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateUser

Associated Types

type Rep UpdateUser :: Type -> Type #

Show UpdateUser Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateUser

NFData UpdateUser Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateUser

Methods

rnf :: UpdateUser -> () #

Eq UpdateUser Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateUser

Hashable UpdateUser Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateUser

type AWSResponse UpdateUser Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateUser

type Rep UpdateUser Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateUser

newUpdateUser Source #

Create a value of UpdateUser with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:authenticationToken:UpdateUser', updateUser_authenticationToken - Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.

UpdateUser, updateUser_givenName - The given name of the user.

$sel:grantPoweruserPrivileges:UpdateUser', updateUser_grantPoweruserPrivileges - Boolean value to determine whether the user is granted Poweruser privileges.

UpdateUser, updateUser_locale - The locale of the user.

UpdateUser, updateUser_storageRule - The amount of storage for the user.

UpdateUser, updateUser_surname - The surname of the user.

UpdateUser, updateUser_timeZoneId - The time zone ID of the user.

UpdateUser, updateUser_type - The type of the user.

$sel:userId:UpdateUser', updateUser_userId - The ID of the user.

Request Lenses

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

Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.

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

The given name of the user.

updateUser_grantPoweruserPrivileges :: Lens' UpdateUser (Maybe BooleanEnumType) Source #

Boolean value to determine whether the user is granted Poweruser privileges.

updateUser_storageRule :: Lens' UpdateUser (Maybe StorageRuleType) Source #

The amount of storage for the user.

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

The surname of the user.

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

The time zone ID of the user.

Destructuring the Response

data UpdateUserResponse Source #

See: newUpdateUserResponse smart constructor.

Constructors

UpdateUserResponse' 

Fields

Instances

Instances details
Generic UpdateUserResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateUser

Associated Types

type Rep UpdateUserResponse :: Type -> Type #

Show UpdateUserResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateUser

NFData UpdateUserResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateUser

Methods

rnf :: UpdateUserResponse -> () #

Eq UpdateUserResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateUser

type Rep UpdateUserResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateUser

type Rep UpdateUserResponse = D1 ('MetaData "UpdateUserResponse" "Amazonka.WorkDocs.UpdateUser" "amazonka-workdocs-2.0-2rElYnFvcad3yrUkWYMHCU" 'False) (C1 ('MetaCons "UpdateUserResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "user") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe User)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newUpdateUserResponse Source #

Create a value of UpdateUserResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:user:UpdateUserResponse', updateUserResponse_user - The user information.

$sel:httpStatus:UpdateUserResponse', updateUserResponse_httpStatus - The response's http status code.

Response Lenses