@Stability(value=Experimental) @Internal public static final class UserPoolProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements UserPoolProps
UserPoolPropssoftware.amazon.jsii.JsiiObject.InitializationModeUserPoolProps.Builder, UserPoolProps.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(AccountRecovery accountRecovery,
AutoVerifiedAttrs autoVerify,
Map<String,? extends ICustomAttribute> customAttributes,
EmailSettings emailSettings,
Boolean enableSmsRole,
UserPoolTriggers lambdaTriggers,
Mfa mfa,
MfaSecondFactor mfaSecondFactor,
PasswordPolicy passwordPolicy,
RemovalPolicy removalPolicy,
Boolean selfSignUpEnabled,
SignInAliases signInAliases,
Boolean signInCaseSensitive,
IRole smsRole,
String smsRoleExternalId,
StandardAttributes standardAttributes,
UserInvitationConfig userInvitation,
String userPoolName,
UserVerificationConfig userVerification)
Constructor that initializes the object based on literal property values passed by the
UserPoolProps.Builder. |
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
AccountRecovery |
getAccountRecovery()
(experimental) How will a user be able to recover their account?
|
AutoVerifiedAttrs |
getAutoVerify()
(experimental) Attributes which Cognito will look to verify automatically upon user sign up.
|
Map<String,ICustomAttribute> |
getCustomAttributes()
(experimental) Define a set of custom attributes that can be configured for each user in the user pool.
|
EmailSettings |
getEmailSettings()
(experimental) Email settings for a user pool.
|
Boolean |
getEnableSmsRole()
(experimental) Setting this would explicitly enable or disable SMS role creation.
|
UserPoolTriggers |
getLambdaTriggers()
(experimental) Lambda functions to use for supported Cognito triggers.
|
Mfa |
getMfa()
(experimental) Configure whether users of this user pool can or are required use MFA to sign in.
|
MfaSecondFactor |
getMfaSecondFactor()
(experimental) Configure the MFA types that users can use in this user pool.
|
PasswordPolicy |
getPasswordPolicy()
(experimental) Password policy for this user pool.
|
RemovalPolicy |
getRemovalPolicy()
(experimental) Policy to apply when the user pool is removed from the stack.
|
Boolean |
getSelfSignUpEnabled()
(experimental) Whether self sign up should be enabled.
|
SignInAliases |
getSignInAliases()
(experimental) Methods in which a user registers or signs in to a user pool.
|
Boolean |
getSignInCaseSensitive()
(experimental) Whether sign-in aliases should be evaluated with case sensitivity.
|
IRole |
getSmsRole()
(experimental) The IAM role that Cognito will assume while sending SMS messages.
|
String |
getSmsRoleExternalId()
(experimental) The 'ExternalId' that Cognito service must using when assuming the `smsRole`, if the role is restricted with an 'sts:ExternalId' conditional.
|
StandardAttributes |
getStandardAttributes()
(experimental) The set of attributes that are required for every user in the user pool.
|
UserInvitationConfig |
getUserInvitation()
(experimental) Configuration around admins signing up users into a user pool.
|
String |
getUserPoolName()
(experimental) Name of the user pool.
|
UserVerificationConfig |
getUserVerification()
(experimental) Configuration around users signing themselves up to the user pool.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(AccountRecovery accountRecovery, AutoVerifiedAttrs autoVerify, Map<String,? extends ICustomAttribute> customAttributes, EmailSettings emailSettings, Boolean enableSmsRole, UserPoolTriggers lambdaTriggers, Mfa mfa, MfaSecondFactor mfaSecondFactor, PasswordPolicy passwordPolicy, RemovalPolicy removalPolicy, Boolean selfSignUpEnabled, SignInAliases signInAliases, Boolean signInCaseSensitive, IRole smsRole, String smsRoleExternalId, StandardAttributes standardAttributes, UserInvitationConfig userInvitation, String userPoolName, UserVerificationConfig userVerification)
UserPoolProps.Builder.public final AccountRecovery getAccountRecovery()
UserPoolPropsDefault: AccountRecovery.PHONE_WITHOUT_MFA_AND_EMAIL
getAccountRecovery in interface UserPoolPropspublic final AutoVerifiedAttrs getAutoVerify()
UserPoolPropsEMAIL 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.
getAutoVerify in interface UserPoolPropspublic final Map<String,ICustomAttribute> getCustomAttributes()
UserPoolPropsDefault: - No custom attributes.
getCustomAttributes in interface UserPoolPropspublic final EmailSettings getEmailSettings()
UserPoolPropsDefault: - see defaults on each property of EmailSettings.
getEmailSettings in interface UserPoolPropspublic final Boolean getEnableSmsRole()
UserPoolPropsWhen 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.
getEnableSmsRole in interface UserPoolPropspublic final UserPoolTriggers getLambdaTriggers()
UserPoolPropsDefault: - No Lambda triggers.
getLambdaTriggers in interface UserPoolPropshttps://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.htmlpublic final Mfa getMfa()
UserPoolPropsDefault: Mfa.OFF
getMfa in interface UserPoolPropspublic final MfaSecondFactor getMfaSecondFactor()
UserPoolProps
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
getMfaSecondFactor in interface UserPoolPropspublic final PasswordPolicy getPasswordPolicy()
UserPoolPropsDefault: - see defaults on each property of PasswordPolicy.
getPasswordPolicy in interface UserPoolPropspublic final RemovalPolicy getRemovalPolicy()
UserPoolPropsDefault: RemovalPolicy.RETAIN
getRemovalPolicy in interface UserPoolPropspublic final Boolean getSelfSignUpEnabled()
UserPoolProps
This can be further configured via the selfSignUp property.
Default: false
getSelfSignUpEnabled in interface UserPoolPropspublic final SignInAliases getSignInAliases()
UserPoolPropsAllows 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 }
getSignInAliases in interface UserPoolPropspublic final Boolean getSignInCaseSensitive()
UserPoolProps
For example, when this option is set to false, users will be able to sign in using either MyUsername or myusername.
Default: true
getSignInCaseSensitive in interface UserPoolPropspublic final IRole getSmsRole()
UserPoolPropsDefault: - a new IAM role is created
getSmsRole in interface UserPoolPropspublic final String getSmsRoleExternalId()
UserPoolPropsLearn 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
getSmsRoleExternalId in interface UserPoolPropspublic final StandardAttributes getStandardAttributes()
UserPoolPropsRead 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.
getStandardAttributes in interface UserPoolPropspublic final UserInvitationConfig getUserInvitation()
UserPoolPropsDefault: - see defaults in UserInvitationConfig
getUserInvitation in interface UserPoolPropspublic final String getUserPoolName()
UserPoolPropsDefault: - automatically generated name by CloudFormation at deploy time
getUserPoolName in interface UserPoolPropspublic final UserVerificationConfig getUserVerification()
UserPoolProps
Enable or disable self sign-up via the selfSignUpEnabled property.
Default: - see defaults in UserVerificationConfig
getUserVerification in interface UserPoolProps@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2021. All rights reserved.