Skip to content

Commit

Permalink
Added policy rule type networkconfig (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitapanw authored Dec 23, 2022
1 parent 430f7e4 commit 6844cf6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/resources/policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ One and only one of these must be present:
* `data_criteria` - (Required for Data policy) Criteria for DLP Rule, as defined [below](#data-criteria)
* `children` - (Required for Config build policy) Children description for build policy, as defined [below](#children)
* `parameters` - (Required for Config, Audit Event, IAM and Network policies, map of strings) Parameters. Valid keys are `withIac` and `savedSearch` and value is `"true"`or `"false"` (`SavedSearch` is true when we are using savedsearch and it is false when we directly give search query and `withIac` is true for build policies otherwise false)
* `rule_type` - (Required) Type of rule or RQL query. Valid values are `Config`, `AuditEvent`, `IAM`, `Network`, `DLP`, or `Anomaly`
* `rule_type` - (Required) Type of rule or RQL query. Valid values are `Config`, `AuditEvent`, `IAM`, `Network`, `DLP`, `Anomaly` or `NetworkConfig`

### Remediation

Expand Down
1 change: 1 addition & 0 deletions prismacloud/resource_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ func resourcePolicy() *schema.Resource {
policy.RuleTypeIAM,
policy.RuleTypeAnomaly,
policy.RuleTypeData,
policy.RuleTypeNetworkConfig,
},
false,
),
Expand Down

0 comments on commit 6844cf6

Please sign in to comment.