#[non_exhaustive]
pub struct AutomationExecutionBuilder { /* private fields */ }
Expand description

A builder for AutomationExecution.

Implementations§

source§

impl AutomationExecutionBuilder

source

pub fn automation_execution_id(self, input: impl Into<String>) -> Self

The execution ID.

source

pub fn set_automation_execution_id(self, input: Option<String>) -> Self

The execution ID.

source

pub fn get_automation_execution_id(&self) -> &Option<String>

The execution ID.

source

pub fn document_name(self, input: impl Into<String>) -> Self

The name of the Automation runbook used during the execution.

source

pub fn set_document_name(self, input: Option<String>) -> Self

The name of the Automation runbook used during the execution.

source

pub fn get_document_name(&self) -> &Option<String>

The name of the Automation runbook used during the execution.

source

pub fn document_version(self, input: impl Into<String>) -> Self

The version of the document to use during execution.

source

pub fn set_document_version(self, input: Option<String>) -> Self

The version of the document to use during execution.

source

pub fn get_document_version(&self) -> &Option<String>

The version of the document to use during execution.

source

pub fn execution_start_time(self, input: DateTime) -> Self

The time the execution started.

source

pub fn set_execution_start_time(self, input: Option<DateTime>) -> Self

The time the execution started.

source

pub fn get_execution_start_time(&self) -> &Option<DateTime>

The time the execution started.

source

pub fn execution_end_time(self, input: DateTime) -> Self

The time the execution finished.

source

pub fn set_execution_end_time(self, input: Option<DateTime>) -> Self

The time the execution finished.

source

pub fn get_execution_end_time(&self) -> &Option<DateTime>

The time the execution finished.

source

pub fn automation_execution_status( self, input: AutomationExecutionStatus ) -> Self

The execution status of the Automation.

source

pub fn set_automation_execution_status( self, input: Option<AutomationExecutionStatus> ) -> Self

The execution status of the Automation.

source

pub fn get_automation_execution_status( &self ) -> &Option<AutomationExecutionStatus>

The execution status of the Automation.

source

pub fn step_executions(self, input: StepExecution) -> Self

Appends an item to step_executions.

To override the contents of this collection use set_step_executions.

A list of details about the current state of all steps that comprise an execution. An Automation runbook contains a list of steps that are run in order.

source

pub fn set_step_executions(self, input: Option<Vec<StepExecution>>) -> Self

A list of details about the current state of all steps that comprise an execution. An Automation runbook contains a list of steps that are run in order.

source

pub fn get_step_executions(&self) -> &Option<Vec<StepExecution>>

A list of details about the current state of all steps that comprise an execution. An Automation runbook contains a list of steps that are run in order.

source

pub fn step_executions_truncated(self, input: bool) -> Self

A boolean value that indicates if the response contains the full list of the Automation step executions. If true, use the DescribeAutomationStepExecutions API operation to get the full list of step executions.

source

pub fn set_step_executions_truncated(self, input: Option<bool>) -> Self

A boolean value that indicates if the response contains the full list of the Automation step executions. If true, use the DescribeAutomationStepExecutions API operation to get the full list of step executions.

source

pub fn get_step_executions_truncated(&self) -> &Option<bool>

A boolean value that indicates if the response contains the full list of the Automation step executions. If true, use the DescribeAutomationStepExecutions API operation to get the full list of step executions.

source

pub fn parameters(self, k: impl Into<String>, v: Vec<String>) -> Self

Adds a key-value pair to parameters.

To override the contents of this collection use set_parameters.

The key-value map of execution parameters, which were supplied when calling StartAutomationExecution.

source

pub fn set_parameters(self, input: Option<HashMap<String, Vec<String>>>) -> Self

The key-value map of execution parameters, which were supplied when calling StartAutomationExecution.

source

pub fn get_parameters(&self) -> &Option<HashMap<String, Vec<String>>>

The key-value map of execution parameters, which were supplied when calling StartAutomationExecution.

source

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.

The list of execution outputs as defined in the Automation runbook.

source

pub fn set_outputs(self, input: Option<HashMap<String, Vec<String>>>) -> Self

The list of execution outputs as defined in the Automation runbook.

source

pub fn get_outputs(&self) -> &Option<HashMap<String, Vec<String>>>

The list of execution outputs as defined in the Automation runbook.

source

pub fn failure_message(self, input: impl Into<String>) -> Self

A message describing why an execution has failed, if the status is set to Failed.

source

pub fn set_failure_message(self, input: Option<String>) -> Self

A message describing why an execution has failed, if the status is set to Failed.

source

pub fn get_failure_message(&self) -> &Option<String>

A message describing why an execution has failed, if the status is set to Failed.

source

pub fn mode(self, input: ExecutionMode) -> Self

The automation execution mode.

source

pub fn set_mode(self, input: Option<ExecutionMode>) -> Self

The automation execution mode.

