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 |
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:
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
Generic StopTrainingEntityRecognizerResponse Source # | |
Defined in Amazonka.Comprehend.StopTrainingEntityRecognizer type Rep StopTrainingEntityRecognizerResponse :: Type -> Type # | |
Read StopTrainingEntityRecognizerResponse Source # | |
Show StopTrainingEntityRecognizerResponse Source # | |
NFData StopTrainingEntityRecognizerResponse Source # | |
Defined in Amazonka.Comprehend.StopTrainingEntityRecognizer rnf :: StopTrainingEntityRecognizerResponse -> () # | |
Eq StopTrainingEntityRecognizerResponse Source # | |
type Rep StopTrainingEntityRecognizerResponse Source # | |
Defined in Amazonka.Comprehend.StopTrainingEntityRecognizer type Rep StopTrainingEntityRecognizerResponse = D1 ('MetaData "StopTrainingEntityRecognizerResponse" "Amazonka.Comprehend.StopTrainingEntityRecognizer" "amazonka-comprehend-2.0-Ko6GCjAQF2RARapSdPn69F" 'False) (C1 ('MetaCons "StopTrainingEntityRecognizerResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
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.