aws_sdk_wellarchitected/client/
get_answer.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetAnswer`](crate::operation::get_answer::builders::GetAnswerFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`workload_id(impl Into<String>)`](crate::operation::get_answer::builders::GetAnswerFluentBuilder::workload_id) / [`set_workload_id(Option<String>)`](crate::operation::get_answer::builders::GetAnswerFluentBuilder::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_answer::builders::GetAnswerFluentBuilder::lens_alias) / [`set_lens_alias(Option<String>)`](crate::operation::get_answer::builders::GetAnswerFluentBuilder::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>
    ///   - [`question_id(impl Into<String>)`](crate::operation::get_answer::builders::GetAnswerFluentBuilder::question_id) / [`set_question_id(Option<String>)`](crate::operation::get_answer::builders::GetAnswerFluentBuilder::set_question_id):<br>required: **true**<br><p>The ID of the question.</p><br>
    ///   - [`milestone_number(i32)`](crate::operation::get_answer::builders::GetAnswerFluentBuilder::milestone_number) / [`set_milestone_number(Option<i32>)`](crate::operation::get_answer::builders::GetAnswerFluentBuilder::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 [`GetAnswerOutput`](crate::operation::get_answer::GetAnswerOutput) with field(s):
    ///   - [`workload_id(Option<String>)`](crate::operation::get_answer::GetAnswerOutput::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_answer::GetAnswerOutput::milestone_number): <p>The milestone number.</p> <p>A workload can have a maximum of 100 milestones.</p>
    ///   - [`lens_alias(Option<String>)`](crate::operation::get_answer::GetAnswerOutput::lens_alias): <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>
    ///   - [`lens_arn(Option<String>)`](crate::operation::get_answer::GetAnswerOutput::lens_arn): <p>The ARN for the lens.</p>
    ///   - [`answer(Option<Answer>)`](crate::operation::get_answer::GetAnswerOutput::answer): <p>An answer of the question.</p>
    /// - On failure, responds with [`SdkError<GetAnswerError>`](crate::operation::get_answer::GetAnswerError)
    pub fn get_answer(&self) -> crate::operation::get_answer::builders::GetAnswerFluentBuilder {
        crate::operation::get_answer::builders::GetAnswerFluentBuilder::new(self.handle.clone())
    }
}