AWS v6.77.1 published on Friday, Apr 18, 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:
- Instance
Id string - Reference to the hosting Amazon Connect Instance
 
- Instance
Id string - Reference to the hosting Amazon Connect Instance
 
- instance
Id String - Reference to the hosting Amazon Connect Instance
 
- instance
Id string - Reference to the hosting Amazon Connect Instance
 
- instance_
id str - Reference to the hosting Amazon Connect Instance
 
- instance
Id String - Reference to the hosting Amazon Connect Instance
 
getUserHierarchyStructure Result
The following output properties are available:
- Hierarchy
Structures 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.
 - Instance
Id string 
- Hierarchy
Structures []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.
 - Instance
Id string 
- hierarchy
Structures 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.
 - instance
Id String 
- hierarchy
Structures 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.
 - instance
Id 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 
- hierarchy
Structures 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.
 - instance
Id String 
Supporting Types
GetUserHierarchyStructureHierarchyStructure     
- Level
Fives List<GetUser Hierarchy Structure Hierarchy Structure Level Fife>  - Details of level five. See below.
 - Level
Fours List<GetUser Hierarchy Structure Hierarchy Structure Level Four>  - Details of level four. See below.
 - Level
Ones List<GetUser Hierarchy Structure Hierarchy Structure Level One>  - Details of level one. See below.
 - Level
Threes List<GetUser Hierarchy Structure Hierarchy Structure Level Three>  - Details of level three. See below.
 - Level
Twos List<GetUser Hierarchy Structure Hierarchy Structure Level Two>  - Details of level two. See below.
 
- Level
Fives []GetUser Hierarchy Structure Hierarchy Structure Level Fife  - Details of level five. See below.
 - Level
Fours []GetUser Hierarchy Structure Hierarchy Structure Level Four  - Details of level four. See below.
 - Level
Ones []GetUser Hierarchy Structure Hierarchy Structure Level One  - Details of level one. See below.
 - Level
Threes []GetUser Hierarchy Structure Hierarchy Structure Level Three  - Details of level three. See below.
 - Level
Twos []GetUser Hierarchy Structure Hierarchy Structure Level Two  - Details of level two. See below.
 
- level
Fives List<GetUser Hierarchy Structure Hierarchy Structure Level Fife>  - Details of level five. See below.
 - level
Fours List<GetUser Hierarchy Structure Hierarchy Structure Level Four>  - Details of level four. See below.
 - level
Ones List<GetUser Hierarchy Structure Hierarchy Structure Level One>  - Details of level one. See below.
 - level
Threes List<GetUser Hierarchy Structure Hierarchy Structure Level Three>  - Details of level three. See below.
 - level
Twos List<GetUser Hierarchy Structure Hierarchy Structure Level Two>  - Details of level two. See below.
 
- level
Fives GetUser Hierarchy Structure Hierarchy Structure Level Fife[]  - Details of level five. See below.
 - level
Fours GetUser Hierarchy Structure Hierarchy Structure Level Four[]  - Details of level four. See below.
 - level
Ones GetUser Hierarchy Structure Hierarchy Structure Level One[]  - Details of level one. See below.
 - level
Threes GetUser Hierarchy Structure Hierarchy Structure Level Three[]  - Details of level three. See below.
 - level
Twos 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.
 
- level
Fives List<Property Map> - Details of level five. See below.
 - level
Fours List<Property Map> - Details of level four. See below.
 - level
Ones List<Property Map> - Details of level one. See below.
 - level
Threes List<Property Map> - Details of level three. See below.
 - level
Twos 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.