aws_sdk_securityhub/client/create_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 [`CreateInsight`](crate::operation::create_insight::builders::CreateInsightFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`name(impl Into<String>)`](crate::operation::create_insight::builders::CreateInsightFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_insight::builders::CreateInsightFluentBuilder::set_name):<br>required: **true**<br><p>The name of the custom insight to create.</p><br>
7 /// - [`filters(AwsSecurityFindingFilters)`](crate::operation::create_insight::builders::CreateInsightFluentBuilder::filters) / [`set_filters(Option<AwsSecurityFindingFilters>)`](crate::operation::create_insight::builders::CreateInsightFluentBuilder::set_filters):<br>required: **true**<br><p>One or more attributes used to filter the findings included in the insight. The insight only includes findings that match the criteria defined in the filters.</p><br>
8 /// - [`group_by_attribute(impl Into<String>)`](crate::operation::create_insight::builders::CreateInsightFluentBuilder::group_by_attribute) / [`set_group_by_attribute(Option<String>)`](crate::operation::create_insight::builders::CreateInsightFluentBuilder::set_group_by_attribute):<br>required: **true**<br><p>The attribute used to group the findings for the insight. The grouping attribute identifies the type of item that the insight applies to. For example, if an insight is grouped by resource identifier, then the insight produces a list of resource identifiers.</p><br>
9 /// - On success, responds with [`CreateInsightOutput`](crate::operation::create_insight::CreateInsightOutput) with field(s):
10 /// - [`insight_arn(Option<String>)`](crate::operation::create_insight::CreateInsightOutput::insight_arn): <p>The ARN of the insight created.</p>
11 /// - On failure, responds with [`SdkError<CreateInsightError>`](crate::operation::create_insight::CreateInsightError)
12 pub fn create_insight(&self) -> crate::operation::create_insight::builders::CreateInsightFluentBuilder {
13 crate::operation::create_insight::builders::CreateInsightFluentBuilder::new(self.handle.clone())
14 }
15}