Copyright | (c) 2013-2021 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 |
Creates a user under the specified Amazon Chime account.
Synopsis
- data CreateUser = CreateUser' {}
- newCreateUser :: Text -> CreateUser
- createUser_email :: Lens' CreateUser (Maybe Text)
- createUser_username :: Lens' CreateUser (Maybe Text)
- createUser_userType :: Lens' CreateUser (Maybe UserType)
- 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.
Instances
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:
$sel:email:CreateUser'
, createUser_email
- The user's email address.
$sel:username:CreateUser'
, createUser_username
- The user name.
$sel:userType:CreateUser'
, createUser_userType
- The user type.
$sel:accountId:CreateUser'
, createUser_accountId
- The Amazon Chime account ID.
Request Lenses
createUser_email :: Lens' CreateUser (Maybe Text) Source #
The user's email address.
createUser_username :: Lens' CreateUser (Maybe Text) Source #
The user name.
createUser_userType :: Lens' CreateUser (Maybe UserType) Source #
The user type.
createUser_accountId :: Lens' CreateUser Text Source #
The Amazon Chime account ID.
Destructuring the Response
data CreateUserResponse Source #
See: newCreateUserResponse
smart constructor.
CreateUserResponse' | |
|
Instances
newCreateUserResponse Source #
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.