deleteCodeInterpreter method
Deletes a custom code interpreter.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ServiceQuotaExceededException.
May throw ThrottlingException.
May throw ValidationException.
Parameter codeInterpreterId :
The unique identifier of the code interpreter to delete.
Parameter clientToken :
A unique, case-sensitive identifier to ensure idempotency of the request.
Implementation
Future<DeleteCodeInterpreterResponse> deleteCodeInterpreter({
required String codeInterpreterId,
String? clientToken,
}) async {
final $query = <String, List<String>>{
if (clientToken != null) 'clientToken': [clientToken],
};
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/code-interpreters/${Uri.encodeComponent(codeInterpreterId)}',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return DeleteCodeInterpreterResponse.fromJson(response);
}