aws_sdk_migrationhuborchestrator/client/
stop_workflow.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 [`StopWorkflow`](crate::operation::stop_workflow::builders::StopWorkflowFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`id(impl Into<String>)`](crate::operation::stop_workflow::builders::StopWorkflowFluentBuilder::id) / [`set_id(Option<String>)`](crate::operation::stop_workflow::builders::StopWorkflowFluentBuilder::set_id):<br>required: **true**<br><p>The ID of the migration workflow.</p><br>
7    /// - On success, responds with [`StopWorkflowOutput`](crate::operation::stop_workflow::StopWorkflowOutput) with field(s):
8    ///   - [`id(Option<String>)`](crate::operation::stop_workflow::StopWorkflowOutput::id): <p>The ID of the migration workflow.</p>
9    ///   - [`arn(Option<String>)`](crate::operation::stop_workflow::StopWorkflowOutput::arn): <p>The Amazon Resource Name (ARN) of the migration workflow.</p>
10    ///   - [`status(Option<MigrationWorkflowStatusEnum>)`](crate::operation::stop_workflow::StopWorkflowOutput::status): <p>The status of the migration workflow.</p>
11    ///   - [`status_message(Option<String>)`](crate::operation::stop_workflow::StopWorkflowOutput::status_message): <p>The status message of the migration workflow.</p>
12    ///   - [`last_stop_time(Option<DateTime>)`](crate::operation::stop_workflow::StopWorkflowOutput::last_stop_time): <p>The time at which the migration workflow was stopped.</p>
13    /// - On failure, responds with [`SdkError<StopWorkflowError>`](crate::operation::stop_workflow::StopWorkflowError)
14    pub fn stop_workflow(&self) -> crate::operation::stop_workflow::builders::StopWorkflowFluentBuilder {
15        crate::operation::stop_workflow::builders::StopWorkflowFluentBuilder::new(self.handle.clone())
16    }
17}