libZSservicesZSamazonka-batchZSamazonka-batch
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.Batch.TerminateJob

Description

Terminates a job in a job queue. Jobs that are in the STARTING or RUNNING state are terminated, which causes them to transition to FAILED. Jobs that have not progressed to the STARTING state are cancelled.

Synopsis

Creating a Request

data TerminateJob Source #

Contains the parameters for TerminateJob.

See: newTerminateJob smart constructor.

Constructors

TerminateJob' 

Fields

  • jobId :: Text

    The Batch job ID of the job to terminate.

  • reason :: Text

    A message to attach to the job that explains the reason for canceling it. This message is returned by future DescribeJobs operations on the job. This message is also recorded in the Batch activity logs.

Instances

Instances details
Eq TerminateJob Source # 
Instance details

Defined in Amazonka.Batch.TerminateJob

Read TerminateJob Source # 
Instance details

Defined in Amazonka.Batch.TerminateJob

Show TerminateJob Source # 
Instance details

Defined in Amazonka.Batch.TerminateJob

Generic TerminateJob Source # 
Instance details

Defined in Amazonka.Batch.TerminateJob

Associated Types

type Rep TerminateJob :: Type -> Type #

NFData TerminateJob Source # 
Instance details

Defined in Amazonka.Batch.TerminateJob

Methods

rnf :: TerminateJob -> () #

Hashable TerminateJob Source # 
Instance details

Defined in Amazonka.Batch.TerminateJob

ToJSON TerminateJob Source # 
Instance details

Defined in Amazonka.Batch.TerminateJob

AWSRequest TerminateJob Source # 
Instance details

Defined in Amazonka.Batch.TerminateJob

Associated Types

type AWSResponse TerminateJob #

ToHeaders TerminateJob Source # 
Instance details

Defined in Amazonka.Batch.TerminateJob

ToPath TerminateJob Source # 
Instance details

Defined in Amazonka.Batch.TerminateJob

ToQuery TerminateJob Source # 
Instance details

Defined in Amazonka.Batch.TerminateJob

type Rep TerminateJob Source # 
Instance details

Defined in Amazonka.Batch.TerminateJob

type Rep TerminateJob = D1 ('MetaData "TerminateJob" "Amazonka.Batch.TerminateJob" "libZSservicesZSamazonka-batchZSamazonka-batch" 'False) (C1 ('MetaCons "TerminateJob'" 'PrefixI 'True) (S1 ('MetaSel ('Just "jobId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "reason") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse TerminateJob Source # 
Instance details

Defined in Amazonka.Batch.TerminateJob

newTerminateJob Source #

Create a value of TerminateJob 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:TerminateJob', terminateJob_jobId - The Batch job ID of the job to terminate.

$sel:reason:TerminateJob', terminateJob_reason - A message to attach to the job that explains the reason for canceling it. This message is returned by future DescribeJobs operations on the job. This message is also recorded in the Batch activity logs.

Request Lenses

terminateJob_jobId :: Lens' TerminateJob Text Source #

The Batch job ID of the job to terminate.

terminateJob_reason :: Lens' TerminateJob Text Source #

A message to attach to the job that explains the reason for canceling it. This message is returned by future DescribeJobs operations on the job. This message is also recorded in the Batch activity logs.

Destructuring the Response

data TerminateJobResponse Source #

See: newTerminateJobResponse smart constructor.

Constructors

TerminateJobResponse' 

Fields

Instances

Instances details
Eq TerminateJobResponse Source # 
Instance details

Defined in Amazonka.Batch.TerminateJob

Read TerminateJobResponse Source # 
Instance details

Defined in Amazonka.Batch.TerminateJob

Show TerminateJobResponse Source # 
Instance details

Defined in Amazonka.Batch.TerminateJob

Generic TerminateJobResponse Source # 
Instance details

Defined in Amazonka.Batch.TerminateJob

Associated Types

type Rep TerminateJobResponse :: Type -> Type #

NFData TerminateJobResponse Source # 
Instance details

Defined in Amazonka.Batch.TerminateJob

Methods

rnf :: TerminateJobResponse -> () #

type Rep TerminateJobResponse Source # 
Instance details

Defined in Amazonka.Batch.TerminateJob

type Rep TerminateJobResponse = D1 ('MetaData "TerminateJobResponse" "Amazonka.Batch.TerminateJob" "libZSservicesZSamazonka-batchZSamazonka-batch" 'False) (C1 ('MetaCons "TerminateJobResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newTerminateJobResponse Source #

Create a value of TerminateJobResponse 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:httpStatus:TerminateJobResponse', terminateJobResponse_httpStatus - The response's http status code.

Response Lenses