Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Updates the specified attributes of the specified user, and grants or revokes administrative privileges to the Amazon WorkDocs site.
Synopsis
- updateUser :: Text -> UpdateUser
- data UpdateUser
- uuGivenName :: Lens' UpdateUser (Maybe Text)
- uuGrantPoweruserPrivileges :: Lens' UpdateUser (Maybe BooleanEnumType)
- uuLocale :: Lens' UpdateUser (Maybe LocaleType)
- uuAuthenticationToken :: Lens' UpdateUser (Maybe Text)
- uuStorageRule :: Lens' UpdateUser (Maybe StorageRuleType)
- uuType :: Lens' UpdateUser (Maybe UserType)
- uuSurname :: Lens' UpdateUser (Maybe Text)
- uuTimeZoneId :: Lens' UpdateUser (Maybe Text)
- uuUserId :: Lens' UpdateUser Text
- updateUserResponse :: Int -> UpdateUserResponse
- data UpdateUserResponse
- uursUser :: Lens' UpdateUserResponse (Maybe User)
- uursResponseStatus :: Lens' UpdateUserResponse Int
Creating a Request
:: Text | |
-> 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:
uuGivenName
- The given name of the user.uuGrantPoweruserPrivileges
- Boolean value to determine whether the user is granted Poweruser privileges.uuLocale
- The locale of the user.uuAuthenticationToken
- Amazon WorkDocs authentication token. Do not set this field when using administrative API actions, as in accessing the API using AWS credentials.uuStorageRule
- The amount of storage for the user.uuType
- The type of the user.uuSurname
- The surname of the user.uuTimeZoneId
- The time zone ID of the user.uuUserId
- The ID of the user.
data UpdateUser Source #
See: updateUser
smart constructor.
Instances
Request Lenses
uuGivenName :: Lens' UpdateUser (Maybe Text) Source #
The given name of the user.
uuGrantPoweruserPrivileges :: Lens' UpdateUser (Maybe BooleanEnumType) Source #
Boolean value to determine whether the user is granted Poweruser privileges.
uuLocale :: Lens' UpdateUser (Maybe LocaleType) Source #
The locale of the user.
uuAuthenticationToken :: Lens' UpdateUser (Maybe Text) Source #
Amazon WorkDocs authentication token. Do not set this field when using administrative API actions, as in accessing the API using AWS credentials.
uuStorageRule :: Lens' UpdateUser (Maybe StorageRuleType) Source #
The amount of storage for the user.
uuTimeZoneId :: Lens' UpdateUser (Maybe Text) Source #
The time zone ID of the user.
Destructuring the Response
Creates a value of UpdateUserResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
uursUser
- The user information.uursResponseStatus
- -- | The response status code.
data UpdateUserResponse Source #
See: updateUserResponse
smart constructor.
Instances
Response Lenses
uursResponseStatus :: Lens' UpdateUserResponse Int Source #
- - | The response status code.