AWS::Cognito::UserPoolGroup
Specifies a new group in the identified user pool.
Calling this action requires developer credentials.
Note
If you don't specify a value for a parameter, Amazon Cognito sets it to a default value.
Syntax
To declare this entity in your Amazon CloudFormation template, use the following syntax:
JSON
{ "Type" : "AWS::Cognito::UserPoolGroup", "Properties" : { "Description" :String, "GroupName" :String, "Precedence" :Double, "RoleArn" :String, "UserPoolId" :String} }
YAML
Type: AWS::Cognito::UserPoolGroup Properties: Description:StringGroupName:StringPrecedence:DoubleRoleArn:StringUserPoolId:String
Properties
Description-
A string containing the description of the group.
Required: No
Type: String
Maximum:
2048Update requires: No interruption
GroupName-
The name of the group. Must be unique.
Required: No
Type: String
Minimum:
1Maximum:
128Pattern:
[\p{L}\p{M}\p{S}\p{N}\p{P}]+Update requires: Replacement
Precedence-
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
Precedencevalues take precedence over groups with higher or nullPrecedencevalues. 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 thecognito:rolesandcognito:preferred_roleclaims.Two groups can have the same
Precedencevalue. If this happens, neither group takes precedence over the other. If two groups with the samePrecedencehave the same role ARN, that role is used in thecognito:preferred_roleclaim in tokens for users in each group. If the two groups have different role ARNs, thecognito:preferred_roleclaim isn't set in users' tokens.The default
Precedencevalue is null. The maximumPrecedencevalue is2^31-1.Required: No
Type: Double
Minimum:
0Update requires: No interruption
RoleArn-
The role Amazon Resource Name (ARN) for the group.
Required: No
Type: String
Minimum:
20Maximum:
2048Pattern:
arn:[\w+=/,.@-]+:[\w+=/,.@-]+:([\w+=/,.@-]*)?:[0-9]+:[\w+=/,.@-]+(:[\w+=/,.@-]+)?(:[\w+=/,.@-]+)?Update requires: No interruption
UserPoolId-
The user pool ID for the user pool.
Required: Yes
Type: String
Minimum:
1Maximum:
55Pattern:
[\w-]+_[0-9a-zA-Z]+Update requires: Replacement
Return values
Ref
When you pass the logical ID of this resource to the intrinsic Reffunction, Refreturns the name of the user pool group. For example:
Admins.
For more information about using the Reffunction, see Ref.