AWS::Cognito::UserPoolUserToGroupAttachment
Adds the specified user to the specified group.
Calling this action requires developer credentials.
Syntax
To declare this entity in your Amazon CloudFormation template, use the following syntax:
JSON
{ "Type" : "AWS::Cognito::UserPoolUserToGroupAttachment", "Properties" : { "GroupName" :String, "Username" :String, "UserPoolId" :String} }
YAML
Type: AWS::Cognito::UserPoolUserToGroupAttachment Properties: GroupName:StringUsername:StringUserPoolId:String
Properties
GroupName-
The group name.
Required: Yes
Type: String
Minimum:
1Maximum:
128Pattern:
[\p{L}\p{M}\p{S}\p{N}\p{P}]+Update requires: Replacement
Username-
The username for the user.
Required: Yes
Type: String
Minimum:
1Maximum:
128Pattern:
[\p{L}\p{M}\p{S}\p{N}\p{P}]+Update requires: Replacement
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 a generated ID, such as
UserToGroupAttachment-YejJvzrEXAMPLE.
For more information about using the Reffunction, see Ref.