aws_sdk_accessanalyzer/client/
get_finding.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 [`GetFinding`](crate::operation::get_finding::builders::GetFindingFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`analyzer_arn(impl Into<String>)`](crate::operation::get_finding::builders::GetFindingFluentBuilder::analyzer_arn) / [`set_analyzer_arn(Option<String>)`](crate::operation::get_finding::builders::GetFindingFluentBuilder::set_analyzer_arn):<br>required: **true**<br><p>The <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-getting-started.html#permission-resources">ARN of the analyzer</a> that generated the finding.</p><br>
7    ///   - [`id(impl Into<String>)`](crate::operation::get_finding::builders::GetFindingFluentBuilder::id) / [`set_id(Option<String>)`](crate::operation::get_finding::builders::GetFindingFluentBuilder::set_id):<br>required: **true**<br><p>The ID of the finding to retrieve.</p><br>
8    /// - On success, responds with [`GetFindingOutput`](crate::operation::get_finding::GetFindingOutput) with field(s):
9    ///   - [`finding(Option<Finding>)`](crate::operation::get_finding::GetFindingOutput::finding): <p>A <code>finding</code> object that contains finding details.</p>
10    /// - On failure, responds with [`SdkError<GetFindingError>`](crate::operation::get_finding::GetFindingError)
11    pub fn get_finding(&self) -> crate::operation::get_finding::builders::GetFindingFluentBuilder {
12        crate::operation::get_finding::builders::GetFindingFluentBuilder::new(self.handle.clone())
13    }
14}