| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Comprehend.StopTrainingEntityRecognizer
Description
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.
Constructors
| StopTrainingEntityRecognizer' | |
Fields
| |
Instances
newStopTrainingEntityRecognizer Source #
Arguments
| :: Text | |
| -> StopTrainingEntityRecognizer |
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:
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.
Constructors
| StopTrainingEntityRecognizerResponse' | |
Fields
| |
Instances
newStopTrainingEntityRecognizerResponse Source #
Arguments
| :: Int | |
| -> StopTrainingEntityRecognizerResponse |
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.