Struct aws_sdk_cognitoidentityprovider::types::UserType
source · #[non_exhaustive]pub struct UserType {
pub username: Option<String>,
pub attributes: Option<Vec<AttributeType>>,
pub user_create_date: Option<DateTime>,
pub user_last_modified_date: Option<DateTime>,
pub enabled: bool,
pub user_status: Option<UserStatusType>,
pub mfa_options: Option<Vec<MfaOptionType>>,
}Expand description
A user profile in a Amazon Cognito user pool.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.username: Option<String>The user name of the user you want to describe.
attributes: Option<Vec<AttributeType>>A container with information about the user type attributes.
user_create_date: Option<DateTime>The creation date of the user.
user_last_modified_date: Option<DateTime>The date and time, in ISO 8601 format, when the item was modified.
enabled: boolSpecifies whether the user is enabled.
user_status: Option<UserStatusType>The user status. This can be one of the following:
-
UNCONFIRMED - User has been created but not confirmed.
-
CONFIRMED - User has been confirmed.
-
EXTERNAL_PROVIDER - User signed in with a third-party IdP.
-
UNKNOWN - User status isn't known.
-
RESET_REQUIRED - User is confirmed, but the user must request a code and reset their password before they can sign in.
-
FORCE_CHANGE_PASSWORD - The user is confirmed and the user can sign in using a temporary password, but on first sign-in, the user must change their password to a new value before doing anything else.
mfa_options: Option<Vec<MfaOptionType>>The MFA options for the user.
Implementations§
source§impl UserType
impl UserType
sourcepub fn attributes(&self) -> &[AttributeType]
pub fn attributes(&self) -> &[AttributeType]
A container with information about the user type attributes.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .attributes.is_none().
sourcepub fn user_create_date(&self) -> Option<&DateTime>
pub fn user_create_date(&self) -> Option<&DateTime>
The creation date of the user.
sourcepub fn user_last_modified_date(&self) -> Option<&DateTime>
pub fn user_last_modified_date(&self) -> Option<&DateTime>
The date and time, in ISO 8601 format, when the item was modified.
sourcepub fn user_status(&self) -> Option<&UserStatusType>
pub fn user_status(&self) -> Option<&UserStatusType>
The user status. This can be one of the following:
-
UNCONFIRMED - User has been created but not confirmed.
-
CONFIRMED - User has been confirmed.
-
EXTERNAL_PROVIDER - User signed in with a third-party IdP.
-
UNKNOWN - User status isn't known.
-
RESET_REQUIRED - User is confirmed, but the user must request a code and reset their password before they can sign in.
-
FORCE_CHANGE_PASSWORD - The user is confirmed and the user can sign in using a temporary password, but on first sign-in, the user must change their password to a new value before doing anything else.
sourcepub fn mfa_options(&self) -> &[MfaOptionType]
pub fn mfa_options(&self) -> &[MfaOptionType]
The MFA options for the user.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .mfa_options.is_none().