source

pub fn get_mode(&self) -> &Option<ExecutionMode>

The automation execution mode.

source

pub fn parent_automation_execution_id(self, input: impl Into<String>) -> Self

The AutomationExecutionId of the parent automation.

source

pub fn set_parent_automation_execution_id(self, input: Option<String>) -> Self

The AutomationExecutionId of the parent automation.

source

pub fn get_parent_automation_execution_id(&self) -> &Option<String>

The AutomationExecutionId of the parent automation.

source

pub fn executed_by(self, input: impl Into<String>) -> Self

The Amazon Resource Name (ARN) of the user who ran the automation.

source

pub fn set_executed_by(self, input: Option<String>) -> Self

The Amazon Resource Name (ARN) of the user who ran the automation.

source

pub fn get_executed_by(&self) -> &Option<String>

The Amazon Resource Name (ARN) of the user who ran the automation.

source

pub fn current_step_name(self, input: impl Into<String>) -> Self

The name of the step that is currently running.

source

pub fn set_current_step_name(self, input: Option<String>) -> Self

The name of the step that is currently running.

source

pub fn get_current_step_name(&self) -> &Option<String>

The name of the step that is currently running.

source

pub fn current_action(self, input: impl Into<String>) -> Self

The action of the step that is currently running.

source

pub fn set_current_action(self, input: Option<String>) -> Self

The action of the step that is currently running.

source

pub fn get_current_action(&self) -> &Option<String>

The action of the step that is currently running.

source

pub fn target_parameter_name(self, input: impl Into<String>) -> Self

The parameter name.

source

pub fn set_target_parameter_name(self, input: Option<String>) -> Self

The parameter name.

source

pub fn get_target_parameter_name(&self) -> &Option<String>

The parameter name.

source

pub fn targets(self, input: Target) -> Self

Appends an item to targets.

To override the contents of this collection use set_targets.

The specified targets.

source

pub fn set_targets(self, input: Option<Vec<Target>>) -> Self

The specified targets.

source

pub fn get_targets(&self) -> &Option<Vec<Target>>

The specified targets.

source

pub fn target_maps(self, input: HashMap<String, Vec<String>>) -> Self

Appends an item to target_maps.

To override the contents of this collection use set_target_maps.

The specified key-value mapping of document parameters to target resources.

source

pub fn set_target_maps( self, input: Option<Vec<HashMap<String, Vec<String>>>> ) -> Self

The specified key-value mapping of document parameters to target resources.

source

pub fn get_target_maps(&self) -> &Option<Vec<HashMap<String, Vec<String>>>>

The specified key-value mapping of document parameters to target resources.

source

pub fn resolved_targets(self, input: ResolvedTargets) -> Self

A list of resolved targets in the rate control execution.

source

pub fn set_resolved_targets(self, input: Option<ResolvedTargets>) -> Self

A list of resolved targets in the rate control execution.

source

pub fn get_resolved_targets(&self) -> &Option<ResolvedTargets>

A list of resolved targets in the rate control execution.

source

pub fn max_concurrency(self, input: impl Into<String>) -> Self

The MaxConcurrency value specified by the user when the execution started.

source

pub fn set_max_concurrency(self, input: Option<String>) -> Self

The MaxConcurrency value specified by the user when the execution started.

source

pub fn get_max_concurrency(&self) -> &Option<String>

The MaxConcurrency value specified by the user when the execution started.

source

pub fn max_errors(self, input: impl Into<String>) -> Self

The MaxErrors value specified by the user when the execution started.

source

pub fn set_max_errors(self, input: Option<String>) -> Self

The MaxErrors value specified by the user when the execution started.

source

pub fn get_max_errors(&self) -> &Option<String>

The MaxErrors value specified by the user when the execution started.

source

pub fn target(self, input: impl Into<String>) -> Self

The target of the execution.

source

pub fn set_target(self, input: Option<String>) -> Self

The target of the execution.

source

pub fn get_target(&self) -> &Option<String>

The target of the execution.

source

pub fn target_locations(self, input: TargetLocation) -> Self

Appends an item to target_locations.

To override the contents of this collection use set_target_locations.

The combination of Amazon Web Services Regions and/or Amazon Web Services accounts where you want to run the Automation.

source

pub fn set_target_locations(self, input: Option<Vec<TargetLocation>>) -> Self

The combination of Amazon Web Services Regions and/or Amazon Web Services accounts where you want to run the Automation.

source

pub fn get_target_locations(&self) -> &Option<Vec<TargetLocation>>

The combination of Amazon Web Services Regions and/or Amazon Web Services accounts where you want to run the Automation.

source

pub fn progress_counters(self, input: ProgressCounters) -> Self

An aggregate of step execution statuses displayed in the Amazon Web Services Systems Manager console for a multi-Region and multi-account Automation execution.

source

pub fn set_progress_counters(self, input: Option<ProgressCounters>) -> Self

