| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.CodePipeline.StopPipelineExecution
Description
Stops the specified pipeline execution. You choose to either stop the
pipeline execution by completing in-progress actions without starting
subsequent actions, or by abandoning in-progress actions. While
completing or abandoning in-progress actions, the pipeline execution is
in a Stopping state. After all in-progress actions are completed or
abandoned, the pipeline execution is in a Stopped state.
Synopsis
- data StopPipelineExecution = StopPipelineExecution' {
- abandon :: Maybe Bool
- reason :: Maybe Text
- pipelineName :: Text
- pipelineExecutionId :: Text
- newStopPipelineExecution :: Text -> Text -> StopPipelineExecution
- stopPipelineExecution_abandon :: Lens' StopPipelineExecution (Maybe Bool)
- stopPipelineExecution_reason :: Lens' StopPipelineExecution (Maybe Text)
- stopPipelineExecution_pipelineName :: Lens' StopPipelineExecution Text
- stopPipelineExecution_pipelineExecutionId :: Lens' StopPipelineExecution Text
- data StopPipelineExecutionResponse = StopPipelineExecutionResponse' {}
- newStopPipelineExecutionResponse :: Int -> StopPipelineExecutionResponse
- stopPipelineExecutionResponse_pipelineExecutionId :: Lens' StopPipelineExecutionResponse (Maybe Text)
- stopPipelineExecutionResponse_httpStatus :: Lens' StopPipelineExecutionResponse Int
Creating a Request
data StopPipelineExecution Source #
See: newStopPipelineExecution smart constructor.
Constructors
| StopPipelineExecution' | |
Fields
| |
Instances
newStopPipelineExecution Source #
Arguments
| :: Text | |
| -> Text | |
| -> StopPipelineExecution |
Create a value of StopPipelineExecution 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:abandon:StopPipelineExecution', stopPipelineExecution_abandon - Use this option to stop the pipeline execution by abandoning, rather
than finishing, in-progress actions.
This option can lead to failed or out-of-sequence tasks.
StopPipelineExecution, stopPipelineExecution_reason - Use this option to enter comments, such as the reason the pipeline was
stopped.
StopPipelineExecution, stopPipelineExecution_pipelineName - The name of the pipeline to stop.
StopPipelineExecution, stopPipelineExecution_pipelineExecutionId - The ID of the pipeline execution to be stopped in the current stage. Use
the GetPipelineState action to retrieve the current
pipelineExecutionId.
Request Lenses
stopPipelineExecution_abandon :: Lens' StopPipelineExecution (Maybe Bool) Source #
Use this option to stop the pipeline execution by abandoning, rather than finishing, in-progress actions.
This option can lead to failed or out-of-sequence tasks.
stopPipelineExecution_reason :: Lens' StopPipelineExecution (Maybe Text) Source #
Use this option to enter comments, such as the reason the pipeline was stopped.
stopPipelineExecution_pipelineName :: Lens' StopPipelineExecution Text Source #
The name of the pipeline to stop.
stopPipelineExecution_pipelineExecutionId :: Lens' StopPipelineExecution Text Source #
The ID of the pipeline execution to be stopped in the current stage. Use
the GetPipelineState action to retrieve the current
pipelineExecutionId.
Destructuring the Response
data StopPipelineExecutionResponse Source #
See: newStopPipelineExecutionResponse smart constructor.
Constructors
| StopPipelineExecutionResponse' | |
Fields
| |
Instances
newStopPipelineExecutionResponse Source #
Create a value of StopPipelineExecutionResponse 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:
StopPipelineExecution, stopPipelineExecutionResponse_pipelineExecutionId - The unique system-generated ID of the pipeline execution that was
stopped.
$sel:httpStatus:StopPipelineExecutionResponse', stopPipelineExecutionResponse_httpStatus - The response's http status code.
Response Lenses
stopPipelineExecutionResponse_pipelineExecutionId :: Lens' StopPipelineExecutionResponse (Maybe Text) Source #
The unique system-generated ID of the pipeline execution that was stopped.
stopPipelineExecutionResponse_httpStatus :: Lens' StopPipelineExecutionResponse Int Source #
The response's http status code.