describeAgent method

Future<DescribeAgentResponse> describeAgent({
  1. required String agentId,
  2. required String awsAccountId,
})

Describes an agent.

May throw AccessDeniedException. May throw InternalFailureException. May throw InvalidParameterValueException. May throw PreconditionNotMetException. May throw ResourceNotFoundException. May throw ThrottlingException.

Parameter agentId : The unique identifier for the agent.

Parameter awsAccountId : The ID of the Amazon Web Services account that contains the agent.

Implementation

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