| 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.StepFunctions.StopExecution
Description
Stops an execution.
This API action is not supported by EXPRESS state machines.
Synopsis
- data StopExecution = StopExecution' {}
- newStopExecution :: Text -> StopExecution
- stopExecution_cause :: Lens' StopExecution (Maybe Text)
- stopExecution_error :: Lens' StopExecution (Maybe Text)
- stopExecution_executionArn :: Lens' StopExecution Text
- data StopExecutionResponse = StopExecutionResponse' {
- httpStatus :: Int
- stopDate :: POSIX
- newStopExecutionResponse :: Int -> UTCTime -> StopExecutionResponse
- stopExecutionResponse_httpStatus :: Lens' StopExecutionResponse Int
- stopExecutionResponse_stopDate :: Lens' StopExecutionResponse UTCTime
Creating a Request
data StopExecution Source #
See: newStopExecution smart constructor.
Constructors
| StopExecution' | |
Instances
Arguments
| :: Text | |
| -> StopExecution |
Create a value of StopExecution 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:
StopExecution, stopExecution_cause - A more detailed explanation of the cause of the failure.
StopExecution, stopExecution_error - The error code of the failure.
StopExecution, stopExecution_executionArn - The Amazon Resource Name (ARN) of the execution to stop.
Request Lenses
stopExecution_cause :: Lens' StopExecution (Maybe Text) Source #
A more detailed explanation of the cause of the failure.
stopExecution_error :: Lens' StopExecution (Maybe Text) Source #
The error code of the failure.
stopExecution_executionArn :: Lens' StopExecution Text Source #
The Amazon Resource Name (ARN) of the execution to stop.
Destructuring the Response
data StopExecutionResponse Source #
See: newStopExecutionResponse smart constructor.
Constructors
| StopExecutionResponse' | |
Fields
| |
Instances
newStopExecutionResponse Source #
Arguments
| :: Int | |
| -> UTCTime | |
| -> StopExecutionResponse |
Create a value of StopExecutionResponse 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:httpStatus:StopExecutionResponse', stopExecutionResponse_httpStatus - The response's http status code.
StopExecutionResponse, stopExecutionResponse_stopDate - The date the execution is stopped.
Response Lenses
stopExecutionResponse_httpStatus :: Lens' StopExecutionResponse Int Source #
The response's http status code.
stopExecutionResponse_stopDate :: Lens' StopExecutionResponse UTCTime Source #
The date the execution is stopped.