| Copyright | (c) 2013-2018 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.EMR.CancelSteps
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.
- cancelSteps :: CancelSteps
- data CancelSteps
- csStepIds :: Lens' CancelSteps [Text]
- csClusterId :: Lens' CancelSteps (Maybe Text)
- cancelStepsResponse :: Int -> CancelStepsResponse
- data CancelStepsResponse
- csrsCancelStepsInfoList :: Lens' CancelStepsResponse [CancelStepsInfo]
- csrsResponseStatus :: Lens' CancelStepsResponse Int
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 ofStepIDsto cancel. UseListStepsto get steps and their states for the specified cluster.csClusterId- TheClusterIDfor which specified steps will be canceled. UseRunJobFlowandListClustersto get ClusterIDs.
data CancelSteps Source #
The input argument to the CancelSteps operation.
See: cancelSteps smart constructor.
Instances
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
Arguments
| :: Int | |
| -> 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:
csrsCancelStepsInfoList- A list ofCancelStepsInfo, which shows the status of specified cancel requests for eachStepIDspecified.csrsResponseStatus- -- | The response status code.
data CancelStepsResponse Source #
The output for the CancelSteps operation.
See: cancelStepsResponse smart constructor.
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.