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