Struct aws_sdk_ssm::types::builders::StepExecutionBuilder   
source · #[non_exhaustive]pub struct StepExecutionBuilder { /* private fields */ }Expand description
A builder for StepExecution.
Implementations§
source§impl StepExecutionBuilder
 
impl StepExecutionBuilder
sourcepub fn set_step_name(self, input: Option<String>) -> Self
 
pub fn set_step_name(self, input: Option<String>) -> Self
The name of this execution step.
sourcepub fn action(self, input: impl Into<String>) -> Self
 
pub fn action(self, input: impl Into<String>) -> Self
The action this step performs. The action determines the behavior of the step.
sourcepub fn set_action(self, input: Option<String>) -> Self
 
pub fn set_action(self, input: Option<String>) -> Self
The action this step performs. The action determines the behavior of the step.
sourcepub fn timeout_seconds(self, input: i64) -> Self
 
pub fn timeout_seconds(self, input: i64) -> Self
The timeout seconds of the step.
sourcepub fn set_timeout_seconds(self, input: Option<i64>) -> Self
 
pub fn set_timeout_seconds(self, input: Option<i64>) -> Self
The timeout seconds of the step.
sourcepub fn on_failure(self, input: impl Into<String>) -> Self
 
pub fn on_failure(self, input: impl Into<String>) -> Self
The action to take if the step fails. The default value is Abort.
sourcepub fn set_on_failure(self, input: Option<String>) -> Self
 
pub fn set_on_failure(self, input: Option<String>) -> Self
The action to take if the step fails. The default value is Abort.
sourcepub fn max_attempts(self, input: i32) -> Self
 
pub fn max_attempts(self, input: i32) -> Self
The maximum number of tries to run the action of the step. The default value is 1.
sourcepub fn set_max_attempts(self, input: Option<i32>) -> Self
 
pub fn set_max_attempts(self, input: Option<i32>) -> Self
The maximum number of tries to run the action of the step. The default value is 1.
sourcepub fn execution_start_time(self, input: DateTime) -> Self
 
pub fn execution_start_time(self, input: DateTime) -> Self
If a step has begun execution, this contains the time the step started. If the step is in Pending status, this field isn't populated.
sourcepub fn set_execution_start_time(self, input: Option<DateTime>) -> Self
 
pub fn set_execution_start_time(self, input: Option<DateTime>) -> Self
If a step has begun execution, this contains the time the step started. If the step is in Pending status, this field isn't populated.
sourcepub fn execution_end_time(self, input: DateTime) -> Self
 
pub fn execution_end_time(self, input: DateTime) -> Self
If a step has finished execution, this contains the time the execution ended. If the step hasn't yet concluded, this field isn't populated.
sourcepub fn set_execution_end_time(self, input: Option<DateTime>) -> Self
 
pub fn set_execution_end_time(self, input: Option<DateTime>) -> Self
If a step has finished execution, this contains the time the execution ended. If the step hasn't yet concluded, this field isn't populated.
sourcepub fn step_status(self, input: AutomationExecutionStatus) -> Self
 
pub fn step_status(self, input: AutomationExecutionStatus) -> Self
The execution status for this step.
sourcepub fn set_step_status(self, input: Option<AutomationExecutionStatus>) -> Self
 
pub fn set_step_status(self, input: Option<AutomationExecutionStatus>) -> Self
The execution status for this step.
sourcepub fn response_code(self, input: impl Into<String>) -> Self
 
pub fn response_code(self, input: impl Into<String>) -> Self
The response code returned by the execution of the step.
sourcepub fn set_response_code(self, input: Option<String>) -> Self
 
pub fn set_response_code(self, input: Option<String>) -> Self
The response code returned by the execution of the step.
sourcepub fn inputs(self, k: impl Into<String>, v: impl Into<String>) -> Self
 
