amazonka-comprehend-2.0: Amazon Comprehend SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Comprehend.StopTargetedSentimentDetectionJob

Description

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

Creating a Request

data StopTargetedSentimentDetectionJob Source #

See: newStopTargetedSentimentDetectionJob smart constructor.

Constructors

StopTargetedSentimentDetectionJob' 

Fields

  • jobId :: Text

    The identifier of the targeted sentiment detection job to stop.

Instances

Instances details
ToJSON StopTargetedSentimentDetectionJob Source # 
Instance details

Defined in Amazonka.Comprehend.StopTargetedSentimentDetectionJob

ToHeaders StopTargetedSentimentDetectionJob Source # 
Instance details

Defined in Amazonka.Comprehend.StopTargetedSentimentDetectionJob

ToPath StopTargetedSentimentDetectionJob Source # 
Instance details

Defined in Amazonka.Comprehend.StopTargetedSentimentDetectionJob

ToQuery StopTargetedSentimentDetectionJob Source # 
Instance details

Defined in Amazonka.Comprehend.StopTargetedSentimentDetectionJob

AWSRequest StopTargetedSentimentDetectionJob Source # 
Instance details

Defined in Amazonka.Comprehend.StopTargetedSentimentDetectionJob

Generic StopTargetedSentimentDetectionJob Source # 
Instance details

Defined in Amazonka.Comprehend.StopTargetedSentimentDetectionJob

Associated Types

type Rep StopTargetedSentimentDetectionJob :: Type -> Type #

Read StopTargetedSentimentDetectionJob Source # 
Instance details

Defined in Amazonka.Comprehend.StopTargetedSentimentDetectionJob

Show StopTargetedSentimentDetectionJob Source # 
Instance details

Defined in Amazonka.Comprehend.StopTargetedSentimentDetectionJob

NFData StopTargetedSentimentDetectionJob Source # 
Instance details

Defined in Amazonka.Comprehend.StopTargetedSentimentDetectionJob

Eq StopTargetedSentimentDetectionJob Source # 
Instance details

Defined in Amazonka.Comprehend.StopTargetedSentimentDetectionJob

Hashable StopTargetedSentimentDetectionJob Source # 
Instance details

Defined in Amazonka.Comprehend.StopTargetedSentimentDetectionJob

type AWSResponse StopTargetedSentimentDetectionJob Source # 
Instance details

Defined in Amazonka.Comprehend.StopTargetedSentimentDetectionJob

type Rep StopTargetedSentimentDetectionJob Source # 
Instance details

Defined in Amazonka.Comprehend.StopTargetedSentimentDetectionJob

type Rep StopTargetedSentimentDetectionJob = D1 ('MetaData "StopTargetedSentimentDetectionJob" "Amazonka.Comprehend.StopTargetedSentimentDetectionJob" "amazonka-comprehend-2.0-Ko6GCjAQF2RARapSdPn69F" 'False) (C1 ('MetaCons "StopTargetedSentimentDetectionJob'" 'PrefixI 'True) (S1 ('MetaSel ('Just "jobId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

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 #

Constructors

StopTargetedSentimentDetectionJobResponse' 

Fields

  • jobId :: Maybe Text

    The identifier of the targeted sentiment detection job to stop.

  • jobStatus :: Maybe JobStatus

    Either STOP_REQUESTED if the job is currently running, or STOPPED if the job was previously stopped with the StopSentimentDetectionJob operation.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic StopTargetedSentimentDetectionJobResponse Source # 
Instance details

Defined in Amazonka.Comprehend.StopTargetedSentimentDetectionJob

Read StopTargetedSentimentDetectionJobResponse Source # 
Instance details

Defined in Amazonka.Comprehend.StopTargetedSentimentDetectionJob

Show StopTargetedSentimentDetectionJobResponse Source # 
Instance details

Defined in Amazonka.Comprehend.StopTargetedSentimentDetectionJob

NFData StopTargetedSentimentDetectionJobResponse Source # 
Instance details

Defined in Amazonka.Comprehend.StopTargetedSentimentDetectionJob

Eq StopTargetedSentimentDetectionJobResponse Source # 
Instance details

Defined in Amazonka.Comprehend.StopTargetedSentimentDetectionJob

type Rep StopTargetedSentimentDetectionJobResponse Source # 
Instance details

Defined in Amazonka.Comprehend.StopTargetedSentimentDetectionJob

type Rep StopTargetedSentimentDetectionJobResponse = D1 ('MetaData "StopTargetedSentimentDetectionJobResponse" "Amazonka.Comprehend.StopTargetedSentimentDetectionJob" "amazonka-comprehend-2.0-Ko6GCjAQF2RARapSdPn69F" 'False) (C1 ('MetaCons "StopTargetedSentimentDetectionJobResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "jobId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "jobStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe JobStatus)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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.