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 |
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.
StopAutomationExecution' | |
|
Instances
newStopAutomationExecution Source #
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:
$sel:type':StopAutomationExecution'
, stopAutomationExecution_type
- The stop request type. Valid types include the following: Cancel and
Complete. The default type is Cancel.
$sel:automationExecutionId: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.
StopAutomationExecutionResponse' | |
|
Instances
Eq StopAutomationExecutionResponse Source # | |
Read StopAutomationExecutionResponse Source # | |
Show StopAutomationExecutionResponse Source # | |
Defined in Amazonka.SSM.StopAutomationExecution | |
Generic StopAutomationExecutionResponse Source # | |
NFData StopAutomationExecutionResponse Source # | |
Defined in Amazonka.SSM.StopAutomationExecution rnf :: StopAutomationExecutionResponse -> () # | |
type Rep StopAutomationExecutionResponse Source # | |
Defined in Amazonka.SSM.StopAutomationExecution type Rep StopAutomationExecutionResponse = D1 ('MetaData "StopAutomationExecutionResponse" "Amazonka.SSM.StopAutomationExecution" "libZSservicesZSamazonka-ssmZSamazonka-ssm" 'False) (C1 ('MetaCons "StopAutomationExecutionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
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.