Struct aws_sdk_ssm::client::fluent_builders::SendAutomationSignal
source · [−]pub struct SendAutomationSignal<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }
Expand description
Fluent builder constructing a request to SendAutomationSignal
.
Sends a signal to an Automation execution to change the current behavior or status of the execution.
Implementations
impl<C, M, R> SendAutomationSignal<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> SendAutomationSignal<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<SendAutomationSignalOutput, SdkError<SendAutomationSignalError>> where
R::Policy: SmithyRetryPolicy<SendAutomationSignalInputOperationOutputAlias, SendAutomationSignalOutput, SendAutomationSignalError, SendAutomationSignalInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<SendAutomationSignalOutput, SdkError<SendAutomationSignalError>> where
R::Policy: SmithyRetryPolicy<SendAutomationSignalInputOperationOutputAlias, SendAutomationSignalOutput, SendAutomationSignalError, SendAutomationSignalInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
The unique identifier for an existing Automation execution that you want to send the signal to.
The unique identifier for an existing Automation execution that you want to send the signal to.
The type of signal to send to an Automation execution.
The type of signal to send to an Automation execution.
Adds a key-value pair to Payload
.
To override the contents of this collection use set_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"
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"
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for SendAutomationSignal<C, M, R>
impl<C, M, R> Send for SendAutomationSignal<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for SendAutomationSignal<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for SendAutomationSignal<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for SendAutomationSignal<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more