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 |
Sends a signal to an Automation execution to change the current behavior or status of the execution.
Synopsis
- data SendAutomationSignal = SendAutomationSignal' {
- payload :: Maybe (HashMap Text [Text])
- automationExecutionId :: Text
- signalType :: SignalType
- newSendAutomationSignal :: Text -> SignalType -> SendAutomationSignal
- sendAutomationSignal_payload :: Lens' SendAutomationSignal (Maybe (HashMap Text [Text]))
- sendAutomationSignal_automationExecutionId :: Lens' SendAutomationSignal Text
- sendAutomationSignal_signalType :: Lens' SendAutomationSignal SignalType
- data SendAutomationSignalResponse = SendAutomationSignalResponse' {
- httpStatus :: Int
- newSendAutomationSignalResponse :: Int -> SendAutomationSignalResponse
- sendAutomationSignalResponse_httpStatus :: Lens' SendAutomationSignalResponse Int
Creating a Request
data SendAutomationSignal Source #
See: newSendAutomationSignal
smart constructor.
SendAutomationSignal' | |
|
Instances
newSendAutomationSignal Source #
:: Text | |
-> SignalType | |
-> SendAutomationSignal |
Create a value of SendAutomationSignal
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:payload:SendAutomationSignal'
, sendAutomationSignal_payload
- The data sent with the signal. The data schema depends on the type of
signal used in the request.
For Approve
and Reject
signal types, the payload is an optional
comment that you can send with the signal type. For example:
Comment="Looks good"
For StartStep
and Resume
signal types, you must send the name of the
Automation step to start or resume as the payload. For example:
StepName="step1"
For the StopStep
signal type, you must send the step execution ID as
the payload. For example:
StepExecutionId="97fff367-fc5a-4299-aed8-0123456789ab"
$sel:automationExecutionId:SendAutomationSignal'
, sendAutomationSignal_automationExecutionId
- The unique identifier for an existing Automation execution that you want
to send the signal to.
$sel:signalType:SendAutomationSignal'
, sendAutomationSignal_signalType
- The type of signal to send to an Automation execution.
Request Lenses
sendAutomationSignal_payload :: Lens' SendAutomationSignal (Maybe (HashMap Text [Text])) Source #
The data sent with the signal. The data schema depends on the type of signal used in the request.
For Approve
and Reject
signal types, the payload is an optional
comment that you can send with the signal type. For example:
Comment="Looks good"
For StartStep
and Resume
signal types, you must send the name of the
Automation step to start or resume as the payload. For example:
StepName="step1"
For the StopStep
signal type, you must send the step execution ID as
the payload. For example:
StepExecutionId="97fff367-fc5a-4299-aed8-0123456789ab"
sendAutomationSignal_automationExecutionId :: Lens' SendAutomationSignal Text Source #
The unique identifier for an existing Automation execution that you want to send the signal to.
sendAutomationSignal_signalType :: Lens' SendAutomationSignal SignalType Source #
The type of signal to send to an Automation execution.
Destructuring the Response
data SendAutomationSignalResponse Source #
See: newSendAutomationSignalResponse
smart constructor.
SendAutomationSignalResponse' | |
|
Instances
newSendAutomationSignalResponse Source #
Create a value of SendAutomationSignalResponse
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:SendAutomationSignalResponse'
, sendAutomationSignalResponse_httpStatus
- The response's http status code.
Response Lenses
sendAutomationSignalResponse_httpStatus :: Lens' SendAutomationSignalResponse Int Source #
The response's http status code.