amazonka-emr-1.6.1: 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 # 
Instance details

Defined in Network.AWS.EMR.CancelSteps

Data CancelSteps Source # 
Instance details

Defined in Network.AWS.EMR.CancelSteps

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 # 
Instance details

Defined in Network.AWS.EMR.CancelSteps

Show CancelSteps Source # 
Instance details

Defined in Network.AWS.EMR.CancelSteps

Generic CancelSteps Source # 
Instance details

Defined in Network.AWS.EMR.CancelSteps

Associated Types

type Rep CancelSteps :: Type -> Type #

Hashable CancelSteps Source # 
Instance details

Defined in Network.AWS.EMR.CancelSteps

ToJSON CancelSteps Source # 
Instance details

Defined in Network.AWS.EMR.CancelSteps

AWSRequest CancelSteps Source # 
Instance details

Defined in Network.AWS.EMR.CancelSteps

Associated Types

type Rs CancelSteps :: Type #

ToHeaders CancelSteps Source # 
Instance details

Defined in Network.AWS.EMR.CancelSteps

Methods

toHeaders :: CancelSteps -> [Header] #

ToPath CancelSteps Source # 
Instance details

Defined in Network.AWS.EMR.CancelSteps

ToQuery CancelSteps Source # 
Instance details

Defined in Network.AWS.EMR.CancelSteps

NFData CancelSteps Source # 
Instance details

Defined in Network.AWS.EMR.CancelSteps

Methods

rnf :: CancelSteps -> () #

type Rep CancelSteps Source # 
Instance details

Defined in Network.AWS.EMR.CancelSteps

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

Defined in Network.AWS.EMR.CancelSteps

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 # 
Instance details

Defined in Network.AWS.EMR.CancelSteps

Data CancelStepsResponse Source # 
Instance details

Defined in Network.AWS.EMR.CancelSteps

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 # 
Instance details

Defined in Network.AWS.EMR.CancelSteps

Show CancelStepsResponse Source # 
Instance details

Defined in Network.AWS.EMR.CancelSteps

Generic CancelStepsResponse Source # 
Instance details

Defined in Network.AWS.EMR.CancelSteps

Associated Types

type Rep CancelStepsResponse :: Type -> Type #

NFData CancelStepsResponse Source # 
Instance details

Defined in Network.AWS.EMR.CancelSteps

Methods

rnf :: CancelStepsResponse -> () #

type Rep CancelStepsResponse Source # 
Instance details

Defined in Network.AWS.EMR.CancelSteps

type Rep CancelStepsResponse = D1 (MetaData "CancelStepsResponse" "Network.AWS.EMR.CancelSteps" "amazonka-emr-1.6.1-2s0PTavy7KJFxTopWKa47I" False) (C1 (MetaCons "CancelStepsResponse'" PrefixI True) (S1 (MetaSel (Just "_csrsCancelStepsInfoList") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [CancelStepsInfo])) :*: S1 (MetaSel (Just "_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.