Skip to main content

user_hierarchy_groups

Creates, updates, deletes or gets an user_hierarchy_group resource or lists user_hierarchy_groups in a region

Overview

Nameuser_hierarchy_groups
TypeResource
DescriptionResource Type definition for AWS::Connect::UserHierarchyGroup
Idaws.connect.user_hierarchy_groups

Fields

NameDatatypeDescription
instance_arnstringThe identifier of the Amazon Connect instance.
user_hierarchy_group_arnstringThe Amazon Resource Name (ARN) for the user hierarchy group.
parent_group_arnstringThe Amazon Resource Name (ARN) for the parent user hierarchy group.
namestringThe name of the user hierarchy group.
tagsarrayOne or more tags.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, InstanceArn, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all user_hierarchy_groups in a region.

SELECT
region,
instance_arn,
user_hierarchy_group_arn,
parent_group_arn,
name,
tags
FROM aws.connect.user_hierarchy_groups
WHERE region = 'us-east-1';

Gets all properties from an individual user_hierarchy_group.

SELECT
region,
instance_arn,
user_hierarchy_group_arn,
parent_group_arn,
name,
tags
FROM aws.connect.user_hierarchy_groups
WHERE region = 'us-east-1' AND data__Identifier = '<UserHierarchyGroupArn>';

INSERT example

Use the following StackQL query and manifest file to create a new user_hierarchy_group resource, using stack-deploy.

/*+ create */
INSERT INTO aws.connect.user_hierarchy_groups (
InstanceArn,
Name,
region
)
SELECT
'{{ InstanceArn }}',
'{{ Name }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.connect.user_hierarchy_groups
WHERE data__Identifier = '<UserHierarchyGroupArn>'
AND region = 'us-east-1';

Permissions

To operate on the user_hierarchy_groups resource, the following permissions are required:

Create

connect:CreateUserHierarchyGroup,
connect:TagResource

Read

connect:DescribeUserHierarchyGroup

Delete

connect:DeleteUserHierarchyGroup,
connect:UntagResource

Update

connect:UpdateUserHierarchyGroupName,
connect:TagResource,
connect:UntagResource

List

connect:ListUserHierarchyGroups