getAgent method

Future<GetAgentResponse> getAgent({
  1. required String agentId,
})

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);
}