putVoiceConnectorTerminationCredentials method

Future<void> putVoiceConnectorTerminationCredentials({
  1. required String voiceConnectorId,
  2. List<Credential>? credentials,
})

Adds termination SIP credentials for the specified Amazon Chime Voice Connector.

May throw UnauthorizedClientException. May throw NotFoundException. May throw ForbiddenException. May throw BadRequestException. May throw ThrottledClientException. May throw ServiceUnavailableException. May throw ServiceFailureException.

Parameter voiceConnectorId : The Amazon Chime Voice Connector ID.

Parameter credentials : The termination SIP credentials.

Implementation

Future<void> putVoiceConnectorTerminationCredentials({
  required String voiceConnectorId,
  List<Credential>? credentials,
}) async {
  ArgumentError.checkNotNull(voiceConnectorId, 'voiceConnectorId');
  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,
  );
}