# UserHierarchyStructureProperty

Contains information about a hierarchy structure.

- Source: Generated at build time
- Type last changed: v2.159.0 · 19 Sep 2024

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_connect as connect } from 'aws-cdk-lib';
const userHierarchyStructureProperty: connect.CfnUserHierarchyStructure.UserHierarchyStructureProperty = {
  levelFive: {
    name: 'name',

    // the properties below are optional
    hierarchyLevelArn: 'hierarchyLevelArn',
    hierarchyLevelId: 'hierarchyLevelId',
  },
  levelFour: {
    name: 'name',

    // the properties below are optional
    hierarchyLevelArn: 'hierarchyLevelArn',
    hierarchyLevelId: 'hierarchyLevelId',
  },
  levelOne: {
    name: 'name',

    // the properties below are optional
    hierarchyLevelArn: 'hierarchyLevelArn',
    hierarchyLevelId: 'hierarchyLevelId',
  },
  levelThree: {
    name: 'name',

    // the properties below are optional
    hierarchyLevelArn: 'hierarchyLevelArn',
    hierarchyLevelId: 'hierarchyLevelId',
  },
  levelTwo: {
    name: 'name',

    // the properties below are optional
    hierarchyLevelArn: 'hierarchyLevelArn',
    hierarchyLevelId: 'hierarchyLevelId',
  },
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_connect as connect

user_hierarchy_structure_property = connect.CfnUserHierarchyStructure.UserHierarchyStructureProperty(
    level_five=connect.CfnUserHierarchyStructure.LevelFiveProperty(
        name="name",

        # the properties below are optional
        hierarchy_level_arn="hierarchyLevelArn",
        hierarchy_level_id="hierarchyLevelId"
    ),
    level_four=connect.CfnUserHierarchyStructure.LevelFourProperty(
        name="name",

        # the properties below are optional
        hierarchy_level_arn="hierarchyLevelArn",
        hierarchy_level_id="hierarchyLevelId"
    ),
    level_one=connect.CfnUserHierarchyStructure.LevelOneProperty(
        name="name",

        # the properties below are optional
        hierarchy_level_arn="hierarchyLevelArn",
        hierarchy_level_id="hierarchyLevelId"
    ),
    level_three=connect.CfnUserHierarchyStructure.LevelThreeProperty(
        name="name",

        # the properties below are optional
        hierarchy_level_arn="hierarchyLevelArn",
        hierarchy_level_id="hierarchyLevelId"
    ),
    level_two=connect.CfnUserHierarchyStructure.LevelTwoProperty(
        name="name",

        # the properties below are optional
        hierarchy_level_arn="hierarchyLevelArn",
        hierarchy_level_id="hierarchyLevelId"
    )
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.connect.*;

UserHierarchyStructureProperty userHierarchyStructureProperty = UserHierarchyStructureProperty.builder()
        .levelFive(LevelFiveProperty.builder()
                .name("name")

                // the properties below are optional
                .hierarchyLevelArn("hierarchyLevelArn")
                .hierarchyLevelId("hierarchyLevelId")
                .build())
        .levelFour(LevelFourProperty.builder()
                .name("name")

                // the properties below are optional
                .hierarchyLevelArn("hierarchyLevelArn")
                .hierarchyLevelId("hierarchyLevelId")
                .build())
        .levelOne(LevelOneProperty.builder()
                .name("name")

                // the properties below are optional
                .hierarchyLevelArn("hierarchyLevelArn")
                .hierarchyLevelId("hierarchyLevelId")
                .build())
        .levelThree(LevelThreeProperty.builder()
                .name("name")

                // the properties below are optional
                .hierarchyLevelArn("hierarchyLevelArn")
                .hierarchyLevelId("hierarchyLevelId")
                .build())
        .levelTwo(LevelTwoProperty.builder()
                .name("name")

                // the properties below are optional
                .hierarchyLevelArn("hierarchyLevelArn")
                .hierarchyLevelId("hierarchyLevelId")
                .build())
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Connect;

var userHierarchyStructureProperty = new UserHierarchyStructureProperty {
    LevelFive = new LevelFiveProperty {
        Name = "name",

        // the properties below are optional
        HierarchyLevelArn = "hierarchyLevelArn",
        HierarchyLevelId = "hierarchyLevelId"
    },
    LevelFour = new LevelFourProperty {
        Name = "name",

        // the properties below are optional
        HierarchyLevelArn = "hierarchyLevelArn",
        HierarchyLevelId = "hierarchyLevelId"
    },
    LevelOne = new LevelOneProperty {
        Name = "name",

        // the properties below are optional
        HierarchyLevelArn = "hierarchyLevelArn",
        HierarchyLevelId = "hierarchyLevelId"
    },
    LevelThree = new LevelThreeProperty {
        Name = "name",

        // the properties below are optional
        HierarchyLevelArn = "hierarchyLevelArn",
        HierarchyLevelId = "hierarchyLevelId"
    },
    LevelTwo = new LevelTwoProperty {
        Name = "name",

        // the properties below are optional
        HierarchyLevelArn = "hierarchyLevelArn",
        HierarchyLevelId = "hierarchyLevelId"
    }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

userHierarchyStructureProperty := &UserHierarchyStructureProperty{
	LevelFive: &LevelFiveProperty{
		Name: jsii.String("name"),

		// the properties below are optional
		HierarchyLevelArn: jsii.String("hierarchyLevelArn"),
		HierarchyLevelId: jsii.String("hierarchyLevelId"),
	},
	LevelFour: &LevelFourProperty{
		Name: jsii.String("name"),

		// the properties below are optional
		HierarchyLevelArn: jsii.String("hierarchyLevelArn"),
		HierarchyLevelId: jsii.String("hierarchyLevelId"),
	},
	LevelOne: &LevelOneProperty{
		Name: jsii.String("name"),

		// the properties below are optional
		HierarchyLevelArn: jsii.String("hierarchyLevelArn"),
		HierarchyLevelId: jsii.String("hierarchyLevelId"),
	},
	LevelThree: &LevelThreeProperty{
		Name: jsii.String("name"),

		// the properties below are optional
		HierarchyLevelArn: jsii.String("hierarchyLevelArn"),
		HierarchyLevelId: jsii.String("hierarchyLevelId"),
	},
	LevelTwo: &LevelTwoProperty{
		Name: jsii.String("name"),

		// the properties below are optional
		HierarchyLevelArn: jsii.String("hierarchyLevelArn"),
		HierarchyLevelId: jsii.String("hierarchyLevelId"),
	},
}
```

## Properties

- `levelFive`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnUserHierarchyStructure.LevelFiveProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_connect.CfnUserHierarchyStructure.LevelFiveProperty.html) — Information about level five.

- `levelFour`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnUserHierarchyStructure.LevelFourProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_connect.CfnUserHierarchyStructure.LevelFourProperty.html) — The update for level four.

- `levelOne`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnUserHierarchyStructure.LevelOneProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_connect.CfnUserHierarchyStructure.LevelOneProperty.html) — The update for level one.

- `levelThree`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnUserHierarchyStructure.LevelThreeProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_connect.CfnUserHierarchyStructure.LevelThreeProperty.html) — The update for level three.

- `levelTwo`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnUserHierarchyStructure.LevelTwoProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_connect.CfnUserHierarchyStructure.LevelTwoProperty.html) — The update for level two.
