# CfnAutomationRuleV2Props

Properties for defining a `CfnAutomationRuleV2`.

Extends: CfnAutomationRuleV2Props
Used as props by: CfnAutomationRuleV2

- Source: Generated code
- Type last changed: v2.203.0 · 1 Jul 2025

## 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 cfnAutomationRuleV2Props: securityhub.CfnAutomationRuleV2Props = {
  actions: [{
    type: 'type',

    // the properties below are optional
    externalIntegrationConfiguration: {
      connectorArn: 'connectorArn',
    },
    findingFieldsUpdate: {
      comment: 'comment',
      severityId: 123,
      statusId: 123,
    },
  }],
  criteria: {
    ocsfFindingCriteria: {
      compositeFilters: [{
        booleanFilters: [{
          fieldName: 'fieldName',
          filter: {
            value: false,
          },
        }],
        dateFilters: [{
          fieldName: 'fieldName',
          filter: {
            dateRange: {
              unit: 'unit',
              value: 123,
            },
            end: 'end',
            start: 'start',
          },
        }],
        mapFilters: [{
          fieldName: 'fieldName',
          filter: {
            comparison: 'comparison',
            key: 'key',
            value: 'value',
          },
        }],
        numberFilters: [{
          fieldName: 'fieldName',
          filter: {
            eq: 123,
            gte: 123,
            lte: 123,
          },
        }],
        operator: 'operator',
        stringFilters: [{
          fieldName: 'fieldName',
          filter: {
            comparison: 'comparison',
            value: 'value',
          },
        }],
      }],
      compositeOperator: 'compositeOperator',
    },
  },
  description: 'description',
  ruleName: 'ruleName',
  ruleOrder: 123,

  // the properties below are optional
  ruleStatus: 'ruleStatus',
  tags: {
    tagsKey: 'tags',
  },
};
```

## Properties

- `actions`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAutomationRuleV2.AutomationRulesActionV2Property](/cdk/api/v2/docs/aws-cdk-lib.aws_securityhub.CfnAutomationRuleV2.AutomationRulesActionV2Property.html)[] (required) — A list of actions to be performed when the rule criteria is met.

- `criteria`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAutomationRuleV2.CriteriaProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_securityhub.CfnAutomationRuleV2.CriteriaProperty.html) (required) — The filtering type and configuration of the automation rule.

- `description`: string (required) — A description of the V2 automation rule.

- `ruleName`: string (required) — The name of the V2 automation rule.

- `ruleOrder`: number (required) — The value for the rule priority.

- `ruleStatus`: string — The status of the V2 automation rule.

- `tags`: { [key: string]: string } — A list of key-value pairs associated with the V2 automation rule.
