OcsfNumberFilterProperty Struct
Enables filtering of security findings based on numerical field values in OCSF.
| 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_securityhub as securityhub } from 'aws-cdk-lib';
const ocsfNumberFilterProperty: securityhub.CfnAutomationRuleV2.OcsfNumberFilterProperty = {
fieldName: 'fieldName',
filter: {
eq: 123,
gte: 123,
lte: 123,
},
};
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_securityhub as securityhub
ocsf_number_filter_property = securityhub.CfnAutomationRuleV2.OcsfNumberFilterProperty(
field_name="fieldName",
filter=securityhub.CfnAutomationRuleV2.NumberFilterProperty(
eq=123,
gte=123,
lte=123
)
)
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.securityhub.*;
OcsfNumberFilterProperty ocsfNumberFilterProperty = OcsfNumberFilterProperty.builder()
.fieldName("fieldName")
.filter(NumberFilterProperty.builder()
.eq(123)
.gte(123)
.lte(123)
.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.SecurityHub;
var ocsfNumberFilterProperty = new OcsfNumberFilterProperty {
FieldName = "fieldName",
Filter = new NumberFilterProperty {
Eq = 123,
Gte = 123,
Lte = 123
}
};
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"
ocsfNumberFilterProperty := &OcsfNumberFilterProperty{
FieldName: jsii.String("fieldName"),
Filter: &NumberFilterProperty{
Eq: jsii.Number(123),
Gte: jsii.Number(123),
Lte: jsii.Number(123),
},
}
Properties
The name of the field.
filterIResolvable | CfnAutomationRuleV2.filtertyping.Union[IResolvable, NumberFilterProperty]filterIResolvableFilterIResolvableFilterinterface{} required #Enables filtering of security findings based on numerical field values in OCSF.