getVoiceConnectorLoggingConfiguration method

Future<GetVoiceConnectorLoggingConfigurationResponse> getVoiceConnectorLoggingConfiguration({
  1. required String voiceConnectorId,
})

Retrieves the logging configuration details for the specified Amazon Chime Voice Connector. Shows whether SIP message logs are enabled for sending to Amazon CloudWatch.

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.

Implementation

Future<GetVoiceConnectorLoggingConfigurationResponse>
    getVoiceConnectorLoggingConfiguration({
  required String voiceConnectorId,
}) async {
  ArgumentError.checkNotNull(voiceConnectorId, 'voiceConnectorId');
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/voice-connectors/${Uri.encodeComponent(voiceConnectorId)}/logging-configuration',
    exceptionFnMap: _exceptionFns,
  );
  return GetVoiceConnectorLoggingConfigurationResponse.fromJson(response);
}