Skip to main content

user_hierarchy_groups

Creates, updates, deletes, gets or lists a user_hierarchy_groups resource.

Overview

Nameuser_hierarchy_groups
TypeResource
Idaws.connect.user_hierarchy_groups

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) of the hierarchy group.
hierarchy_pathobjectInformation about the levels in the hierarchy group.
idstringThe identifier of the hierarchy group.
last_modified_regionstringThe Amazon Web Services Region where this resource was last modified. (pattern: <code>[a-z]{2}(-[a-z]+){1,2}(-[0-9])?</code>)
last_modified_timestring (date-time)The timestamp when this resource was last modified.
level_idstringThe identifier of the level in the hierarchy group.
namestringThe name of the hierarchy group.
tagsobjectThe tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_user_hierarchy_groupselecthierarchy_group_id, instance_id, regionDescribes the specified hierarchy group.
list_user_hierarchy_groupsselectinstance_id, regionnextToken, maxResultsProvides summary information about the hierarchy groups for the specified Connect Customer instance. For more information about agent hierarchies, see Set Up Agent Hierarchies in the Connect Customer Administrator Guide.
search_user_hierarchy_groupsselectregionSearches UserHierarchyGroups in an Connect Customer instance, with optional filtering. The UserHierarchyGroup with "LevelId": "0" is the foundation for building levels on top of an instance. It is not user-definable, nor is it visible in the UI.
create_user_hierarchy_groupinsertinstance_id, regionCreates a new user hierarchy group.
update_user_hierarchy_group_nameupdatehierarchy_group_id, instance_id, regionUpdates the name of the user hierarchy group.
delete_user_hierarchy_groupdeletehierarchy_group_id, instance_id, regionDeletes an existing user hierarchy group. It must not be associated with any agents or have any active child groups.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
hierarchy_group_idstringThe identifier of the hierarchy group.
instance_idstringThe identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results to return per page. The default MaxResult size is 100.
nextTokenstringThe token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

SELECT examples

Describes the specified hierarchy group.

SELECT
arn,
hierarchy_path,
id,
last_modified_region,
last_modified_time,
level_id,
name,
tags
FROM aws.connect.user_hierarchy_groups
WHERE hierarchy_group_id = '{{ hierarchy_group_id }}' -- required
AND instance_id = '{{ instance_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a new user hierarchy group.

INSERT INTO aws.connect.user_hierarchy_groups (
Name,
ParentGroupId,
Tags,
instance_id,
region
)
SELECT
'{{ Name }}',
'{{ ParentGroupId }}',
'{{ Tags }}',
'{{ instance_id }}',
'{{ region }}'
RETURNING
hierarchy_group_arn,
hierarchy_group_id
;

UPDATE examples

Updates the name of the user hierarchy group.

UPDATE aws.connect.user_hierarchy_groups
SET
Name = '{{ Name }}'
WHERE
hierarchy_group_id = '{{ hierarchy_group_id }}' --required
AND instance_id = '{{ instance_id }}' --required
AND region = '{{ region }}' --required;

DELETE examples

Deletes an existing user hierarchy group. It must not be associated with any agents or have any active child groups.

DELETE FROM aws.connect.user_hierarchy_groups
WHERE hierarchy_group_id = '{{ hierarchy_group_id }}' --required
AND instance_id = '{{ instance_id }}' --required
AND region = '{{ region }}' --required
;