OcsfMapFilterProperty Struct
Enables filtering of security findings based on map 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 ocsfMapFilterProperty: securityhub.CfnAutomationRuleV2.OcsfMapFilterProperty = {
fieldName: 'fieldName',
filter: {
comparison: 'comparison',
key: 'key',
value: 'value',
},
};
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_map_filter_property = securityhub.CfnAutomationRuleV2.OcsfMapFilterProperty(
field_name="fieldName",
filter=securityhub.CfnAutomationRuleV2.MapFilterProperty(
comparison="comparison",
key="key",
value="value"
)
)
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.*;
OcsfMapFilterProperty ocsfMapFilterProperty = OcsfMapFilterProperty.builder()
.fieldName("fieldName")
.filter(MapFilterProperty.builder()
.comparison("comparison")
.key("key")
.value("value")
.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 ocsfMapFilterProperty = new OcsfMapFilterProperty {
FieldName = "fieldName",
Filter = new MapFilterProperty {
Comparison = "comparison",
Key = "key",
Value = "value"
}
};
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"
ocsfMapFilterProperty := &OcsfMapFilterProperty{
FieldName: jsii.String("fieldName"),
Filter: &MapFilterProperty{
Comparison: jsii.String("comparison"),
Key: jsii.String("key"),
Value: jsii.String("value"),
},
}
Properties
The name of the field.
filterIResolvable | CfnAutomationRuleV2.filtertyping.Union[IResolvable, MapFilterProperty]filterIResolvableFilterIResolvableFilterinterface{} required #Enables filtering of security findings based on map field values in OCSF.