# CfnRuleProps

Properties for defining a `CfnRule`.

Extends: CfnRuleProps
Used as props by: CfnRule

- Source: Generated code
- Type last changed: v2.273.0 · 8 Oct 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_networksecuritymanager as networksecuritymanager } from 'aws-cdk-lib';
const cfnRuleProps: networksecuritymanager.CfnRuleProps = {
  ruleName: 'ruleName',

  // the properties below are optional
  configuration: 'configuration',
  firewallType: 'firewallType',
  ruleDescription: 'ruleDescription',
  ruleType: 'ruleType',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

## Properties

- `configuration`: string — The rule configuration as a JSON string.

- `firewallType`: string — The type of firewall for this rule.

- `ruleDescription`: string — A description of the rule.

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

- `ruleType`: string — The type of rule.

- `tags`: [CfnTag](/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — The tags associated with the rule.
