- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
SendAutomationSignalCommand
Sends a signal to an Automation execution to change the current behavior or status of the execution.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { SSMClient, SendAutomationSignalCommand } from "@aws-sdk/client-ssm"; // ES Modules import
// const { SSMClient, SendAutomationSignalCommand } = require("@aws-sdk/client-ssm"); // CommonJS import
const client = new SSMClient(config);
const input = { // SendAutomationSignalRequest
AutomationExecutionId: "STRING_VALUE", // required
SignalType: "Approve" || "Reject" || "StartStep" || "StopStep" || "Resume", // required
Payload: { // AutomationParameterMap
"<keys>": [ // AutomationParameterValueList
"STRING_VALUE",
],
},
};
const command = new SendAutomationSignalCommand(input);
const response = await client.send(command);
// {};
SendAutomationSignalCommand Input
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
AutomationExecutionId Required | string | undefined | The unique identifier for an existing Automation execution that you want to send the signal to. |
SignalType Required | SignalType | undefined | The type of signal to send to an Automation execution. |
Payload | Record<string, string[]> | undefined | The data sent with the signal. The data schema depends on the type of signal used in the request. For For For the |
SendAutomationSignalCommand Output
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
AutomationExecutionNotFoundException | client | There is no automation execution information for the requested automation execution ID. |
AutomationStepNotFoundException | client | The specified step name and execution ID don't exist. Verify the information and try again. |
InternalServerError | server | An error occurred on the server side. |
InvalidAutomationSignalException | client | The signal isn't valid for the current Automation execution. |
SSMServiceException | Base exception class for all service exceptions from SSM service. |