public static final class CfnUserProps.Builder
extends java.lang.Object
CfnUserProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnUserProps.Builder |
authenticationType(java.lang.String authenticationType)
Sets the value of
CfnUserProps.getAuthenticationType() |
CfnUserProps |
build()
Builds the configured instance.
|
CfnUserProps.Builder |
firstName(java.lang.String firstName)
Sets the value of
CfnUserProps.getFirstName() |
CfnUserProps.Builder |
lastName(java.lang.String lastName)
Sets the value of
CfnUserProps.getLastName() |
CfnUserProps.Builder |
messageAction(java.lang.String messageAction)
Sets the value of
CfnUserProps.getMessageAction() |
CfnUserProps.Builder |
userName(java.lang.String userName)
Sets the value of
CfnUserProps.getUserName() |
public CfnUserProps.Builder authenticationType(java.lang.String authenticationType)
CfnUserProps.getAuthenticationType()
authenticationType
- The authentication type for the user. This parameter is required.
You must specify USERPOOL.this
public CfnUserProps.Builder userName(java.lang.String userName)
CfnUserProps.getUserName()
userName
- The email address of the user. This parameter is required.
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.this
public CfnUserProps.Builder firstName(java.lang.String firstName)
CfnUserProps.getFirstName()
firstName
- The first name, or given name, of the user.this
public CfnUserProps.Builder lastName(java.lang.String lastName)
CfnUserProps.getLastName()
lastName
- The last name, or surname, of the user.this
public CfnUserProps.Builder messageAction(java.lang.String messageAction)
CfnUserProps.getMessageAction()
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.
this
public CfnUserProps build()
CfnUserProps
java.lang.NullPointerException
- if any required attribute was not provided