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 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_licenseType :: Lens' UpdateUser (Maybe License)
- updateUser_userType :: Lens' UpdateUser (Maybe UserType)
- updateUser_alexaForBusinessMetadata :: Lens' UpdateUser (Maybe AlexaForBusinessMetadata)
- 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.
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:licenseType: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.
$sel:userType:UpdateUser'
, updateUser_userType
- The user type.
$sel:alexaForBusinessMetadata:UpdateUser'
, updateUser_alexaForBusinessMetadata
- The Alexa for Business metadata.
$sel:accountId:UpdateUser'
, updateUser_accountId
- The Amazon Chime account ID.
$sel:userId:UpdateUser'
, updateUser_userId
- The user ID.
Request Lenses
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_alexaForBusinessMetadata :: Lens' UpdateUser (Maybe AlexaForBusinessMetadata) Source #
The Alexa for Business metadata.
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.
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 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.