aws_sdk_wellarchitected/client/
associate_lenses.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 [`AssociateLenses`](crate::operation::associate_lenses::builders::AssociateLensesFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`workload_id(impl Into<String>)`](crate::operation::associate_lenses::builders::AssociateLensesFluentBuilder::workload_id) / [`set_workload_id(Option<String>)`](crate::operation::associate_lenses::builders::AssociateLensesFluentBuilder::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>
    ///   - [`lens_aliases(impl Into<String>)`](crate::operation::associate_lenses::builders::AssociateLensesFluentBuilder::lens_aliases) / [`set_lens_aliases(Option<Vec::<String>>)`](crate::operation::associate_lenses::builders::AssociateLensesFluentBuilder::set_lens_aliases):<br>required: **true**<br><p>List of lens aliases to associate or disassociate with a workload. Up to 10 lenses can be specified.</p> <p>Identify a lens using its <code>LensSummary$LensAlias</code>.</p><br>
    /// - On success, responds with [`AssociateLensesOutput`](crate::operation::associate_lenses::AssociateLensesOutput)
    /// - On failure, responds with [`SdkError<AssociateLensesError>`](crate::operation::associate_lenses::AssociateLensesError)
    pub fn associate_lenses(&self) -> crate::operation::associate_lenses::builders::AssociateLensesFluentBuilder {
        crate::operation::associate_lenses::builders::AssociateLensesFluentBuilder::new(self.handle.clone())
    }
}