aws_sdk_wellarchitected/client/
get_lens_review.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetLensReview`](crate::operation::get_lens_review::builders::GetLensReviewFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`workload_id(impl Into<String>)`](crate::operation::get_lens_review::builders::GetLensReviewFluentBuilder::workload_id) / [`set_workload_id(Option<String>)`](crate::operation::get_lens_review::builders::GetLensReviewFluentBuilder::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_alias(impl Into<String>)`](crate::operation::get_lens_review::builders::GetLensReviewFluentBuilder::lens_alias) / [`set_lens_alias(Option<String>)`](crate::operation::get_lens_review::builders::GetLensReviewFluentBuilder::set_lens_alias):<br>required: **true**<br><p>The alias of the lens.</p> <p>For Amazon Web Services official lenses, this is either the lens alias, such as <code>serverless</code>, or the lens ARN, such as <code>arn:aws:wellarchitected:us-east-1::lens/serverless</code>. Note that some operations (such as ExportLens and CreateLensShare) are not permitted on Amazon Web Services official lenses.</p> <p>For custom lenses, this is the lens ARN, such as <code>arn:aws:wellarchitected:us-west-2:123456789012:lens/0123456789abcdef01234567890abcdef</code>.</p> <p>Each lens is identified by its <code>LensSummary$LensAlias</code>.</p><br>
    ///   - [`milestone_number(i32)`](crate::operation::get_lens_review::builders::GetLensReviewFluentBuilder::milestone_number) / [`set_milestone_number(Option<i32>)`](crate::operation::get_lens_review::builders::GetLensReviewFluentBuilder::set_milestone_number):<br>required: **false**<br><p>The milestone number.</p> <p>A workload can have a maximum of 100 milestones.</p><br>
    /// - On success, responds with [`GetLensReviewOutput`](crate::operation::get_lens_review::GetLensReviewOutput) with field(s):
    ///   - [`workload_id(Option<String>)`](crate::operation::get_lens_review::GetLensReviewOutput::workload_id): <p>The ID assigned to the workload. This ID is unique within an Amazon Web Services Region.</p>
    ///   - [`milestone_number(Option<i32>)`](crate::operation::get_lens_review::GetLensReviewOutput::milestone_number): <p>The milestone number.</p> <p>A workload can have a maximum of 100 milestones.</p>
    ///   - [`lens_review(Option<LensReview>)`](crate::operation::get_lens_review::GetLensReviewOutput::lens_review): <p>A lens review of a question.</p>
    /// - On failure, responds with [`SdkError<GetLensReviewError>`](crate::operation::get_lens_review::GetLensReviewError)
    pub fn get_lens_review(&self) -> crate::operation::get_lens_review::builders::GetLensReviewFluentBuilder {
        crate::operation::get_lens_review::builders::GetLensReviewFluentBuilder::new(self.handle.clone())
    }
}