Class CfnInsightMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.securityhub.CfnInsightMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInsightMixinProps>
- Enclosing interface:
CfnInsightMixinProps
@Stability(Stable)
public static final class CfnInsightMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInsightMixinProps>
A builder for
CfnInsightMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnInsightMixinProps.getFilters()filters(IResolvable filters) Sets the value ofCfnInsightMixinProps.getFilters()groupByAttribute(String groupByAttribute) Sets the value ofCfnInsightMixinProps.getGroupByAttribute()Sets the value ofCfnInsightMixinProps.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
filters
Sets the value ofCfnInsightMixinProps.getFilters()- Parameters:
filters- 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. You can filter by up to ten finding attributes. For each attribute, you can provide up to 20 filter values.- Returns:
this
-
filters
@Stability(Stable) public CfnInsightMixinProps.Builder filters(CfnInsightPropsMixin.AwsSecurityFindingFiltersProperty filters) Sets the value ofCfnInsightMixinProps.getFilters()- Parameters:
filters- 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. You can filter by up to ten finding attributes. For each attribute, you can provide up to 20 filter values.- Returns:
this
-
groupByAttribute
Sets the value ofCfnInsightMixinProps.getGroupByAttribute()- Parameters:
groupByAttribute- The grouping attribute for the insight's findings. Indicates how to group the matching findings, and 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.- Returns:
this
-
name
Sets the value ofCfnInsightMixinProps.getName()- Parameters:
name- The name of a Security Hub CSPM insight.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnInsightMixinProps>- Returns:
- a new instance of
CfnInsightMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-