Copyright | (c) 2013-2021 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 |
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 that a step will be
canceled, even if the request is successfully submitted. When you use
Amazon EMR versions 5.28.0 and later, you can cancel steps that are in a
PENDING
or RUNNING
state. In earlier versions of Amazon EMR, you can
only cancel steps that are in a PENDING
state.
Synopsis
- data CancelSteps = CancelSteps' {}
- newCancelSteps :: Text -> CancelSteps
- cancelSteps_stepCancellationOption :: Lens' CancelSteps (Maybe StepCancellationOption)
- cancelSteps_clusterId :: Lens' CancelSteps Text
- cancelSteps_stepIds :: Lens' CancelSteps [Text]
- data CancelStepsResponse = CancelStepsResponse' {}
- newCancelStepsResponse :: Int -> CancelStepsResponse
- cancelStepsResponse_cancelStepsInfoList :: Lens' CancelStepsResponse (Maybe [CancelStepsInfo])
- cancelStepsResponse_httpStatus :: Lens' CancelStepsResponse Int
Creating a Request
data CancelSteps Source #
The input argument to the CancelSteps operation.
See: newCancelSteps
smart constructor.
CancelSteps' | |
|
Instances
Create a value of CancelSteps
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:stepCancellationOption:CancelSteps'
, cancelSteps_stepCancellationOption
- The option to choose to cancel RUNNING
steps. By default, the value is
SEND_INTERRUPT
.
$sel:clusterId:CancelSteps'
, cancelSteps_clusterId
- The ClusterID
for the specified steps that will be canceled. Use
RunJobFlow and ListClusters to get ClusterIDs.
$sel:stepIds:CancelSteps'
, cancelSteps_stepIds
- The list of StepIDs
to cancel. Use ListSteps to get steps and their
states for the specified cluster.
Request Lenses
cancelSteps_stepCancellationOption :: Lens' CancelSteps (Maybe StepCancellationOption) Source #
The option to choose to cancel RUNNING
steps. By default, the value is
SEND_INTERRUPT
.
cancelSteps_clusterId :: Lens' CancelSteps Text Source #
The ClusterID
for the specified steps that will be canceled. Use
RunJobFlow and ListClusters to get ClusterIDs.
cancelSteps_stepIds :: Lens' CancelSteps [Text] Source #
The list of StepIDs
to cancel. Use ListSteps to get steps and their
states for the specified cluster.
Destructuring the Response
data CancelStepsResponse Source #
The output for the CancelSteps operation.
See: newCancelStepsResponse
smart constructor.
CancelStepsResponse' | |
|
Instances
newCancelStepsResponse Source #
Create a value of CancelStepsResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:cancelStepsInfoList:CancelStepsResponse'
, cancelStepsResponse_cancelStepsInfoList
- A list of CancelStepsInfo, which shows the status of specified cancel
requests for each StepID
specified.
$sel:httpStatus:CancelStepsResponse'
, cancelStepsResponse_httpStatus
- The response's http status code.
Response Lenses
cancelStepsResponse_cancelStepsInfoList :: Lens' CancelStepsResponse (Maybe [CancelStepsInfo]) Source #
A list of CancelStepsInfo, which shows the status of specified cancel
requests for each StepID
specified.
cancelStepsResponse_httpStatus :: Lens' CancelStepsResponse Int Source #
The response's http status code.