# CfnUserHierarchyGroupProps

Properties for defining a `CfnUserHierarchyGroup`.

Used as props by: [CfnUserHierarchyGroup](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_connect.CfnUserHierarchyGroup.html)

- Source: Generated at build time
- Type last changed: v2.227.0 · 21 Nov 2025

## 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 cfnUserHierarchyGroupProps: connect.CfnUserHierarchyGroupProps = {
  instanceArn: 'instanceArn',
  name: 'name',

  // the properties below are optional
  parentGroupArn: 'parentGroupArn',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

Python:

```python
from aws_cdk import CfnTag
# 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

cfn_user_hierarchy_group_props = connect.CfnUserHierarchyGroupProps(
    instance_arn="instanceArn",
    name="name",

    # the properties below are optional
    parent_group_arn="parentGroupArn",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
```

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.*;

CfnUserHierarchyGroupProps cfnUserHierarchyGroupProps = CfnUserHierarchyGroupProps.builder()
        .instanceArn("instanceArn")
        .name("name")

        // the properties below are optional
        .parentGroupArn("parentGroupArn")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .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 cfnUserHierarchyGroupProps = new CfnUserHierarchyGroupProps {
    InstanceArn = "instanceArn",
    Name = "name",

    // the properties below are optional
    ParentGroupArn = "parentGroupArn",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
```

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"

cfnUserHierarchyGroupProps := &CfnUserHierarchyGroupProps{
	InstanceArn: jsii.String("instanceArn"),
	Name: jsii.String("name"),

	// the properties below are optional
	ParentGroupArn: jsii.String("parentGroupArn"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}
```

## Properties

- `instanceArn`: string | [IInstanceRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_connect.IInstanceRef.html) (required) — The Amazon Resource Name (ARN) of the user hierarchy group.

- `name`: string (required) — The name of the user hierarchy group.

- `parentGroupArn`: string — The Amazon Resource Name (ARN) of the parent group.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — An array of key-value pairs to apply to this resource.
