deleteUserHierarchyGroup method
Deletes an existing user hierarchy group. It must not be associated with any agents or have any active child groups.
May throw InternalServiceException.
May throw InvalidParameterException.
May throw InvalidRequestException.
May throw ResourceInUseException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
Parameter hierarchyGroupId :
The identifier of the hierarchy group.
Parameter instanceId :
The identifier of the Connect Customer instance. You can find
the instance ID in the Amazon Resource Name (ARN) of the instance.
Implementation
Future<void> deleteUserHierarchyGroup({
required String hierarchyGroupId,
required String instanceId,
}) async {
await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/user-hierarchy-groups/${Uri.encodeComponent(instanceId)}/${Uri.encodeComponent(hierarchyGroupId)}',
exceptionFnMap: _exceptionFns,
);
}