Struct aws_sdk_ssm::operation::send_automation_signal::builders::SendAutomationSignalFluentBuilder
source · pub struct SendAutomationSignalFluentBuilder { /* 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§
source§impl SendAutomationSignalFluentBuilder
impl SendAutomationSignalFluentBuilder
sourcepub fn as_input(&self) -> &SendAutomationSignalInputBuilder
pub fn as_input(&self) -> &SendAutomationSignalInputBuilder
Access the SendAutomationSignal as a reference.
sourcepub async fn send(
self
) -> Result<SendAutomationSignalOutput, SdkError<SendAutomationSignalError, HttpResponse>>
pub async fn send( self ) -> Result<SendAutomationSignalOutput, SdkError<SendAutomationSignalError, HttpResponse>>
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.
sourcepub fn customize(
self
) -> CustomizableOperation<SendAutomationSignalOutput, SendAutomationSignalError, Self>
pub fn customize( self ) -> CustomizableOperation<SendAutomationSignalOutput, SendAutomationSignalError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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.
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.
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"
Trait Implementations§
source§impl Clone for SendAutomationSignalFluentBuilder
impl Clone for SendAutomationSignalFluentBuilder
source§fn clone(&self) -> SendAutomationSignalFluentBuilder
fn clone(&self) -> SendAutomationSignalFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for SendAutomationSignalFluentBuilder
impl !RefUnwindSafe for SendAutomationSignalFluentBuilder
impl Send for SendAutomationSignalFluentBuilder
impl Sync for SendAutomationSignalFluentBuilder
impl Unpin for SendAutomationSignalFluentBuilder
impl !UnwindSafe for SendAutomationSignalFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more