Struct aws_sdk_securityhub::client::fluent_builders::CreateInsight
source · pub struct CreateInsight { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateInsight
.
Creates a custom insight in Security Hub. An insight is a consolidation of findings that relate to a security issue that requires attention or remediation.
To group the related findings in the insight, use the GroupByAttribute
.
Implementations§
source§impl CreateInsight
impl CreateInsight
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateInsight, AwsResponseRetryClassifier>, SdkError<CreateInsightError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateInsight, AwsResponseRetryClassifier>, SdkError<CreateInsightError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<CreateInsightOutput, SdkError<CreateInsightError>>
pub async fn send(
self
) -> Result<CreateInsightOutput, SdkError<CreateInsightError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn filters(self, input: AwsSecurityFindingFilters) -> Self
pub fn filters(self, input: AwsSecurityFindingFilters) -> Self
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.
sourcepub fn set_filters(self, input: Option<AwsSecurityFindingFilters>) -> Self
pub fn set_filters(self, input: Option<AwsSecurityFindingFilters>) -> Self
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.
sourcepub fn group_by_attribute(self, input: impl Into<String>) -> Self
pub fn group_by_attribute(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_group_by_attribute(self, input: Option<String>) -> Self
pub fn set_group_by_attribute(self, input: Option<String>) -> Self
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.
Trait Implementations§
source§impl Clone for CreateInsight
impl Clone for CreateInsight
source§fn clone(&self) -> CreateInsight
fn clone(&self) -> CreateInsight
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more