@Stability(value=Stable) public static final class CfnUserPool.Builder extends Object implements software.amazon.jsii.Builder<CfnUserPool>
CfnUserPool
.Modifier and Type | Method and Description |
---|---|
CfnUserPool.Builder |
accountRecoverySetting(CfnUserPool.AccountRecoverySettingProperty accountRecoverySetting)
Use this setting to define which verified available method a user can use to recover their password when they call `ForgotPassword` .
|
CfnUserPool.Builder |
accountRecoverySetting(IResolvable accountRecoverySetting)
Use this setting to define which verified available method a user can use to recover their password when they call `ForgotPassword` .
|
CfnUserPool.Builder |
adminCreateUserConfig(CfnUserPool.AdminCreateUserConfigProperty adminCreateUserConfig)
The configuration for creating a new user profile.
|
CfnUserPool.Builder |
adminCreateUserConfig(IResolvable adminCreateUserConfig)
The configuration for creating a new user profile.
|
CfnUserPool.Builder |
aliasAttributes(List<String> aliasAttributes)
Attributes supported as an alias for this user pool.
|
CfnUserPool.Builder |
autoVerifiedAttributes(List<String> autoVerifiedAttributes)
The attributes to be auto-verified.
|
CfnUserPool |
build() |
static CfnUserPool.Builder |
create(Construct scope,
String id) |
CfnUserPool.Builder |
deletionProtection(String deletionProtection)
When active, `DeletionProtection` prevents accidental deletion of your user pool.
|
CfnUserPool.Builder |
deviceConfiguration(CfnUserPool.DeviceConfigurationProperty deviceConfiguration)
The device-remembering configuration for a user pool.
|
CfnUserPool.Builder |
deviceConfiguration(IResolvable deviceConfiguration)
The device-remembering configuration for a user pool.
|
CfnUserPool.Builder |
emailConfiguration(CfnUserPool.EmailConfigurationProperty emailConfiguration)
The email configuration of your user pool.
|
CfnUserPool.Builder |
emailConfiguration(IResolvable emailConfiguration)
The email configuration of your user pool.
|
CfnUserPool.Builder |
emailVerificationMessage(String emailVerificationMessage)
This parameter is no longer used.
|
CfnUserPool.Builder |
emailVerificationSubject(String emailVerificationSubject)
This parameter is no longer used.
|
CfnUserPool.Builder |
enabledMfas(List<String> enabledMfas)
Enables MFA on a specified user pool.
|
CfnUserPool.Builder |
lambdaConfig(CfnUserPool.LambdaConfigProperty lambdaConfig)
The Lambda trigger configuration information for the new user pool.
|
CfnUserPool.Builder |
lambdaConfig(IResolvable lambdaConfig)
The Lambda trigger configuration information for the new user pool.
|
CfnUserPool.Builder |
mfaConfiguration(String mfaConfiguration)
The multi-factor authentication (MFA) configuration.
|
CfnUserPool.Builder |
policies(CfnUserPool.PoliciesProperty policies)
The policy associated with a user pool.
|
CfnUserPool.Builder |
policies(IResolvable policies)
The policy associated with a user pool.
|
CfnUserPool.Builder |
schema(IResolvable schema)
The schema attributes for the new user pool.
|
CfnUserPool.Builder |
schema(List<? extends Object> schema)
The schema attributes for the new user pool.
|
CfnUserPool.Builder |
smsAuthenticationMessage(String smsAuthenticationMessage)
A string representing the SMS authentication message.
|
CfnUserPool.Builder |
smsConfiguration(CfnUserPool.SmsConfigurationProperty smsConfiguration)
The SMS configuration with the settings that your Amazon Cognito user pool must use to send an SMS message from your AWS account through Amazon Simple Notification Service.
|
CfnUserPool.Builder |
smsConfiguration(IResolvable smsConfiguration)
The SMS configuration with the settings that your Amazon Cognito user pool must use to send an SMS message from your AWS account through Amazon Simple Notification Service.
|
CfnUserPool.Builder |
smsVerificationMessage(String smsVerificationMessage)
This parameter is no longer used.
|
CfnUserPool.Builder |
userAttributeUpdateSettings(CfnUserPool.UserAttributeUpdateSettingsProperty userAttributeUpdateSettings)
The settings for updates to user attributes.
|
CfnUserPool.Builder |
userAttributeUpdateSettings(IResolvable userAttributeUpdateSettings)
The settings for updates to user attributes.
|
CfnUserPool.Builder |
usernameAttributes(List<String> usernameAttributes)
Determines whether email addresses or phone numbers can be specified as user names when a user signs up.
|
CfnUserPool.Builder |
usernameConfiguration(CfnUserPool.UsernameConfigurationProperty usernameConfiguration)
You can choose to set case sensitivity on the username input for the selected sign-in option.
|
CfnUserPool.Builder |
usernameConfiguration(IResolvable usernameConfiguration)
You can choose to set case sensitivity on the username input for the selected sign-in option.
|
CfnUserPool.Builder |
userPoolAddOns(CfnUserPool.UserPoolAddOnsProperty userPoolAddOns)
Enables advanced security risk detection.
|
CfnUserPool.Builder |
userPoolAddOns(IResolvable userPoolAddOns)
Enables advanced security risk detection.
|
CfnUserPool.Builder |
userPoolName(String userPoolName)
A string used to name the user pool.
|
CfnUserPool.Builder |
userPoolTags(Object userPoolTags)
The tag keys and values to assign to the user pool.
|
CfnUserPool.Builder |
verificationMessageTemplate(CfnUserPool.VerificationMessageTemplateProperty verificationMessageTemplate)
The template for the verification message that the user sees when the app requests permission to access the user's information.
|
CfnUserPool.Builder |
verificationMessageTemplate(IResolvable verificationMessageTemplate)
The template for the verification message that the user sees when the app requests permission to access the user's information.
|
@Stability(value=Stable) public static CfnUserPool.Builder create(Construct scope, String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.CfnUserPool.AccountRecoverySettingProperty.Builder
.@Stability(value=Stable) public CfnUserPool.Builder accountRecoverySetting(IResolvable accountRecoverySetting)
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.
accountRecoverySetting
- Use this setting to define which verified available method a user can use to recover their password when they call `ForgotPassword` . This parameter is required.this
@Stability(value=Stable) public CfnUserPool.Builder accountRecoverySetting(CfnUserPool.AccountRecoverySettingProperty accountRecoverySetting)
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.
accountRecoverySetting
- Use this setting to define which verified available method a user can use to recover their password when they call `ForgotPassword` . This parameter is required.this
@Stability(value=Stable) public CfnUserPool.Builder adminCreateUserConfig(IResolvable adminCreateUserConfig)
adminCreateUserConfig
- The configuration for creating a new user profile. This parameter is required.this
@Stability(value=Stable) public CfnUserPool.Builder adminCreateUserConfig(CfnUserPool.AdminCreateUserConfigProperty adminCreateUserConfig)
adminCreateUserConfig
- The configuration for creating a new user profile. This parameter is required.this
@Stability(value=Stable) public CfnUserPool.Builder aliasAttributes(List<String> aliasAttributes)
This user pool property cannot be updated.
aliasAttributes
- Attributes supported as an alias for this user pool. Possible values: *phone_number* , *email* , or *preferred_username* . This parameter is required.this
@Stability(value=Stable) public CfnUserPool.Builder autoVerifiedAttributes(List<String> autoVerifiedAttributes)
Possible values: email , phone_number .
autoVerifiedAttributes
- The attributes to be auto-verified. This parameter is required.this
@Stability(value=Stable) public CfnUserPool.Builder deletionProtection(String deletionProtection)
Before you can delete a user pool that you have protected against deletion, you must deactivate this feature.
When you try to delete a protected user pool in a DeleteUserPool
API request, Amazon Cognito returns an InvalidParameterException
error. To delete a protected user pool, send a new DeleteUserPool
request after you deactivate deletion protection in an UpdateUserPool
API request.
deletionProtection
- When active, `DeletionProtection` prevents accidental deletion of your user pool. This parameter is required.this
@Stability(value=Stable) public CfnUserPool.Builder deviceConfiguration(IResolvable deviceConfiguration)
A null value indicates that you have deactivated device remembering in your user pool.
When you provide a value for any
DeviceConfiguration
field, you activate the Amazon Cognito device-remembering feature.
deviceConfiguration
- The device-remembering configuration for a user pool. This parameter is required.this
@Stability(value=Stable) public CfnUserPool.Builder deviceConfiguration(CfnUserPool.DeviceConfigurationProperty deviceConfiguration)
A null value indicates that you have deactivated device remembering in your user pool.
When you provide a value for any
DeviceConfiguration
field, you activate the Amazon Cognito device-remembering feature.
deviceConfiguration
- The device-remembering configuration for a user pool. This parameter is required.this
@Stability(value=Stable) public CfnUserPool.Builder emailConfiguration(IResolvable emailConfiguration)
The email configuration type sets your preferred sending method, AWS Region, and sender for messages from your user pool.
emailConfiguration
- The email configuration of your user pool. This parameter is required.this
@Stability(value=Stable) public CfnUserPool.Builder emailConfiguration(CfnUserPool.EmailConfigurationProperty emailConfiguration)
The email configuration type sets your preferred sending method, AWS Region, and sender for messages from your user pool.
emailConfiguration
- The email configuration of your user pool. This parameter is required.this
@Stability(value=Stable) public CfnUserPool.Builder emailVerificationMessage(String emailVerificationMessage)
emailVerificationMessage
- This parameter is no longer used. This parameter is required.this
@Stability(value=Stable) public CfnUserPool.Builder emailVerificationSubject(String emailVerificationSubject)
emailVerificationSubject
- This parameter is no longer used. This parameter is required.this
@Stability(value=Stable) public CfnUserPool.Builder enabledMfas(List<String> enabledMfas)
To disable all MFAs after it has been enabled, set MfaConfiguration to “OFF” and remove EnabledMfas. MFAs can only be all disabled if MfaConfiguration is OFF. Once SMS_MFA is enabled, SMS_MFA can only be disabled by setting MfaConfiguration to “OFF”. Can be one of the following values:
SMS_MFA
- Enables SMS MFA for the user pool. SMS_MFA can only be enabled if SMS configuration is provided.SOFTWARE_TOKEN_MFA
- Enables software token MFA for the user pool.
Allowed values: SMS_MFA
| SOFTWARE_TOKEN_MFA
enabledMfas
- Enables MFA on a specified user pool. This parameter is required.this
@Stability(value=Stable) public CfnUserPool.Builder lambdaConfig(IResolvable lambdaConfig)
In a push model, event sources (such as Amazon S3 and custom applications) need permission to invoke a function. So you must 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. This parameter is required.this
@Stability(value=Stable) public CfnUserPool.Builder lambdaConfig(CfnUserPool.LambdaConfigProperty lambdaConfig)
In a push model, event sources (such as Amazon S3 and custom applications) need permission to invoke a function. So you must 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. This parameter is required.this
@Stability(value=Stable) public CfnUserPool.Builder mfaConfiguration(String mfaConfiguration)
OFF
MFA won't be used for any users.ON
MFA is required for all users to sign in.OPTIONAL
MFA will be required only for individual users who have an MFA factor activated.mfaConfiguration
- The multi-factor authentication (MFA) configuration. Valid values include:. This parameter is required.this
@Stability(value=Stable) public CfnUserPool.Builder policies(IResolvable policies)
policies
- The policy associated with a user pool. This parameter is required.this
@Stability(value=Stable) public CfnUserPool.Builder policies(CfnUserPool.PoliciesProperty policies)
policies
- The policy associated with a user pool. This parameter is required.this
@Stability(value=Stable) public CfnUserPool.Builder schema(IResolvable schema)
During a user pool update, you can add new schema attributes but you cannot modify or delete an existing schema attribute.
schema
- The schema attributes for the new user pool. These attributes can be standard or custom attributes. This parameter is required.this
@Stability(value=Stable) public CfnUserPool.Builder schema(List<? extends Object> schema)
During a user pool update, you can add new schema attributes but you cannot modify or delete an existing schema attribute.
schema
- The schema attributes for the new user pool. These attributes can be standard or custom attributes. This parameter is required.this
@Stability(value=Stable) public CfnUserPool.Builder smsAuthenticationMessage(String smsAuthenticationMessage)
smsAuthenticationMessage
- A string representing the SMS authentication message. This parameter is required.this
@Stability(value=Stable) public CfnUserPool.Builder smsConfiguration(IResolvable smsConfiguration)
To send SMS messages with Amazon SNS in the AWS Region that you want, the Amazon Cognito user pool uses an AWS Identity and Access Management (IAM) role in your AWS account .
smsConfiguration
- The SMS configuration with the settings that your Amazon Cognito user pool must use to send an SMS message from your AWS account through Amazon Simple Notification Service. This parameter is required.this
@Stability(value=Stable) public CfnUserPool.Builder smsConfiguration(CfnUserPool.SmsConfigurationProperty smsConfiguration)
To send SMS messages with Amazon SNS in the AWS Region that you want, the Amazon Cognito user pool uses an AWS Identity and Access Management (IAM) role in your AWS account .
smsConfiguration
- The SMS configuration with the settings that your Amazon Cognito user pool must use to send an SMS message from your AWS account through Amazon Simple Notification Service. This parameter is required.this
@Stability(value=Stable) public CfnUserPool.Builder smsVerificationMessage(String smsVerificationMessage)
smsVerificationMessage
- This parameter is no longer used. This parameter is required.this
@Stability(value=Stable) public CfnUserPool.Builder userAttributeUpdateSettings(IResolvable userAttributeUpdateSettings)
These settings include the property AttributesRequireVerificationBeforeUpdate
,
a user-pool setting that tells Amazon Cognito how to handle changes to the value of your users' email address and phone number attributes. For
more information, see Verifying updates to email addresses and phone numbers .
userAttributeUpdateSettings
- The settings for updates to user attributes. This parameter is required.this
@Stability(value=Stable) public CfnUserPool.Builder userAttributeUpdateSettings(CfnUserPool.UserAttributeUpdateSettingsProperty userAttributeUpdateSettings)
These settings include the property AttributesRequireVerificationBeforeUpdate
,
a user-pool setting that tells Amazon Cognito how to handle changes to the value of your users' email address and phone number attributes. For
more information, see Verifying updates to email addresses and phone numbers .
userAttributeUpdateSettings
- The settings for updates to user attributes. This parameter is required.this
@Stability(value=Stable) public CfnUserPool.Builder usernameAttributes(List<String> usernameAttributes)
Possible values: phone_number
or email
.
This user pool property cannot be updated.
usernameAttributes
- Determines whether email addresses or phone numbers can be specified as user names when a user signs up. This parameter is required.this
@Stability(value=Stable) public CfnUserPool.Builder usernameConfiguration(IResolvable usernameConfiguration)
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.
usernameConfiguration
- You can choose to set case sensitivity on the username input for the selected sign-in option. This parameter is required.this
@Stability(value=Stable) public CfnUserPool.Builder usernameConfiguration(CfnUserPool.UsernameConfigurationProperty usernameConfiguration)
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.
usernameConfiguration
- You can choose to set case sensitivity on the username input for the selected sign-in option. This parameter is required.this
@Stability(value=Stable) public CfnUserPool.Builder userPoolAddOns(IResolvable userPoolAddOns)
Set the key AdvancedSecurityMode
to the value "AUDIT".
userPoolAddOns
- Enables advanced security risk detection. This parameter is required.this
@Stability(value=Stable) public CfnUserPool.Builder userPoolAddOns(CfnUserPool.UserPoolAddOnsProperty userPoolAddOns)
Set the key AdvancedSecurityMode
to the value "AUDIT".
userPoolAddOns
- Enables advanced security risk detection. This parameter is required.this
@Stability(value=Stable) public CfnUserPool.Builder userPoolName(String userPoolName)
userPoolName
- A string used to name the user pool. This parameter is required.this
@Stability(value=Stable) public CfnUserPool.Builder userPoolTags(Object userPoolTags)
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. This parameter is required.this
@Stability(value=Stable) public CfnUserPool.Builder verificationMessageTemplate(IResolvable verificationMessageTemplate)
verificationMessageTemplate
- The template for the verification message that the user sees when the app requests permission to access the user's information. This parameter is required.this
@Stability(value=Stable) public CfnUserPool.Builder verificationMessageTemplate(CfnUserPool.VerificationMessageTemplateProperty verificationMessageTemplate)
verificationMessageTemplate
- The template for the verification message that the user sees when the app requests permission to access the user's information. This parameter is required.this
@Stability(value=Stable) public CfnUserPool build()
build
in interface software.amazon.jsii.Builder<CfnUserPool>
Copyright © 2023. All rights reserved.