Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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_givenName :: Lens' UpdateUser (Maybe Text)
- updateUser_grantPoweruserPrivileges :: Lens' UpdateUser (Maybe BooleanEnumType)
- updateUser_locale :: Lens' UpdateUser (Maybe LocaleType)
- updateUser_authenticationToken :: Lens' UpdateUser (Maybe Text)
- updateUser_storageRule :: Lens' UpdateUser (Maybe StorageRuleType)
- updateUser_type :: Lens' UpdateUser (Maybe UserType)
- updateUser_surname :: Lens' UpdateUser (Maybe Text)
- updateUser_timeZoneId :: Lens' UpdateUser (Maybe Text)
- 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.
UpdateUser' | |
|
Instances
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:givenName: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.
$sel:locale:UpdateUser'
, updateUser_locale
- The locale of the user.
$sel:authenticationToken:UpdateUser'
, updateUser_authenticationToken
- Amazon WorkDocs authentication token. Not required when using AWS
administrator credentials to access the API.
$sel:storageRule:UpdateUser'
, updateUser_storageRule
- The amount of storage for the user.
$sel:type':UpdateUser'
, updateUser_type
- The type of the user.
$sel:surname:UpdateUser'
, updateUser_surname
- The surname of the user.
$sel:timeZoneId:UpdateUser'
, updateUser_timeZoneId
- The time zone ID of the user.
$sel:userId:UpdateUser'
, updateUser_userId
- The ID of the user.
Request Lenses
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_authenticationToken :: Lens' UpdateUser (Maybe Text) Source #
Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
updateUser_storageRule :: Lens' UpdateUser (Maybe StorageRuleType) Source #
The amount of storage for the user.
updateUser_type :: Lens' UpdateUser (Maybe UserType) Source #
The type of 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_userId :: Lens' UpdateUser Text Source #
The ID of the user.
Destructuring the Response
data UpdateUserResponse Source #
See: newUpdateUserResponse
smart constructor.
UpdateUserResponse' | |
|
Instances
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
updateUserResponse_user :: Lens' UpdateUserResponse (Maybe User) Source #
The user information.
updateUserResponse_httpStatus :: Lens' UpdateUserResponse Int Source #
The response's http status code.