getProxySession method
Gets the specified proxy session details 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 proxySessionId
:
The proxy session ID.
Parameter voiceConnectorId
:
The Amazon Chime voice connector ID.
Implementation
Future<GetProxySessionResponse> getProxySession({
required String proxySessionId,
required String voiceConnectorId,
}) async {
ArgumentError.checkNotNull(proxySessionId, 'proxySessionId');
_s.validateStringLength(
'proxySessionId',
proxySessionId,
1,
128,
isRequired: true,
);
ArgumentError.checkNotNull(voiceConnectorId, 'voiceConnectorId');
_s.validateStringLength(
'voiceConnectorId',
voiceConnectorId,
1,
128,
isRequired: true,
);
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/voice-connectors/${Uri.encodeComponent(voiceConnectorId)}/proxy-sessions/${Uri.encodeComponent(proxySessionId)}',
exceptionFnMap: _exceptionFns,
);
return GetProxySessionResponse.fromJson(response);
}