Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Stops the hosting of a running model. The operation might take a while to complete. To check the current status, call DescribeModel.
After the model hosting stops, the Status
of the model is TRAINED
.
This operation requires permissions to perform the
lookoutvision:StopModel
operation.
Synopsis
- data StopModel = StopModel' {
- clientToken :: Maybe Text
- projectName :: Text
- modelVersion :: Text
- newStopModel :: Text -> Text -> StopModel
- stopModel_clientToken :: Lens' StopModel (Maybe Text)
- stopModel_projectName :: Lens' StopModel Text
- stopModel_modelVersion :: Lens' StopModel Text
- data StopModelResponse = StopModelResponse' {}
- newStopModelResponse :: Int -> StopModelResponse
- stopModelResponse_status :: Lens' StopModelResponse (Maybe ModelHostingStatus)
- stopModelResponse_httpStatus :: Lens' StopModelResponse Int
Creating a Request
See: newStopModel
smart constructor.
StopModel' | |
|
Instances
Create a value of StopModel
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:clientToken:StopModel'
, stopModel_clientToken
- ClientToken is an idempotency token that ensures a call to StopModel
completes only once. You choose the value to pass. For example, An
issue, such as an network outage, might prevent you from getting a
response from StopModel
. In this case, safely retry your call to
StopModel
by using the same ClientToken
parameter value. An error
occurs if the other input parameters are not the same as in the first
request. Using a different value for ClientToken
is considered a new
call to StopModel
. An idempotency token is active for 8 hours.
$sel:projectName:StopModel'
, stopModel_projectName
- The name of the project that contains the model that you want to stop.
$sel:modelVersion:StopModel'
, stopModel_modelVersion
- The version of the model that you want to stop.
Request Lenses
stopModel_clientToken :: Lens' StopModel (Maybe Text) Source #
ClientToken is an idempotency token that ensures a call to StopModel
completes only once. You choose the value to pass. For example, An
issue, such as an network outage, might prevent you from getting a
response from StopModel
. In this case, safely retry your call to
StopModel
by using the same ClientToken
parameter value. An error
occurs if the other input parameters are not the same as in the first
request. Using a different value for ClientToken
is considered a new
call to StopModel
. An idempotency token is active for 8 hours.
stopModel_projectName :: Lens' StopModel Text Source #
The name of the project that contains the model that you want to stop.
stopModel_modelVersion :: Lens' StopModel Text Source #
The version of the model that you want to stop.
Destructuring the Response
data StopModelResponse Source #
See: newStopModelResponse
smart constructor.
StopModelResponse' | |
|
Instances
Create a value of StopModelResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:status:StopModelResponse'
, stopModelResponse_status
- The status of the model.
$sel:httpStatus:StopModelResponse'
, stopModelResponse_httpStatus
- The response's http status code.
Response Lenses
stopModelResponse_status :: Lens' StopModelResponse (Maybe ModelHostingStatus) Source #
The status of the model.
stopModelResponse_httpStatus :: Lens' StopModelResponse Int Source #
The response's http status code.