| 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.Chime.UpdateUser
Description
Updates user details for a specified user ID. Currently, only
LicenseType updates are supported for this action.
Synopsis
- data UpdateUser = UpdateUser' {}
- newUpdateUser :: Text -> Text -> UpdateUser
- updateUser_alexaForBusinessMetadata :: Lens' UpdateUser (Maybe AlexaForBusinessMetadata)
- updateUser_licenseType :: Lens' UpdateUser (Maybe License)
- updateUser_userType :: Lens' UpdateUser (Maybe UserType)
- updateUser_accountId :: Lens' UpdateUser 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.
Constructors
| UpdateUser' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> 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:
UpdateUser, updateUser_alexaForBusinessMetadata - The Alexa for Business metadata.
UpdateUser, updateUser_licenseType - The user license type to update. This must be a supported license type
for the Amazon Chime account that the user belongs to.
UpdateUser, updateUser_userType - The user type.
UpdateUser, updateUser_accountId - The Amazon Chime account ID.
UpdateUser, updateUser_userId - The user ID.
Request Lenses
updateUser_alexaForBusinessMetadata :: Lens' UpdateUser (Maybe AlexaForBusinessMetadata) Source #
The Alexa for Business metadata.
updateUser_licenseType :: Lens' UpdateUser (Maybe License) Source #
The user license type to update. This must be a supported license type for the Amazon Chime account that the user belongs to.
updateUser_userType :: Lens' UpdateUser (Maybe UserType) Source #
The user type.
updateUser_accountId :: Lens' UpdateUser Text Source #
The Amazon Chime account ID.
updateUser_userId :: Lens' UpdateUser Text Source #
The user ID.
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 updated user details.
$sel:httpStatus:UpdateUserResponse', updateUserResponse_httpStatus - The response's http status code.
Response Lenses
updateUserResponse_user :: Lens' UpdateUserResponse (Maybe User) Source #
The updated user details.
updateUserResponse_httpStatus :: Lens' UpdateUserResponse Int Source #
The response's http status code.