Resource: aws_connect_user_hierarchy_group

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

Example Usage

Basic

resource "aws_connect_user_hierarchy_group" "example" {
  instance_id = "aaaaaaaa-bbbb-cccc-dddd-111111111111"
  name        = "example"

  tags = {
    "Name" = "Example User Hierarchy Group"
  }
}

With a parent group

resource "aws_connect_user_hierarchy_group" "parent" {
  instance_id = "aaaaaaaa-bbbb-cccc-dddd-111111111111"
  name        = "parent"

  tags = {
    "Name" = "Example User Hierarchy Group Parent"
  }
}

resource "aws_connect_user_hierarchy_group" "child" {
  instance_id     = "aaaaaaaa-bbbb-cccc-dddd-111111111111"
  name            = "child"
  parent_group_id = aws_connect_user_hierarchy_group.parent.hierarchy_group_id

  tags = {
    "Name" = "Example User Hierarchy Group Child"
  }
}

Argument Reference

This resource supports the following arguments:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

A hierarchy_path block supports the following attributes:

A level block supports the following attributes:

Import

In Terraform v1.5.0 and later, use an import block to import Amazon Connect User Hierarchy Groups using the instance_id and hierarchy_group_id separated by a colon (:). For example:

import {
  to = aws_connect_user_hierarchy_group.example
  id = "f1288a1f-6193-445a-b47e-af739b2:c1d4e5f6-1b3c-1b3c-1b3c-c1d4e5f6c1d4e5"
}

Using terraform import, import Amazon Connect User Hierarchy Groups using the instance_id and hierarchy_group_id separated by a colon (:). For example:

% terraform import aws_connect_user_hierarchy_group.example f1288a1f-6193-445a-b47e-af739b2:c1d4e5f6-1b3c-1b3c-1b3c-c1d4e5f6c1d4e5