Skip to content

Commit

Permalink
feat: Adding StatefulSuricataRuleGroup.fromFile to readme. (#70)
Browse files Browse the repository at this point in the history
* Adding StatefulSuricataRuleGroup.fromFile to readme. Adding aws-cdk-lib to dev dependencies

* Fixing typo

---------

Co-authored-by: Zane Durkin <8985088+durkinza@users.noreply.github.com>
  • Loading branch information
durkinza and durkinza authored Nov 6, 2023
1 parent 9c1e86c commit 849831a
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .cspell.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .projen/deps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const project = new awscdk.AwsCdkConstructLibrary({
'@types/node',
'@typescript-eslint/eslint-plugin',
'@typescript-eslint/parser',
'aws-cdk-lib',
'constructs',
'eslint',
'eslint-import-resolver-node',
Expand Down
8 changes: 8 additions & 0 deletions API.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,14 @@ new NetFW.StatefulSuricataRuleGroup(stack, 'MyStatefulSuricataRuleGroup', {
});
```
Suricata rule groups can also be imported from a file.
```ts
const ruleGroup:NetFW.StatefulSuricataRuleGroup = NetFW.StatefulSuricataRuleGroup.fromFile(stack, 'MyStatefulSuricataRuleGroup', {
path: './suricata.rules'
});
```
All other arguments for creating a Suricata Rule Group are also supported here with an exception of the `rules` property.
The `rules` property will be filled in with the contents from the file path, anything supplied will be ignored.
### Firewall Logs
Expand Down
1 change: 1 addition & 0 deletions package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 849831a

Please sign in to comment.