deleteAgent method

Future<DeleteAgentResponse> deleteAgent({
  1. required String agentId,
  2. required String awsAccountId,
})

Deletes an agent.

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

Parameter agentId : The unique identifier for the agent to delete.

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

Implementation

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