updateMediaInsightsPipelineStatus method

Future<void> updateMediaInsightsPipelineStatus({
  1. required String identifier,
  2. required MediaPipelineStatusUpdate updateStatus,
})

Updates the status of a media insights pipeline.

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 updateStatus : The requested status of the media insights pipeline.

Implementation

Future<void> updateMediaInsightsPipelineStatus({
  required String identifier,
  required MediaPipelineStatusUpdate updateStatus,
}) async {
  final $payload = <String, dynamic>{
    'UpdateStatus': updateStatus.value,
  };
  await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri:
        '/media-insights-pipeline-status/${Uri.encodeComponent(identifier)}',
    exceptionFnMap: _exceptionFns,
  );
}