putVoiceConnectorTerminationCredentials method
Updates a Voice Connector's termination credentials.
May throw BadRequestException.
May throw ForbiddenException.
May throw NotFoundException.
May throw ServiceFailureException.
May throw ServiceUnavailableException.
May throw ThrottledClientException.
May throw UnauthorizedClientException.
Parameter voiceConnectorId :
The Voice Connector ID.
Parameter credentials :
The termination credentials being updated.
Implementation
Future<void> putVoiceConnectorTerminationCredentials({
required String voiceConnectorId,
List<Credential>? credentials,
}) async {
final $payload = <String, dynamic>{
if (credentials != null) 'Credentials': credentials,
};
await _protocol.send(
payload: $payload,
method: 'POST',
requestUri:
'/voice-connectors/${Uri.encodeComponent(voiceConnectorId)}/termination/credentials?operation=put',
exceptionFnMap: _exceptionFns,
);
}