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 an entity recognizer training job while in progress.
If the training job state is TRAINING
, the job is marked for
termination and put into the STOP_REQUESTED
state. If the training job
completes before it can be stopped, it is put into the TRAINED
;
otherwise the training job is stopped and putted into the STOPPED
state and the service sends back an HTTP 200 response with an empty HTTP
body.
Synopsis
- data StopTrainingEntityRecognizer = StopTrainingEntityRecognizer' {}
- newStopTrainingEntityRecognizer :: Text -> StopTrainingEntityRecognizer
- stopTrainingEntityRecognizer_entityRecognizerArn :: Lens' StopTrainingEntityRecognizer Text
- data StopTrainingEntityRecognizerResponse = StopTrainingEntityRecognizerResponse' {
- httpStatus :: Int
- newStopTrainingEntityRecognizerResponse :: Int -> StopTrainingEntityRecognizerResponse
- stopTrainingEntityRecognizerResponse_httpStatus :: Lens' StopTrainingEntityRecognizerResponse Int
Creating a Request
data StopTrainingEntityRecognizer Source #
See: newStopTrainingEntityRecognizer
smart constructor.
StopTrainingEntityRecognizer' | |
|
Instances
newStopTrainingEntityRecognizer Source #
Create a value of StopTrainingEntityRecognizer
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:entityRecognizerArn:StopTrainingEntityRecognizer'
, stopTrainingEntityRecognizer_entityRecognizerArn
- The Amazon Resource Name (ARN) that identifies the entity recognizer
currently being trained.
Request Lenses
stopTrainingEntityRecognizer_entityRecognizerArn :: Lens' StopTrainingEntityRecognizer Text Source #
The Amazon Resource Name (ARN) that identifies the entity recognizer currently being trained.
Destructuring the Response
data StopTrainingEntityRecognizerResponse Source #
See: newStopTrainingEntityRecognizerResponse
smart constructor.
StopTrainingEntityRecognizerResponse' | |
|
Instances
newStopTrainingEntityRecognizerResponse Source #
Create a value of StopTrainingEntityRecognizerResponse
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:httpStatus:StopTrainingEntityRecognizerResponse'
, stopTrainingEntityRecognizerResponse_httpStatus
- The response's http status code.
Response Lenses
stopTrainingEntityRecognizerResponse_httpStatus :: Lens' StopTrainingEntityRecognizerResponse Int Source #
The response's http status code.