| 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 |
Network.AWS.WorkDocs.GetCurrentUser
Description
Retrieves details of the current user for whom the authentication token was generated. This is not a valid action for SigV4 (administrative API) clients.
Synopsis
- getCurrentUser :: Text -> GetCurrentUser
- data GetCurrentUser
- gcuAuthenticationToken :: Lens' GetCurrentUser Text
- getCurrentUserResponse :: Int -> GetCurrentUserResponse
- data GetCurrentUserResponse
- gcursUser :: Lens' GetCurrentUserResponse (Maybe User)
- gcursResponseStatus :: Lens' GetCurrentUserResponse Int
Creating a Request
Arguments
| :: Text | |
| -> GetCurrentUser |
Creates a value of GetCurrentUser with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gcuAuthenticationToken- Amazon WorkDocs authentication token. Do not set this field when using administrative API actions, as in accessing the API using AWS credentials.
data GetCurrentUser Source #
See: getCurrentUser smart constructor.
Instances
Request Lenses
gcuAuthenticationToken :: Lens' GetCurrentUser Text Source #
Amazon WorkDocs authentication token. Do not set this field when using administrative API actions, as in accessing the API using AWS credentials.
Destructuring the Response
getCurrentUserResponse Source #
Arguments
| :: Int | |
| -> GetCurrentUserResponse |
Creates a value of GetCurrentUserResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gcursUser- Metadata of the user.gcursResponseStatus- -- | The response status code.
data GetCurrentUserResponse Source #
See: getCurrentUserResponse smart constructor.
Instances
Response Lenses
gcursResponseStatus :: Lens' GetCurrentUserResponse Int Source #
- - | The response status code.