amazonka-batch-1.5.0: Amazon Batch SDK.

Copyright(c) 2013-2017 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 cancelling 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 # 
Data TerminateJob Source # 

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 # 
Show TerminateJob Source # 
Generic TerminateJob Source # 

Associated Types

type Rep TerminateJob :: * -> * #

Hashable TerminateJob Source # 
ToJSON TerminateJob Source # 
NFData TerminateJob Source # 

Methods

rnf :: TerminateJob -> () #

AWSRequest TerminateJob Source # 
ToQuery TerminateJob Source # 
ToPath TerminateJob Source # 
ToHeaders TerminateJob Source # 
type Rep TerminateJob Source # 
type Rep TerminateJob = D1 (MetaData "TerminateJob" "Network.AWS.Batch.TerminateJob" "amazonka-batch-1.5.0-AMIOP3EprNVIEIQfz4kyfD" False) (C1 (MetaCons "TerminateJob'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_tjJobId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_tjReason") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs TerminateJob Source # 

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 cancelling 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 # 
Data TerminateJobResponse Source # 

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 # 
Show TerminateJobResponse Source # 
Generic TerminateJobResponse Source # 
NFData TerminateJobResponse Source # 

Methods

rnf :: TerminateJobResponse -> () #

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

Response Lenses

tjrsResponseStatus :: Lens' TerminateJobResponse Int Source #

  • - | The response status code.