AWS v6.73.0 published on Wednesday, Mar 19, 2025 by Pulumi
aws.connect.getUserHierarchyStructure
Explore with Pulumi AI
Provides details about a specific Amazon Connect User Hierarchy Structure
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = aws.connect.getUserHierarchyStructure({
    instanceId: testAwsConnectInstance.id,
});
import pulumi
import pulumi_aws as aws
test = aws.connect.get_user_hierarchy_structure(instance_id=test_aws_connect_instance["id"])
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/connect"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := connect.LookupUserHierarchyStructure(ctx, &connect.LookupUserHierarchyStructureArgs{
			InstanceId: testAwsConnectInstance.Id,
		}, 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 test = Aws.Connect.GetUserHierarchyStructure.Invoke(new()
    {
        InstanceId = testAwsConnectInstance.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.connect.ConnectFunctions;
import com.pulumi.aws.connect.inputs.GetUserHierarchyStructureArgs;
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 test = ConnectFunctions.getUserHierarchyStructure(GetUserHierarchyStructureArgs.builder()
            .instanceId(testAwsConnectInstance.id())
            .build());
    }
}
variables:
  test:
    fn::invoke:
      function: aws:connect:getUserHierarchyStructure
      arguments:
        instanceId: ${testAwsConnectInstance.id}
