aws_sdk_forecast/client/stop_resource.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 [`StopResource`](crate::operation::stop_resource::builders::StopResourceFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`resource_arn(impl Into<String>)`](crate::operation::stop_resource::builders::StopResourceFluentBuilder::resource_arn) / [`set_resource_arn(Option<String>)`](crate::operation::stop_resource::builders::StopResourceFluentBuilder::set_resource_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) that identifies the resource to stop. The supported ARNs are <code>DatasetImportJobArn</code>, <code>PredictorArn</code>, <code>PredictorBacktestExportJobArn</code>, <code>ForecastArn</code>, <code>ForecastExportJobArn</code>, <code>ExplainabilityArn</code>, and <code>ExplainabilityExportArn</code>.</p><br>
7 /// - On success, responds with [`StopResourceOutput`](crate::operation::stop_resource::StopResourceOutput)
8 /// - On failure, responds with [`SdkError<StopResourceError>`](crate::operation::stop_resource::StopResourceError)
9 pub fn stop_resource(&self) -> crate::operation::stop_resource::builders::StopResourceFluentBuilder {
10 crate::operation::stop_resource::builders::StopResourceFluentBuilder::new(self.handle.clone())
11 }
12}