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 dominant language detection job in progress.
If the job state is IN_PROGRESS
the job is marked for termination and
put into the STOP_REQUESTED
state. If the job completes before it can
be stopped, it is put into the COMPLETED
state; otherwise the job is
stopped and put into the STOPPED
state.
If the job is in the COMPLETED
or FAILED
state when you call the
StopDominantLanguageDetectionJob
operation, the operation returns a
400 Internal Request Exception.
When a job is stopped, any documents already processed are written to the output location.
Synopsis
- data StopDominantLanguageDetectionJob = StopDominantLanguageDetectionJob' {}
- newStopDominantLanguageDetectionJob :: Text -> StopDominantLanguageDetectionJob
- stopDominantLanguageDetectionJob_jobId :: Lens' StopDominantLanguageDetectionJob Text
- data StopDominantLanguageDetectionJobResponse = StopDominantLanguageDetectionJobResponse' {}
- newStopDominantLanguageDetectionJobResponse :: Int -> StopDominantLanguageDetectionJobResponse
- stopDominantLanguageDetectionJobResponse_jobId :: Lens' StopDominantLanguageDetectionJobResponse (Maybe Text)
- stopDominantLanguageDetectionJobResponse_jobStatus :: Lens' StopDominantLanguageDetectionJobResponse (Maybe JobStatus)
- stopDominantLanguageDetectionJobResponse_httpStatus :: Lens' StopDominantLanguageDetectionJobResponse Int
Creating a Request
data StopDominantLanguageDetectionJob Source #
See: newStopDominantLanguageDetectionJob
smart constructor.
Instances
newStopDominantLanguageDetectionJob Source #
Create a value of StopDominantLanguageDetectionJob
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:jobId:StopDominantLanguageDetectionJob'
, stopDominantLanguageDetectionJob_jobId
- The identifier of the dominant language detection job to stop.
Request Lenses
stopDominantLanguageDetectionJob_jobId :: Lens' StopDominantLanguageDetectionJob Text Source #
The identifier of the dominant language detection job to stop.
Destructuring the Response
data StopDominantLanguageDetectionJobResponse Source #
See: newStopDominantLanguageDetectionJobResponse
smart constructor.
StopDominantLanguageDetectionJobResponse' | |
|
Instances
newStopDominantLanguageDetectionJobResponse Source #
Create a value of StopDominantLanguageDetectionJobResponse
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:jobId:StopDominantLanguageDetectionJob'
, stopDominantLanguageDetectionJobResponse_jobId
- The identifier of the dominant language detection job to stop.
$sel:jobStatus:StopDominantLanguageDetectionJobResponse'
, stopDominantLanguageDetectionJobResponse_jobStatus
- Either STOP_REQUESTED
if the job is currently running, or STOPPED
if
the job was previously stopped with the
StopDominantLanguageDetectionJob
operation.
$sel:httpStatus:StopDominantLanguageDetectionJobResponse'
, stopDominantLanguageDetectionJobResponse_httpStatus
- The response's http status code.
Response Lenses
stopDominantLanguageDetectionJobResponse_jobId :: Lens' StopDominantLanguageDetectionJobResponse (Maybe Text) Source #
The identifier of the dominant language detection job to stop.
stopDominantLanguageDetectionJobResponse_jobStatus :: Lens' StopDominantLanguageDetectionJobResponse (Maybe JobStatus) Source #
Either STOP_REQUESTED
if the job is currently running, or STOPPED
if
the job was previously stopped with the
StopDominantLanguageDetectionJob
operation.
stopDominantLanguageDetectionJobResponse_httpStatus :: Lens' StopDominantLanguageDetectionJobResponse Int Source #
The response's http status code.