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 |
Stops an execution.
This API action is not supported by EXPRESS
state machines.
Synopsis
- data StopExecution = StopExecution' {}
- newStopExecution :: Text -> StopExecution
- stopExecution_error :: Lens' StopExecution (Maybe Text)
- stopExecution_cause :: 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.
Instances
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:
$sel:error:StopExecution'
, stopExecution_error
- The error code of the failure.
$sel:cause:StopExecution'
, stopExecution_cause
- A more detailed explanation of the cause of the failure.
$sel:executionArn:StopExecution'
, stopExecution_executionArn
- The Amazon Resource Name (ARN) of the execution to stop.
Request Lenses
stopExecution_error :: Lens' StopExecution (Maybe Text) Source #
The error code of the failure.
stopExecution_cause :: Lens' StopExecution (Maybe Text) Source #
A more detailed explanation of the cause 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.
StopExecutionResponse' | |
|
Instances
newStopExecutionResponse Source #
:: 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.
$sel:stopDate: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.