deleteVoiceConnectorTerminationCredentials method

Future<void> deleteVoiceConnectorTerminationCredentials({
  1. required List<String> usernames,
  2. required String voiceConnectorId,
})

Deletes the specified SIP credentials used by your equipment to authenticate during call termination.

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

Parameter usernames : The RFC2617 compliant username associated with the SIP credentials, in US-ASCII format.

Parameter voiceConnectorId : The Amazon Chime Voice Connector ID.

Implementation

Future<void> deleteVoiceConnectorTerminationCredentials({
  required List<String> usernames,
  required String voiceConnectorId,
}) async {
  ArgumentError.checkNotNull(usernames, 'usernames');
  ArgumentError.checkNotNull(voiceConnectorId, 'voiceConnectorId');
  final $payload = <String, dynamic>{
    'Usernames': usernames,
  };
  await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri:
        '/voice-connectors/${Uri.encodeComponent(voiceConnectorId)}/termination/credentials?operation=delete',
    exceptionFnMap: _exceptionFns,
  );
}