UserHierarchyGroup

Provides an Amazon Connect User Hierarchy Group resource. For more information see Amazon Connect: Getting Started

NOTE: The User Hierarchy Structure must be created before creating a User Hierarchy Group.

Example Usage

Basic

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.connect.UserHierarchyGroup;
import com.pulumi.aws.connect.UserHierarchyGroupArgs;
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) {
var example = new UserHierarchyGroup("example", UserHierarchyGroupArgs.builder()
.instanceId("aaaaaaaa-bbbb-cccc-dddd-111111111111")
.tags(Map.of("Name", "Example User Hierarchy Group"))
.build());
}
}

With a parent group

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.connect.UserHierarchyGroup;
import com.pulumi.aws.connect.UserHierarchyGroupArgs;
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) {
var parent = new UserHierarchyGroup("parent", UserHierarchyGroupArgs.builder()
.instanceId("aaaaaaaa-bbbb-cccc-dddd-111111111111")
.tags(Map.of("Name", "Example User Hierarchy Group Parent"))
.build());
var child = new UserHierarchyGroup("child", UserHierarchyGroupArgs.builder()
.instanceId("aaaaaaaa-bbbb-cccc-dddd-111111111111")
.parentGroupId(parent.hierarchyGroupId())
.tags(Map.of("Name", "Example User Hierarchy Group Child"))
.build());
}
}

Import

Amazon Connect User Hierarchy Groups can be imported using the instance_id and hierarchy_group_id separated by a colon (:), e.g.,

$ pulumi import aws:connect/userHierarchyGroup:UserHierarchyGroup example f1288a1f-6193-445a-b47e-af739b2:c1d4e5f6-1b3c-1b3c-1b3c-c1d4e5f6c1d4e5

Properties

Link copied to clipboard
val arn: Output<String>

The Amazon Resource Name (ARN) of the hierarchy group.

Link copied to clipboard

The identifier for the hierarchy group.

Link copied to clipboard

A block that contains information about the levels in the hierarchy group. The hierarchy_path block is documented below.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val instanceId: Output<String>

Specifies the identifier of the hosting Amazon Connect Instance.

Link copied to clipboard
val levelId: Output<String>

The identifier of the level in the hierarchy group.

Link copied to clipboard
val name: Output<String>

The name of the user hierarchy group. Must not be more than 100 characters.

Link copied to clipboard
val parentGroupId: Output<String>?

The identifier for the parent hierarchy group. The user hierarchy is created at level one if the parent group ID is null.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val tags: Output<Map<String, String>>?

Tags to apply to the hierarchy group. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val urn: Output<String>