Interface CfnUserPool.AdminCreateUserConfigProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnUserPool.AdminCreateUserConfigProperty.Jsii$Proxy
- Enclosing class:
CfnUserPool
Contains settings for allowing user sign-up, customizing invitation messages to new users, and the amount of time before temporary passwords expire.
This data type is a request and response parameter of CreateUserPool and UpdateUserPool , and a response parameter of DescribeUserPool .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cognito.*;
AdminCreateUserConfigProperty adminCreateUserConfigProperty = AdminCreateUserConfigProperty.builder()
.allowAdminCreateUserOnly(false)
.inviteMessageTemplate(InviteMessageTemplateProperty.builder()
.emailMessage("emailMessage")
.emailSubject("emailSubject")
.smsMessage("smsMessage")
.build())
.unusedAccountValidityDays(123)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnUserPool.AdminCreateUserConfigPropertystatic final classAn implementation forCfnUserPool.AdminCreateUserConfigProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAllowAdminCreateUserOnly
The setting for allowing self-service sign-up.When
true, only administrators can create new user profiles. Whenfalse, users can register themselves and create a new user profile with the SignUp operation.- See Also:
-
getInviteMessageTemplate
The template for the welcome message to new users.See also Customizing User Invitation Messages .
- See Also:
-
getUnusedAccountValidityDays
This parameter is no longer in use.Configure the duration of temporary passwords with the
TemporaryPasswordValidityDaysparameter of PasswordPolicyType . For older user pools that have aUnusedAccountValidityDaysconfiguration, that value is effective until you set a value forTemporaryPasswordValidityDays.The password expiration limit in days for administrator-created users. When this time expires, the user can't sign in with their temporary password. To reset the account after that time limit, you must call
AdminCreateUseragain, specifyingRESENDfor theMessageActionparameter.The default value for this parameter is 7.
- See Also:
-
builder
-