aws_sdk_datasync/client/stop_discovery_job.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 [`StopDiscoveryJob`](crate::operation::stop_discovery_job::builders::StopDiscoveryJobFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`discovery_job_arn(impl Into<String>)`](crate::operation::stop_discovery_job::builders::StopDiscoveryJobFluentBuilder::discovery_job_arn) / [`set_discovery_job_arn(Option<String>)`](crate::operation::stop_discovery_job::builders::StopDiscoveryJobFluentBuilder::set_discovery_job_arn):<br>required: **true**<br><p>Specifies the Amazon Resource Name (ARN) of the discovery job that you want to stop.</p><br>
7 /// - On success, responds with [`StopDiscoveryJobOutput`](crate::operation::stop_discovery_job::StopDiscoveryJobOutput)
8 /// - On failure, responds with [`SdkError<StopDiscoveryJobError>`](crate::operation::stop_discovery_job::StopDiscoveryJobError)
9 pub fn stop_discovery_job(&self) -> crate::operation::stop_discovery_job::builders::StopDiscoveryJobFluentBuilder {
10 crate::operation::stop_discovery_job::builders::StopDiscoveryJobFluentBuilder::new(self.handle.clone())
11 }
12}