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 |
Gets the user attributes and metadata for a user.
Synopsis
- getUser :: Text -> GetUser
- data GetUser
- guAccessToken :: Lens' GetUser Text
- getUserResponse :: Int -> Text -> GetUserResponse
- data GetUserResponse
- gursUserMFASettingList :: Lens' GetUserResponse [Text]
- gursMFAOptions :: Lens' GetUserResponse [MFAOptionType]
- gursPreferredMFASetting :: Lens' GetUserResponse (Maybe Text)
- 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.
Instances
Request Lenses
guAccessToken :: Lens' GetUser 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:
gursUserMFASettingList
- The list of the user's MFA settings.gursMFAOptions
- Specifies the options for MFA (e.g., email or phone number).gursPreferredMFASetting
- The user's preferred MFA setting.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. For custom attributes, you must prepend thecustom:
prefix to the attribute name.
data GetUserResponse Source #
Represents the response from the server from the request to get information about the user.
See: getUserResponse
smart constructor.
Instances
Response Lenses
gursUserMFASettingList :: Lens' GetUserResponse [Text] Source #
The list of the user's MFA settings.
gursMFAOptions :: Lens' GetUserResponse [MFAOptionType] Source #
Specifies the options for MFA (e.g., email or phone number).
gursPreferredMFASetting :: Lens' GetUserResponse (Maybe Text) Source #
The user's preferred MFA setting.
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. For custom attributes, you must prepend the custom:
prefix to the attribute name.