getAgent method
Gets information about an agent.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter agentId :
The unique identifier of the agent.
Implementation
Future<GetAgentResponse> getAgent({
required String agentId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/agents/${Uri.encodeComponent(agentId)}/',
exceptionFnMap: _exceptionFns,
);
return GetAgentResponse.fromJson(response);
}