aws_sdk_evidently/client/
stop_launch.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 [`StopLaunch`](crate::operation::stop_launch::builders::StopLaunchFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`project(impl Into<String>)`](crate::operation::stop_launch::builders::StopLaunchFluentBuilder::project) / [`set_project(Option<String>)`](crate::operation::stop_launch::builders::StopLaunchFluentBuilder::set_project):<br>required: **true**<br><p>The name or ARN of the project that contains the launch that you want to stop.</p><br>
7    ///   - [`launch(impl Into<String>)`](crate::operation::stop_launch::builders::StopLaunchFluentBuilder::launch) / [`set_launch(Option<String>)`](crate::operation::stop_launch::builders::StopLaunchFluentBuilder::set_launch):<br>required: **true**<br><p>The name of the launch to stop.</p><br>
8    ///   - [`desired_state(LaunchStopDesiredState)`](crate::operation::stop_launch::builders::StopLaunchFluentBuilder::desired_state) / [`set_desired_state(Option<LaunchStopDesiredState>)`](crate::operation::stop_launch::builders::StopLaunchFluentBuilder::set_desired_state):<br>required: **false**<br><p>Specify whether to consider the launch as <code>COMPLETED</code> or <code>CANCELLED</code> after it stops.</p><br>
9    ///   - [`reason(impl Into<String>)`](crate::operation::stop_launch::builders::StopLaunchFluentBuilder::reason) / [`set_reason(Option<String>)`](crate::operation::stop_launch::builders::StopLaunchFluentBuilder::set_reason):<br>required: **false**<br><p>A string that describes why you are stopping the launch.</p><br>
10    /// - On success, responds with [`StopLaunchOutput`](crate::operation::stop_launch::StopLaunchOutput) with field(s):
11    ///   - [`ended_time(Option<DateTime>)`](crate::operation::stop_launch::StopLaunchOutput::ended_time): <p>The date and time that the launch stopped.</p>
12    /// - On failure, responds with [`SdkError<StopLaunchError>`](crate::operation::stop_launch::StopLaunchError)
13    pub fn stop_launch(&self) -> crate::operation::stop_launch::builders::StopLaunchFluentBuilder {
14        crate::operation::stop_launch::builders::StopLaunchFluentBuilder::new(self.handle.clone())
15    }
16}