StopModel - Amazon Lookout for Vision

StopModel

Stops a model running on an AWS IoT Greengrass Version 2 core device. StopModel returns after the model has stopped. The model has stopped successfully if the Status field in the response is STOPPED.

rpc StopModel(StopModelRequest) returns (StopModelResponse);

StopModelRequest

message StopModelRequest { string model_component = 1; }
model_component

The name of the AWS IoT Greengrass Version 2 component that contains the model you want to stop.

StopModelResponse

message StopModelResponse { ModelStatus status = 1; }
status

The current status of the model. The response is STOPPED if the call succeeds. For more information, see ModelStatus.

Status codes

Code Number Description

OK

0

The model is stopping.

UNKNOWN

2

An unknown error has occurred.

INVALID_ARGUMENT

3

One or more input parameters are invalid. Check the error message for more details.

NOT_FOUND

5

A model with the supplied name wasn't found.

FAILED_PRECONDITION

9

The method was called for a model that is not in the RUNNING state.

INTERNAL

13

An internal error has occurred.