Copyright | (c) 2013-2017 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 |
Retrieves details of the current user for whom the authentication token was generated. This is not a valid action for SigV4 (administrative API) clients.
- 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
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.
data GetCurrentUser Source #
See: getCurrentUser
smart constructor.
Request Lenses
gcuAuthenticationToken :: Lens' GetCurrentUser Text Source #
Amazon WorkDocs authentication token.
Destructuring the Response
getCurrentUserResponse Source #
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.
Response Lenses
gcursResponseStatus :: Lens' GetCurrentUserResponse Int Source #
- - | The response status code.