Skip to content
v2.277.0

OcsfBooleanFilterProperty Struct ​

Enables filtering of security findings based on boolean field values in OCSF.

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 ocsfBooleanFilterProperty: securityhub.CfnAutomationRuleV2.OcsfBooleanFilterProperty = {
  fieldName: 'fieldName',
  filter: {
    value: false,
  },
};
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_boolean_filter_property = securityhub.CfnAutomationRuleV2.OcsfBooleanFilterProperty(
    field_name="fieldName",
    filter=securityhub.CfnAutomationRuleV2.BooleanFilterProperty(
        value=False
    )
)
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.*;

OcsfBooleanFilterProperty ocsfBooleanFilterProperty = OcsfBooleanFilterProperty.builder()
        .fieldName("fieldName")
        .filter(BooleanFilterProperty.builder()
                .value(false)
                .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 ocsfBooleanFilterProperty = new OcsfBooleanFilterProperty {
    FieldName = "fieldName",
    Filter = new BooleanFilterProperty {
        Value = false
    }
};
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"

ocsfBooleanFilterProperty := &OcsfBooleanFilterProperty{
	FieldName: jsii.String("fieldName"),
	Filter: &BooleanFilterProperty{
		Value: jsii.Boolean(false),
	},
}

Properties ​

fieldNamestringfield_namestrfieldNameStringFieldNamestringFieldName*string required #
The name of the field.
Enables filtering of security findings based on boolean field values in OCSF.