Interface UserPoolGroupOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
UserPoolGroupProps
- All Known Implementing Classes:
UserPoolGroupOptions.Jsii$Proxy
,UserPoolGroupProps.Jsii$Proxy
Example:
UserPool userPool; Role role; UserPoolGroup.Builder.create(this, "UserPoolGroup") .userPool(userPool) .groupName("my-group-name") .precedence(1) .role(role) .build(); // You can also add a group by using addGroup method. userPool.addGroup("AnotherUserPoolGroup", UserPoolGroupOptions.builder() .groupName("another-group-name") .build());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forUserPoolGroupOptions
static final class
An implementation forUserPoolGroupOptions
-
Method Summary
Modifier and TypeMethodDescriptionstatic UserPoolGroupOptions.Builder
builder()
default String
A string containing the description of the group.default String
The name of the group.default Number
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.default IRole
getRole()
The role for the group.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDescription
A string containing the description of the group.Default: - no description
-
getGroupName
The name of the group.Must be unique.
Default: - auto generate a name
-
getPrecedence
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.
Default: - null
-
getRole
The role for the group.Default: - no description
-
builder
- Returns:
- a
UserPoolGroupOptions.Builder
ofUserPoolGroupOptions
-