aws_sdk_ssm/client/stop_automation_execution.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`StopAutomationExecution`](crate::operation::stop_automation_execution::builders::StopAutomationExecutionFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`automation_execution_id(impl Into<String>)`](crate::operation::stop_automation_execution::builders::StopAutomationExecutionFluentBuilder::automation_execution_id) / [`set_automation_execution_id(Option<String>)`](crate::operation::stop_automation_execution::builders::StopAutomationExecutionFluentBuilder::set_automation_execution_id):<br>required: **true**<br><p>The execution ID of the Automation to stop.</p><br>
7 /// - [`r#type(StopType)`](crate::operation::stop_automation_execution::builders::StopAutomationExecutionFluentBuilder::type) / [`set_type(Option<StopType>)`](crate::operation::stop_automation_execution::builders::StopAutomationExecutionFluentBuilder::set_type):<br>required: **false**<br><p>The stop request type. Valid types include the following: Cancel and Complete. The default type is Cancel.</p><br>
8 /// - On success, responds with [`StopAutomationExecutionOutput`](crate::operation::stop_automation_execution::StopAutomationExecutionOutput)
9 /// - On failure, responds with [`SdkError<StopAutomationExecutionError>`](crate::operation::stop_automation_execution::StopAutomationExecutionError)
10 pub fn stop_automation_execution(&self) -> crate::operation::stop_automation_execution::builders::StopAutomationExecutionFluentBuilder {
11 crate::operation::stop_automation_execution::builders::StopAutomationExecutionFluentBuilder::new(self.handle.clone())
12 }
13}