1. Packages
  2. AWS
  3. API Docs
  4. identitystore
  5. getGroups
AWS v6.77.0 published on Wednesday, Apr 9, 2025 by Pulumi

aws.identitystore.getGroups

Explore with Pulumi AI

AWS v6.77.0 published on Wednesday, Apr 9, 2025 by Pulumi

Data source for managing an AWS SSO Identity Store Groups.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = aws.ssoadmin.getInstances({});
const exampleGetGroups = example.then(example => aws.identitystore.getGroups({
    identityStoreId: example.identityStoreIds?.[0],
}));
Copy
import pulumi
import pulumi_aws as aws

example = aws.ssoadmin.get_instances()
example_get_groups = aws.identitystore.get_groups(identity_store_id=example.identity_store_ids[0])
Copy
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/identitystore"
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ssoadmin"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := ssoadmin.GetInstances(ctx, map[string]interface{}{}, nil)
		if err != nil {
			return err
		}
		_, err = identitystore.GetGroups(ctx, &identitystore.GetGroupsArgs{
			IdentityStoreId: example.IdentityStoreIds[0],
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = Aws.SsoAdmin.GetInstances.Invoke();

    var exampleGetGroups = Aws.IdentityStore.GetGroups.Invoke(new()
    {
        IdentityStoreId = example.Apply(getInstancesResult => getInstancesResult.IdentityStoreIds[0]),
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ssoadmin.SsoadminFunctions;
import com.pulumi.aws.identitystore.IdentitystoreFunctions;
import com.pulumi.aws.identitystore.inputs.GetGroupsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var example = SsoadminFunctions.getInstances(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference);

        final var exampleGetGroups = IdentitystoreFunctions.getGroups(GetGroupsArgs.builder()
            .identityStoreId(example.identityStoreIds()[0])
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: aws:ssoadmin:getInstances
      arguments: {}
  exampleGetGroups:
    fn::invoke:
      function: aws:identitystore:getGroups
      arguments:
        identityStoreId: ${example.identityStoreIds[0]}
Copy

Using getGroups

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 getGroups(args: GetGroupsArgs, opts?: InvokeOptions): Promise<GetGroupsResult>
function getGroupsOutput(args: GetGroupsOutputArgs, opts?: InvokeOptions): Output<GetGroupsResult>
Copy
def get_groups(identity_store_id: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetGroupsResult
def get_groups_output(identity_store_id: Optional[pulumi.Input[str]] = None,
               opts: Optional[InvokeOptions] = None) -> Output[GetGroupsResult]
Copy
func GetGroups(ctx *Context, args *GetGroupsArgs, opts ...InvokeOption) (*GetGroupsResult, error)
func GetGroupsOutput(ctx *Context, args *GetGroupsOutputArgs, opts ...InvokeOption) GetGroupsResultOutput
Copy

> Note: This function is named GetGroups in the Go SDK.

public static class GetGroups 
{
    public static Task<GetGroupsResult> InvokeAsync(GetGroupsArgs args, InvokeOptions? opts = null)
    public static Output<GetGroupsResult> Invoke(GetGroupsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetGroupsResult> getGroups(GetGroupsArgs args, InvokeOptions options)
public static Output<GetGroupsResult> getGroups(GetGroupsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws:identitystore/getGroups:getGroups
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

IdentityStoreId This property is required. string
Identity Store ID associated with the Single Sign-On (SSO) Instance.
IdentityStoreId This property is required. string
Identity Store ID associated with the Single Sign-On (SSO) Instance.
identityStoreId This property is required. String
Identity Store ID associated with the Single Sign-On (SSO) Instance.
identityStoreId This property is required. string
Identity Store ID associated with the Single Sign-On (SSO) Instance.
identity_store_id This property is required. str
Identity Store ID associated with the Single Sign-On (SSO) Instance.
identityStoreId This property is required. String
Identity Store ID associated with the Single Sign-On (SSO) Instance.

getGroups Result

The following output properties are available:

Groups List<GetGroupsGroup>
List of Identity Store Groups
Id string
The provider-assigned unique ID for this managed resource.
IdentityStoreId string
Groups []GetGroupsGroup
List of Identity Store Groups
Id string
The provider-assigned unique ID for this managed resource.
IdentityStoreId string
groups List<GetGroupsGroup>
List of Identity Store Groups
id String
The provider-assigned unique ID for this managed resource.
identityStoreId String
groups GetGroupsGroup[]
List of Identity Store Groups
id string
The provider-assigned unique ID for this managed resource.
identityStoreId string
groups Sequence[GetGroupsGroup]
List of Identity Store Groups
id str
The provider-assigned unique ID for this managed resource.
identity_store_id str
groups List<Property Map>
List of Identity Store Groups
id String
The provider-assigned unique ID for this managed resource.
identityStoreId String

Supporting Types

GetGroupsGroup

Description This property is required. string
Description of the specified group.
DisplayName This property is required. string
Group's display name.
ExternalIds This property is required. List<GetGroupsGroupExternalId>
List of identifiers issued to this resource by an external identity provider.
GroupId This property is required. string
Identifier of the group in the Identity Store.
IdentityStoreId This property is required. string
Identity Store ID associated with the Single Sign-On (SSO) Instance.
Description This property is required. string
Description of the specified group.
DisplayName This property is required. string
Group's display name.
ExternalIds This property is required. []GetGroupsGroupExternalId
List of identifiers issued to this resource by an external identity provider.
GroupId This property is required. string
Identifier of the group in the Identity Store.
IdentityStoreId This property is required. string
Identity Store ID associated with the Single Sign-On (SSO) Instance.
description This property is required. String
Description of the specified group.
displayName This property is required. String
Group's display name.
externalIds This property is required. List<GetGroupsGroupExternalId>
List of identifiers issued to this resource by an external identity provider.
groupId This property is required. String
Identifier of the group in the Identity Store.
identityStoreId This property is required. String
Identity Store ID associated with the Single Sign-On (SSO) Instance.
description This property is required. string
Description of the specified group.
displayName This property is required. string
Group's display name.
externalIds This property is required. GetGroupsGroupExternalId[]
List of identifiers issued to this resource by an external identity provider.
groupId This property is required. string
Identifier of the group in the Identity Store.
identityStoreId This property is required. string
Identity Store ID associated with the Single Sign-On (SSO) Instance.
description This property is required. str
Description of the specified group.
display_name This property is required. str
Group's display name.
external_ids This property is required. Sequence[GetGroupsGroupExternalId]
List of identifiers issued to this resource by an external identity provider.
group_id This property is required. str
Identifier of the group in the Identity Store.
identity_store_id This property is required. str
Identity Store ID associated with the Single Sign-On (SSO) Instance.
description This property is required. String
Description of the specified group.
displayName This property is required. String
Group's display name.
externalIds This property is required. List<Property Map>
List of identifiers issued to this resource by an external identity provider.
groupId This property is required. String
Identifier of the group in the Identity Store.
identityStoreId This property is required. String
Identity Store ID associated with the Single Sign-On (SSO) Instance.

GetGroupsGroupExternalId

Id This property is required. string
Identifier issued to this resource by an external identity provider.
Issuer This property is required. string
Issuer for an external identifier.
Id This property is required. string
Identifier issued to this resource by an external identity provider.
Issuer This property is required. string
Issuer for an external identifier.
id This property is required. String
Identifier issued to this resource by an external identity provider.
issuer This property is required. String
Issuer for an external identifier.
id This property is required. string
Identifier issued to this resource by an external identity provider.
issuer This property is required. string
Issuer for an external identifier.
id This property is required. str
Identifier issued to this resource by an external identity provider.
issuer This property is required. str
Issuer for an external identifier.
id This property is required. String
Identifier issued to this resource by an external identity provider.
issuer This property is required. String
Issuer for an external identifier.

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.
AWS v6.77.0 published on Wednesday, Apr 9, 2025 by Pulumi