Using getUserHierarchyStructure
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 getUserHierarchyStructure(args: GetUserHierarchyStructureArgs, opts?: InvokeOptions): Promise<GetUserHierarchyStructureResult>
function getUserHierarchyStructureOutput(args: GetUserHierarchyStructureOutputArgs, opts?: InvokeOptions): Output<GetUserHierarchyStructureResult>def get_user_hierarchy_structure(instance_id: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetUserHierarchyStructureResult
def get_user_hierarchy_structure_output(instance_id: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetUserHierarchyStructureResult]func LookupUserHierarchyStructure(ctx *Context, args *LookupUserHierarchyStructureArgs, opts ...InvokeOption) (*LookupUserHierarchyStructureResult, error)
func LookupUserHierarchyStructureOutput(ctx *Context, args *LookupUserHierarchyStructureOutputArgs, opts ...InvokeOption) LookupUserHierarchyStructureResultOutput> Note: This function is named LookupUserHierarchyStructure in the Go SDK.
public static class GetUserHierarchyStructure 
{
    public static Task<GetUserHierarchyStructureResult> InvokeAsync(GetUserHierarchyStructureArgs args, InvokeOptions? opts = null)
    public static Output<GetUserHierarchyStructureResult> Invoke(GetUserHierarchyStructureInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetUserHierarchyStructureResult> getUserHierarchyStructure(GetUserHierarchyStructureArgs args, InvokeOptions options)
public static Output<GetUserHierarchyStructureResult> getUserHierarchyStructure(GetUserHierarchyStructureArgs args, InvokeOptions options)
fn::invoke:
  function: aws:connect/getUserHierarchyStructure:getUserHierarchyStructure
  arguments:
    # arguments dictionaryThe following arguments are supported:
- InstanceId string
- Reference to the hosting Amazon Connect Instance
- InstanceId string
- Reference to the hosting Amazon Connect Instance
- instanceId String
- Reference to the hosting Amazon Connect Instance
- instanceId string
- Reference to the hosting Amazon Connect Instance
- instance_id str
- Reference to the hosting Amazon Connect Instance
- instanceId String
- Reference to the hosting Amazon Connect Instance
getUserHierarchyStructure Result
The following output properties are available:
- HierarchyStructures List<GetUser Hierarchy Structure Hierarchy Structure> 
- Block that defines the hierarchy structure's levels. The hierarchy_structureblock is documented below.
- Id string
- The provider-assigned unique ID for this managed resource.
- InstanceId string
- HierarchyStructures []GetUser Hierarchy Structure Hierarchy Structure 
- Block that defines the hierarchy structure's levels. The hierarchy_structureblock is documented below.
- Id string
- The provider-assigned unique ID for this managed resource.
- InstanceId string
- hierarchyStructures List<GetUser Hierarchy Structure Hierarchy Structure> 
- Block that defines the hierarchy structure's levels. The hierarchy_structureblock is documented below.
- id String
- The provider-assigned unique ID for this managed resource.
- instanceId String
- hierarchyStructures GetUser Hierarchy Structure Hierarchy Structure[] 
- Block that defines the hierarchy structure's levels. The hierarchy_structureblock is documented below.
- id string
- The provider-assigned unique ID for this managed resource.
- instanceId string
- hierarchy_structures Sequence[GetUser Hierarchy Structure Hierarchy Structure] 
- Block that defines the hierarchy structure's levels. The hierarchy_structureblock is documented below.
- id str
- The provider-assigned unique ID for this managed resource.
- instance_id str
- hierarchyStructures List<Property Map>
- Block that defines the hierarchy structure's levels. The hierarchy_structureblock is documented below.
- id String
- The provider-assigned unique ID for this managed resource.
- instanceId String
Supporting Types
GetUserHierarchyStructureHierarchyStructure     
- LevelFives List<GetUser Hierarchy Structure Hierarchy Structure Level Fife> 
- Details of level five. See below.
- LevelFours List<GetUser Hierarchy Structure Hierarchy Structure Level Four> 
- Details of level four. See below.
- LevelOnes List<GetUser Hierarchy Structure Hierarchy Structure Level One> 
- Details of level one. See below.
- LevelThrees List<GetUser Hierarchy Structure Hierarchy Structure Level Three> 
- Details of level three. See below.
- LevelTwos List<GetUser Hierarchy Structure Hierarchy Structure Level Two> 
- Details of level two. See below.
- LevelFives []GetUser Hierarchy Structure Hierarchy Structure Level Fife 
- Details of level five. See below.
- LevelFours []GetUser Hierarchy Structure Hierarchy Structure Level Four 
- Details of level four. See below.
- LevelOnes []GetUser Hierarchy Structure Hierarchy Structure Level One 
- Details of level one. See below.
- LevelThrees []GetUser Hierarchy Structure Hierarchy Structure Level Three 
- Details of level three. See below.
- LevelTwos []GetUser Hierarchy Structure Hierarchy Structure Level Two 
- Details of level two. See below.
- levelFives List<GetUser Hierarchy Structure Hierarchy Structure Level Fife> 
- Details of level five. See below.
- levelFours List<GetUser Hierarchy Structure Hierarchy Structure Level Four> 
- Details of level four. See below.
- levelOnes List<GetUser Hierarchy Structure Hierarchy Structure Level One> 
- Details of level one. See below.
- levelThrees List<GetUser Hierarchy Structure Hierarchy Structure Level Three> 
- Details of level three. See below.
- levelTwos List<GetUser Hierarchy Structure Hierarchy Structure Level Two> 
- Details of level two. See below.
- levelFives GetUser Hierarchy Structure Hierarchy Structure Level Fife[] 
- Details of level five. See below.
- levelFours GetUser Hierarchy Structure Hierarchy Structure Level Four[] 
- Details of level four. See below.
- levelOnes GetUser Hierarchy Structure Hierarchy Structure Level One[] 
- Details of level one. See below.
- levelThrees GetUser Hierarchy Structure Hierarchy Structure Level Three[] 
- Details of level three. See below.
- levelTwos GetUser Hierarchy Structure Hierarchy Structure Level Two[] 
- Details of level two. See below.
- level_fives Sequence[GetUser Hierarchy Structure Hierarchy Structure Level Fife] 
- Details of level five. See below.
- level_fours Sequence[GetUser Hierarchy Structure Hierarchy Structure Level Four] 
- Details of level four. See below.
- level_ones Sequence[GetUser Hierarchy Structure Hierarchy Structure Level One] 
- Details of level one. See below.
- level_threes Sequence[GetUser Hierarchy Structure Hierarchy Structure Level Three] 
- Details of level three. See below.
- level_twos Sequence[GetUser Hierarchy Structure Hierarchy Structure Level Two] 
- Details of level two. See below.
- levelFives List<Property Map>
- Details of level five. See below.
- levelFours List<Property Map>
- Details of level four. See below.
- levelOnes List<Property Map>
- Details of level one. See below.
- levelThrees List<Property Map>
- Details of level three. See below.
- levelTwos List<Property Map>
- Details of level two. See below.
GetUserHierarchyStructureHierarchyStructureLevelFife       
GetUserHierarchyStructureHierarchyStructureLevelFour       
GetUserHierarchyStructureHierarchyStructureLevelOne       
GetUserHierarchyStructureHierarchyStructureLevelThree       
GetUserHierarchyStructureHierarchyStructureLevelTwo       
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the awsTerraform Provider.