Skip to content
v2.278.0

CfnUserHierarchyGroupProps Struct ​

Properties for defining a CfnUserHierarchyGroup.

Example ​

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
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
// 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();
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"
    } }
};
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 ​

instanceArnstring | IInstanceRefinstance_arntyping.Union[str, IInstanceRef]instanceArnStringInstanceArnstringInstanceArninterface{} required #
The Amazon Resource Name (ARN) of the user hierarchy group.
namestringnamestrnameStringNamestringName*string required #
The name of the user hierarchy group.
parentGroupArnoptionalstringparent_group_arnoptionalstrparentGroupArnoptionalStringParentGroupArnoptionalstringParentGroupArnoptional*string #
The Amazon Resource Name (ARN) of the parent group.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
An array of key-value pairs to apply to this resource.