updateUserHierarchyGroupName method

Future<void> updateUserHierarchyGroupName({
  1. required String hierarchyGroupId,
  2. required String instanceId,
  3. required String name,
})

Updates the name of the user hierarchy group.

May throw InvalidRequestException. May throw InvalidParameterException. May throw DuplicateResourceException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw InternalServiceException.

Parameter hierarchyGroupId : The identifier of the hierarchy group.

Parameter instanceId : The identifier of the Amazon Connect instance.

Parameter name : The name of the hierarchy group. Must not be more than 100 characters.

Implementation

Future<void> updateUserHierarchyGroupName({
  required String hierarchyGroupId,
  required String instanceId,
  required String name,
}) async {
  ArgumentError.checkNotNull(hierarchyGroupId, 'hierarchyGroupId');
  ArgumentError.checkNotNull(instanceId, 'instanceId');
  _s.validateStringLength(
    'instanceId',
    instanceId,
    1,
    100,
    isRequired: true,
  );
  ArgumentError.checkNotNull(name, 'name');
  final $payload = <String, dynamic>{
    'Name': name,
  };
  await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri:
        '/user-hierarchy-groups/${Uri.encodeComponent(instanceId)}/${Uri.encodeComponent(hierarchyGroupId)}/name',
    exceptionFnMap: _exceptionFns,
  );
}