Create Group
cognitoidentityprovider_create_group | R Documentation |
Creates a new group in the specified user pool¶
Description¶
Creates a new group in the specified user pool. For more information about user pool groups see Adding groups to a user pool.
Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.
Learn more
Usage¶
cognitoidentityprovider_create_group(GroupName, UserPoolId, Description,
RoleArn, Precedence)
Arguments¶
GroupName |
[required] A name for the group. This name must be unique in your user pool. |
UserPoolId |
[required] The ID of the user pool where you want to create a user group. |
Description |
A description of the group that you're creating. |
RoleArn |
The Amazon Resource Name (ARN) for the IAM role that you want to
associate with the group. A group role primarily declares a preferred
role for the credentials that you get from an identity pool. Amazon
Cognito ID tokens have a |
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
Two groups can have the same The default |
Value¶
A list with the following syntax:
list(
Group = list(
GroupName = "string",
UserPoolId = "string",
Description = "string",
RoleArn = "string",
Precedence = 123,
LastModifiedDate = as.POSIXct(
"2015-01-01"
),
CreationDate = as.POSIXct(
"2015-01-01"
)
)
)
Request syntax¶
svc$create_group(
GroupName = "string",
UserPoolId = "string",
Description = "string",
RoleArn = "string",
Precedence = 123
)