getAgentVersion method

Future<GetAgentVersionResponse> getAgentVersion({
  1. required String agentId,
  2. required String agentVersion,
})

Gets details about a version of 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.

Parameter agentVersion : The version of the agent.

Implementation

Future<GetAgentVersionResponse> getAgentVersion({
  required String agentId,
  required String agentVersion,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/agents/${Uri.encodeComponent(agentId)}/agentversions/${Uri.encodeComponent(agentVersion)}/',
    exceptionFnMap: _exceptionFns,
  );
  return GetAgentVersionResponse.fromJson(response);
}