| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Chime.GetUser
Description
Retrieves details for the specified user ID, such as primary email address, license type,and personal meeting PIN.
To retrieve user details with an email address instead of a user ID, use the ListUsers action, and then filter by email address.
Synopsis
- data GetUser = GetUser' {}
- newGetUser :: Text -> Text -> GetUser
- getUser_accountId :: Lens' GetUser Text
- getUser_userId :: Lens' GetUser Text
- data GetUserResponse = GetUserResponse' {
- user :: Maybe User
- httpStatus :: Int
- newGetUserResponse :: Int -> GetUserResponse
- getUserResponse_user :: Lens' GetUserResponse (Maybe User)
- getUserResponse_httpStatus :: Lens' GetUserResponse Int
Creating a Request
See: newGetUser smart constructor.
Instances
Create a value of GetUser 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:
GetUser, getUser_accountId - The Amazon Chime account ID.
GetUser, getUser_userId - The user ID.
Request Lenses
Destructuring the Response
data GetUserResponse Source #
See: newGetUserResponse smart constructor.
Constructors
| GetUserResponse' | |
Fields
| |
Instances
Arguments
| :: Int | |
| -> GetUserResponse |
Create a value of GetUserResponse 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:GetUserResponse', getUserResponse_user - The user details.
$sel:httpStatus:GetUserResponse', getUserResponse_httpStatus - The response's http status code.
Response Lenses
getUserResponse_user :: Lens' GetUserResponse (Maybe User) Source #
The user details.
getUserResponse_httpStatus :: Lens' GetUserResponse Int Source #
The response's http status code.