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 a targeted sentiment 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
be 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 StopTargetedSentimentDetectionJob = StopTargetedSentimentDetectionJob' {}
- newStopTargetedSentimentDetectionJob :: Text -> StopTargetedSentimentDetectionJob
- stopTargetedSentimentDetectionJob_jobId :: Lens' StopTargetedSentimentDetectionJob Text
- data StopTargetedSentimentDetectionJobResponse = StopTargetedSentimentDetectionJobResponse' {}
- newStopTargetedSentimentDetectionJobResponse :: Int -> StopTargetedSentimentDetectionJobResponse
- stopTargetedSentimentDetectionJobResponse_jobId :: Lens' StopTargetedSentimentDetectionJobResponse (Maybe Text)
- stopTargetedSentimentDetectionJobResponse_jobStatus :: Lens' StopTargetedSentimentDetectionJobResponse (Maybe JobStatus)
- stopTargetedSentimentDetectionJobResponse_httpStatus :: Lens' StopTargetedSentimentDetectionJobResponse Int
Creating a Request
data StopTargetedSentimentDetectionJob Source #
See: newStopTargetedSentimentDetectionJob
smart constructor.
Instances
newStopTargetedSentimentDetectionJob Source #
Create a value of StopTargetedSentimentDetectionJob
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:
StopTargetedSentimentDetectionJob
, stopTargetedSentimentDetectionJob_jobId
- The identifier of the targeted sentiment detection job to stop.
Request Lenses
stopTargetedSentimentDetectionJob_jobId :: Lens' StopTargetedSentimentDetectionJob Text Source #
The identifier of the targeted sentiment detection job to stop.
Destructuring the Response
data StopTargetedSentimentDetectionJobResponse Source #
See: newStopTargetedSentimentDetectionJobResponse
smart constructor.
StopTargetedSentimentDetectionJobResponse' | |
|
Instances
newStopTargetedSentimentDetectionJobResponse Source #
Create a value of StopTargetedSentimentDetectionJobResponse
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:
StopTargetedSentimentDetectionJob
, stopTargetedSentimentDetectionJobResponse_jobId
- The identifier of the targeted sentiment detection job to stop.
StopTargetedSentimentDetectionJobResponse
, stopTargetedSentimentDetectionJobResponse_jobStatus
- Either STOP_REQUESTED
if the job is currently running, or STOPPED
if
the job was previously stopped with the StopSentimentDetectionJob
operation.
$sel:httpStatus:StopTargetedSentimentDetectionJobResponse'
, stopTargetedSentimentDetectionJobResponse_httpStatus
- The response's http status code.
Response Lenses
stopTargetedSentimentDetectionJobResponse_jobId :: Lens' StopTargetedSentimentDetectionJobResponse (Maybe Text) Source #
The identifier of the targeted sentiment detection job to stop.
stopTargetedSentimentDetectionJobResponse_jobStatus :: Lens' StopTargetedSentimentDetectionJobResponse (Maybe JobStatus) Source #
Either STOP_REQUESTED
if the job is currently running, or STOPPED
if
the job was previously stopped with the StopSentimentDetectionJob
operation.
stopTargetedSentimentDetectionJobResponse_httpStatus :: Lens' StopTargetedSentimentDetectionJobResponse Int Source #
The response's http status code.