putVoiceConnectorStreamingConfiguration method
Future<PutVoiceConnectorStreamingConfigurationResponse>
putVoiceConnectorStreamingConfiguration({
- required StreamingConfiguration streamingConfiguration,
- required String voiceConnectorId,
Adds a streaming configuration for the specified Amazon Chime Voice Connector. The streaming configuration specifies whether media streaming is enabled for sending to Amazon Kinesis. It also sets the retention period, in hours, for the Amazon Kinesis data.
May throw UnauthorizedClientException. May throw NotFoundException. May throw ForbiddenException. May throw BadRequestException. May throw ThrottledClientException. May throw ServiceUnavailableException. May throw ServiceFailureException.
Parameter streamingConfiguration
:
The streaming configuration details to add.
Parameter voiceConnectorId
:
The Amazon Chime Voice Connector ID.
Implementation
Future<PutVoiceConnectorStreamingConfigurationResponse>
putVoiceConnectorStreamingConfiguration({
required StreamingConfiguration streamingConfiguration,
required String voiceConnectorId,
}) async {
ArgumentError.checkNotNull(
streamingConfiguration, 'streamingConfiguration');
ArgumentError.checkNotNull(voiceConnectorId, 'voiceConnectorId');
final $payload = <String, dynamic>{
'StreamingConfiguration': streamingConfiguration,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri:
'/voice-connectors/${Uri.encodeComponent(voiceConnectorId)}/streaming-configuration',
exceptionFnMap: _exceptionFns,
);
return PutVoiceConnectorStreamingConfigurationResponse.fromJson(response);
}