send_automation_signal
¶
send_automation_signal(
automation_execution_id: AutomationExecutionId,
signal_type: SignalType,
*,
config_overrides: Optional[SSMClientConfig] = None,
payload: Optional[AutomationParameterMap] = None,
) -> SendAutomationSignalResult
Sends a signal to an Automation execution to change the current behavior or status of the execution.
Parameters:
-
automation_execution_id(AutomationExecutionId) –The unique identifier for an existing Automation execution that you want to send the signal to.
-
signal_type(SignalType) –The type of signal to send to an Automation execution.
-
payload(Optional[AutomationParameterMap], default:None) –The data sent with the signal. The data schema depends on the type of signal used in the request.
For
ApproveandRejectsignal types, the payload is an optional comment that you can send with the signal type. For example:Comment="Looks good"For
StartStepandResumesignal types, you must send the name of the Automation step to start or resume as the payload. For example:StepName="step1"For the
StopStepsignal type, you must send the step execution ID as the payload. For example:StepExecutionId="97fff367-fc5a-4299-aed8-0123456789ab"
Raises:
-
AutomationExecutionNotFoundException–There is no automation execution information for the requested automation execution ID.
-
AutomationStepNotFoundException–The specified step name and execution ID don't exist. Verify the information and try again.
-
InternalServerError–An error occurred on the server side.
-
InvalidAutomationSignalException–The signal isn't valid for the current Automation execution.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ssm/_services/ssm.py
10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 | |