Struct aws_sdk_ssm::model::step_execution::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for StepExecution
Implementations
sourceimpl Builder
impl Builder
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 build(self) -> StepExecution
pub fn build(self) -> StepExecution
Consumes the builder and constructs a StepExecution
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more