public class CreateUserPoolRequest extends AmazonWebServiceRequest implements Serializable
Creates a new Amazon Cognito user pool and sets the password policy for the pool.
Constructor and Description |
---|
CreateUserPoolRequest() |
Modifier and Type | Method and Description |
---|---|
CreateUserPoolRequest |
addUserPoolTagsEntry(String key,
String value)
The tag keys and values to assign to the user pool.
|
CreateUserPoolRequest |
clearUserPoolTagsEntries()
Removes all the entries added into UserPoolTags.
|
boolean |
equals(Object obj) |
AccountRecoverySettingType |
getAccountRecoverySetting()
Use this setting to define which verified available method a user can use
to recover their password when they call
ForgotPassword . |
AdminCreateUserConfigType |
getAdminCreateUserConfig()
The configuration for
AdminCreateUser requests. |
List<String> |
getAliasAttributes()
Attributes supported as an alias for this user pool.
|
List<String> |
getAutoVerifiedAttributes()
The attributes to be auto-verified.
|
DeviceConfigurationType |
getDeviceConfiguration()
The device configuration.
|
EmailConfigurationType |
getEmailConfiguration()
The email configuration.
|
String |
getEmailVerificationMessage()
A string representing the email verification message.
|
String |
getEmailVerificationSubject()
A string representing the email verification subject.
|
LambdaConfigType |
getLambdaConfig()
The Lambda trigger configuration information for the new user pool.
|
String |
getMfaConfiguration()
Specifies MFA configuration details.
|
UserPoolPolicyType |
getPolicies()
The policies associated with the new user pool.
|
String |
getPoolName()
A string used to name the user pool.
|
List<SchemaAttributeType> |
getSchema()
An array of schema attributes for the new user pool.
|
String |
getSmsAuthenticationMessage()
A string representing the SMS authentication message.
|
SmsConfigurationType |
getSmsConfiguration()
The SMS configuration.
|
String |
getSmsVerificationMessage()
A string representing the SMS verification message.
|
List<String> |
getUsernameAttributes()
Specifies whether email addresses or phone numbers can be specified as
usernames when a user signs up.
|
UsernameConfigurationType |
getUsernameConfiguration()
You can choose to set case sensitivity on the username input for the
selected sign-in option.
|
UserPoolAddOnsType |
getUserPoolAddOns()
Used to enable advanced security risk detection.
|
Map<String,String> |
getUserPoolTags()
The tag keys and values to assign to the user pool.
|
VerificationMessageTemplateType |
getVerificationMessageTemplate()
The template for the verification message that the user sees when the app
requests permission to access the user's information.
|
int |
hashCode() |
void |
setAccountRecoverySetting(AccountRecoverySettingType accountRecoverySetting)
Use this setting to define which verified available method a user can use
to recover their password when they call
ForgotPassword . |
void |
setAdminCreateUserConfig(AdminCreateUserConfigType adminCreateUserConfig)
The configuration for
AdminCreateUser requests. |
void |
setAliasAttributes(Collection<String> aliasAttributes)
Attributes supported as an alias for this user pool.
|
void |
setAutoVerifiedAttributes(Collection<String> autoVerifiedAttributes)
The attributes to be auto-verified.
|
void |
setDeviceConfiguration(DeviceConfigurationType deviceConfiguration)
The device configuration.
|
void |
setEmailConfiguration(EmailConfigurationType emailConfiguration)
The email configuration.
|
void |
setEmailVerificationMessage(String emailVerificationMessage)
A string representing the email verification message.
|
void |
setEmailVerificationSubject(String emailVerificationSubject)
A string representing the email verification subject.
|
void |
setLambdaConfig(LambdaConfigType lambdaConfig)
The Lambda trigger configuration information for the new user pool.
|
void |
setMfaConfiguration(String mfaConfiguration)
Specifies MFA configuration details.
|
void |
setMfaConfiguration(UserPoolMfaType mfaConfiguration)
Specifies MFA configuration details.
|
void |
setPolicies(UserPoolPolicyType policies)
The policies associated with the new user pool.
|
void |
setPoolName(String poolName)
A string used to name the user pool.
|
void |
setSchema(Collection<SchemaAttributeType> schema)
An array of schema attributes for the new user pool.
|
void |
setSmsAuthenticationMessage(String smsAuthenticationMessage)
A string representing the SMS authentication message.
|
void |
setSmsConfiguration(SmsConfigurationType smsConfiguration)
The SMS configuration.
|
void |
setSmsVerificationMessage(String smsVerificationMessage)
A string representing the SMS verification message.
|
void |
setUsernameAttributes(Collection<String> usernameAttributes)
Specifies whether email addresses or phone numbers can be specified as
usernames when a user signs up.
|
void |
setUsernameConfiguration(UsernameConfigurationType usernameConfiguration)
You can choose to set case sensitivity on the username input for the
selected sign-in option.
|
void |
setUserPoolAddOns(UserPoolAddOnsType userPoolAddOns)
Used to enable advanced security risk detection.
|
void |
setUserPoolTags(Map<String,String> userPoolTags)
The tag keys and values to assign to the user pool.
|
void |
setVerificationMessageTemplate(VerificationMessageTemplateType verificationMessageTemplate)
The template for the verification message that the user sees when the app
requests permission to access the user's information.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateUserPoolRequest |
withAccountRecoverySetting(AccountRecoverySettingType accountRecoverySetting)
Use this setting to define which verified available method a user can use
to recover their password when they call
ForgotPassword . |
CreateUserPoolRequest |
withAdminCreateUserConfig(AdminCreateUserConfigType adminCreateUserConfig)
The configuration for
AdminCreateUser requests. |
CreateUserPoolRequest |
withAliasAttributes(Collection<String> aliasAttributes)
Attributes supported as an alias for this user pool.
|
CreateUserPoolRequest |
withAliasAttributes(String... aliasAttributes)
Attributes supported as an alias for this user pool.
|
CreateUserPoolRequest |
withAutoVerifiedAttributes(Collection<String> autoVerifiedAttributes)
The attributes to be auto-verified.
|
CreateUserPoolRequest |
withAutoVerifiedAttributes(String... autoVerifiedAttributes)
The attributes to be auto-verified.
|
CreateUserPoolRequest |
withDeviceConfiguration(DeviceConfigurationType deviceConfiguration)
The device configuration.
|
CreateUserPoolRequest |
withEmailConfiguration(EmailConfigurationType emailConfiguration)
The email configuration.
|
CreateUserPoolRequest |
withEmailVerificationMessage(String emailVerificationMessage)
A string representing the email verification message.
|
CreateUserPoolRequest |
withEmailVerificationSubject(String emailVerificationSubject)
A string representing the email verification subject.
|
CreateUserPoolRequest |
withLambdaConfig(LambdaConfigType lambdaConfig)
The Lambda trigger configuration information for the new user pool.
|
CreateUserPoolRequest |
withMfaConfiguration(String mfaConfiguration)
Specifies MFA configuration details.
|
CreateUserPoolRequest |
withMfaConfiguration(UserPoolMfaType mfaConfiguration)
Specifies MFA configuration details.
|
CreateUserPoolRequest |
withPolicies(UserPoolPolicyType policies)
The policies associated with the new user pool.
|
CreateUserPoolRequest |
withPoolName(String poolName)
A string used to name the user pool.
|
CreateUserPoolRequest |
withSchema(Collection<SchemaAttributeType> schema)
An array of schema attributes for the new user pool.
|
CreateUserPoolRequest |
withSchema(SchemaAttributeType... schema)
An array of schema attributes for the new user pool.
|
CreateUserPoolRequest |
withSmsAuthenticationMessage(String smsAuthenticationMessage)
A string representing the SMS authentication message.
|
CreateUserPoolRequest |
withSmsConfiguration(SmsConfigurationType smsConfiguration)
The SMS configuration.
|
CreateUserPoolRequest |
withSmsVerificationMessage(String smsVerificationMessage)
A string representing the SMS verification message.
|
CreateUserPoolRequest |
withUsernameAttributes(Collection<String> usernameAttributes)
Specifies whether email addresses or phone numbers can be specified as
usernames when a user signs up.
|
CreateUserPoolRequest |
withUsernameAttributes(String... usernameAttributes)
Specifies whether email addresses or phone numbers can be specified as
usernames when a user signs up.
|
CreateUserPoolRequest |
withUsernameConfiguration(UsernameConfigurationType usernameConfiguration)
You can choose to set case sensitivity on the username input for the
selected sign-in option.
|
CreateUserPoolRequest |
withUserPoolAddOns(UserPoolAddOnsType userPoolAddOns)
Used to enable advanced security risk detection.
|
CreateUserPoolRequest |
withUserPoolTags(Map<String,String> userPoolTags)
The tag keys and values to assign to the user pool.
|
CreateUserPoolRequest |
withVerificationMessageTemplate(VerificationMessageTemplateType verificationMessageTemplate)
The template for the verification message that the user sees when the app
requests permission to access the user's information.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getPoolName()
A string used to name the user pool.
Constraints:
Length: 1 - 128
Pattern: [\w\s+=,.@-]+
A string used to name the user pool.
public void setPoolName(String poolName)
A string used to name the user pool.
Constraints:
Length: 1 - 128
Pattern: [\w\s+=,.@-]+
poolName
- A string used to name the user pool.
public CreateUserPoolRequest withPoolName(String poolName)
A string used to name the user pool.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [\w\s+=,.@-]+
poolName
- A string used to name the user pool.
public UserPoolPolicyType getPolicies()
The policies associated with the new user pool.
The policies associated with the new user pool.
public void setPolicies(UserPoolPolicyType policies)
The policies associated with the new user pool.
policies
- The policies associated with the new user pool.
public CreateUserPoolRequest withPolicies(UserPoolPolicyType policies)
The policies associated with the new user pool.
Returns a reference to this object so that method calls can be chained together.
policies
- The policies associated with the new user pool.
public LambdaConfigType getLambdaConfig()
The Lambda trigger configuration information for the new user pool.
In a push model, event sources (such as Amazon S3 and custom applications) need permission to invoke a function. So you will need to make an extra call to add permission for these event sources to invoke your Lambda function.
For more information on using the Lambda API to add permission, see AddPermission .
For adding permission using the AWS CLI, see add-permission .
The Lambda trigger configuration information for the new user pool.
In a push model, event sources (such as Amazon S3 and custom applications) need permission to invoke a function. So you will need to make an extra call to add permission for these event sources to invoke your Lambda function.
For more information on using the Lambda API to add permission, see AddPermission .
For adding permission using the AWS CLI, see add-permission .
public void setLambdaConfig(LambdaConfigType lambdaConfig)
The Lambda trigger configuration information for the new user pool.
In a push model, event sources (such as Amazon S3 and custom applications) need permission to invoke a function. So you will need to make an extra call to add permission for these event sources to invoke your Lambda function.
For more information on using the Lambda API to add permission, see AddPermission .
For adding permission using the AWS CLI, see add-permission .
lambdaConfig
- The Lambda trigger configuration information for the new user pool.
In a push model, event sources (such as Amazon S3 and custom applications) need permission to invoke a function. So you will need to make an extra call to add permission for these event sources to invoke your Lambda function.
For more information on using the Lambda API to add permission, see AddPermission .
For adding permission using the AWS CLI, see add-permission .
public CreateUserPoolRequest withLambdaConfig(LambdaConfigType lambdaConfig)
The Lambda trigger configuration information for the new user pool.
In a push model, event sources (such as Amazon S3 and custom applications) need permission to invoke a function. So you will need to make an extra call to add permission for these event sources to invoke your Lambda function.
For more information on using the Lambda API to add permission, see AddPermission .
For adding permission using the AWS CLI, see add-permission .
Returns a reference to this object so that method calls can be chained together.
lambdaConfig
- The Lambda trigger configuration information for the new user pool.
In a push model, event sources (such as Amazon S3 and custom applications) need permission to invoke a function. So you will need to make an extra call to add permission for these event sources to invoke your Lambda function.
For more information on using the Lambda API to add permission, see AddPermission .
For adding permission using the AWS CLI, see add-permission .
public List<String> getAutoVerifiedAttributes()
The attributes to be auto-verified. Possible values: email, phone_number.
The attributes to be auto-verified. Possible values: email, phone_number.
public void setAutoVerifiedAttributes(Collection<String> autoVerifiedAttributes)
The attributes to be auto-verified. Possible values: email, phone_number.
autoVerifiedAttributes
- The attributes to be auto-verified. Possible values: email, phone_number.
public CreateUserPoolRequest withAutoVerifiedAttributes(String... autoVerifiedAttributes)
The attributes to be auto-verified. Possible values: email, phone_number.
Returns a reference to this object so that method calls can be chained together.
autoVerifiedAttributes
- The attributes to be auto-verified. Possible values: email, phone_number.
public CreateUserPoolRequest withAutoVerifiedAttributes(Collection<String> autoVerifiedAttributes)
The attributes to be auto-verified. Possible values: email, phone_number.
Returns a reference to this object so that method calls can be chained together.
autoVerifiedAttributes
- The attributes to be auto-verified. Possible values: email, phone_number.
public List<String> getAliasAttributes()
Attributes supported as an alias for this user pool. Possible values: phone_number, email, or preferred_username.
Attributes supported as an alias for this user pool. Possible values: phone_number, email, or preferred_username.
public void setAliasAttributes(Collection<String> aliasAttributes)
Attributes supported as an alias for this user pool. Possible values: phone_number, email, or preferred_username.
aliasAttributes
- Attributes supported as an alias for this user pool. Possible values: phone_number, email, or preferred_username.
public CreateUserPoolRequest withAliasAttributes(String... aliasAttributes)
Attributes supported as an alias for this user pool. Possible values: phone_number, email, or preferred_username.
Returns a reference to this object so that method calls can be chained together.
aliasAttributes
- Attributes supported as an alias for this user pool. Possible values: phone_number, email, or preferred_username.
public CreateUserPoolRequest withAliasAttributes(Collection<String> aliasAttributes)
Attributes supported as an alias for this user pool. Possible values: phone_number, email, or preferred_username.
Returns a reference to this object so that method calls can be chained together.
aliasAttributes
- Attributes supported as an alias for this user pool. Possible values: phone_number, email, or preferred_username.
public List<String> getUsernameAttributes()
Specifies whether email addresses or phone numbers can be specified as usernames when a user signs up.
Specifies whether email addresses or phone numbers can be specified as usernames when a user signs up.
public void setUsernameAttributes(Collection<String> usernameAttributes)
Specifies whether email addresses or phone numbers can be specified as usernames when a user signs up.
usernameAttributes
- Specifies whether email addresses or phone numbers can be specified as usernames when a user signs up.
public CreateUserPoolRequest withUsernameAttributes(String... usernameAttributes)
Specifies whether email addresses or phone numbers can be specified as usernames when a user signs up.
Returns a reference to this object so that method calls can be chained together.
usernameAttributes
- Specifies whether email addresses or phone numbers can be specified as usernames when a user signs up.
public CreateUserPoolRequest withUsernameAttributes(Collection<String> usernameAttributes)
Specifies whether email addresses or phone numbers can be specified as usernames when a user signs up.
Returns a reference to this object so that method calls can be chained together.
usernameAttributes
- Specifies whether email addresses or phone numbers can be specified as usernames when a user signs up.
public String getSmsVerificationMessage()
A string representing the SMS verification message.
Constraints:
Length: 6 - 140
Pattern: .*\{####\}.*
A string representing the SMS verification message.
public void setSmsVerificationMessage(String smsVerificationMessage)
A string representing the SMS verification message.
Constraints:
Length: 6 - 140
Pattern: .*\{####\}.*
smsVerificationMessage
- A string representing the SMS verification message.
public CreateUserPoolRequest withSmsVerificationMessage(String smsVerificationMessage)
A string representing the SMS verification message.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 6 - 140
Pattern: .*\{####\}.*
smsVerificationMessage
- A string representing the SMS verification message.
public String getEmailVerificationMessage()
A string representing the email verification message.
Constraints:
Length: 6 - 20000
Pattern:
[\p{L}\p{M}\p{S}\p{N}\p{P}\s*]*\{####\}[\p{L}\p{M}\p{S}\p{
N}\p{P}\s*]*
A string representing the email verification message.
public void setEmailVerificationMessage(String emailVerificationMessage)
A string representing the email verification message.
Constraints:
Length: 6 - 20000
Pattern:
[\p{L}\p{M}\p{S}\p{N}\p{P}\s*]*\{####\}[\p{L}\p{M}\p{S}\p{
N}\p{P}\s*]*
emailVerificationMessage
- A string representing the email verification message.
public CreateUserPoolRequest withEmailVerificationMessage(String emailVerificationMessage)
A string representing the email verification message.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 6 - 20000
Pattern:
[\p{L}\p{M}\p{S}\p{N}\p{P}\s*]*\{####\}[\p{L}\p{M}\p{S}\p{
N}\p{P}\s*]*
emailVerificationMessage
- A string representing the email verification message.
public String getEmailVerificationSubject()
A string representing the email verification subject.
Constraints:
Length: 1 - 140
Pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}\s]+
A string representing the email verification subject.
public void setEmailVerificationSubject(String emailVerificationSubject)
A string representing the email verification subject.
Constraints:
Length: 1 - 140
Pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}\s]+
emailVerificationSubject
- A string representing the email verification subject.
public CreateUserPoolRequest withEmailVerificationSubject(String emailVerificationSubject)
A string representing the email verification subject.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 140
Pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}\s]+
emailVerificationSubject
- A string representing the email verification subject.
public VerificationMessageTemplateType getVerificationMessageTemplate()
The template for the verification message that the user sees when the app requests permission to access the user's information.
The template for the verification message that the user sees when the app requests permission to access the user's information.
public void setVerificationMessageTemplate(VerificationMessageTemplateType verificationMessageTemplate)
The template for the verification message that the user sees when the app requests permission to access the user's information.
verificationMessageTemplate
- The template for the verification message that the user sees when the app requests permission to access the user's information.
public CreateUserPoolRequest withVerificationMessageTemplate(VerificationMessageTemplateType verificationMessageTemplate)
The template for the verification message that the user sees when the app requests permission to access the user's information.
Returns a reference to this object so that method calls can be chained together.
verificationMessageTemplate
- The template for the verification message that the user sees when the app requests permission to access the user's information.
public String getSmsAuthenticationMessage()
A string representing the SMS authentication message.
Constraints:
Length: 6 - 140
Pattern: .*\{####\}.*
A string representing the SMS authentication message.
public void setSmsAuthenticationMessage(String smsAuthenticationMessage)
A string representing the SMS authentication message.
Constraints:
Length: 6 - 140
Pattern: .*\{####\}.*
smsAuthenticationMessage
- A string representing the SMS authentication message.
public CreateUserPoolRequest withSmsAuthenticationMessage(String smsAuthenticationMessage)
A string representing the SMS authentication message.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 6 - 140
Pattern: .*\{####\}.*
smsAuthenticationMessage
- A string representing the SMS authentication message.
public String getMfaConfiguration()
Specifies MFA configuration details.
Constraints:
Allowed Values: OFF, ON, OPTIONAL
Specifies MFA configuration details.
UserPoolMfaType
public void setMfaConfiguration(String mfaConfiguration)
Specifies MFA configuration details.
Constraints:
Allowed Values: OFF, ON, OPTIONAL
mfaConfiguration
- Specifies MFA configuration details.
UserPoolMfaType
public CreateUserPoolRequest withMfaConfiguration(String mfaConfiguration)
Specifies MFA configuration details.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: OFF, ON, OPTIONAL
mfaConfiguration
- Specifies MFA configuration details.
UserPoolMfaType
public void setMfaConfiguration(UserPoolMfaType mfaConfiguration)
Specifies MFA configuration details.
Constraints:
Allowed Values: OFF, ON, OPTIONAL
mfaConfiguration
- Specifies MFA configuration details.
UserPoolMfaType
public CreateUserPoolRequest withMfaConfiguration(UserPoolMfaType mfaConfiguration)
Specifies MFA configuration details.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: OFF, ON, OPTIONAL
mfaConfiguration
- Specifies MFA configuration details.
UserPoolMfaType
public DeviceConfigurationType getDeviceConfiguration()
The device configuration.
The device configuration.
public void setDeviceConfiguration(DeviceConfigurationType deviceConfiguration)
The device configuration.
deviceConfiguration
- The device configuration.
public CreateUserPoolRequest withDeviceConfiguration(DeviceConfigurationType deviceConfiguration)
The device configuration.
Returns a reference to this object so that method calls can be chained together.
deviceConfiguration
- The device configuration.
public EmailConfigurationType getEmailConfiguration()
The email configuration.
The email configuration.
public void setEmailConfiguration(EmailConfigurationType emailConfiguration)
The email configuration.
emailConfiguration
- The email configuration.
public CreateUserPoolRequest withEmailConfiguration(EmailConfigurationType emailConfiguration)
The email configuration.
Returns a reference to this object so that method calls can be chained together.
emailConfiguration
- The email configuration.
public SmsConfigurationType getSmsConfiguration()
The SMS configuration.
The SMS configuration.
public void setSmsConfiguration(SmsConfigurationType smsConfiguration)
The SMS configuration.
smsConfiguration
- The SMS configuration.
public CreateUserPoolRequest withSmsConfiguration(SmsConfigurationType smsConfiguration)
The SMS configuration.
Returns a reference to this object so that method calls can be chained together.
smsConfiguration
- The SMS configuration.
public Map<String,String> getUserPoolTags()
The tag keys and values to assign to the user pool. A tag is a label that you can use to categorize and manage user pools in different ways, such as by purpose, owner, environment, or other criteria.
The tag keys and values to assign to the user pool. A tag is a label that you can use to categorize and manage user pools in different ways, such as by purpose, owner, environment, or other criteria.
public void setUserPoolTags(Map<String,String> userPoolTags)
The tag keys and values to assign to the user pool. A tag is a label that you can use to categorize and manage user pools in different ways, such as by purpose, owner, environment, or other criteria.
userPoolTags
- The tag keys and values to assign to the user pool. A tag is a label that you can use to categorize and manage user pools in different ways, such as by purpose, owner, environment, or other criteria.
public CreateUserPoolRequest withUserPoolTags(Map<String,String> userPoolTags)
The tag keys and values to assign to the user pool. A tag is a label that you can use to categorize and manage user pools in different ways, such as by purpose, owner, environment, or other criteria.
Returns a reference to this object so that method calls can be chained together.
userPoolTags
- The tag keys and values to assign to the user pool. A tag is a label that you can use to categorize and manage user pools in different ways, such as by purpose, owner, environment, or other criteria.
public CreateUserPoolRequest addUserPoolTagsEntry(String key, String value)
The tag keys and values to assign to the user pool. A tag is a label that you can use to categorize and manage user pools in different ways, such as by purpose, owner, environment, or other criteria.
The method adds a new key-value pair into UserPoolTags parameter, and returns a reference to this object so that method calls can be chained together.
key
- The key of the entry to be added into UserPoolTags.value
- The corresponding value of the entry to be added into
UserPoolTags.public CreateUserPoolRequest clearUserPoolTagsEntries()
Returns a reference to this object so that method calls can be chained together.
public AdminCreateUserConfigType getAdminCreateUserConfig()
The configuration for AdminCreateUser
requests.
The configuration for AdminCreateUser
requests.
public void setAdminCreateUserConfig(AdminCreateUserConfigType adminCreateUserConfig)
The configuration for AdminCreateUser
requests.
adminCreateUserConfig
-
The configuration for AdminCreateUser
requests.
public CreateUserPoolRequest withAdminCreateUserConfig(AdminCreateUserConfigType adminCreateUserConfig)
The configuration for AdminCreateUser
requests.
Returns a reference to this object so that method calls can be chained together.
adminCreateUserConfig
-
The configuration for AdminCreateUser
requests.
public List<SchemaAttributeType> getSchema()
An array of schema attributes for the new user pool. These attributes can be standard or custom attributes.
An array of schema attributes for the new user pool. These attributes can be standard or custom attributes.
public void setSchema(Collection<SchemaAttributeType> schema)
An array of schema attributes for the new user pool. These attributes can be standard or custom attributes.
schema
- An array of schema attributes for the new user pool. These attributes can be standard or custom attributes.
public CreateUserPoolRequest withSchema(SchemaAttributeType... schema)
An array of schema attributes for the new user pool. These attributes can be standard or custom attributes.
Returns a reference to this object so that method calls can be chained together.
schema
- An array of schema attributes for the new user pool. These attributes can be standard or custom attributes.
public CreateUserPoolRequest withSchema(Collection<SchemaAttributeType> schema)
An array of schema attributes for the new user pool. These attributes can be standard or custom attributes.
Returns a reference to this object so that method calls can be chained together.
schema
- An array of schema attributes for the new user pool. These attributes can be standard or custom attributes.
public UserPoolAddOnsType getUserPoolAddOns()
Used to enable advanced security risk detection. Set the key
AdvancedSecurityMode
to the value "AUDIT".
Used to enable advanced security risk detection. Set the key
AdvancedSecurityMode
to the value "AUDIT".
public void setUserPoolAddOns(UserPoolAddOnsType userPoolAddOns)
Used to enable advanced security risk detection. Set the key
AdvancedSecurityMode
to the value "AUDIT".
userPoolAddOns
-
Used to enable advanced security risk detection. Set the key
AdvancedSecurityMode
to the value "AUDIT".
public CreateUserPoolRequest withUserPoolAddOns(UserPoolAddOnsType userPoolAddOns)
Used to enable advanced security risk detection. Set the key
AdvancedSecurityMode
to the value "AUDIT".
Returns a reference to this object so that method calls can be chained together.
userPoolAddOns
-
Used to enable advanced security risk detection. Set the key
AdvancedSecurityMode
to the value "AUDIT".
public UsernameConfigurationType getUsernameConfiguration()
You can choose to set case sensitivity on the username input for the
selected sign-in option. For example, when this is set to
False
, users will be able to sign in using either "username"
or "Username". This configuration is immutable once it has been set. For
more information, see .
You can choose to set case sensitivity on the username input for
the selected sign-in option. For example, when this is set to
False
, users will be able to sign in using either
"username" or "Username". This configuration is immutable once it
has been set. For more information, see .
public void setUsernameConfiguration(UsernameConfigurationType usernameConfiguration)
You can choose to set case sensitivity on the username input for the
selected sign-in option. For example, when this is set to
False
, users will be able to sign in using either "username"
or "Username". This configuration is immutable once it has been set. For
more information, see .
usernameConfiguration
-
You can choose to set case sensitivity on the username input
for the selected sign-in option. For example, when this is set
to False
, users will be able to sign in using
either "username" or "Username". This configuration is
immutable once it has been set. For more information, see .
public CreateUserPoolRequest withUsernameConfiguration(UsernameConfigurationType usernameConfiguration)
You can choose to set case sensitivity on the username input for the
selected sign-in option. For example, when this is set to
False
, users will be able to sign in using either "username"
or "Username". This configuration is immutable once it has been set. For
more information, see .
Returns a reference to this object so that method calls can be chained together.
usernameConfiguration
-
You can choose to set case sensitivity on the username input
for the selected sign-in option. For example, when this is set
to False
, users will be able to sign in using
either "username" or "Username". This configuration is
immutable once it has been set. For more information, see .
public AccountRecoverySettingType getAccountRecoverySetting()
Use this setting to define which verified available method a user can use
to recover their password when they call ForgotPassword
. It
allows you to define a preferred method when a user has more than one
method available. With this setting, SMS does not qualify for a valid
password recovery mechanism if the user also has SMS MFA enabled. In the
absence of this setting, Cognito uses the legacy behavior to determine
the recovery method where SMS is preferred over email.
Starting February 1, 2020, the value of
AccountRecoverySetting
will default to
verified_email
first and verified_phone_number
as the second option for newly created user pools if no value is
provided.
Use this setting to define which verified available method a user
can use to recover their password when they call
ForgotPassword
. It allows you to define a preferred
method when a user has more than one method available. With this
setting, SMS does not qualify for a valid password recovery
mechanism if the user also has SMS MFA enabled. In the absence of
this setting, Cognito uses the legacy behavior to determine the
recovery method where SMS is preferred over email.
Starting February 1, 2020, the value of
AccountRecoverySetting
will default to
verified_email
first and
verified_phone_number
as the second option for newly
created user pools if no value is provided.
public void setAccountRecoverySetting(AccountRecoverySettingType accountRecoverySetting)
Use this setting to define which verified available method a user can use
to recover their password when they call ForgotPassword
. It
allows you to define a preferred method when a user has more than one
method available. With this setting, SMS does not qualify for a valid
password recovery mechanism if the user also has SMS MFA enabled. In the
absence of this setting, Cognito uses the legacy behavior to determine
the recovery method where SMS is preferred over email.
Starting February 1, 2020, the value of
AccountRecoverySetting
will default to
verified_email
first and verified_phone_number
as the second option for newly created user pools if no value is
provided.
accountRecoverySetting
-
Use this setting to define which verified available method a
user can use to recover their password when they call
ForgotPassword
. It allows you to define a
preferred method when a user has more than one method
available. With this setting, SMS does not qualify for a valid
password recovery mechanism if the user also has SMS MFA
enabled. In the absence of this setting, Cognito uses the
legacy behavior to determine the recovery method where SMS is
preferred over email.
Starting February 1, 2020, the value of
AccountRecoverySetting
will default to
verified_email
first and
verified_phone_number
as the second option for
newly created user pools if no value is provided.
public CreateUserPoolRequest withAccountRecoverySetting(AccountRecoverySettingType accountRecoverySetting)
Use this setting to define which verified available method a user can use
to recover their password when they call ForgotPassword
. It
allows you to define a preferred method when a user has more than one
method available. With this setting, SMS does not qualify for a valid
password recovery mechanism if the user also has SMS MFA enabled. In the
absence of this setting, Cognito uses the legacy behavior to determine
the recovery method where SMS is preferred over email.
Starting February 1, 2020, the value of
AccountRecoverySetting
will default to
verified_email
first and verified_phone_number
as the second option for newly created user pools if no value is
provided.
Returns a reference to this object so that method calls can be chained together.
accountRecoverySetting
-
Use this setting to define which verified available method a
user can use to recover their password when they call
ForgotPassword
. It allows you to define a
preferred method when a user has more than one method
available. With this setting, SMS does not qualify for a valid
password recovery mechanism if the user also has SMS MFA
enabled. In the absence of this setting, Cognito uses the
legacy behavior to determine the recovery method where SMS is
preferred over email.
Starting February 1, 2020, the value of
AccountRecoverySetting
will default to
verified_email
first and
verified_phone_number
as the second option for
newly created user pools if no value is provided.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2020. All rights reserved.