# OcsfMapFilterProperty

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

- Source: Generated at build time
- Type last changed: v2.203.0 · 1 Jul 2025

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
    }
};
```

Golang:

```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

- `fieldName`: string (required) — The name of the field.

- `filter`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAutomationRuleV2.MapFilterProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_securityhub.CfnAutomationRuleV2.MapFilterProperty.html) (required) — Enables filtering of security findings based on map field values in OCSF.
