aws_sdk_applicationinsights/client/
describe_workload.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`DescribeWorkload`](crate::operation::describe_workload::builders::DescribeWorkloadFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`resource_group_name(impl Into<String>)`](crate::operation::describe_workload::builders::DescribeWorkloadFluentBuilder::resource_group_name) / [`set_resource_group_name(Option<String>)`](crate::operation::describe_workload::builders::DescribeWorkloadFluentBuilder::set_resource_group_name):<br>required: **true**<br><p>The name of the resource group.</p><br>
    ///   - [`component_name(impl Into<String>)`](crate::operation::describe_workload::builders::DescribeWorkloadFluentBuilder::component_name) / [`set_component_name(Option<String>)`](crate::operation::describe_workload::builders::DescribeWorkloadFluentBuilder::set_component_name):<br>required: **true**<br><p>The name of the component.</p><br>
    ///   - [`workload_id(impl Into<String>)`](crate::operation::describe_workload::builders::DescribeWorkloadFluentBuilder::workload_id) / [`set_workload_id(Option<String>)`](crate::operation::describe_workload::builders::DescribeWorkloadFluentBuilder::set_workload_id):<br>required: **true**<br><p>The ID of the workload.</p><br>
    ///   - [`account_id(impl Into<String>)`](crate::operation::describe_workload::builders::DescribeWorkloadFluentBuilder::account_id) / [`set_account_id(Option<String>)`](crate::operation::describe_workload::builders::DescribeWorkloadFluentBuilder::set_account_id):<br>required: **false**<br><p>The AWS account ID for the workload owner.</p><br>
    /// - On success, responds with [`DescribeWorkloadOutput`](crate::operation::describe_workload::DescribeWorkloadOutput) with field(s):
    ///   - [`workload_id(Option<String>)`](crate::operation::describe_workload::DescribeWorkloadOutput::workload_id): <p>The ID of the workload.</p>
    ///   - [`workload_remarks(Option<String>)`](crate::operation::describe_workload::DescribeWorkloadOutput::workload_remarks): <p>If logging is supported for the resource type, shows whether the component has configured logs to be monitored.</p>
    ///   - [`workload_configuration(Option<WorkloadConfiguration>)`](crate::operation::describe_workload::DescribeWorkloadOutput::workload_configuration): <p>The configuration settings of the workload. The value is the escaped JSON of the configuration.</p>
    /// - On failure, responds with [`SdkError<DescribeWorkloadError>`](crate::operation::describe_workload::DescribeWorkloadError)
    pub fn describe_workload(&self) -> crate::operation::describe_workload::builders::DescribeWorkloadFluentBuilder {
        crate::operation::describe_workload::builders::DescribeWorkloadFluentBuilder::new(self.handle.clone())
    }
}