| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.WorkDocs.UpdateUser
Description
Updates the specified attributes of the specified user, and grants or revokes administrative privileges to the Amazon WorkDocs site.
Synopsis
- data UpdateUser = UpdateUser' {}
- newUpdateUser :: Text -> UpdateUser
- updateUser_authenticationToken :: Lens' UpdateUser (Maybe Text)
- updateUser_givenName :: Lens' UpdateUser (Maybe Text)
- updateUser_grantPoweruserPrivileges :: Lens' UpdateUser (Maybe BooleanEnumType)
- updateUser_locale :: Lens' UpdateUser (Maybe LocaleType)
- updateUser_storageRule :: Lens' UpdateUser (Maybe StorageRuleType)
- updateUser_surname :: Lens' UpdateUser (Maybe Text)
- updateUser_timeZoneId :: Lens' UpdateUser (Maybe Text)
- updateUser_type :: Lens' UpdateUser (Maybe UserType)
- updateUser_userId :: Lens' UpdateUser Text
- data UpdateUserResponse = UpdateUserResponse' {
- user :: Maybe User
- httpStatus :: Int
- newUpdateUserResponse :: Int -> UpdateUserResponse
- updateUserResponse_user :: Lens' UpdateUserResponse (Maybe User)
- updateUserResponse_httpStatus :: Lens' UpdateUserResponse Int
Creating a Request
data UpdateUser Source #
See: newUpdateUser smart constructor.
Constructors
| UpdateUser' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> UpdateUser |
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_locale :: Lens' UpdateUser (Maybe LocaleType) Source #
The locale of the user.
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.
updateUser_type :: Lens' UpdateUser (Maybe UserType) Source #
The type of the user.
updateUser_userId :: Lens' UpdateUser Text Source #
The ID of the user.
Destructuring the Response
data UpdateUserResponse Source #
See: newUpdateUserResponse smart constructor.
Constructors
| UpdateUserResponse' | |
Fields
| |
Instances
newUpdateUserResponse Source #
Arguments
| :: Int | |
| -> UpdateUserResponse |
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
updateUserResponse_user :: Lens' UpdateUserResponse (Maybe User) Source #
The user information.
updateUserResponse_httpStatus :: Lens' UpdateUserResponse Int Source #
The response's http status code.