amazonka-emr-1.6.0: Amazon Elastic MapReduce 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.EMR.CancelSteps

Contents

Description

Cancels a pending step or steps in a running cluster. Available only in Amazon EMR versions 4.8.0 and later, excluding version 5.0.0. A maximum of 256 steps are allowed in each CancelSteps request. CancelSteps is idempotent but asynchronous; it does not guarantee a step will be canceled, even if the request is successfully submitted. You can only cancel steps that are in a PENDING state.

Synopsis

Creating a Request

cancelSteps :: CancelSteps Source #

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

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

  • csStepIds - The list of StepIDs to cancel. Use ListSteps to get steps and their states for the specified cluster.
  • csClusterId - The ClusterID for which specified steps will be canceled. Use RunJobFlow and ListClusters to get ClusterIDs.

data CancelSteps Source #

The input argument to the CancelSteps operation.

See: cancelSteps smart constructor.

Instances

Eq CancelSteps Source # 
Data CancelSteps Source # 

Methods

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

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

toConstr :: CancelSteps -> Constr #

dataTypeOf :: CancelSteps -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CancelSteps Source # 
Show CancelSteps Source # 
Generic CancelSteps Source # 

Associated Types

type Rep CancelSteps :: * -> * #

Hashable CancelSteps Source # 
ToJSON CancelSteps Source # 
NFData CancelSteps Source # 

Methods

rnf :: CancelSteps -> () #

AWSRequest CancelSteps Source # 
ToHeaders CancelSteps Source # 

Methods

toHeaders :: CancelSteps -> [Header] #

ToPath CancelSteps Source # 
ToQuery CancelSteps Source # 
type Rep CancelSteps Source # 
type Rep CancelSteps = D1 * (MetaData "CancelSteps" "Network.AWS.EMR.CancelSteps" "amazonka-emr-1.6.0-Gh02fq80On6JQmEHB2V13H" False) (C1 * (MetaCons "CancelSteps'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_csStepIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Text]))) (S1 * (MetaSel (Just Symbol "_csClusterId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))))
type Rs CancelSteps Source # 

Request Lenses

csStepIds :: Lens' CancelSteps [Text] Source #

The list of StepIDs to cancel. Use ListSteps to get steps and their states for the specified cluster.

csClusterId :: Lens' CancelSteps (Maybe Text) Source #

The ClusterID for which specified steps will be canceled. Use RunJobFlow and ListClusters to get ClusterIDs.

Destructuring the Response

cancelStepsResponse Source #

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

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

data CancelStepsResponse Source #

The output for the CancelSteps operation.

See: cancelStepsResponse smart constructor.

Instances

Eq CancelStepsResponse Source # 
Data CancelStepsResponse Source # 

Methods

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

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

toConstr :: CancelStepsResponse -> Constr #

dataTypeOf :: CancelStepsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CancelStepsResponse Source # 
Show CancelStepsResponse Source # 
Generic CancelStepsResponse Source # 
NFData CancelStepsResponse Source # 

Methods

rnf :: CancelStepsResponse -> () #

type Rep CancelStepsResponse Source # 
type Rep CancelStepsResponse = D1 * (MetaData "CancelStepsResponse" "Network.AWS.EMR.CancelSteps" "amazonka-emr-1.6.0-Gh02fq80On6JQmEHB2V13H" False) (C1 * (MetaCons "CancelStepsResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_csrsCancelStepsInfoList") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [CancelStepsInfo]))) (S1 * (MetaSel (Just Symbol "_csrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

csrsCancelStepsInfoList :: Lens' CancelStepsResponse [CancelStepsInfo] Source #

A list of CancelStepsInfo , which shows the status of specified cancel requests for each StepID specified.

csrsResponseStatus :: Lens' CancelStepsResponse Int Source #

  • - | The response status code.