@Stability(value=Stable) @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(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
protected |
Jsii$Proxy(UserPoolProps.Builder builder)
Constructor that initializes the object based on literal property values passed by the
UserPoolProps.Builder. |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
AccountRecovery |
getAccountRecovery()
How will a user be able to recover their account?
|
AutoVerifiedAttrs |
getAutoVerify()
Attributes which Cognito will look to verify automatically upon user sign up.
|
Map<String,ICustomAttribute> |
getCustomAttributes()
Define a set of custom attributes that can be configured for each user in the user pool.
|
IKey |
getCustomSenderKmsKey()
This key will be used to encrypt temporary passwords and authorization codes that Amazon Cognito generates.
|
DeviceTracking |
getDeviceTracking()
Device tracking settings.
|
UserPoolEmail |
getEmail()
Email settings for a user pool.
|
Boolean |
getEnableSmsRole()
Setting this would explicitly enable or disable SMS role creation.
|
KeepOriginalAttrs |
getKeepOriginal()
Attributes which Cognito will look to handle changes to the value of your users' email address and phone number attributes.
|
UserPoolTriggers |
getLambdaTriggers()
Lambda functions to use for supported Cognito triggers.
|
Mfa |
getMfa()
Configure whether users of this user pool can or are required use MFA to sign in.
|
String |
getMfaMessage()
The SMS message template sent during MFA verification.
|
MfaSecondFactor |
getMfaSecondFactor()
Configure the MFA types that users can use in this user pool.
|
PasswordPolicy |
getPasswordPolicy()
Password policy for this user pool.
|
RemovalPolicy |
getRemovalPolicy()
Policy to apply when the user pool is removed from the stack.
|
Boolean |
getSelfSignUpEnabled()
Whether self sign up should be enabled.
|
SignInAliases |
getSignInAliases()
Methods in which a user registers or signs in to a user pool.
|
Boolean |
getSignInCaseSensitive()
Whether sign-in aliases should be evaluated with case sensitivity.
|
IRole |
getSmsRole()
The IAM role that Cognito will assume while sending SMS messages.
|
String |
getSmsRoleExternalId()
The 'ExternalId' that Cognito service must using when assuming the `smsRole`, if the role is restricted with an 'sts:ExternalId' conditional.
|
String |
getSnsRegion()
The region to integrate with SNS to send SMS messages.
|
StandardAttributes |
getStandardAttributes()
The set of attributes that are required for every user in the user pool.
|
UserInvitationConfig |
getUserInvitation()
Configuration around admins signing up users into a user pool.
|
String |
getUserPoolName()
Name of the user pool.
|
UserVerificationConfig |
getUserVerification()
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(UserPoolProps.Builder builder)
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 IKey getCustomSenderKmsKey()
UserPoolPropsDefault: - no key ID configured
getCustomSenderKmsKey in interface UserPoolPropspublic final DeviceTracking getDeviceTracking()
UserPoolPropsDefault: - see defaults on each property of DeviceTracking.
getDeviceTracking in interface UserPoolPropspublic final UserPoolEmail getEmail()
UserPoolPropsDefault: - cognito will use the default email configuration
getEmail 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 KeepOriginalAttrs getKeepOriginal()
UserPoolPropsEMAIL and PHONE are the only available options.
Default: - Nothing is kept.
getKeepOriginal in interface UserPoolPropspublic final UserPoolTriggers getLambdaTriggers()
UserPoolPropsDefault: - No Lambda triggers.
getLambdaTriggers in interface UserPoolPropspublic final Mfa getMfa()
UserPoolPropsDefault: Mfa.OFF
getMfa in interface UserPoolPropspublic final String getMfaMessage()
UserPoolPropsUse '{####}' in the template where Cognito should insert the verification code.
Default: 'Your authentication code is {####}.'
getMfaMessage in interface UserPoolPropspublic final MfaSecondFactor getMfaSecondFactor()
UserPoolProps
Ignored if mfa is set to OFF.
Default: - { sms: true, otp: false }, if `mfa` is set to `OPTIONAL` or `REQUIRED`. { sms: false, otp: 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 String getSnsRegion()
UserPoolPropsThis property will do nothing if SMS configuration is not configured
Default: - The same region as the user pool, with a few exceptions - https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-sms-settings.html#user-pool-sms-settings-first-time
getSnsRegion 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 © 2022. All rights reserved.