| 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.StopTrainingDocumentClassifier
Description
Stops a document classifier 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 put into the STOPPED state
and the service sends back an HTTP 200 response with an empty HTTP body.
Synopsis
- data StopTrainingDocumentClassifier = StopTrainingDocumentClassifier' {}
- newStopTrainingDocumentClassifier :: Text -> StopTrainingDocumentClassifier
- stopTrainingDocumentClassifier_documentClassifierArn :: Lens' StopTrainingDocumentClassifier Text
- data StopTrainingDocumentClassifierResponse = StopTrainingDocumentClassifierResponse' {
- httpStatus :: Int
- newStopTrainingDocumentClassifierResponse :: Int -> StopTrainingDocumentClassifierResponse
- stopTrainingDocumentClassifierResponse_httpStatus :: Lens' StopTrainingDocumentClassifierResponse Int
Creating a Request
data StopTrainingDocumentClassifier Source #
See: newStopTrainingDocumentClassifier smart constructor.
Constructors
| StopTrainingDocumentClassifier' | |
Fields
| |
Instances
newStopTrainingDocumentClassifier Source #
Create a value of StopTrainingDocumentClassifier 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:
StopTrainingDocumentClassifier, stopTrainingDocumentClassifier_documentClassifierArn - The Amazon Resource Name (ARN) that identifies the document classifier
currently being trained.
Request Lenses
stopTrainingDocumentClassifier_documentClassifierArn :: Lens' StopTrainingDocumentClassifier Text Source #
The Amazon Resource Name (ARN) that identifies the document classifier currently being trained.
Destructuring the Response
data StopTrainingDocumentClassifierResponse Source #
See: newStopTrainingDocumentClassifierResponse smart constructor.
Constructors
| StopTrainingDocumentClassifierResponse' | |
Fields
| |
Instances
newStopTrainingDocumentClassifierResponse Source #
Arguments
| :: Int | |
| -> StopTrainingDocumentClassifierResponse |
Create a value of StopTrainingDocumentClassifierResponse 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:StopTrainingDocumentClassifierResponse', stopTrainingDocumentClassifierResponse_httpStatus - The response's http status code.
Response Lenses
stopTrainingDocumentClassifierResponse_httpStatus :: Lens' StopTrainingDocumentClassifierResponse Int Source #
The response's http status code.