amazonka-batch-1.6.1: Amazon Batch SDK.

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

Network.AWS.Batch.TerminateJob

Contents

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

terminateJob Source #

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

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

  • tjJobId - The AWS Batch job ID of the job to terminate.
  • tjReason - 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 AWS Batch activity logs.

data TerminateJob Source #

See: terminateJob smart constructor.

Instances
Eq TerminateJob Source # 
Instance details

Defined in Network.AWS.Batch.TerminateJob

Data TerminateJob Source # 
Instance details

Defined in Network.AWS.Batch.TerminateJob

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TerminateJob -> c TerminateJob #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c TerminateJob #

toConstr :: TerminateJob -> Constr #

dataTypeOf :: TerminateJob -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c TerminateJob) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TerminateJob) #

gmapT :: (forall b. Data b => b -> b) -> TerminateJob -> TerminateJob #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> TerminateJob -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> TerminateJob -> r #

gmapQ :: (forall d. Data d => d -> u) -> TerminateJob -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> TerminateJob -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> TerminateJob -> m TerminateJob #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> TerminateJob -> m TerminateJob #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> TerminateJob -> m TerminateJob #

Read TerminateJob Source # 
Instance details

Defined in Network.AWS.Batch.TerminateJob

Show TerminateJob Source # 
Instance details

Defined in Network.AWS.Batch.TerminateJob

Generic TerminateJob Source # 
Instance details

Defined in Network.AWS.Batch.TerminateJob

Associated Types

type Rep TerminateJob :: Type -> Type #

Hashable TerminateJob Source # 
Instance details

Defined in Network.AWS.Batch.TerminateJob

ToJSON TerminateJob Source # 
Instance details

Defined in Network.AWS.Batch.TerminateJob

AWSRequest TerminateJob Source # 
Instance details

Defined in Network.AWS.Batch.TerminateJob

Associated Types

type Rs TerminateJob :: Type #

ToHeaders TerminateJob Source # 
Instance details

Defined in Network.AWS.Batch.TerminateJob

ToPath TerminateJob Source # 
Instance details

Defined in Network.AWS.Batch.TerminateJob

ToQuery TerminateJob Source # 
Instance details

Defined in Network.AWS.Batch.TerminateJob

NFData TerminateJob Source # 
Instance details

Defined in Network.AWS.Batch.TerminateJob

Methods

rnf :: TerminateJob -> () #

type Rep TerminateJob Source # 
Instance details

Defined in Network.AWS.Batch.TerminateJob

type Rep TerminateJob = D1 (MetaData "TerminateJob" "Network.AWS.Batch.TerminateJob" "amazonka-batch-1.6.1-Ehms0ZM7bO3CGJpCkHVC0C" False) (C1 (MetaCons "TerminateJob'" PrefixI True) (S1 (MetaSel (Just "_tjJobId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_tjReason") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs TerminateJob Source # 
Instance details

Defined in Network.AWS.Batch.TerminateJob

Request Lenses

tjJobId :: Lens' TerminateJob Text Source #

The AWS Batch job ID of the job to terminate.

tjReason :: 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 AWS Batch activity logs.

Destructuring the Response

terminateJobResponse Source #

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

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

data TerminateJobResponse Source #

See: terminateJobResponse smart constructor.

Instances
Eq TerminateJobResponse Source # 
Instance details

Defined in Network.AWS.Batch.TerminateJob

Data TerminateJobResponse Source # 
Instance details

Defined in Network.AWS.Batch.TerminateJob

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TerminateJobResponse -> c TerminateJobResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c TerminateJobResponse #

toConstr :: TerminateJobResponse -> Constr #

dataTypeOf :: TerminateJobResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c TerminateJobResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TerminateJobResponse) #

gmapT :: (forall b. Data b => b -> b) -> TerminateJobResponse -> TerminateJobResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> TerminateJobResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> TerminateJobResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> TerminateJobResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> TerminateJobResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> TerminateJobResponse -> m TerminateJobResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> TerminateJobResponse -> m TerminateJobResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> TerminateJobResponse -> m TerminateJobResponse #

Read TerminateJobResponse Source # 
Instance details

Defined in Network.AWS.Batch.TerminateJob

Show TerminateJobResponse Source # 
Instance details

Defined in Network.AWS.Batch.TerminateJob

Generic TerminateJobResponse Source # 
Instance details

Defined in Network.AWS.Batch.TerminateJob

Associated Types

type Rep TerminateJobResponse :: Type -> Type #

NFData TerminateJobResponse Source # 
Instance details

Defined in Network.AWS.Batch.TerminateJob

Methods

rnf :: TerminateJobResponse -> () #

type Rep TerminateJobResponse Source # 
Instance details

Defined in Network.AWS.Batch.TerminateJob

type Rep TerminateJobResponse = D1 (MetaData "TerminateJobResponse" "Network.AWS.Batch.TerminateJob" "amazonka-batch-1.6.1-Ehms0ZM7bO3CGJpCkHVC0C" True) (C1 (MetaCons "TerminateJobResponse'" PrefixI True) (S1 (MetaSel (Just "_tjrsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

Response Lenses

tjrsResponseStatus :: Lens' TerminateJobResponse Int Source #

  • - | The response status code.