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 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.
StopTrainingDocumentClassifier' | |
|
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:
$sel:documentClassifierArn: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.
StopTrainingDocumentClassifierResponse' | |
|
Instances
newStopTrainingDocumentClassifierResponse Source #
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.