createMediaConcatenationPipeline method
Creates a media concatenation pipeline.
May throw BadRequestException.
May throw ForbiddenException.
May throw ResourceLimitExceededException.
May throw ServiceFailureException.
May throw ServiceUnavailableException.
May throw ThrottledClientException.
May throw UnauthorizedClientException.
Parameter sinks :
An object that specifies the data sinks for the media concatenation
pipeline.
Parameter sources :
An object that specifies the sources for the media concatenation pipeline.
Parameter clientRequestToken :
The unique identifier for the client request. The token makes the API
request idempotent. Use a unique token for each media concatenation
pipeline request.
Parameter tags :
The tags associated with the media concatenation pipeline.
Implementation
Future<CreateMediaConcatenationPipelineResponse>
createMediaConcatenationPipeline({
required List<ConcatenationSink> sinks,
required List<ConcatenationSource> sources,
String? clientRequestToken,
List<Tag>? tags,
}) async {
final $payload = <String, dynamic>{
'Sinks': sinks,
'Sources': sources,
'ClientRequestToken': clientRequestToken ?? _s.generateIdempotencyToken(),
if (tags != null) 'Tags': tags,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/sdk-media-concatenation-pipelines',
exceptionFnMap: _exceptionFns,
);
return CreateMediaConcatenationPipelineResponse.fromJson(response);
}