aws_sdk_xray/client/
get_insight.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 [`GetInsight`](crate::operation::get_insight::builders::GetInsightFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`insight_id(impl Into<String>)`](crate::operation::get_insight::builders::GetInsightFluentBuilder::insight_id) / [`set_insight_id(Option<String>)`](crate::operation::get_insight::builders::GetInsightFluentBuilder::set_insight_id):<br>required: **true**<br><p>The insight's unique identifier. Use the GetInsightSummaries action to retrieve an InsightId.</p><br>
7    /// - On success, responds with [`GetInsightOutput`](crate::operation::get_insight::GetInsightOutput) with field(s):
8    ///   - [`insight(Option<Insight>)`](crate::operation::get_insight::GetInsightOutput::insight): <p>The summary information of an insight.</p>
9    /// - On failure, responds with [`SdkError<GetInsightError>`](crate::operation::get_insight::GetInsightError)
10    pub fn get_insight(&self) -> crate::operation::get_insight::builders::GetInsightFluentBuilder {
11        crate::operation::get_insight::builders::GetInsightFluentBuilder::new(self.handle.clone())
12    }
13}