aws_sdk_inspector2/client/batch_get_code_snippet.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 [`BatchGetCodeSnippet`](crate::operation::batch_get_code_snippet::builders::BatchGetCodeSnippetFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`finding_arns(impl Into<String>)`](crate::operation::batch_get_code_snippet::builders::BatchGetCodeSnippetFluentBuilder::finding_arns) / [`set_finding_arns(Option<Vec::<String>>)`](crate::operation::batch_get_code_snippet::builders::BatchGetCodeSnippetFluentBuilder::set_finding_arns):<br>required: **true**<br><p>An array of finding ARNs for the findings you want to retrieve code snippets from.</p><br>
7 /// - On success, responds with [`BatchGetCodeSnippetOutput`](crate::operation::batch_get_code_snippet::BatchGetCodeSnippetOutput) with field(s):
8 /// - [`code_snippet_results(Option<Vec::<CodeSnippetResult>>)`](crate::operation::batch_get_code_snippet::BatchGetCodeSnippetOutput::code_snippet_results): <p>The retrieved code snippets associated with the provided finding ARNs.</p>
9 /// - [`errors(Option<Vec::<CodeSnippetError>>)`](crate::operation::batch_get_code_snippet::BatchGetCodeSnippetOutput::errors): <p>Any errors Amazon Inspector encountered while trying to retrieve the requested code snippets.</p>
10 /// - On failure, responds with [`SdkError<BatchGetCodeSnippetError>`](crate::operation::batch_get_code_snippet::BatchGetCodeSnippetError)
11 pub fn batch_get_code_snippet(&self) -> crate::operation::batch_get_code_snippet::builders::BatchGetCodeSnippetFluentBuilder {
12 crate::operation::batch_get_code_snippet::builders::BatchGetCodeSnippetFluentBuilder::new(self.handle.clone())
13 }
14}