getVoiceConnector method
Retrieves details for the specified Amazon Chime Voice Connector, such as timestamps, name, outbound host, and encryption requirements.
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<GetVoiceConnectorResponse> getVoiceConnector({
required String voiceConnectorId,
}) async {
ArgumentError.checkNotNull(voiceConnectorId, 'voiceConnectorId');
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/voice-connectors/${Uri.encodeComponent(voiceConnectorId)}',
exceptionFnMap: _exceptionFns,
);
return GetVoiceConnectorResponse.fromJson(response);
}