| 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.CreateUser
Description
Creates a user under the specified Amazon Chime account.
Synopsis
- data CreateUser = CreateUser' {}
- newCreateUser :: Text -> CreateUser
- createUser_email :: Lens' CreateUser (Maybe Text)
- createUser_userType :: Lens' CreateUser (Maybe UserType)
- createUser_username :: Lens' CreateUser (Maybe Text)
- createUser_accountId :: Lens' CreateUser Text
- data CreateUserResponse = CreateUserResponse' {
- user :: Maybe User
- httpStatus :: Int
- newCreateUserResponse :: Int -> CreateUserResponse
- createUserResponse_user :: Lens' CreateUserResponse (Maybe User)
- createUserResponse_httpStatus :: Lens' CreateUserResponse Int
Creating a Request
data CreateUser Source #
See: newCreateUser smart constructor.
Constructors
| CreateUser' | |
Instances
Arguments
| :: Text | |
| -> CreateUser |
Create a value of CreateUser 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:
CreateUser, createUser_email - The user's email address.
CreateUser, createUser_userType - The user type.
CreateUser, createUser_username - The user name.
CreateUser, createUser_accountId - The Amazon Chime account ID.
Request Lenses
createUser_email :: Lens' CreateUser (Maybe Text) Source #
The user's email address.
createUser_userType :: Lens' CreateUser (Maybe UserType) Source #
The user type.
createUser_username :: Lens' CreateUser (Maybe Text) Source #
The user name.
createUser_accountId :: Lens' CreateUser Text Source #
The Amazon Chime account ID.
Destructuring the Response
data CreateUserResponse Source #
See: newCreateUserResponse smart constructor.
Constructors
| CreateUserResponse' | |
Fields
| |
Instances
newCreateUserResponse Source #
Arguments
| :: Int | |
| -> CreateUserResponse |
Create a value of CreateUserResponse 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:CreateUserResponse', createUserResponse_user - Undocumented member.
$sel:httpStatus:CreateUserResponse', createUserResponse_httpStatus - The response's http status code.
Response Lenses
createUserResponse_user :: Lens' CreateUserResponse (Maybe User) Source #
Undocumented member.
createUserResponse_httpStatus :: Lens' CreateUserResponse Int Source #
The response's http status code.