Skip to main content

user_hierarchy_structures

Creates, updates, deletes or gets an user_hierarchy_structure resource or lists user_hierarchy_structures in a region

Overview

Nameuser_hierarchy_structures
TypeResource
DescriptionResource Type definition for AWS::Connect::UserHierarchyStructure
Idaws.connect.user_hierarchy_structures

Fields

NameDatatypeDescription
instance_arnstringThe identifier of the Amazon Connect instance.
user_hierarchy_structure_arnstringThe identifier of the User Hierarchy Structure.
user_hierarchy_structureobjectInformation about the hierarchy structure.
regionstringAWS region.

For more information, see AWS::Connect::UserHierarchyStructure.

Methods

NameAccessible byRequired Params
create_resourceINSERTInstanceArn, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all properties from an individual user_hierarchy_structure.

SELECT
region,
instance_arn,
user_hierarchy_structure_arn,
user_hierarchy_structure
FROM aws.connect.user_hierarchy_structures
WHERE region = 'us-east-1' AND data__Identifier = '<UserHierarchyStructureArn>';

INSERT example

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

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

DELETE example

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

Permissions

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

Create

connect:UpdateUserHierarchyStructure

Read

connect:DescribeUserHierarchyStructure

Delete

connect:UpdateUserHierarchyStructure

Update

connect:UpdateUserHierarchyStructure