CfnUserHierarchyStructureProps Struct
Properties for defining a CfnUserHierarchyStructure.
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 cfnUserHierarchyStructureProps: connect.CfnUserHierarchyStructureProps = {
instanceArn: 'instanceArn',
// the properties below are optional
userHierarchyStructure: {
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
# 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_structure_props = connect.CfnUserHierarchyStructureProps(
instance_arn="instanceArn",
# the properties below are optional
user_hierarchy_structure=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
// 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.*;
CfnUserHierarchyStructureProps cfnUserHierarchyStructureProps = CfnUserHierarchyStructureProps.builder()
.instanceArn("instanceArn")
// the properties below are optional
.userHierarchyStructure(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())
.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 cfnUserHierarchyStructureProps = new CfnUserHierarchyStructureProps {
InstanceArn = "instanceArn",
// the properties below are optional
UserHierarchyStructure = 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"
}
}
};
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"
cfnUserHierarchyStructureProps := &CfnUserHierarchyStructureProps{
InstanceArn: jsii.String("instanceArn"),
// the properties below are optional
UserHierarchyStructure: &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
The Amazon Resource Name (ARN) of the instance.
userHierarchyStructureoptionalIResolvable | CfnUserHierarchyStructure.UserHierarchyStructurePropertyuser_hierarchy_structureoptionaltyping.Union[IResolvable, UserHierarchyStructureProperty]userHierarchyStructureoptionalIResolvableUserHierarchyStructureoptionalIResolvableUserHierarchyStructureoptionalinterface{}#Contains information about a hierarchy structure.