#[non_exhaustive]pub struct CreateGroupInput {
pub group_name: Option<String>,
pub user_pool_id: Option<String>,
pub description: Option<String>,
pub role_arn: Option<String>,
pub precedence: Option<i32>,
}
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. Must be unique.
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 or null 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. The maximum Precedence
value is 2^31-1
.
Implementations§
source§impl CreateGroupInput
impl CreateGroupInput
sourcepub fn group_name(&self) -> Option<&str>
pub fn group_name(&self) -> Option<&str>
The name of the group. Must be unique.
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 or null 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. The maximum Precedence
value is 2^31-1
.
source§impl CreateGroupInput
impl CreateGroupInput
sourcepub fn builder() -> CreateGroupInputBuilder
pub fn builder() -> CreateGroupInputBuilder
Creates a new builder-style object to manufacture CreateGroupInput
.
Trait Implementations§
source§impl Clone for CreateGroupInput
impl Clone for CreateGroupInput
source§fn clone(&self) -> CreateGroupInput
fn clone(&self) -> CreateGroupInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateGroupInput
impl Debug for CreateGroupInput
source§impl PartialEq for CreateGroupInput
impl PartialEq for CreateGroupInput
source§fn eq(&self, other: &CreateGroupInput) -> bool
fn eq(&self, other: &CreateGroupInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateGroupInput
Auto Trait Implementations§
impl Freeze for CreateGroupInput
impl RefUnwindSafe for CreateGroupInput
impl Send for CreateGroupInput
impl Sync for CreateGroupInput
impl Unpin for CreateGroupInput
impl UnwindSafe for CreateGroupInput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more