Skip to content

Commit

Permalink
resource/cloudflare_ruleset: sensitivity_level should be default fo…
Browse files Browse the repository at this point in the history
…r highest setting
  • Loading branch information
jacobbednarz committed Oct 17, 2022
1 parent 8c2e1af commit f1b5fbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/resources/ruleset.md
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,7 @@ Optional:
- `categories` (Block List) List of tag-based overrides. (see [below for nested schema](#nestedblock--rules--action_parameters--overrides--categories))
- `enabled` (Boolean, Deprecated) Defines if the current ruleset-level override enables or disables the ruleset.
- `rules` (Block List) List of rule-based overrides. (see [below for nested schema](#nestedblock--rules--action_parameters--overrides--rules))
- `sensitivity_level` (String) Sensitivity level to override for all ruleset rules. Available values: `default`, `medium`, `low`, `eoff`.
- `status` (String) Defines if the current ruleset-level override enables or disables the ruleset. Available values: `enabled`, `disabled`. Defaults to `""`.

<a id="nestedblock--rules--action_parameters--overrides--categories"></a>
Expand Down
4 changes: 2 additions & 2 deletions internal/provider/schema_cloudflare_ruleset.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,8 @@ func resourceCloudflareRulesetSchema() map[string]*schema.Schema {
"sensitivity_level": {
Type: schema.TypeString,
Optional: true,
ValidateFunc: validation.StringInSlice([]string{"high", "medium", "low", "eoff"}, false),
Description: fmt.Sprintf("Sensitivity level to override for all ruleset rules. %s", renderAvailableDocumentationValuesStringSlice([]string{"high", "medium", "low", "eoff"})),
ValidateFunc: validation.StringInSlice([]string{"default", "medium", "low", "eoff"}, false),
Description: fmt.Sprintf("Sensitivity level to override for all ruleset rules. %s", renderAvailableDocumentationValuesStringSlice([]string{"default", "medium", "low", "eoff"})),
},
"categories": {
Type: schema.TypeList,
Expand Down

0 comments on commit f1b5fbe

Please sign in to comment.