updateMediaInsightsPipelineConfiguration method

Future<UpdateMediaInsightsPipelineConfigurationResponse> updateMediaInsightsPipelineConfiguration({
  1. required List<MediaInsightsPipelineConfigurationElement> elements,
  2. required String identifier,
  3. required String resourceAccessRoleArn,
  4. RealTimeAlertConfiguration? realTimeAlertConfiguration,
})

Updates the media insights pipeline's configuration settings.

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 elements : The elements in the request, such as a processor for Amazon Transcribe or a sink for a Kinesis Data Stream..

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

Parameter resourceAccessRoleArn : The ARN of the role used by the service to access Amazon Web Services resources.

Parameter realTimeAlertConfiguration : The configuration settings for real-time alerts for the media insights pipeline.

Implementation

Future<UpdateMediaInsightsPipelineConfigurationResponse>
    updateMediaInsightsPipelineConfiguration({
  required List<MediaInsightsPipelineConfigurationElement> elements,
  required String identifier,
  required String resourceAccessRoleArn,
  RealTimeAlertConfiguration? realTimeAlertConfiguration,
}) async {
  final $payload = <String, dynamic>{
    'Elements': elements,
    'ResourceAccessRoleArn': resourceAccessRoleArn,
    if (realTimeAlertConfiguration != null)
      'RealTimeAlertConfiguration': realTimeAlertConfiguration,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri:
        '/media-insights-pipeline-configurations/${Uri.encodeComponent(identifier)}',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateMediaInsightsPipelineConfigurationResponse.fromJson(response);
}