aws_sdk_applicationinsights/client/add_workload.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 [`AddWorkload`](crate::operation::add_workload::builders::AddWorkloadFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`resource_group_name(impl Into<String>)`](crate::operation::add_workload::builders::AddWorkloadFluentBuilder::resource_group_name) / [`set_resource_group_name(Option<String>)`](crate::operation::add_workload::builders::AddWorkloadFluentBuilder::set_resource_group_name):<br>required: **true**<br><p>The name of the resource group.</p><br>
7 /// - [`component_name(impl Into<String>)`](crate::operation::add_workload::builders::AddWorkloadFluentBuilder::component_name) / [`set_component_name(Option<String>)`](crate::operation::add_workload::builders::AddWorkloadFluentBuilder::set_component_name):<br>required: **true**<br><p>The name of the component.</p><br>
8 /// - [`workload_configuration(WorkloadConfiguration)`](crate::operation::add_workload::builders::AddWorkloadFluentBuilder::workload_configuration) / [`set_workload_configuration(Option<WorkloadConfiguration>)`](crate::operation::add_workload::builders::AddWorkloadFluentBuilder::set_workload_configuration):<br>required: **true**<br><p>The configuration settings of the workload. The value is the escaped JSON of the configuration.</p><br>
9 /// - On success, responds with [`AddWorkloadOutput`](crate::operation::add_workload::AddWorkloadOutput) with field(s):
10 /// - [`workload_id(Option<String>)`](crate::operation::add_workload::AddWorkloadOutput::workload_id): <p>The ID of the workload.</p>
11 /// - [`workload_configuration(Option<WorkloadConfiguration>)`](crate::operation::add_workload::AddWorkloadOutput::workload_configuration): <p>The configuration settings of the workload. The value is the escaped JSON of the configuration.</p>
12 /// - On failure, responds with [`SdkError<AddWorkloadError>`](crate::operation::add_workload::AddWorkloadError)
13 pub fn add_workload(&self) -> crate::operation::add_workload::builders::AddWorkloadFluentBuilder {
14 crate::operation::add_workload::builders::AddWorkloadFluentBuilder::new(self.handle.clone())
15 }
16}