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.connect.getUserHierarchyGroup
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi
Provides details about a specific Amazon Connect User Hierarchy Group.
Example Usage
By name
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.connect.getUserHierarchyGroup({
instanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
name: "Example",
});
import pulumi
import pulumi_aws as aws
example = aws.connect.get_user_hierarchy_group(instance_id="aaaaaaaa-bbbb-cccc-dddd-111111111111",
name="Example")
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.LookupUserHierarchyGroup(ctx, &connect.LookupUserHierarchyGroupArgs{
InstanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
Name: pulumi.StringRef("Example"),
}, 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.Connect.GetUserHierarchyGroup.Invoke(new()
{
InstanceId = "aaaaaaaa-bbbb-cccc-dddd-111111111111",
Name = "Example",
});
});
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.GetUserHierarchyGroupArgs;
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 = ConnectFunctions.getUserHierarchyGroup(GetUserHierarchyGroupArgs.builder()
.instanceId("aaaaaaaa-bbbb-cccc-dddd-111111111111")
.name("Example")
.build());
}
}
variables:
example:
fn::invoke:
Function: aws:connect:getUserHierarchyGroup
Arguments:
instanceId: aaaaaaaa-bbbb-cccc-dddd-111111111111
name: Example
By hierarchy_group_id
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.connect.getUserHierarchyGroup({
instanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
hierarchyGroupId: "cccccccc-bbbb-cccc-dddd-111111111111",
});
import pulumi
import pulumi_aws as aws
example = aws.connect.get_user_hierarchy_group(instance_id="aaaaaaaa-bbbb-cccc-dddd-111111111111",
hierarchy_group_id="cccccccc-bbbb-cccc-dddd-111111111111")
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.LookupUserHierarchyGroup(ctx, &connect.LookupUserHierarchyGroupArgs{
InstanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
HierarchyGroupId: pulumi.StringRef("cccccccc-bbbb-cccc-dddd-111111111111"),
}, 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.Connect.GetUserHierarchyGroup.Invoke(new()
{
InstanceId = "aaaaaaaa-bbbb-cccc-dddd-111111111111",
HierarchyGroupId = "cccccccc-bbbb-cccc-dddd-111111111111",
});
});
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.GetUserHierarchyGroupArgs;
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 = ConnectFunctions.getUserHierarchyGroup(GetUserHierarchyGroupArgs.builder()
.instanceId("aaaaaaaa-bbbb-cccc-dddd-111111111111")
.hierarchyGroupId("cccccccc-bbbb-cccc-dddd-111111111111")
.build());
}
}
variables:
example:
fn::invoke:
Function: aws:connect:getUserHierarchyGroup
Arguments:
instanceId: aaaaaaaa-bbbb-cccc-dddd-111111111111
hierarchyGroupId: cccccccc-bbbb-cccc-dddd-111111111111
Using getUserHierarchyGroup
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 getUserHierarchyGroup(args: GetUserHierarchyGroupArgs, opts?: InvokeOptions): Promise<GetUserHierarchyGroupResult>
function getUserHierarchyGroupOutput(args: GetUserHierarchyGroupOutputArgs, opts?: InvokeOptions): Output<GetUserHierarchyGroupResult>
def get_user_hierarchy_group(hierarchy_group_id: Optional[str] = None,
instance_id: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
opts: Optional[InvokeOptions] = None) -> GetUserHierarchyGroupResult
def get_user_hierarchy_group_output(hierarchy_group_id: Optional[pulumi.Input[str]] = None,
instance_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetUserHierarchyGroupResult]
func LookupUserHierarchyGroup(ctx *Context, args *LookupUserHierarchyGroupArgs, opts ...InvokeOption) (*LookupUserHierarchyGroupResult, error)
func LookupUserHierarchyGroupOutput(ctx *Context, args *LookupUserHierarchyGroupOutputArgs, opts ...InvokeOption) LookupUserHierarchyGroupResultOutput
> Note: This function is named LookupUserHierarchyGroup
in the Go SDK.
public static class GetUserHierarchyGroup
{
public static Task<GetUserHierarchyGroupResult> InvokeAsync(GetUserHierarchyGroupArgs args, InvokeOptions? opts = null)
public static Output<GetUserHierarchyGroupResult> Invoke(GetUserHierarchyGroupInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetUserHierarchyGroupResult> getUserHierarchyGroup(GetUserHierarchyGroupArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:connect/getUserHierarchyGroup:getUserHierarchyGroup
arguments:
# arguments dictionary
The following arguments are supported:
- Instance
Id string - Reference to the hosting Amazon Connect Instance
- Hierarchy
Group stringId - Returns information on a specific hierarchy group by hierarchy group id
- Name string
- Returns information on a specific hierarchy group by name
- Dictionary<string, string>
- Map of tags to assign to the hierarchy group.
- Instance
Id string - Reference to the hosting Amazon Connect Instance
- Hierarchy
Group stringId - Returns information on a specific hierarchy group by hierarchy group id
- Name string
- Returns information on a specific hierarchy group by name
- map[string]string
- Map of tags to assign to the hierarchy group.
- instance
Id String - Reference to the hosting Amazon Connect Instance
- hierarchy
Group StringId - Returns information on a specific hierarchy group by hierarchy group id
- name String
- Returns information on a specific hierarchy group by name
- Map<String,String>
- Map of tags to assign to the hierarchy group.
- instance
Id string - Reference to the hosting Amazon Connect Instance
- hierarchy
Group stringId - Returns information on a specific hierarchy group by hierarchy group id
- name string
- Returns information on a specific hierarchy group by name
- {[key: string]: string}
- Map of tags to assign to the hierarchy group.
- instance_
id str - Reference to the hosting Amazon Connect Instance
- hierarchy_
group_ strid - Returns information on a specific hierarchy group by hierarchy group id
- name str
- Returns information on a specific hierarchy group by name
- Mapping[str, str]
- Map of tags to assign to the hierarchy group.
- instance
Id String - Reference to the hosting Amazon Connect Instance
- hierarchy
Group StringId - Returns information on a specific hierarchy group by hierarchy group id
- name String
- Returns information on a specific hierarchy group by name
- Map<String>
- Map of tags to assign to the hierarchy group.
getUserHierarchyGroup Result
The following output properties are available:
- Arn string
- ARN of the hierarchy group.
- Hierarchy
Group stringId - Hierarchy
Paths List<GetUser Hierarchy Group Hierarchy Path> - Block that contains information about the levels in the hierarchy group. The
hierarchy_path
block is documented below. - Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string - Level
Id string - Identifier of the level in the hierarchy group.
- Name string
- Name of the hierarchy group.
- Dictionary<string, string>
- Map of tags to assign to the hierarchy group.
- Arn string
- ARN of the hierarchy group.
- Hierarchy
Group stringId - Hierarchy
Paths []GetUser Hierarchy Group Hierarchy Path - Block that contains information about the levels in the hierarchy group. The
hierarchy_path
block is documented below. - Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string - Level
Id string - Identifier of the level in the hierarchy group.
- Name string
- Name of the hierarchy group.
- map[string]string
- Map of tags to assign to the hierarchy group.
- arn String
- ARN of the hierarchy group.
- hierarchy
Group StringId - hierarchy
Paths List<GetUser Hierarchy Group Hierarchy Path> - Block that contains information about the levels in the hierarchy group. The
hierarchy_path
block is documented below. - id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String - level
Id String - Identifier of the level in the hierarchy group.
- name String
- Name of the hierarchy group.
- Map<String,String>
- Map of tags to assign to the hierarchy group.
- arn string
- ARN of the hierarchy group.
- hierarchy
Group stringId - hierarchy
Paths GetUser Hierarchy Group Hierarchy Path[] - Block that contains information about the levels in the hierarchy group. The
hierarchy_path
block is documented below. - id string
- The provider-assigned unique ID for this managed resource.
- instance
Id string - level
Id string - Identifier of the level in the hierarchy group.
- name string
- Name of the hierarchy group.
- {[key: string]: string}
- Map of tags to assign to the hierarchy group.
- arn str
- ARN of the hierarchy group.
- hierarchy_
group_ strid - hierarchy_
paths Sequence[GetUser Hierarchy Group Hierarchy Path] - Block that contains information about the levels in the hierarchy group. The
hierarchy_path
block is documented below. - id str
- The provider-assigned unique ID for this managed resource.
- instance_
id str - level_
id str - Identifier of the level in the hierarchy group.
- name str
- Name of the hierarchy group.
- Mapping[str, str]
- Map of tags to assign to the hierarchy group.
- arn String
- ARN of the hierarchy group.
- hierarchy
Group StringId - hierarchy
Paths List<Property Map> - Block that contains information about the levels in the hierarchy group. The
hierarchy_path
block is documented below. - id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String - level
Id String - Identifier of the level in the hierarchy group.
- name String
- Name of the hierarchy group.
- Map<String>
- Map of tags to assign to the hierarchy group.
Supporting Types
GetUserHierarchyGroupHierarchyPath
- Level
Fives List<GetUser Hierarchy Group Hierarchy Path Level Fife> - Details of level five. See below.
- Level
Fours List<GetUser Hierarchy Group Hierarchy Path Level Four> - Details of level four. See below.
- Level
Ones List<GetUser Hierarchy Group Hierarchy Path Level One> - Details of level one. See below.
- Level
Threes List<GetUser Hierarchy Group Hierarchy Path Level Three> - Details of level three. See below.
- Level
Twos List<GetUser Hierarchy Group Hierarchy Path Level Two> - Details of level two. See below.
- Level
Fives []GetUser Hierarchy Group Hierarchy Path Level Fife - Details of level five. See below.
- Level
Fours []GetUser Hierarchy Group Hierarchy Path Level Four - Details of level four. See below.
- Level
Ones []GetUser Hierarchy Group Hierarchy Path Level One - Details of level one. See below.
- Level
Threes []GetUser Hierarchy Group Hierarchy Path Level Three - Details of level three. See below.
- Level
Twos []GetUser Hierarchy Group Hierarchy Path Level Two - Details of level two. See below.
- level
Fives List<GetUser Hierarchy Group Hierarchy Path Level Fife> - Details of level five. See below.
- level
Fours List<GetUser Hierarchy Group Hierarchy Path Level Four> - Details of level four. See below.
- level
Ones List<GetUser Hierarchy Group Hierarchy Path Level One> - Details of level one. See below.
- level
Threes List<GetUser Hierarchy Group Hierarchy Path Level Three> - Details of level three. See below.
- level
Twos List<GetUser Hierarchy Group Hierarchy Path Level Two> - Details of level two. See below.
- level
Fives GetUser Hierarchy Group Hierarchy Path Level Fife[] - Details of level five. See below.
- level
Fours GetUser Hierarchy Group Hierarchy Path Level Four[] - Details of level four. See below.
- level
Ones GetUser Hierarchy Group Hierarchy Path Level One[] - Details of level one. See below.
- level
Threes GetUser Hierarchy Group Hierarchy Path Level Three[] - Details of level three. See below.
- level
Twos GetUser Hierarchy Group Hierarchy Path Level Two[] - Details of level two. See below.
- level_
fives Sequence[GetUser Hierarchy Group Hierarchy Path Level Fife] - Details of level five. See below.
- level_
fours Sequence[GetUser Hierarchy Group Hierarchy Path Level Four] - Details of level four. See below.
- level_
ones Sequence[GetUser Hierarchy Group Hierarchy Path Level One] - Details of level one. See below.
- level_
threes Sequence[GetUser Hierarchy Group Hierarchy Path Level Three] - Details of level three. See below.
- level_
twos Sequence[GetUser Hierarchy Group Hierarchy Path 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.
GetUserHierarchyGroupHierarchyPathLevelFife
GetUserHierarchyGroupHierarchyPathLevelFour
GetUserHierarchyGroupHierarchyPathLevelOne
GetUserHierarchyGroupHierarchyPathLevelThree
GetUserHierarchyGroupHierarchyPathLevelTwo
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi