#[non_exhaustive]pub struct AdminCreateUserConfigTypeBuilder { /* private fields */ }Expand description
A builder for AdminCreateUserConfigType.
Implementations§
source§impl AdminCreateUserConfigTypeBuilder
impl AdminCreateUserConfigTypeBuilder
sourcepub fn allow_admin_create_user_only(self, input: bool) -> Self
pub fn allow_admin_create_user_only(self, input: bool) -> Self
Set to True if only the administrator is allowed to create user profiles. Set to False if users can sign themselves up via an app.
sourcepub fn set_allow_admin_create_user_only(self, input: Option<bool>) -> Self
pub fn set_allow_admin_create_user_only(self, input: Option<bool>) -> Self
Set to True if only the administrator is allowed to create user profiles. Set to False if users can sign themselves up via an app.
sourcepub fn get_allow_admin_create_user_only(&self) -> &Option<bool>
pub fn get_allow_admin_create_user_only(&self) -> &Option<bool>
Set to True if only the administrator is allowed to create user profiles. Set to False if users can sign themselves up via an app.
sourcepub fn unused_account_validity_days(self, input: i32) -> Self
pub fn unused_account_validity_days(self, input: i32) -> Self
The user account expiration limit, in days, after which a new account that hasn't signed in is no longer usable. 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 TemporaryPasswordValidityDays in PasswordPolicy, that value will be used, and UnusedAccountValidityDays will be no longer be an available parameter for that user pool.
sourcepub fn set_unused_account_validity_days(self, input: Option<i32>) -> Self
pub fn set_unused_account_validity_days(self, input: Option<i32>) -> Self
The user account expiration limit, in days, after which a new account that hasn't signed in is no longer usable. 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 TemporaryPasswordValidityDays in PasswordPolicy, that value will be used, and UnusedAccountValidityDays will be no longer be an available parameter for that user pool.
sourcepub fn get_unused_account_validity_days(&self) -> &Option<i32>
pub fn get_unused_account_validity_days(&self) -> &Option<i32>
The user account expiration limit, in days, after which a new account that hasn't signed in is no longer usable. 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 TemporaryPasswordValidityDays in PasswordPolicy, that value will be used, and UnusedAccountValidityDays will be no longer be an available parameter for that user pool.
sourcepub fn invite_message_template(self, input: MessageTemplateType) -> Self
pub fn invite_message_template(self, input: MessageTemplateType) -> Self
The message template to be used for the welcome message to new users.
See also Customizing User Invitation Messages.
sourcepub fn set_invite_message_template(
self,
input: Option<MessageTemplateType>
) -> Self
pub fn set_invite_message_template( self, input: Option<MessageTemplateType> ) -> Self
The message template to be used for the welcome message to new users.
See also Customizing User Invitation Messages.
sourcepub fn get_invite_message_template(&self) -> &Option<MessageTemplateType>
pub fn get_invite_message_template(&self) -> &Option<MessageTemplateType>
The message template to be used for the welcome message to new users.
See also Customizing User Invitation Messages.
sourcepub fn build(self) -> AdminCreateUserConfigType
pub fn build(self) -> AdminCreateUserConfigType
Consumes the builder and constructs a AdminCreateUserConfigType.
Trait Implementations§
source§impl Clone for AdminCreateUserConfigTypeBuilder
impl Clone for AdminCreateUserConfigTypeBuilder
source§fn clone(&self) -> AdminCreateUserConfigTypeBuilder
fn clone(&self) -> AdminCreateUserConfigTypeBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for AdminCreateUserConfigTypeBuilder
impl Default for AdminCreateUserConfigTypeBuilder
source§fn default() -> AdminCreateUserConfigTypeBuilder
fn default() -> AdminCreateUserConfigTypeBuilder
source§impl PartialEq for AdminCreateUserConfigTypeBuilder
impl PartialEq for AdminCreateUserConfigTypeBuilder
source§fn eq(&self, other: &AdminCreateUserConfigTypeBuilder) -> bool
fn eq(&self, other: &AdminCreateUserConfigTypeBuilder) -> bool
self and other values to be equal, and is used
by ==.