AWS Classic v5.41.0, May 15 23
AWS Classic v5.41.0, May 15 23
aws.connect.UserHierarchyStructure
Explore with Pulumi AI
Provides an Amazon Connect User Hierarchy Structure resource. For more information see Amazon Connect: Getting Started
Example Usage
Basic
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Connect.UserHierarchyStructure("example", new()
{
HierarchyStructure = new Aws.Connect.Inputs.UserHierarchyStructureHierarchyStructureArgs
{
LevelOne = new Aws.Connect.Inputs.UserHierarchyStructureHierarchyStructureLevelOneArgs
{
Name = "levelone",
},
},
InstanceId = "aaaaaaaa-bbbb-cccc-dddd-111111111111",
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/connect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := connect.NewUserHierarchyStructure(ctx, "example", &connect.UserHierarchyStructureArgs{
HierarchyStructure: &connect.UserHierarchyStructureHierarchyStructureArgs{
LevelOne: &connect.UserHierarchyStructureHierarchyStructureLevelOneArgs{
Name: pulumi.String("levelone"),
},
},
InstanceId: pulumi.String("aaaaaaaa-bbbb-cccc-dddd-111111111111"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.connect.UserHierarchyStructure;
import com.pulumi.aws.connect.UserHierarchyStructureArgs;
import com.pulumi.aws.connect.inputs.UserHierarchyStructureHierarchyStructureArgs;
import com.pulumi.aws.connect.inputs.UserHierarchyStructureHierarchyStructureLevelOneArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new UserHierarchyStructure("example", UserHierarchyStructureArgs.builder()
.hierarchyStructure(UserHierarchyStructureHierarchyStructureArgs.builder()
.levelOne(UserHierarchyStructureHierarchyStructureLevelOneArgs.builder()
.name("levelone")
.build())
.build())
.instanceId("aaaaaaaa-bbbb-cccc-dddd-111111111111")
.build());
}
}
import pulumi
import pulumi_aws as aws
example = aws.connect.UserHierarchyStructure("example",
hierarchy_structure=aws.connect.UserHierarchyStructureHierarchyStructureArgs(
level_one=aws.connect.UserHierarchyStructureHierarchyStructureLevelOneArgs(
name="levelone",
),
),
instance_id="aaaaaaaa-bbbb-cccc-dddd-111111111111")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.connect.UserHierarchyStructure("example", {
hierarchyStructure: {
levelOne: {
name: "levelone",
},
},
instanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
});
resources:
example:
type: aws:connect:UserHierarchyStructure
properties:
hierarchyStructure:
levelOne:
name: levelone
instanceId: aaaaaaaa-bbbb-cccc-dddd-111111111111
With Five Levels
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Connect.UserHierarchyStructure("example", new()
{
HierarchyStructure = new Aws.Connect.Inputs.UserHierarchyStructureHierarchyStructureArgs
{
LevelFive = new Aws.Connect.Inputs.UserHierarchyStructureHierarchyStructureLevelFiveArgs
{
Name = "levelfive",
},
LevelFour = new Aws.Connect.Inputs.UserHierarchyStructureHierarchyStructureLevelFourArgs
{
Name = "levelfour",
},
LevelOne = new Aws.Connect.Inputs.UserHierarchyStructureHierarchyStructureLevelOneArgs
{
Name = "levelone",
},
LevelThree = new Aws.Connect.Inputs.UserHierarchyStructureHierarchyStructureLevelThreeArgs
{
Name = "levelthree",
},
LevelTwo = new Aws.Connect.Inputs.UserHierarchyStructureHierarchyStructureLevelTwoArgs
{
Name = "leveltwo",
},
},
InstanceId = "aaaaaaaa-bbbb-cccc-dddd-111111111111",
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/connect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := connect.NewUserHierarchyStructure(ctx, "example", &connect.UserHierarchyStructureArgs{
HierarchyStructure: &connect.UserHierarchyStructureHierarchyStructureArgs{
LevelFive: &connect.UserHierarchyStructureHierarchyStructureLevelFiveArgs{
Name: pulumi.String("levelfive"),
},
LevelFour: &connect.UserHierarchyStructureHierarchyStructureLevelFourArgs{
Name: pulumi.String("levelfour"),
},
LevelOne: &connect.UserHierarchyStructureHierarchyStructureLevelOneArgs{
Name: pulumi.String("levelone"),
},
LevelThree: &connect.UserHierarchyStructureHierarchyStructureLevelThreeArgs{
Name: pulumi.String("levelthree"),
},
LevelTwo: &connect.UserHierarchyStructureHierarchyStructureLevelTwoArgs{
Name: pulumi.String("leveltwo"),
},
},
InstanceId: pulumi.String("aaaaaaaa-bbbb-cccc-dddd-111111111111"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.connect.UserHierarchyStructure;
import com.pulumi.aws.connect.UserHierarchyStructureArgs;
import com.pulumi.aws.connect.inputs.UserHierarchyStructureHierarchyStructureArgs;
import com.pulumi.aws.connect.inputs.UserHierarchyStructureHierarchyStructureLevelFiveArgs;
import com.pulumi.aws.connect.inputs.UserHierarchyStructureHierarchyStructureLevelFourArgs;
import com.pulumi.aws.connect.inputs.UserHierarchyStructureHierarchyStructureLevelOneArgs;
import com.pulumi.aws.connect.inputs.UserHierarchyStructureHierarchyStructureLevelThreeArgs;
import com.pulumi.aws.connect.inputs.UserHierarchyStructureHierarchyStructureLevelTwoArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new UserHierarchyStructure("example", UserHierarchyStructureArgs.builder()
.hierarchyStructure(UserHierarchyStructureHierarchyStructureArgs.builder()
.levelFive(UserHierarchyStructureHierarchyStructureLevelFiveArgs.builder()
.name("levelfive")
.build())
.levelFour(UserHierarchyStructureHierarchyStructureLevelFourArgs.builder()
.name("levelfour")
.build())
.levelOne(UserHierarchyStructureHierarchyStructureLevelOneArgs.builder()
.name("levelone")
.build())
.levelThree(UserHierarchyStructureHierarchyStructureLevelThreeArgs.builder()
.name("levelthree")
.build())
.levelTwo(UserHierarchyStructureHierarchyStructureLevelTwoArgs.builder()
.name("leveltwo")
.build())
.build())
.instanceId("aaaaaaaa-bbbb-cccc-dddd-111111111111")
.build());
}
}
import pulumi
import pulumi_aws as aws
example = aws.connect.UserHierarchyStructure("example",
hierarchy_structure=aws.connect.UserHierarchyStructureHierarchyStructureArgs(
level_five=aws.connect.UserHierarchyStructureHierarchyStructureLevelFiveArgs(
name="levelfive",
),
level_four=aws.connect.UserHierarchyStructureHierarchyStructureLevelFourArgs(
name="levelfour",
),
level_one=aws.connect.UserHierarchyStructureHierarchyStructureLevelOneArgs(
name="levelone",
),
level_three=aws.connect.UserHierarchyStructureHierarchyStructureLevelThreeArgs(
name="levelthree",
),
level_two=aws.connect.UserHierarchyStructureHierarchyStructureLevelTwoArgs(
name="leveltwo",
),
),
instance_id="aaaaaaaa-bbbb-cccc-dddd-111111111111")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.connect.UserHierarchyStructure("example", {
hierarchyStructure: {
levelFive: {
name: "levelfive",
},
levelFour: {
name: "levelfour",
},
levelOne: {
name: "levelone",
},
levelThree: {
name: "levelthree",
},
levelTwo: {
name: "leveltwo",
},
},
instanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
});
resources:
example:
type: aws:connect:UserHierarchyStructure
properties:
hierarchyStructure:
levelFive:
name: levelfive
levelFour:
name: levelfour
levelOne:
name: levelone
levelThree:
name: levelthree
levelTwo:
name: leveltwo
instanceId: aaaaaaaa-bbbb-cccc-dddd-111111111111
Create UserHierarchyStructure Resource
new UserHierarchyStructure(name: string, args: UserHierarchyStructureArgs, opts?: CustomResourceOptions);
@overload
def UserHierarchyStructure(resource_name: str,
opts: Optional[ResourceOptions] = None,
hierarchy_structure: Optional[UserHierarchyStructureHierarchyStructureArgs] = None,
instance_id: Optional[str] = None)
@overload
def UserHierarchyStructure(resource_name: str,
args: UserHierarchyStructureArgs,
opts: Optional[ResourceOptions] = None)
func NewUserHierarchyStructure(ctx *Context, name string, args UserHierarchyStructureArgs, opts ...ResourceOption) (*UserHierarchyStructure, error)
public UserHierarchyStructure(string name, UserHierarchyStructureArgs args, CustomResourceOptions? opts = null)
public UserHierarchyStructure(String name, UserHierarchyStructureArgs args)
public UserHierarchyStructure(String name, UserHierarchyStructureArgs args, CustomResourceOptions options)
type: aws:connect:UserHierarchyStructure
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UserHierarchyStructureArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args UserHierarchyStructureArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args UserHierarchyStructureArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UserHierarchyStructureArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args UserHierarchyStructureArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
UserHierarchyStructure Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The UserHierarchyStructure resource accepts the following input properties:
- Hierarchy
Structure UserHierarchy Structure Hierarchy Structure Args A block that defines the hierarchy structure's levels. The
hierarchy_structure
block is documented below.- Instance
Id string Specifies the identifier of the hosting Amazon Connect Instance.
- Hierarchy
Structure UserHierarchy Structure Hierarchy Structure Args A block that defines the hierarchy structure's levels. The
hierarchy_structure
block is documented below.- Instance
Id string Specifies the identifier of the hosting Amazon Connect Instance.
- hierarchy
Structure UserHierarchy Structure Hierarchy Structure Args A block that defines the hierarchy structure's levels. The
hierarchy_structure
block is documented below.- instance
Id String Specifies the identifier of the hosting Amazon Connect Instance.
- hierarchy
Structure UserHierarchy Structure Hierarchy Structure Args A block that defines the hierarchy structure's levels. The
hierarchy_structure
block is documented below.- instance
Id string Specifies the identifier of the hosting Amazon Connect Instance.
- hierarchy_
structure UserHierarchy Structure Hierarchy Structure Args A block that defines the hierarchy structure's levels. The
hierarchy_structure
block is documented below.- instance_
id str Specifies the identifier of the hosting Amazon Connect Instance.
- hierarchy
Structure Property Map A block that defines the hierarchy structure's levels. The
hierarchy_structure
block is documented below.- instance
Id String Specifies the identifier of the hosting Amazon Connect Instance.
Outputs
All input properties are implicitly available as output properties. Additionally, the UserHierarchyStructure resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing UserHierarchyStructure Resource
Get an existing UserHierarchyStructure resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: UserHierarchyStructureState, opts?: CustomResourceOptions): UserHierarchyStructure
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
hierarchy_structure: Optional[UserHierarchyStructureHierarchyStructureArgs] = None,
instance_id: Optional[str] = None) -> UserHierarchyStructure
func GetUserHierarchyStructure(ctx *Context, name string, id IDInput, state *UserHierarchyStructureState, opts ...ResourceOption) (*UserHierarchyStructure, error)
public static UserHierarchyStructure Get(string name, Input<string> id, UserHierarchyStructureState? state, CustomResourceOptions? opts = null)
public static UserHierarchyStructure get(String name, Output<String> id, UserHierarchyStructureState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Hierarchy
Structure UserHierarchy Structure Hierarchy Structure Args A block that defines the hierarchy structure's levels. The
hierarchy_structure
block is documented below.- Instance
Id string Specifies the identifier of the hosting Amazon Connect Instance.
- Hierarchy
Structure UserHierarchy Structure Hierarchy Structure Args A block that defines the hierarchy structure's levels. The
hierarchy_structure
block is documented below.- Instance
Id string Specifies the identifier of the hosting Amazon Connect Instance.
- hierarchy
Structure UserHierarchy Structure Hierarchy Structure Args A block that defines the hierarchy structure's levels. The
hierarchy_structure
block is documented below.- instance
Id String Specifies the identifier of the hosting Amazon Connect Instance.
- hierarchy
Structure UserHierarchy Structure Hierarchy Structure Args A block that defines the hierarchy structure's levels. The
hierarchy_structure
block is documented below.- instance
Id string Specifies the identifier of the hosting Amazon Connect Instance.
- hierarchy_
structure UserHierarchy Structure Hierarchy Structure Args A block that defines the hierarchy structure's levels. The
hierarchy_structure
block is documented below.- instance_
id str Specifies the identifier of the hosting Amazon Connect Instance.
- hierarchy
Structure Property Map A block that defines the hierarchy structure's levels. The
hierarchy_structure
block is documented below.- instance
Id String Specifies the identifier of the hosting Amazon Connect Instance.
Supporting Types
UserHierarchyStructureHierarchyStructure
- Level
Five UserHierarchy Structure Hierarchy Structure Level Five A block that defines the details of level five. The level block is documented below.
- Level
Four UserHierarchy Structure Hierarchy Structure Level Four A block that defines the details of level four. The level block is documented below.
- Level
One UserHierarchy Structure Hierarchy Structure Level One A block that defines the details of level one. The level block is documented below.
- Level
Three UserHierarchy Structure Hierarchy Structure Level Three A block that defines the details of level three. The level block is documented below.
- Level
Two UserHierarchy Structure Hierarchy Structure Level Two A block that defines the details of level two. The level block is documented below.
- Level
Five UserHierarchy Structure Hierarchy Structure Level Five A block that defines the details of level five. The level block is documented below.
- Level
Four UserHierarchy Structure Hierarchy Structure Level Four A block that defines the details of level four. The level block is documented below.
- Level
One UserHierarchy Structure Hierarchy Structure Level One A block that defines the details of level one. The level block is documented below.
- Level
Three UserHierarchy Structure Hierarchy Structure Level Three A block that defines the details of level three. The level block is documented below.
- Level
Two UserHierarchy Structure Hierarchy Structure Level Two A block that defines the details of level two. The level block is documented below.
- level
Five UserHierarchy Structure Hierarchy Structure Level Five A block that defines the details of level five. The level block is documented below.
- level
Four UserHierarchy Structure Hierarchy Structure Level Four A block that defines the details of level four. The level block is documented below.
- level
One UserHierarchy Structure Hierarchy Structure Level One A block that defines the details of level one. The level block is documented below.
- level
Three UserHierarchy Structure Hierarchy Structure Level Three A block that defines the details of level three. The level block is documented below.
- level
Two UserHierarchy Structure Hierarchy Structure Level Two A block that defines the details of level two. The level block is documented below.
- level
Five UserHierarchy Structure Hierarchy Structure Level Five A block that defines the details of level five. The level block is documented below.
- level
Four UserHierarchy Structure Hierarchy Structure Level Four A block that defines the details of level four. The level block is documented below.
- level
One UserHierarchy Structure Hierarchy Structure Level One A block that defines the details of level one. The level block is documented below.
- level
Three UserHierarchy Structure Hierarchy Structure Level Three A block that defines the details of level three. The level block is documented below.
- level
Two UserHierarchy Structure Hierarchy Structure Level Two A block that defines the details of level two. The level block is documented below.
- level_
five UserHierarchy Structure Hierarchy Structure Level Five A block that defines the details of level five. The level block is documented below.
- level_
four UserHierarchy Structure Hierarchy Structure Level Four A block that defines the details of level four. The level block is documented below.
- level_
one UserHierarchy Structure Hierarchy Structure Level One A block that defines the details of level one. The level block is documented below.
- level_
three UserHierarchy Structure Hierarchy Structure Level Three A block that defines the details of level three. The level block is documented below.
- level_
two UserHierarchy Structure Hierarchy Structure Level Two A block that defines the details of level two. The level block is documented below.
- level
Five Property Map A block that defines the details of level five. The level block is documented below.
- level
Four Property Map A block that defines the details of level four. The level block is documented below.
- level
One Property Map A block that defines the details of level one. The level block is documented below.
- level
Three Property Map A block that defines the details of level three. The level block is documented below.
- level
Two Property Map A block that defines the details of level two. The level block is documented below.
UserHierarchyStructureHierarchyStructureLevelFive
UserHierarchyStructureHierarchyStructureLevelFour
UserHierarchyStructureHierarchyStructureLevelOne
UserHierarchyStructureHierarchyStructureLevelThree
UserHierarchyStructureHierarchyStructureLevelTwo
Import
Amazon Connect User Hierarchy Structures can be imported using the instance_id
, e.g.,
$ pulumi import aws:connect/userHierarchyStructure:UserHierarchyStructure example f1288a1f-6193-445a-b47e-af739b2
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aws
Terraform Provider.