Struct aws_sdk_cognitoidentityprovider::types::GroupType
source · #[non_exhaustive]pub struct GroupType {
pub group_name: Option<String>,
pub user_pool_id: Option<String>,
pub description: Option<String>,
pub role_arn: Option<String>,
pub precedence: Option<i32>,
pub last_modified_date: Option<DateTime>,
pub creation_date: Option<DateTime>,
}Expand description
The group type.
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.group_name: Option<String>The name of the group.
user_pool_id: Option<String>The user pool ID for the user pool.
description: Option<String>A string containing the description of the group.
role_arn: Option<String>The role Amazon Resource Name (ARN) for the group.
precedence: Option<i32>A non-negative integer value that specifies the precedence of this group relative to the other groups that a user can belong to in the user pool. Zero is the highest precedence value. Groups with lower Precedence values take precedence over groups with higher ornull Precedence values. If a user belongs to two or more groups, it is the group with the lowest precedence value whose role ARN is given in the user's tokens for the cognito:roles and cognito:preferred_role claims.
Two groups can have the same Precedence value. If this happens, neither group takes precedence over the other. If two groups with the same Precedence have the same role ARN, that role is used in the cognito:preferred_role claim in tokens for users in each group. If the two groups have different role ARNs, the cognito:preferred_role claim isn't set in users' tokens.
The default Precedence value is null.
last_modified_date: Option<DateTime>The date and time, in ISO 8601 format, when the item was modified.
creation_date: Option<DateTime>The date and time, in ISO 8601 format, when the item was created.
Implementations§
source§impl GroupType
impl GroupType
sourcepub fn group_name(&self) -> Option<&str>
pub fn group_name(&self) -> Option<&str>
The name of the group.
sourcepub fn user_pool_id(&self) -> Option<&str>
pub fn user_pool_id(&self) -> Option<&str>
The user pool ID for the user pool.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A string containing the description of the group.
sourcepub fn precedence(&self) -> Option<i32>
pub fn precedence(&self) -> Option<i32>
A non-negative integer value that specifies the precedence of this group relative to the other groups that a user can belong to in the user pool. Zero is the highest precedence value. Groups with lower Precedence values take precedence over groups with higher ornull Precedence values. If a user belongs to two or more groups, it is the group with the lowest precedence value whose role ARN is given in the user's tokens for the cognito:roles and cognito:preferred_role claims.
Two groups can have the same Precedence value. If this happens, neither group takes precedence over the other. If two groups with the same Precedence have the same role ARN, that role is used in the cognito:preferred_role claim in tokens for users in each group. If the two groups have different role ARNs, the cognito:preferred_role claim isn't set in users' tokens.
The default Precedence value is null.
sourcepub fn last_modified_date(&self) -> Option<&DateTime>
pub fn last_modified_date(&self) -> Option<&DateTime>
The date and time, in ISO 8601 format, when the item was modified.
sourcepub fn creation_date(&self) -> Option<&DateTime>
pub fn creation_date(&self) -> Option<&DateTime>
The date and time, in ISO 8601 format, when the item was created.