createMediaPipelineKinesisVideoStreamPool method
Creates an Amazon Kinesis Video Stream pool for use with media stream pipelines.
To learn which AWS Region a meeting uses, call the GetMeeting API and use the MediaRegion parameter from the response.
For more information about opt-in Regions, refer to Available Regions in the Amazon Chime SDK Developer Guide, and Specify which AWS Regions your account can use, in the AWS Account Management Reference Guide.
May throw BadRequestException.
May throw ConflictException.
May throw ForbiddenException.
May throw ResourceLimitExceededException.
May throw ServiceFailureException.
May throw ServiceUnavailableException.
May throw ThrottledClientException.
May throw UnauthorizedClientException.
Parameter poolName :
The name of the pool.
Parameter streamConfiguration :
The configuration settings for the stream.
Parameter clientRequestToken :
The token assigned to the client making the request.
Parameter tags :
The tags assigned to the stream pool.
Implementation
Future<CreateMediaPipelineKinesisVideoStreamPoolResponse>
createMediaPipelineKinesisVideoStreamPool({
required String poolName,
required KinesisVideoStreamConfiguration streamConfiguration,
String? clientRequestToken,
List<Tag>? tags,
}) async {
final $payload = <String, dynamic>{
'PoolName': poolName,
'StreamConfiguration': streamConfiguration,
'ClientRequestToken': clientRequestToken ?? _s.generateIdempotencyToken(),
if (tags != null) 'Tags': tags,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/media-pipeline-kinesis-video-stream-pools',
exceptionFnMap: _exceptionFns,
);
return CreateMediaPipelineKinesisVideoStreamPoolResponse.fromJson(response);
}