public static interface CreateGroupRequest.Builder extends CognitoIdentityProviderRequest.Builder, SdkPojo, CopyableBuilder<CreateGroupRequest.Builder,CreateGroupRequest>
Modifier and Type | Method and Description |
---|---|
CreateGroupRequest.Builder |
description(String description)
A string containing the description of the group.
|
CreateGroupRequest.Builder |
groupName(String groupName)
The name of the group.
|
CreateGroupRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
CreateGroupRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
CreateGroupRequest.Builder |
precedence(Integer precedence)
A nonnegative integer value that specifies the precedence of this group relative to the other groups that a
user can belong to in the user pool.
|
CreateGroupRequest.Builder |
roleArn(String roleArn)
The role ARN for the group.
|
CreateGroupRequest.Builder |
userPoolId(String userPoolId)
The user pool ID for the user pool.
|
build
overrideConfiguration
equalsBySdkFields, sdkFields
copy
applyMutation, build
CreateGroupRequest.Builder groupName(String groupName)
The name of the group. Must be unique.
groupName
- The name of the group. Must be unique.CreateGroupRequest.Builder userPoolId(String userPoolId)
The user pool ID for the user pool.
userPoolId
- The user pool ID for the user pool.CreateGroupRequest.Builder description(String description)
A string containing the description of the group.
description
- A string containing the description of the group.CreateGroupRequest.Builder roleArn(String roleArn)
The role ARN for the group.
roleArn
- The role ARN for the group.CreateGroupRequest.Builder precedence(Integer precedence)
A nonnegative 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 will be used in the cognito:roles
and cognito:preferred_role
claims in the
user's tokens.
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 is not set in users' tokens.
The default Precedence
value is null.
precedence
- A nonnegative 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 will be used in the cognito:roles
and cognito:preferred_role
claims in the user's tokens.
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 is not set
in users' tokens.
The default Precedence
value is null.
CreateGroupRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration
in interface AwsRequest.Builder
CreateGroupRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration
in interface AwsRequest.Builder
Copyright © 2020. All rights reserved.