Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Gets the user attributes and metadata for a user.
- getUser :: GetUser
- data GetUser
- guAccessToken :: Lens' GetUser (Maybe Text)
- getUserResponse :: Int -> Text -> GetUserResponse
- data GetUserResponse
- gursMFAOptions :: Lens' GetUserResponse [MFAOptionType]
- gursResponseStatus :: Lens' GetUserResponse Int
- gursUsername :: Lens' GetUserResponse Text
- gursUserAttributes :: Lens' GetUserResponse [AttributeType]
Creating a Request
Creates a value of GetUser
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
guAccessToken
- The access token returned by the server response to get information about the user.
Represents the request to get information about the user.
See: getUser
smart constructor.
Request Lenses
guAccessToken :: Lens' GetUser (Maybe Text) Source #
The access token returned by the server response to get information about the user.
Destructuring the Response
Creates a value of GetUserResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gursMFAOptions
- Specifies the options for MFA (e.g., email or phone number).gursResponseStatus
- -- | The response status code.gursUsername
- The user name of the user you wish to retrieve from the get user request.gursUserAttributes
- An array of name-value pairs representing user attributes.
data GetUserResponse Source #
Represents the response from the server from the request to get information about the user.
See: getUserResponse
smart constructor.
Response Lenses
gursMFAOptions :: Lens' GetUserResponse [MFAOptionType] Source #
Specifies the options for MFA (e.g., email or phone number).
gursResponseStatus :: Lens' GetUserResponse Int Source #
- - | The response status code.
gursUsername :: Lens' GetUserResponse Text Source #
The user name of the user you wish to retrieve from the get user request.
gursUserAttributes :: Lens' GetUserResponse [AttributeType] Source #
An array of name-value pairs representing user attributes.