1. Packages
  2. AWS Classic
  3. API Docs
  4. identitystore
  5. getGroups

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

aws.identitystore.getGroups

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 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],
    }));
    
    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])
    
    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, nil, nil)
    		if err != nil {
    			return err
    		}
    		_, err = identitystore.GetGroups(ctx, &identitystore.GetGroupsArgs{
    			IdentityStoreId: example.IdentityStoreIds[0],
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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]),
        });
    
    });
    
    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();
    
            final var exampleGetGroups = IdentitystoreFunctions.getGroups(GetGroupsArgs.builder()
                .identityStoreId(example.applyValue(getInstancesResult -> getInstancesResult.identityStoreIds()[0]))
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: aws:ssoadmin:getInstances
          Arguments: {}
      exampleGetGroups:
        fn::invoke:
          Function: aws:identitystore:getGroups
          Arguments:
            identityStoreId: ${example.identityStoreIds[0]}
    

    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>
    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]
    func GetGroups(ctx *Context, args *GetGroupsArgs, opts ...InvokeOption) (*GetGroupsResult, error)
    func GetGroupsOutput(ctx *Context, args *GetGroupsOutputArgs, opts ...InvokeOption) GetGroupsResultOutput

    > 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)
    }
    public static CompletableFuture<GetGroupsResult> getGroups(GetGroupsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws:identitystore/getGroups:getGroups
      arguments:
        # arguments dictionary

    The following arguments are supported:

    IdentityStoreId string
    Identity Store ID associated with the Single Sign-On (SSO) Instance.
    IdentityStoreId string
    Identity Store ID associated with the Single Sign-On (SSO) Instance.
    identityStoreId String
    Identity Store ID associated with the Single Sign-On (SSO) Instance.
    identityStoreId string
    Identity Store ID associated with the Single Sign-On (SSO) Instance.
    identity_store_id str
    Identity Store ID associated with the Single Sign-On (SSO) Instance.
    identityStoreId 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 string
    Description of the specified group.
    DisplayName string
    Group's display name.
    ExternalIds List<object>
    List of identifiers issued to this resource by an external identity provider.
    GroupId string
    Identifier of the group in the Identity Store.
    IdentityStoreId string
    Identity Store ID associated with the Single Sign-On (SSO) Instance.
    Description string
    Description of the specified group.
    DisplayName string
    Group's display name.
    ExternalIds []interface{}
    List of identifiers issued to this resource by an external identity provider.
    GroupId string
    Identifier of the group in the Identity Store.
    IdentityStoreId string
    Identity Store ID associated with the Single Sign-On (SSO) Instance.
    description String
    Description of the specified group.
    displayName String
    Group's display name.
    externalIds List<Object>
    List of identifiers issued to this resource by an external identity provider.
    groupId String
    Identifier of the group in the Identity Store.
    identityStoreId String
    Identity Store ID associated with the Single Sign-On (SSO) Instance.
    description string
    Description of the specified group.
    displayName string
    Group's display name.
    externalIds any[]
    List of identifiers issued to this resource by an external identity provider.
    groupId string
    Identifier of the group in the Identity Store.
    identityStoreId string
    Identity Store ID associated with the Single Sign-On (SSO) Instance.
    description str
    Description of the specified group.
    display_name str
    Group's display name.
    external_ids Sequence[Any]
    List of identifiers issued to this resource by an external identity provider.
    group_id str
    Identifier of the group in the Identity Store.
    identity_store_id str
    Identity Store ID associated with the Single Sign-On (SSO) Instance.
    description String
    Description of the specified group.
    displayName String
    Group's display name.
    externalIds List<Any>
    List of identifiers issued to this resource by an external identity provider.
    groupId String
    Identifier of the group in the Identity Store.
    identityStoreId String
    Identity Store ID associated with the Single Sign-On (SSO) Instance.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi