amazonka-translate-2.0: Amazon Translate 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.Translate.StopTextTranslationJob

Description

Stops an asynchronous batch translation job that is in progress.

If the job's state is IN_PROGRESS, the job will be 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 put into the STOPPED state.

Asynchronous batch translation jobs are started with the StartTextTranslationJob operation. You can use the DescribeTextTranslationJob or ListTextTranslationJobs operations to get a batch translation job's JobId.

Synopsis

Creating a Request

data StopTextTranslationJob Source #

See: newStopTextTranslationJob smart constructor.

Constructors

StopTextTranslationJob' 

Fields

  • jobId :: Text

    The job ID of the job to be stopped.

Instances

Instances details
ToJSON StopTextTranslationJob Source # 
Instance details

Defined in Amazonka.Translate.StopTextTranslationJob

ToHeaders StopTextTranslationJob Source # 
Instance details

Defined in Amazonka.Translate.StopTextTranslationJob

ToPath StopTextTranslationJob Source # 
Instance details

Defined in Amazonka.Translate.StopTextTranslationJob

ToQuery StopTextTranslationJob Source # 
Instance details

Defined in Amazonka.Translate.StopTextTranslationJob

AWSRequest StopTextTranslationJob Source # 
Instance details

Defined in Amazonka.Translate.StopTextTranslationJob

Associated Types

type AWSResponse StopTextTranslationJob #

Generic StopTextTranslationJob Source # 
Instance details

Defined in Amazonka.Translate.StopTextTranslationJob

Associated Types

type Rep StopTextTranslationJob :: Type -> Type #

Read StopTextTranslationJob Source # 
Instance details

Defined in Amazonka.Translate.StopTextTranslationJob

Show StopTextTranslationJob Source # 
Instance details

Defined in Amazonka.Translate.StopTextTranslationJob

NFData StopTextTranslationJob Source # 
Instance details

Defined in Amazonka.Translate.StopTextTranslationJob

Methods

rnf :: StopTextTranslationJob -> () #

Eq StopTextTranslationJob Source # 
Instance details

Defined in Amazonka.Translate.StopTextTranslationJob

Hashable StopTextTranslationJob Source # 
Instance details

Defined in Amazonka.Translate.StopTextTranslationJob

type AWSResponse StopTextTranslationJob Source # 
Instance details

Defined in Amazonka.Translate.StopTextTranslationJob

type Rep StopTextTranslationJob Source # 
Instance details

Defined in Amazonka.Translate.StopTextTranslationJob

type Rep StopTextTranslationJob = D1 ('MetaData "StopTextTranslationJob" "Amazonka.Translate.StopTextTranslationJob" "amazonka-translate-2.0-L0mihfp7dIB5vR5cgIREJ6" 'False) (C1 ('MetaCons "StopTextTranslationJob'" 'PrefixI 'True) (S1 ('MetaSel ('Just "jobId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newStopTextTranslationJob Source #

Create a value of StopTextTranslationJob 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:

StopTextTranslationJob, stopTextTranslationJob_jobId - The job ID of the job to be stopped.

Request Lenses

stopTextTranslationJob_jobId :: Lens' StopTextTranslationJob Text Source #

The job ID of the job to be stopped.

Destructuring the Response

data StopTextTranslationJobResponse Source #

See: newStopTextTranslationJobResponse smart constructor.

Constructors

StopTextTranslationJobResponse' 

Fields

Instances

Instances details
Generic StopTextTranslationJobResponse Source # 
Instance details

Defined in Amazonka.Translate.StopTextTranslationJob

Associated Types

type Rep StopTextTranslationJobResponse :: Type -> Type #

Read StopTextTranslationJobResponse Source # 
Instance details

Defined in Amazonka.Translate.StopTextTranslationJob

Show StopTextTranslationJobResponse Source # 
Instance details

Defined in Amazonka.Translate.StopTextTranslationJob

NFData StopTextTranslationJobResponse Source # 
Instance details

Defined in Amazonka.Translate.StopTextTranslationJob

Eq StopTextTranslationJobResponse Source # 
Instance details

Defined in Amazonka.Translate.StopTextTranslationJob

type Rep StopTextTranslationJobResponse Source # 
Instance details

Defined in Amazonka.Translate.StopTextTranslationJob

type Rep StopTextTranslationJobResponse = D1 ('MetaData "StopTextTranslationJobResponse" "Amazonka.Translate.StopTextTranslationJob" "amazonka-translate-2.0-L0mihfp7dIB5vR5cgIREJ6" 'False) (C1 ('MetaCons "StopTextTranslationJobResponse'" '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))))

newStopTextTranslationJobResponse Source #

Create a value of StopTextTranslationJobResponse 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:

StopTextTranslationJob, stopTextTranslationJobResponse_jobId - The job ID of the stopped batch translation job.

StopTextTranslationJobResponse, stopTextTranslationJobResponse_jobStatus - The status of the designated job. Upon successful completion, the job's status will be STOPPED.

$sel:httpStatus:StopTextTranslationJobResponse', stopTextTranslationJobResponse_httpStatus - The response's http status code.

Response Lenses

stopTextTranslationJobResponse_jobId :: Lens' StopTextTranslationJobResponse (Maybe Text) Source #

The job ID of the stopped batch translation job.

stopTextTranslationJobResponse_jobStatus :: Lens' StopTextTranslationJobResponse (Maybe JobStatus) Source #

The status of the designated job. Upon successful completion, the job's status will be STOPPED.