We recommend new projects start with resources from the AWS provider.
aws-native.cognito.getUserPoolGroup
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Resource Type definition for AWS::Cognito::UserPoolGroup
Using getUserPoolGroup
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getUserPoolGroup(args: GetUserPoolGroupArgs, opts?: InvokeOptions): Promise<GetUserPoolGroupResult>
function getUserPoolGroupOutput(args: GetUserPoolGroupOutputArgs, opts?: InvokeOptions): Output<GetUserPoolGroupResult>def get_user_pool_group(group_name: Optional[str] = None,
                        user_pool_id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetUserPoolGroupResult
def get_user_pool_group_output(group_name: Optional[pulumi.Input[str]] = None,
                        user_pool_id: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetUserPoolGroupResult]func LookupUserPoolGroup(ctx *Context, args *LookupUserPoolGroupArgs, opts ...InvokeOption) (*LookupUserPoolGroupResult, error)
func LookupUserPoolGroupOutput(ctx *Context, args *LookupUserPoolGroupOutputArgs, opts ...InvokeOption) LookupUserPoolGroupResultOutput> Note: This function is named LookupUserPoolGroup in the Go SDK.
public static class GetUserPoolGroup 
{
    public static Task<GetUserPoolGroupResult> InvokeAsync(GetUserPoolGroupArgs args, InvokeOptions? opts = null)
    public static Output<GetUserPoolGroupResult> Invoke(GetUserPoolGroupInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetUserPoolGroupResult> getUserPoolGroup(GetUserPoolGroupArgs args, InvokeOptions options)
public static Output<GetUserPoolGroupResult> getUserPoolGroup(GetUserPoolGroupArgs args, InvokeOptions options)
fn::invoke:
  function: aws-native:cognito:getUserPoolGroup
  arguments:
    # arguments dictionaryThe following arguments are supported:
- GroupName string
- A name for the group. This name must be unique in your user pool.
- UserPool stringId 
- The ID of the user pool where you want to create a user group.
- GroupName string
- A name for the group. This name must be unique in your user pool.
- UserPool stringId 
- The ID of the user pool where you want to create a user group.
- groupName String
- A name for the group. This name must be unique in your user pool.
- userPool StringId 
- The ID of the user pool where you want to create a user group.
- groupName string
- A name for the group. This name must be unique in your user pool.
- userPool stringId 
- The ID of the user pool where you want to create a user group.
- group_name str
- A name for the group. This name must be unique in your user pool.
- user_pool_ strid 
- The ID of the user pool where you want to create a user group.
- groupName String
- A name for the group. This name must be unique in your user pool.
- userPool StringId 
- The ID of the user pool where you want to create a user group.
getUserPoolGroup Result
The following output properties are available:
- Description string
- A description of the group that you're creating.
- Precedence int
- 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 null- Precedencevalues. 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:rolesand- cognito:preferred_roleclaims.- Two groups can have the same - Precedencevalue. If this happens, neither group takes precedence over the other. If two groups with the same- Precedencehave the same role ARN, that role is used in the- cognito:preferred_roleclaim in tokens for users in each group. If the two groups have different role ARNs, the- cognito:preferred_roleclaim isn't set in users' tokens.- The default - Precedencevalue is null. The maximum- Precedencevalue is- 2^31-1.
- RoleArn string
- 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 cognito:preferred_roleclaim that presents the highest-precedence group that a user belongs to. Both ID and access tokens also contain acognito:groupsclaim that list all the groups that a user is a member of.
- Description string
- A description of the group that you're creating.
- Precedence int
- 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 null- Precedencevalues. 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:rolesand- cognito:preferred_roleclaims.- Two groups can have the same - Precedencevalue. If this happens, neither group takes precedence over the other. If two groups with the same- Precedencehave the same role ARN, that role is used in the- cognito:preferred_roleclaim in tokens for users in each group. If the two groups have different role ARNs, the- cognito:preferred_roleclaim isn't set in users' tokens.- The default - Precedencevalue is null. The maximum- Precedencevalue is- 2^31-1.
- RoleArn string
- 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 cognito:preferred_roleclaim that presents the highest-precedence group that a user belongs to. Both ID and access tokens also contain acognito:groupsclaim that list all the groups that a user is a member of.
- description String
- A description of the group that you're creating.
- precedence Integer
- 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 null- Precedencevalues. 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:rolesand- cognito:preferred_roleclaims.- Two groups can have the same - Precedencevalue. If this happens, neither group takes precedence over the other. If two groups with the same- Precedencehave the same role ARN, that role is used in the- cognito:preferred_roleclaim in tokens for users in each group. If the two groups have different role ARNs, the- cognito:preferred_roleclaim isn't set in users' tokens.- The default - Precedencevalue is null. The maximum- Precedencevalue is- 2^31-1.
- roleArn String
- 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 cognito:preferred_roleclaim that presents the highest-precedence group that a user belongs to. Both ID and access tokens also contain acognito:groupsclaim that list all the groups that a user is a member of.
- description string
- A description of the group that you're creating.
- precedence number
- 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 null- Precedencevalues. 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:rolesand- cognito:preferred_roleclaims.- Two groups can have the same - Precedencevalue. If this happens, neither group takes precedence over the other. If two groups with the same- Precedencehave the same role ARN, that role is used in the- cognito:preferred_roleclaim in tokens for users in each group. If the two groups have different role ARNs, the- cognito:preferred_roleclaim isn't set in users' tokens.- The default - Precedencevalue is null. The maximum- Precedencevalue is- 2^31-1.
- roleArn string
- 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 cognito:preferred_roleclaim that presents the highest-precedence group that a user belongs to. Both ID and access tokens also contain acognito:groupsclaim that list all the groups that a user is a member of.
- description str
- A description of the group that you're creating.
- precedence int
- 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 null- Precedencevalues. 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:rolesand- cognito:preferred_roleclaims.- Two groups can have the same - Precedencevalue. If this happens, neither group takes precedence over the other. If two groups with the same- Precedencehave the same role ARN, that role is used in the- cognito:preferred_roleclaim in tokens for users in each group. If the two groups have different role ARNs, the- cognito:preferred_roleclaim isn't set in users' tokens.- The default - Precedencevalue is null. The maximum- Precedencevalue is- 2^31-1.
- role_arn str
- 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 cognito:preferred_roleclaim that presents the highest-precedence group that a user belongs to. Both ID and access tokens also contain acognito:groupsclaim that list all the groups that a user is a member of.
- description String
- A description of the group that you're creating.
- precedence Number
- 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 null- Precedencevalues. 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:rolesand- cognito:preferred_roleclaims.- Two groups can have the same - Precedencevalue. If this happens, neither group takes precedence over the other. If two groups with the same- Precedencehave the same role ARN, that role is used in the- cognito:preferred_roleclaim in tokens for users in each group. If the two groups have different role ARNs, the- cognito:preferred_roleclaim isn't set in users' tokens.- The default - Precedencevalue is null. The maximum- Precedencevalue is- 2^31-1.
- roleArn String
- 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 cognito:preferred_roleclaim that presents the highest-precedence group that a user belongs to. Both ID and access tokens also contain acognito:groupsclaim that list all the groups that a user is a member of.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.