| 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.SSM.StopAutomationExecution
Description
Stop an Automation that is currently running.
Synopsis
- data StopAutomationExecution = StopAutomationExecution' {}
- newStopAutomationExecution :: Text -> StopAutomationExecution
- stopAutomationExecution_type :: Lens' StopAutomationExecution (Maybe StopType)
- stopAutomationExecution_automationExecutionId :: Lens' StopAutomationExecution Text
- data StopAutomationExecutionResponse = StopAutomationExecutionResponse' {
- httpStatus :: Int
- newStopAutomationExecutionResponse :: Int -> StopAutomationExecutionResponse
- stopAutomationExecutionResponse_httpStatus :: Lens' StopAutomationExecutionResponse Int
Creating a Request
data StopAutomationExecution Source #
See: newStopAutomationExecution smart constructor.
Constructors
| StopAutomationExecution' | |
Fields
| |
Instances
newStopAutomationExecution Source #
Arguments
| :: Text | |
| -> StopAutomationExecution |
Create a value of StopAutomationExecution 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:
StopAutomationExecution, stopAutomationExecution_type - The stop request type. Valid types include the following: Cancel and
Complete. The default type is Cancel.
StopAutomationExecution, stopAutomationExecution_automationExecutionId - The execution ID of the Automation to stop.
Request Lenses
stopAutomationExecution_type :: Lens' StopAutomationExecution (Maybe StopType) Source #
The stop request type. Valid types include the following: Cancel and Complete. The default type is Cancel.
stopAutomationExecution_automationExecutionId :: Lens' StopAutomationExecution Text Source #
The execution ID of the Automation to stop.
Destructuring the Response
data StopAutomationExecutionResponse Source #
See: newStopAutomationExecutionResponse smart constructor.
Constructors
| StopAutomationExecutionResponse' | |
Fields
| |
Instances
newStopAutomationExecutionResponse Source #
Create a value of StopAutomationExecutionResponse 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:StopAutomationExecutionResponse', stopAutomationExecutionResponse_httpStatus - The response's http status code.
Response Lenses
stopAutomationExecutionResponse_httpStatus :: Lens' StopAutomationExecutionResponse Int Source #
The response's http status code.