describeUserHierarchyStructure method
Future<DescribeUserHierarchyStructureResponse>
describeUserHierarchyStructure({
- required String instanceId,
Describes the hierarchy structure of the specified Amazon Connect instance.
May throw InvalidRequestException. May throw InvalidParameterException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw InternalServiceException.
Parameter instanceId
:
The identifier of the Amazon Connect instance.
Implementation
Future<DescribeUserHierarchyStructureResponse>
describeUserHierarchyStructure({
required String instanceId,
}) async {
ArgumentError.checkNotNull(instanceId, 'instanceId');
_s.validateStringLength(
'instanceId',
instanceId,
1,
100,
isRequired: true,
);
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/user-hierarchy-structure/${Uri.encodeComponent(instanceId)}',
exceptionFnMap: _exceptionFns,
);
return DescribeUserHierarchyStructureResponse.fromJson(response);
}