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 new user in the user pool.
Synopsis
- data CreateUser = CreateUser' {}
- newCreateUser :: Text -> AuthenticationType -> CreateUser
- createUser_lastName :: Lens' CreateUser (Maybe Text)
- createUser_messageAction :: Lens' CreateUser (Maybe MessageAction)
- createUser_firstName :: Lens' CreateUser (Maybe Text)
- createUser_userName :: Lens' CreateUser Text
- createUser_authenticationType :: Lens' CreateUser AuthenticationType
- data CreateUserResponse = CreateUserResponse' {
- httpStatus :: Int
- newCreateUserResponse :: Int -> CreateUserResponse
- createUserResponse_httpStatus :: Lens' CreateUserResponse Int
Creating a Request
data CreateUser Source #
See: newCreateUser
smart constructor.
CreateUser' | |
|
Instances
:: Text | |
-> AuthenticationType | |
-> 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:
$sel:lastName:CreateUser'
, createUser_lastName
- The last name, or surname, of the user.
$sel:messageAction:CreateUser'
, createUser_messageAction
- The action to take for the welcome email that is sent to a user after
the user is created in the user pool. If you specify SUPPRESS, no email
is sent. If you specify RESEND, do not specify the first name or last
name of the user. If the value is null, the email is sent.
The temporary password in the welcome email is valid for only 7 days. If users don’t set their passwords within 7 days, you must send them a new welcome email.
$sel:firstName:CreateUser'
, createUser_firstName
- The first name, or given name, of the user.
$sel:userName:CreateUser'
, createUser_userName
- The email address of the user.
Users' email addresses are case-sensitive. During login, if they specify an email address that doesn't use the same capitalization as the email address specified when their user pool account was created, a "user does not exist" error message displays.
$sel:authenticationType:CreateUser'
, createUser_authenticationType
- The authentication type for the user. You must specify USERPOOL.
Request Lenses
createUser_lastName :: Lens' CreateUser (Maybe Text) Source #
The last name, or surname, of the user.
createUser_messageAction :: Lens' CreateUser (Maybe MessageAction) Source #
The action to take for the welcome email that is sent to a user after the user is created in the user pool. If you specify SUPPRESS, no email is sent. If you specify RESEND, do not specify the first name or last name of the user. If the value is null, the email is sent.
The temporary password in the welcome email is valid for only 7 days. If users don’t set their passwords within 7 days, you must send them a new welcome email.
createUser_firstName :: Lens' CreateUser (Maybe Text) Source #
The first name, or given name, of the user.
createUser_userName :: Lens' CreateUser Text Source #
The email address of the user.
Users' email addresses are case-sensitive. During login, if they specify an email address that doesn't use the same capitalization as the email address specified when their user pool account was created, a "user does not exist" error message displays.
createUser_authenticationType :: Lens' CreateUser AuthenticationType Source #
The authentication type for the user. You must specify USERPOOL.
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:httpStatus:CreateUserResponse'
, createUserResponse_httpStatus
- The response's http status code.
Response Lenses
createUserResponse_httpStatus :: Lens' CreateUserResponse Int Source #
The response's http status code.