FindingCriteriaProperty Struct
Specifies, as a map, one or more property-based conditions for a findings filter.
A findings filter , also referred to as a filter rule , is a set of custom criteria that specifies which findings to include or exclude from the results of a query for findings. You can also configure a findings filter to suppress (automatically archive) findings that match the filter's criteria. For more information, see Filtering Macie findings in the Amazon Macie User Guide .
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_macie as macie } from 'aws-cdk-lib';
const findingCriteriaProperty: macie.CfnFindingsFilter.FindingCriteriaProperty = {
criterion: {
criterionKey: {
eq: ['eq'],
gt: 123,
gte: 123,
lt: 123,
lte: 123,
neq: ['neq'],
},
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_macie as macie
finding_criteria_property = macie.CfnFindingsFilter.FindingCriteriaProperty(
criterion={
"criterion_key": macie.CfnFindingsFilter.CriterionAdditionalPropertiesProperty(
eq=["eq"],
gt=123,
gte=123,
lt=123,
lte=123,
neq=["neq"]
)
}
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.macie.*;
FindingCriteriaProperty findingCriteriaProperty = FindingCriteriaProperty.builder()
.criterion(Map.of(
"criterionKey", CriterionAdditionalPropertiesProperty.builder()
.eq(List.of("eq"))
.gt(123)
.gte(123)
.lt(123)
.lte(123)
.neq(List.of("neq"))
.build()))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Macie;
var findingCriteriaProperty = new FindingCriteriaProperty {
Criterion = new Dictionary<string, object> {
{ "criterionKey", new CriterionAdditionalPropertiesProperty {
Eq = new [] { "eq" },
Gt = 123,
Gte = 123,
Lt = 123,
Lte = 123,
Neq = new [] { "neq" }
} }
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
findingCriteriaProperty := &FindingCriteriaProperty{
Criterion: map[string]interface{}{
"criterionKey": &CriterionAdditionalPropertiesProperty{
"eq": []*string{
jsii.String("eq"),
},
"gt": jsii.Number(123),
"gte": jsii.Number(123),
"lt": jsii.Number(123),
"lte": jsii.Number(123),
"neq": []*string{
jsii.String("neq"),
},
},
},
}
Properties
criterionoptionalIResolvable | { [key: string]: IResolvable | CfnFindingsFilter.criterionoptionaltyping.Union[IResolvable, typing.Mapping[str, typing.Union[IResolvable, CriterionAdditionalPropertiesProperty]]]criterionoptionalIResolvableCriterionoptionalIResolvableCriterionoptionalinterface{} #Specifies a condition that defines the property, operator, and one or more values to use to filter the results.