An aggregate of step execution statuses displayed in the Amazon Web Services Systems Manager console for a multi-Region and multi-account Automation execution.

source

pub fn get_progress_counters(&self) -> &Option<ProgressCounters>

An aggregate of step execution statuses displayed in the Amazon Web Services Systems Manager console for a multi-Region and multi-account Automation execution.

source

pub fn alarm_configuration(self, input: AlarmConfiguration) -> Self

The details for the CloudWatch alarm applied to your automation.

source

pub fn set_alarm_configuration(self, input: Option<AlarmConfiguration>) -> Self

The details for the CloudWatch alarm applied to your automation.

source

pub fn get_alarm_configuration(&self) -> &Option<AlarmConfiguration>

The details for the CloudWatch alarm applied to your automation.

source

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 alarm that was invoked by the automation.

source

pub fn set_triggered_alarms( self, input: Option<Vec<AlarmStateInformation>> ) -> Self

The CloudWatch alarm that was invoked by the automation.

source

pub fn get_triggered_alarms(&self) -> &Option<Vec<AlarmStateInformation>>

The CloudWatch alarm that was invoked by the automation.

source

pub fn automation_subtype(self, input: AutomationSubtype) -> Self

The subtype of the Automation operation. Currently, the only supported value is ChangeRequest.

source

pub fn set_automation_subtype(self, input: Option<AutomationSubtype>) -> Self

The subtype of the Automation operation. Currently, the only supported value is ChangeRequest.

source

pub fn get_automation_subtype(&self) -> &Option<AutomationSubtype>

The subtype of the Automation operation. Currently, the only supported value is ChangeRequest.

source

pub fn scheduled_time(self, input: DateTime) -> Self

The date and time the Automation operation is scheduled to start.

source

pub fn set_scheduled_time(self, input: Option<DateTime>) -> Self

The date and time the Automation operation is scheduled to start.

source

pub fn get_scheduled_time(&self) -> &Option<DateTime>

The date and time the Automation operation is scheduled to start.

source

pub fn runbooks(self, input: Runbook) -> Self

Appends an item to runbooks.

To override the contents of this collection use set_runbooks.

Information about the Automation runbooks that are run as part of a runbook workflow.

The Automation runbooks specified for the runbook workflow can't run until all required approvals for the change request have been received.

source

pub fn set_runbooks(self, input: Option<Vec<Runbook>>) -> Self

Information about the Automation runbooks that are run as part of a runbook workflow.

The Automation runbooks specified for the runbook workflow can't run until all required approvals for the change request have been received.

source

pub fn get_runbooks(&self) -> &Option<Vec<Runbook>>

Information about the Automation runbooks that are run as part of a runbook workflow.

The Automation runbooks specified for the runbook workflow can't run until all required approvals for the change request have been received.

source

pub fn ops_item_id(self, input: impl Into<String>) -> Self

The ID of an OpsItem that is created to represent a Change Manager change request.

source

pub fn set_ops_item_id(self, input: Option<String>) -> Self

The ID of an OpsItem that is created to represent a Change Manager change request.

source

pub fn get_ops_item_id(&self) -> &Option<String>

The ID of an OpsItem that is created to represent a Change Manager change request.

source

pub fn association_id(self, input: impl Into<String>) -> Self

The ID of a State Manager association used in the Automation operation.

source

pub fn set_association_id(self, input: Option<String>) -> Self

The ID of a State Manager association used in the Automation operation.

source

pub fn get_association_id(&self) -> &Option<String>

The ID of a State Manager association used in the Automation operation.

source

pub fn change_request_name(self, input: impl Into<String>) -> Self

The name of the Change Manager change request.

source

pub fn set_change_request_name(self, input: Option<String>) -> Self

The name of the Change Manager change request.

source

pub fn get_change_request_name(&self) -> &Option<String>

The name of the Change Manager change request.

source

pub fn variables(self, k: impl Into<String>, v: Vec<String>) -> Self

Adds a key-value pair to variables.

To override the contents of this collection use set_variables.

Variables defined for the automation.

source

pub fn set_variables(self, input: Option<HashMap<String, Vec<String>>>) -> Self

Variables defined for the automation.

source

pub fn get_variables(&self) -> &Option<HashMap<String, Vec<String>>>

Variables defined for the automation.

source

pub fn build(self) -> AutomationExecution

Consumes the builder and constructs a AutomationExecution.

Trait Implementations§

source§

impl Clone for AutomationExecutionBuilder

source§

fn clone(&self) -> AutomationExecutionBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for AutomationExecutionBuilder

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for AutomationExecutionBuilder

source§

fn default() -> AutomationExecutionBuilder

Returns the “default value” for a type. Read more
source§

impl PartialEq for AutomationExecutionBuilder

source§

fn eq(&self, other: &AutomationExecutionBuilder) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for AutomationExecutionBuilder

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

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
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more