| 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.ActivateUser
Description
Activates the specified user. Only active users can access Amazon WorkDocs.
Synopsis
- data ActivateUser = ActivateUser' {}
- newActivateUser :: Text -> ActivateUser
- activateUser_authenticationToken :: Lens' ActivateUser (Maybe Text)
- activateUser_userId :: Lens' ActivateUser Text
- data ActivateUserResponse = ActivateUserResponse' {
- user :: Maybe User
- httpStatus :: Int
- newActivateUserResponse :: Int -> ActivateUserResponse
- activateUserResponse_user :: Lens' ActivateUserResponse (Maybe User)
- activateUserResponse_httpStatus :: Lens' ActivateUserResponse Int
Creating a Request
data ActivateUser Source #
See: newActivateUser smart constructor.
Constructors
| ActivateUser' | |
Instances
Arguments
| :: Text | |
| -> ActivateUser |
Create a value of ActivateUser 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:ActivateUser', activateUser_authenticationToken - Amazon WorkDocs authentication token. Not required when using AWS
administrator credentials to access the API.
$sel:userId:ActivateUser', activateUser_userId - The ID of the user.
Request Lenses
activateUser_authenticationToken :: Lens' ActivateUser (Maybe Text) Source #
Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
activateUser_userId :: Lens' ActivateUser Text Source #
The ID of the user.
Destructuring the Response
data ActivateUserResponse Source #
See: newActivateUserResponse smart constructor.
Constructors
| ActivateUserResponse' | |
Fields
| |
Instances
newActivateUserResponse Source #
Arguments
| :: Int | |
| -> ActivateUserResponse |
Create a value of ActivateUserResponse 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:ActivateUserResponse', activateUserResponse_user - The user information.
$sel:httpStatus:ActivateUserResponse', activateUserResponse_httpStatus - The response's http status code.
Response Lenses
activateUserResponse_user :: Lens' ActivateUserResponse (Maybe User) Source #
The user information.
activateUserResponse_httpStatus :: Lens' ActivateUserResponse Int Source #
The response's http status code.