Terraform data source for managing an AWS Cognito IDP (Identity Provider) User Group.
data "aws_cognito_user_group" "example" {
user_pool_id = "us-west-2_aaaaaaaaa"
name = "example"
}
The following arguments are required:
name
- (Required) Name of the user group.user_pool_id
- (Required) User pool the client belongs to.This data source exports the following attributes in addition to the arguments above:
description
- Description of the user group.id
- A comma-delimited string concatenating name
and user_pool_id
.precedence
- Precedence of the user group.role_arn
- ARN of the IAM role to be associated with the user group.