libZSservicesZSamazonka-translateZSamazonka-translate
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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
Eq StopTextTranslationJob Source # 
Instance details

Defined in Amazonka.Translate.StopTextTranslationJob

Read StopTextTranslationJob Source # 
Instance details

Defined in Amazonka.Translate.StopTextTranslationJob

Show StopTextTranslationJob Source # 
Instance details

Defined in Amazonka.Translate.StopTextTranslationJob

Generic StopTextTranslationJob Source # 
Instance details

Defined in Amazonka.Translate.StopTextTranslationJob

Associated Types

type Rep StopTextTranslationJob :: Type -> Type #

NFData StopTextTranslationJob Source # 
Instance details

Defined in Amazonka.Translate.StopTextTranslationJob

Methods

rnf :: StopTextTranslationJob -> () #

Hashable StopTextTranslationJob Source # 
Instance details

Defined in Amazonka.Translate.StopTextTranslationJob

ToJSON StopTextTranslationJob Source # 
Instance details

Defined in Amazonka.Translate.StopTextTranslationJob

AWSRequest StopTextTranslationJob Source # 
Instance details

Defined in Amazonka.Translate.StopTextTranslationJob

Associated Types

type AWSResponse 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

type Rep StopTextTranslationJob Source # 
Instance details

Defined in Amazonka.Translate.StopTextTranslationJob

type Rep StopTextTranslationJob = D1 ('MetaData "StopTextTranslationJob" "Amazonka.Translate.StopTextTranslationJob" "libZSservicesZSamazonka-translateZSamazonka-translate" 'False) (C1 ('MetaCons "StopTextTranslationJob'" 'PrefixI 'True) (S1 ('MetaSel ('Just "jobId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse StopTextTranslationJob Source # 
Instance details

Defined in Amazonka.Translate.StopTextTranslationJob

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:

$sel:jobId: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
Eq StopTextTranslationJobResponse Source # 
Instance details

Defined in Amazonka.Translate.StopTextTranslationJob

Read StopTextTranslationJobResponse Source # 
Instance details

Defined in Amazonka.Translate.StopTextTranslationJob

Show StopTextTranslationJobResponse Source # 
Instance details

Defined in Amazonka.Translate.StopTextTranslationJob

Generic StopTextTranslationJobResponse Source # 
Instance details

Defined in Amazonka.Translate.StopTextTranslationJob

Associated Types

type Rep StopTextTranslationJobResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-translateZSamazonka-translate" '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:

$sel:jobId:StopTextTranslationJob', stopTextTranslationJobResponse_jobId - The job ID of the stopped batch translation job.

$sel:jobStatus: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.