Class CfnInsight.Builder
java.lang.Object
software.amazon.awscdk.services.securityhub.CfnInsight.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInsight>
- Enclosing class:
CfnInsight
@Stability(Stable)
public static final class CfnInsight.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInsight>
A fluent builder for
CfnInsight
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnInsight.Builder
filters
(IResolvable filters) One or more attributes used to filter the findings included in the insight.One or more attributes used to filter the findings included in the insight.groupByAttribute
(String groupByAttribute) The grouping attribute for the insight's findings.The name of a Security Hub insight.
-
Method Details
-
create
@Stability(Stable) public static CfnInsight.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnInsight.Builder
.
-
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.
- Parameters:
filters
- One or more attributes used to filter the findings included in the insight. This parameter is required.- Returns:
this
- See Also:
-
filters
@Stability(Stable) public CfnInsight.Builder filters(CfnInsight.AwsSecurityFindingFiltersProperty 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.
- Parameters:
filters
- One or more attributes used to filter the findings included in the insight. This parameter is required.- Returns:
this
- See Also:
-
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.
- Parameters:
groupByAttribute
- The grouping attribute for the insight's findings. This parameter is required.- Returns:
this
- See Also:
-
name
The name of a Security Hub insight.- Parameters:
name
- The name of a Security Hub insight. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnInsight>
- Returns:
- a newly built instance of
CfnInsight
.
-