stopSpeakerSearchTask method

Future<void> stopSpeakerSearchTask({
  1. required String identifier,
  2. required String speakerSearchTaskId,
})

Stops a speaker search task.

May throw BadRequestException. May throw ConflictException. May throw ForbiddenException. May throw NotFoundException. May throw ServiceFailureException. May throw ServiceUnavailableException. May throw ThrottledClientException. May throw UnauthorizedClientException.

Parameter identifier : The unique identifier of the resource to be updated. Valid values include the ID and ARN of the media insights pipeline.

Parameter speakerSearchTaskId : The speaker search task ID.

Implementation

Future<void> stopSpeakerSearchTask({
  required String identifier,
  required String speakerSearchTaskId,
}) async {
  await _protocol.send(
    payload: null,
    method: 'POST',
    requestUri:
        '/media-insights-pipelines/${Uri.encodeComponent(identifier)}/speaker-search-tasks/${Uri.encodeComponent(speakerSearchTaskId)}?operation=stop',
    exceptionFnMap: _exceptionFns,
  );
}