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 |
Retrieves details of the current user for whom the authentication token was generated. This is not a valid action for SigV4 (administrative API) clients.
This action requires an authentication token. To get an authentication token, register an application with Amazon WorkDocs. For more information, see Authentication and Access Control for User Applications in the Amazon WorkDocs Developer Guide.
Synopsis
- data GetCurrentUser = GetCurrentUser' {}
- newGetCurrentUser :: Text -> GetCurrentUser
- getCurrentUser_authenticationToken :: Lens' GetCurrentUser Text
- data GetCurrentUserResponse = GetCurrentUserResponse' {
- user :: Maybe User
- httpStatus :: Int
- newGetCurrentUserResponse :: Int -> GetCurrentUserResponse
- getCurrentUserResponse_user :: Lens' GetCurrentUserResponse (Maybe User)
- getCurrentUserResponse_httpStatus :: Lens' GetCurrentUserResponse Int
Creating a Request
data GetCurrentUser Source #
See: newGetCurrentUser
smart constructor.
GetCurrentUser' | |
|
Instances
Create a value of GetCurrentUser
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:GetCurrentUser'
, getCurrentUser_authenticationToken
- Amazon WorkDocs authentication token.
Request Lenses
getCurrentUser_authenticationToken :: Lens' GetCurrentUser Text Source #
Amazon WorkDocs authentication token.
Destructuring the Response
data GetCurrentUserResponse Source #
See: newGetCurrentUserResponse
smart constructor.
GetCurrentUserResponse' | |
|
Instances
newGetCurrentUserResponse Source #
Create a value of GetCurrentUserResponse
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:GetCurrentUserResponse'
, getCurrentUserResponse_user
- Metadata of the user.
$sel:httpStatus:GetCurrentUserResponse'
, getCurrentUserResponse_httpStatus
- The response's http status code.
Response Lenses
getCurrentUserResponse_user :: Lens' GetCurrentUserResponse (Maybe User) Source #
Metadata of the user.
getCurrentUserResponse_httpStatus :: Lens' GetCurrentUserResponse Int Source #
The response's http status code.