send_automation_signal
async
¶
send_automation_signal(
automation_execution_id: AutomationExecutionId,
signal_type: SignalType,
*,
config_overrides: Optional[AsyncSSMClientConfig] = 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/async_ssm.py
10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 | |