aws_sdk_wellarchitected/client/
get_workload.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetWorkload`](crate::operation::get_workload::builders::GetWorkloadFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`workload_id(impl Into<String>)`](crate::operation::get_workload::builders::GetWorkloadFluentBuilder::workload_id) / [`set_workload_id(Option<String>)`](crate::operation::get_workload::builders::GetWorkloadFluentBuilder::set_workload_id):<br>required: **true**<br><p>The ID assigned to the workload. This ID is unique within an Amazon Web Services Region.</p><br>
    /// - On success, responds with [`GetWorkloadOutput`](crate::operation::get_workload::GetWorkloadOutput) with field(s):
    ///   - [`workload(Option<Workload>)`](crate::operation::get_workload::GetWorkloadOutput::workload): <p>A workload return object.</p>
    /// - On failure, responds with [`SdkError<GetWorkloadError>`](crate::operation::get_workload::GetWorkloadError)
    pub fn get_workload(&self) -> crate::operation::get_workload::builders::GetWorkloadFluentBuilder {
        crate::operation::get_workload::builders::GetWorkloadFluentBuilder::new(self.handle.clone())
    }
}