Resource: aws_connect_user_hierarchy_structure

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

Example Usage

Basic

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

  hierarchy_structure {
    level_one {
      name = "levelone"
    }
  }
}

With Five Levels

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

  hierarchy_structure {
    level_one {
      name = "levelone"
    }

    level_two {
      name = "leveltwo"
    }

    level_three {
      name = "levelthree"
    }

    level_four {
      name = "levelfour"
    }

    level_five {
      name = "levelfive"
    }
  }
}

Argument Reference

This resource supports the following arguments:

A hierarchy_structure block supports the following arguments:

Each level block supports the following arguments:

Attribute Reference

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

A level block supports the following additional attributes:

Import

In Terraform v1.5.0 and later, use an import block to import Amazon Connect User Hierarchy Structures using the instance_id. For example:

import {
  to = aws_connect_user_hierarchy_structure.example
  id = "f1288a1f-6193-445a-b47e-af739b2"
}

Using terraform import, import Amazon Connect User Hierarchy Structures using the instance_id. For example:

% terraform import aws_connect_user_hierarchy_structure.example f1288a1f-6193-445a-b47e-af739b2