aws_sdk_securityhub/client/
update_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 [`UpdateInsight`](crate::operation::update_insight::builders::UpdateInsightFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`insight_arn(impl Into<String>)`](crate::operation::update_insight::builders::UpdateInsightFluentBuilder::insight_arn) / [`set_insight_arn(Option<String>)`](crate::operation::update_insight::builders::UpdateInsightFluentBuilder::set_insight_arn):<br>required: **true**<br><p>The ARN of the insight that you want to update.</p><br>
7    ///   - [`name(impl Into<String>)`](crate::operation::update_insight::builders::UpdateInsightFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::update_insight::builders::UpdateInsightFluentBuilder::set_name):<br>required: **false**<br><p>The updated name for the insight.</p><br>
8    ///   - [`filters(AwsSecurityFindingFilters)`](crate::operation::update_insight::builders::UpdateInsightFluentBuilder::filters) / [`set_filters(Option<AwsSecurityFindingFilters>)`](crate::operation::update_insight::builders::UpdateInsightFluentBuilder::set_filters):<br>required: **false**<br><p>The updated filters that define this insight.</p><br>
9    ///   - [`group_by_attribute(impl Into<String>)`](crate::operation::update_insight::builders::UpdateInsightFluentBuilder::group_by_attribute) / [`set_group_by_attribute(Option<String>)`](crate::operation::update_insight::builders::UpdateInsightFluentBuilder::set_group_by_attribute):<br>required: **false**<br><p>The updated <code>GroupBy</code> attribute that defines this insight.</p><br>
10    /// - On success, responds with [`UpdateInsightOutput`](crate::operation::update_insight::UpdateInsightOutput)
11    /// - On failure, responds with [`SdkError<UpdateInsightError>`](crate::operation::update_insight::UpdateInsightError)
12    pub fn update_insight(&self) -> crate::operation::update_insight::builders::UpdateInsightFluentBuilder {
13        crate::operation::update_insight::builders::UpdateInsightFluentBuilder::new(self.handle.clone())
14    }
15}