pub fn inputs(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to inputs.
To override the contents of this collection use set_inputs.
Fully-resolved values passed into the step before execution.
sourcepub fn set_inputs(self, input: Option<HashMap<String, String>>) -> Self
 
pub fn set_inputs(self, input: Option<HashMap<String, String>>) -> Self
Fully-resolved values passed into the step before execution.
sourcepub fn outputs(self, k: impl Into<String>, v: Vec<String>) -> Self
 
pub fn outputs(self, k: impl Into<String>, v: Vec<String>) -> Self
Adds a key-value pair to outputs.
To override the contents of this collection use set_outputs.
Returned values from the execution of the step.
sourcepub fn set_outputs(self, input: Option<HashMap<String, Vec<String>>>) -> Self
 
pub fn set_outputs(self, input: Option<HashMap<String, Vec<String>>>) -> Self
Returned values from the execution of the step.
sourcepub fn response(self, input: impl Into<String>) -> Self
 
pub fn response(self, input: impl Into<String>) -> Self
A message associated with the response code for an execution.
sourcepub fn set_response(self, input: Option<String>) -> Self
 
pub fn set_response(self, input: Option<String>) -> Self
A message associated with the response code for an execution.
sourcepub fn failure_message(self, input: impl Into<String>) -> Self
 
pub fn failure_message(self, input: impl Into<String>) -> Self
If a step failed, this message explains why the execution failed.
sourcepub fn set_failure_message(self, input: Option<String>) -> Self
 
pub fn set_failure_message(self, input: Option<String>) -> Self
If a step failed, this message explains why the execution failed.
sourcepub fn failure_details(self, input: FailureDetails) -> Self
 
pub fn failure_details(self, input: FailureDetails) -> Self
Information about the Automation failure.
sourcepub fn set_failure_details(self, input: Option<FailureDetails>) -> Self
 
pub fn set_failure_details(self, input: Option<FailureDetails>) -> Self
Information about the Automation failure.
sourcepub fn step_execution_id(self, input: impl Into<String>) -> Self
 
pub fn step_execution_id(self, input: impl Into<String>) -> Self
The unique ID of a step execution.
sourcepub fn set_step_execution_id(self, input: Option<String>) -> Self
 
pub fn set_step_execution_id(self, input: Option<String>) -> Self
The unique ID of a step execution.
sourcepub fn overridden_parameters(self, k: impl Into<String>, v: Vec<String>) -> Self
 
pub fn overridden_parameters(self, k: impl Into<String>, v: Vec<String>) -> Self
Adds a key-value pair to overridden_parameters.
To override the contents of this collection use set_overridden_parameters.
A user-specified list of parameters to override when running a step.
sourcepub fn set_overridden_parameters(
    self,
    input: Option<HashMap<String, Vec<String>>>
) -> Self
 
pub fn set_overridden_parameters( self, input: Option<HashMap<String, Vec<String>>> ) -> Self
A user-specified list of parameters to override when running a step.
sourcepub fn is_end(self, input: bool) -> Self
 
pub fn is_end(self, input: bool) -> Self
The flag which can be used to end automation no matter whether the step succeeds or fails.
sourcepub fn set_is_end(self, input: Option<bool>) -> Self
 
pub fn set_is_end(self, input: Option<bool>) -> Self
The flag which can be used to end automation no matter whether the step succeeds or fails.
sourcepub fn next_step(self, input: impl Into<String>) -> Self
 
pub fn next_step(self, input: impl Into<String>) -> Self
The next step after the step succeeds.
sourcepub fn set_next_step(self, input: Option<String>) -> Self
 
pub fn set_next_step(self, input: Option<String>) -> Self
The next step after the step succeeds.
sourcepub fn is_critical(self, input: bool) -> Self
 
pub fn is_critical(self, input: bool) -> Self
The flag which can be used to help decide whether the failure of current step leads to the Automation failure.
sourcepub fn set_is_critical(self, input: Option<bool>) -> Self
 
pub fn set_is_critical(self, input: Option<bool>) -> Self
The flag which can be used to help decide whether the failure of current step leads to the Automation failure.
sourcepub fn valid_next_steps(self, input: impl Into<String>) -> Self
 
pub fn valid_next_steps(self, input: impl Into<String>) -> Self
Appends an item to valid_next_steps.
To override the contents of this collection use set_valid_next_steps.
Strategies used when step fails, we support Continue and Abort. Abort will fail the automation when the step fails. Continue will ignore the failure of current step and allow automation to run the next step. With conditional branching, we add step:stepName to support the automation to go to another specific step.
sourcepub fn set_valid_next_steps(self, input: Option<Vec<String>>) -> Self
 
pub fn set_valid_next_steps(self, input: Option<Vec<String>>) -> Self
Strategies used when step fails, we support Continue and Abort. Abort will fail the automation when the step fails. Continue will ignore the failure of current step and allow automation to run the next step. With conditional branching, we add step:stepName to support the automation to go to another specific step.
sourcepub fn targets(self, input: Target) -> Self
 
pub fn targets(self, input: Target) -> Self
Appends an item to targets.
To override the contents of this collection use set_targets.
The targets for the step execution.
sourcepub fn set_targets(self, input: Option<Vec<Target>>) -> Self
 
pub fn set_targets(self, input: Option<Vec<Target>>) -> Self
The targets for the step execution.
sourcepub fn target_location(self, input: TargetLocation) -> Self
 
pub fn target_location(self, input: TargetLocation) -> Self
The combination of Amazon Web Services Regions and Amazon Web Services accounts targeted by the current Automation execution.
sourcepub fn set_target_location(self, input: Option<TargetLocation>) -> Self
 
pub fn set_target_location(self, input: Option<TargetLocation>) -> Self
The combination of Amazon Web Services Regions and Amazon Web Services accounts targeted by the current Automation execution.
sourcepub fn triggered_alarms(self, input: AlarmStateInformation) -> Self
 
pub fn triggered_alarms(self, input: AlarmStateInformation) -> Self
Appends an item to triggered_alarms.
To override the contents of this collection use set_triggered_alarms.
The CloudWatch alarms that were invoked by the automation.
sourcepub fn set_triggered_alarms(
    self,
    input: Option<Vec<AlarmStateInformation>>
) -> Self
 
pub fn set_triggered_alarms( self, input: Option<Vec<AlarmStateInformation>> ) -> Self
The CloudWatch alarms that were invoked by the automation.
sourcepub fn build(self) -> StepExecution
 
pub fn build(self) -> StepExecution
Consumes the builder and constructs a StepExecution.
Trait Implementations§
source§impl Clone for StepExecutionBuilder
 
impl Clone for StepExecutionBuilder
source§fn clone(&self) -> StepExecutionBuilder
 
fn clone(&self) -> StepExecutionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for StepExecutionBuilder
 
impl Debug for StepExecutionBuilder
source§impl Default for StepExecutionBuilder
 
impl Default for StepExecutionBuilder
source§fn default() -> StepExecutionBuilder
 
fn default() -> StepExecutionBuilder
source§impl PartialEq<StepExecutionBuilder> for StepExecutionBuilder
 
impl PartialEq<StepExecutionBuilder> for StepExecutionBuilder
source§fn eq(&self, other: &StepExecutionBuilder) -> bool
 
fn eq(&self, other: &StepExecutionBuilder) -> bool
self and other values to be equal, and is used
by ==.