@Generated(value="jsii-pacmak/1.29.0 (build 41df200)", date="2021-06-02T09:55:16.773Z") @Stability(value=Experimental) public interface UserPoolProps extends software.amazon.jsii.JsiiSerializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
UserPoolProps.Builder
A builder for
UserPoolProps |
static class |
UserPoolProps.Jsii$Proxy
An implementation for
UserPoolProps |
| Modifier and Type | Method and Description |
|---|---|
static UserPoolProps.Builder |
builder() |
default AccountRecovery |
getAccountRecovery()
(experimental) How will a user be able to recover their account?
|
default AutoVerifiedAttrs |
getAutoVerify()
(experimental) Attributes which Cognito will look to verify automatically upon user sign up.
|
default Map<String,ICustomAttribute> |
getCustomAttributes()
(experimental) Define a set of custom attributes that can be configured for each user in the user pool.
|
default EmailSettings |
getEmailSettings()
(experimental) Email settings for a user pool.
|
default Boolean |
getEnableSmsRole()
(experimental) Setting this would explicitly enable or disable SMS role creation.
|
default UserPoolTriggers |
getLambdaTriggers()
(experimental) Lambda functions to use for supported Cognito triggers.
|
default Mfa |
getMfa()
(experimental) Configure whether users of this user pool can or are required use MFA to sign in.
|
default MfaSecondFactor |
getMfaSecondFactor()
(experimental) Configure the MFA types that users can use in this user pool.
|
default PasswordPolicy |
getPasswordPolicy()
(experimental) Password policy for this user pool.
|
default RemovalPolicy |
getRemovalPolicy()
(experimental) Policy to apply when the user pool is removed from the stack.
|
default Boolean |
getSelfSignUpEnabled()
(experimental) Whether self sign up should be enabled.
|
default SignInAliases |
getSignInAliases()
(experimental) Methods in which a user registers or signs in to a user pool.
|
default Boolean |
getSignInCaseSensitive()
(experimental) Whether sign-in aliases should be evaluated with case sensitivity.
|
default IRole |
getSmsRole()
(experimental) The IAM role that Cognito will assume while sending SMS messages.
|
default String |
getSmsRoleExternalId()
(experimental) The 'ExternalId' that Cognito service must using when assuming the `smsRole`, if the role is restricted with an 'sts:ExternalId' conditional.
|
default StandardAttributes |
getStandardAttributes()
(experimental) The set of attributes that are required for every user in the user pool.
|
default UserInvitationConfig |
getUserInvitation()
(experimental) Configuration around admins signing up users into a user pool.
|
default String |
getUserPoolName()
(experimental) Name of the user pool.
|
default UserVerificationConfig |
getUserVerification()
(experimental) Configuration around users signing themselves up to the user pool.
|
@Stability(value=Experimental) @Nullable default AccountRecovery getAccountRecovery()
Default: AccountRecovery.PHONE_WITHOUT_MFA_AND_EMAIL
@Stability(value=Experimental) @Nullable default AutoVerifiedAttrs getAutoVerify()
EMAIL and PHONE are the only available options.
Default: - If `signInAlias` includes email and/or phone, they will be included in `autoVerifiedAttributes` by default. If absent, no attributes will be auto-verified.
@Stability(value=Experimental) @Nullable default Map<String,ICustomAttribute> getCustomAttributes()
Default: - No custom attributes.
@Stability(value=Experimental) @Nullable default EmailSettings getEmailSettings()
Default: - see defaults on each property of EmailSettings.
@Stability(value=Experimental) @Nullable default Boolean getEnableSmsRole()
When left unspecified, CDK will determine based on other properties if a role is needed or not.
Default: - CDK will determine based on other properties of the user pool if an SMS role should be created or not.
@Stability(value=Experimental) @Nullable default UserPoolTriggers getLambdaTriggers()
Default: - No Lambda triggers.
https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html@Stability(value=Experimental) @Nullable default Mfa getMfa()
Default: Mfa.OFF
@Stability(value=Experimental) @Nullable default MfaSecondFactor getMfaSecondFactor()
Ignored if mfa is set to OFF.
Default: - { sms: true, oneTimePassword: false }, if `mfa` is set to `OPTIONAL` or `REQUIRED`. { sms: false, oneTimePassword: false }, otherwise
@Stability(value=Experimental) @Nullable default PasswordPolicy getPasswordPolicy()
Default: - see defaults on each property of PasswordPolicy.
@Stability(value=Experimental) @Nullable default RemovalPolicy getRemovalPolicy()
Default: RemovalPolicy.RETAIN
@Stability(value=Experimental) @Nullable default Boolean getSelfSignUpEnabled()
This can be further configured via the selfSignUp property.
Default: false
@Stability(value=Experimental) @Nullable default SignInAliases getSignInAliases()
Allows either username with aliases OR sign in with email, phone, or both.
Read the sections on usernames and aliases to learn more - https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-attributes.html
To match with 'Option 1' in the above link, with a verified email, this property should be set to
{ username: true, email: true }. To match with 'Option 2' in the above link with both a verified email and phone
number, this property should be set to { email: true, phone: true }.
Default: { username: true }
@Stability(value=Experimental) @Nullable default Boolean getSignInCaseSensitive()
For example, when this option is set to false, users will be able to sign in using either MyUsername or myusername.
Default: true
@Stability(value=Experimental) @Nullable default IRole getSmsRole()
Default: - a new IAM role is created
@Stability(value=Experimental) @Nullable default String getSmsRoleExternalId()
Learn more about ExternalId here - https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html
This property will be ignored if smsRole is not specified.
Default: - No external id will be configured
@Stability(value=Experimental) @Nullable default StandardAttributes getStandardAttributes()
Read more on attributes here - https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-attributes.html
Default: - All standard attributes are optional and mutable.
@Stability(value=Experimental) @Nullable default UserInvitationConfig getUserInvitation()
Default: - see defaults in UserInvitationConfig
@Stability(value=Experimental) @Nullable default String getUserPoolName()
Default: - automatically generated name by CloudFormation at deploy time
@Stability(value=Experimental) @Nullable default UserVerificationConfig getUserVerification()
Enable or disable self sign-up via the selfSignUpEnabled property.
Default: - see defaults in UserVerificationConfig
@Stability(value=Experimental) static UserPoolProps.Builder builder()
UserPoolProps.Builder of UserPoolPropsCopyright © 2021. All rights reserved.