amazonka-elastictranscoder-1.2.0.2: Amazon Elastic Transcoder SDK.

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

Network.AWS.ElasticTranscoder.CancelJob

Contents

Description

The CancelJob operation cancels an unfinished job.

You can only cancel a job that has a status of Submitted. To prevent a pipeline from starting to process a job while you're getting the job identifier, use UpdatePipelineStatus to temporarily pause the pipeline.

See: AWS API Reference for CancelJob.

Synopsis

Creating a Request

cancelJob Source

Arguments

:: Text

cjId

-> CancelJob 

Creates a value of CancelJob with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

cjId :: Lens' CancelJob Text Source

The identifier of the job that you want to cancel.

To get a list of the jobs (including their jobId) that have a status of Submitted, use the ListJobsByStatus API action.

Destructuring the Response

cancelJobResponse Source

Creates a value of CancelJobResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data CancelJobResponse Source

The response body contains a JSON object. If the job is successfully canceled, the value of Success is true.

See: cancelJobResponse smart constructor.

Response Lenses

canrsStatus :: Lens' CancelJobResponse Int Source

The response status code.