aws_sdk_datasync/client/
stop_discovery_job.rs

1
2
3
4
5
6
7
8
9
10
11
12
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`StopDiscoveryJob`](crate::operation::stop_discovery_job::builders::StopDiscoveryJobFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`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>
    /// - On success, responds with [`StopDiscoveryJobOutput`](crate::operation::stop_discovery_job::StopDiscoveryJobOutput)
    /// - On failure, responds with [`SdkError<StopDiscoveryJobError>`](crate::operation::stop_discovery_job::StopDiscoveryJobError)
    pub fn stop_discovery_job(&self) -> crate::operation::stop_discovery_job::builders::StopDiscoveryJobFluentBuilder {
        crate::operation::stop_discovery_job::builders::StopDiscoveryJobFluentBuilder::new(self.handle.clone())
    }
}