CfnUserPoolGroupProps Struct
Properties for defining a CfnUserPoolGroup.
| Source | |
|---|---|
| Type last changed |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cognito as cognito } from 'aws-cdk-lib';
const cfnUserPoolGroupProps: cognito.CfnUserPoolGroupProps = {
userPoolId: 'userPoolId',
// the properties below are optional
description: 'description',
groupName: 'groupName',
precedence: 123,
roleArn: 'roleArn',
};
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_cognito as cognito
cfn_user_pool_group_props = cognito.CfnUserPoolGroupProps(
user_pool_id="userPoolId",
# the properties below are optional
description="description",
group_name="groupName",
precedence=123,
role_arn="roleArn"
)
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cognito.*;
CfnUserPoolGroupProps cfnUserPoolGroupProps = CfnUserPoolGroupProps.builder()
.userPoolId("userPoolId")
// the properties below are optional
.description("description")
.groupName("groupName")
.precedence(123)
.roleArn("roleArn")
.build();
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Cognito;
var cfnUserPoolGroupProps = new CfnUserPoolGroupProps {
UserPoolId = "userPoolId",
// the properties below are optional
Description = "description",
GroupName = "groupName",
Precedence = 123,
RoleArn = "roleArn"
};
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnUserPoolGroupProps := &CfnUserPoolGroupProps{
UserPoolId: jsii.String("userPoolId"),
// the properties below are optional
Description: jsii.String("description"),
GroupName: jsii.String("groupName"),
Precedence: jsii.Number(123),
RoleArn: jsii.String("roleArn"),
}
Properties
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #groupNameoptionalstringgroup_nameoptionalstrgroupNameoptionalStringGroupNameoptionalstringGroupNameoptional*string #This name must be unique in your user pool.
precedenceoptionalnumberprecedenceoptionalint | floatprecedenceoptionalNumberPrecedenceoptionaldoublePrecedenceoptional*float64 #notes
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 .
roleArnoptionalstring | IRoleRefrole_arnoptionaltyping.Union[str, IRoleRef]roleArnoptionalStringRoleArnoptionalstringRoleArnoptionalinterface{} #notes
A group role primarily declares a preferred role for the credentials that you get from an identity pool. Amazon Cognito ID tokens have a cognito:preferred_role claim that presents the highest-precedence group that a user belongs to. Both ID and access tokens also contain a cognito:groups claim that list all the groups that a user is a member of.
userPoolIdstring | IUserPoolRefuser_pool_idtyping.Union[str, IUserPoolRef]userPoolIdStringUserPoolIdstringUserPoolIdinterface{} required #