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 #

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 #

The input argument to the CancelSteps operation.

See: cancelSteps smart constructor.

Instances
Eq CancelSteps # 
Instance details

Defined in Network.AWS.EMR.CancelSteps

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

Defined in Network.AWS.EMR.CancelSteps

Show CancelSteps # 
Instance details

Defined in Network.AWS.EMR.CancelSteps

Generic CancelSteps # 
Instance details

Defined in Network.AWS.EMR.CancelSteps

Associated Types

type Rep CancelSteps :: * -> * #

Hashable CancelSteps # 
Instance details

Defined in Network.AWS.EMR.CancelSteps

ToJSON CancelSteps # 
Instance details

Defined in Network.AWS.EMR.CancelSteps

AWSRequest CancelSteps # 
Instance details

Defined in Network.AWS.EMR.CancelSteps

Associated Types

type Rs CancelSteps :: * #

ToHeaders CancelSteps # 
Instance details

Defined in Network.AWS.EMR.CancelSteps

Methods

toHeaders :: CancelSteps -> [Header] #

ToPath CancelSteps # 
Instance details

Defined in Network.AWS.EMR.CancelSteps

ToQuery CancelSteps # 
Instance details

Defined in Network.AWS.EMR.CancelSteps

NFData CancelSteps # 
Instance details

Defined in Network.AWS.EMR.CancelSteps

Methods

rnf :: CancelSteps -> () #

type Rep CancelSteps # 
Instance details

Defined in Network.AWS.EMR.CancelSteps

type Rep CancelSteps = D1 (MetaData "CancelSteps" "Network.AWS.EMR.CancelSteps" "amazonka-emr-1.6.0-FYKfcui3Ox72PqQzDiwDXJ" 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 # 
Instance details

Defined in Network.AWS.EMR.CancelSteps

Request Lenses

csStepIds :: Lens' CancelSteps [Text] #

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

csClusterId :: Lens' CancelSteps (Maybe Text) #

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

Destructuring the Response

cancelStepsResponse #

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 #

The output for the CancelSteps operation.

See: cancelStepsResponse smart constructor.

Instances
Eq CancelStepsResponse # 
Instance details

Defined in Network.AWS.EMR.CancelSteps

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

Defined in Network.AWS.EMR.CancelSteps

Show CancelStepsResponse # 
Instance details

Defined in Network.AWS.EMR.CancelSteps

Generic CancelStepsResponse # 
Instance details

Defined in Network.AWS.EMR.CancelSteps

Associated Types

type Rep CancelStepsResponse :: * -> * #

NFData CancelStepsResponse # 
Instance details

Defined in Network.AWS.EMR.CancelSteps

Methods

rnf :: CancelStepsResponse -> () #

type Rep CancelStepsResponse # 
Instance details

Defined in Network.AWS.EMR.CancelSteps

type Rep CancelStepsResponse = D1 (MetaData "CancelStepsResponse" "Network.AWS.EMR.CancelSteps" "amazonka-emr-1.6.0-FYKfcui3Ox72PqQzDiwDXJ" 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] #

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

csrsResponseStatus :: Lens' CancelStepsResponse Int #

  • - | The response status code.