Interface CfnUserPool.IAdminCreateUserConfigProperty
The configuration for AdminCreateUser
requests.
public interface CfnUserPool.IAdminCreateUserConfigProperty
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Cognito;
var adminCreateUserConfigProperty = new AdminCreateUserConfigProperty {
AllowAdminCreateUserOnly = false,
InviteMessageTemplate = new InviteMessageTemplateProperty {
EmailMessage = "emailMessage",
EmailSubject = "emailSubject",
SmsMessage = "smsMessage"
},
UnusedAccountValidityDays = 123
};
Remarks
ExampleMetadata: fixture=_generated
Properties
AllowAdminCreateUserOnly
Set to True
if only the administrator is allowed to create user profiles.
object? AllowAdminCreateUserOnly { get; }
Property Value
Remarks
Set to False
if users can sign themselves up via an app.
InviteMessageTemplate
The message template to be used for the welcome message to new users.
object? InviteMessageTemplate { get; }
Property Value
Remarks
See also Customizing User Invitation Messages .
UnusedAccountValidityDays
The user account expiration limit, in days, after which a new account that hasn't signed in is no longer usable.
double? UnusedAccountValidityDays { get; }
Property Value
Remarks
To reset the account after that time limit, you must call AdminCreateUser
again, specifying "RESEND"
for the MessageAction
parameter. The default value for this parameter is 7.
If you set a value for <code>TemporaryPasswordValidityDays</code> in <code>PasswordPolicy</code> , that value will be used, and <code>UnusedAccountValidityDays</code> will be no longer be an available parameter for that user pool.