Struct aws_sdk_ssm::operation::send_automation_signal::builders::SendAutomationSignalInputBuilder
source · #[non_exhaustive]pub struct SendAutomationSignalInputBuilder { /* private fields */ }
Expand description
A builder for SendAutomationSignalInput
.
Implementations§
source§impl SendAutomationSignalInputBuilder
impl SendAutomationSignalInputBuilder
sourcepub fn automation_execution_id(self, input: impl Into<String>) -> Self
pub fn automation_execution_id(self, input: impl Into<String>) -> Self
The unique identifier for an existing Automation execution that you want to send the signal to.
This field is required.sourcepub fn set_automation_execution_id(self, input: Option<String>) -> Self
pub fn set_automation_execution_id(self, input: Option<String>) -> Self
The unique identifier for an existing Automation execution that you want to send the signal to.
sourcepub fn get_automation_execution_id(&self) -> &Option<String>
pub fn get_automation_execution_id(&self) -> &Option<String>
The unique identifier for an existing Automation execution that you want to send the signal to.
sourcepub fn signal_type(self, input: SignalType) -> Self
pub fn signal_type(self, input: SignalType) -> Self
The type of signal to send to an Automation execution.
This field is required.sourcepub fn set_signal_type(self, input: Option<SignalType>) -> Self
pub fn set_signal_type(self, input: Option<SignalType>) -> Self
The type of signal to send to an Automation execution.
sourcepub fn get_signal_type(&self) -> &Option<SignalType>
pub fn get_signal_type(&self) -> &Option<SignalType>
The type of signal to send to an Automation execution.
sourcepub fn payload(self, k: impl Into<String>, v: Vec<String>) -> Self
pub fn payload(self, k: impl Into<String>, v: Vec<String>) -> Self
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"
sourcepub fn set_payload(self, input: Option<HashMap<String, Vec<String>>>) -> Self
pub fn set_payload(self, input: Option<HashMap<String, Vec<String>>>) -> Self
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"
sourcepub fn get_payload(&self) -> &Option<HashMap<String, Vec<String>>>
pub fn get_payload(&self) -> &Option<HashMap<String, Vec<String>>>
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"
sourcepub fn build(self) -> Result<SendAutomationSignalInput, BuildError>
pub fn build(self) -> Result<SendAutomationSignalInput, BuildError>
Consumes the builder and constructs a SendAutomationSignalInput
.
source§impl SendAutomationSignalInputBuilder
impl SendAutomationSignalInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<SendAutomationSignalOutput, SdkError<SendAutomationSignalError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<SendAutomationSignalOutput, SdkError<SendAutomationSignalError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for SendAutomationSignalInputBuilder
impl Clone for SendAutomationSignalInputBuilder
source§fn clone(&self) -> SendAutomationSignalInputBuilder
fn clone(&self) -> SendAutomationSignalInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for SendAutomationSignalInputBuilder
impl Default for SendAutomationSignalInputBuilder
source§fn default() -> SendAutomationSignalInputBuilder
fn default() -> SendAutomationSignalInputBuilder
source§impl PartialEq for SendAutomationSignalInputBuilder
impl PartialEq for SendAutomationSignalInputBuilder
source§fn eq(&self, other: &SendAutomationSignalInputBuilder) -> bool
fn eq(&self, other: &SendAutomationSignalInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.