Skip to content

Resource: awsConnectUserHierarchyStructure

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

Example Usage

Basic

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.connectUserHierarchyStructure.ConnectUserHierarchyStructure(
  this,
  "example",
  {
    hierarchyStructure: {
      levelOne: {
        name: "levelone",
      },
    },
    instanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
  }
);

With Five Levels

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.connectUserHierarchyStructure.ConnectUserHierarchyStructure(
  this,
  "example",
  {
    hierarchyStructure: {
      levelFive: {
        name: "levelfive",
      },
      levelFour: {
        name: "levelfour",
      },
      levelOne: {
        name: "levelone",
      },
      levelThree: {
        name: "levelthree",
      },
      levelTwo: {
        name: "leveltwo",
      },
    },
    instanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
  }
);

Argument Reference

The following arguments are supported:

  • hierarchyStructure - (Required) A block that defines the hierarchy structure's levels. The hierarchyStructure block is documented below.
  • instanceId - (Required) Specifies the identifier of the hosting Amazon Connect Instance.

A hierarchyStructure block supports the following arguments:

  • levelOne - (Optional) A block that defines the details of level one. The level block is documented below.
  • levelTwo - (Optional) A block that defines the details of level two. The level block is documented below.
  • levelThree - (Optional) A block that defines the details of level three. The level block is documented below.
  • levelFour - (Optional) A block that defines the details of level four. The level block is documented below.
  • levelFive - (Optional) A block that defines the details of level five. The level block is documented below.

Each level block supports the following arguments:

  • name - (Required) The name of the user hierarchy level. Must not be more than 50 characters.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • hierarchyStructure - In addition to the arguments defined initially, there are attributes added to the levels created. These additional attributes are documented below.
  • id - The identifier of the hosting Amazon Connect Instance.

A level block supports the following additional attributes:

  • arn - The Amazon Resource Name (ARN) of the hierarchy level.
  • id - The identifier of the hierarchy level.

Import

Amazon Connect User Hierarchy Structures can be imported using the instanceId, e.g.,

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