Skip to content

Commit

Permalink
Rename custom_blocklist.id to custom_blocklist.rai_blocklist_id as su…
Browse files Browse the repository at this point in the history
…ggested
  • Loading branch information
liuwuliuyun committed Dec 11, 2024
1 parent 8913a7a commit c18d7cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type AccountRaiPolicyContentFilter struct {
}

type AccountRaiPolicyCustomBlock struct {
Id string `tfschema:"id"`
Id string `tfschema:"rai_blocklist_id"`
BlockEnabled bool `tfschema:"block_enabled"`
Source string `tfschema:"source"`
}
Expand Down Expand Up @@ -104,7 +104,7 @@ func (r CognitiveAccountRaiPolicyResource) Arguments() map[string]*pluginsdk.Sch
Optional: true,
Elem: &pluginsdk.Resource{
Schema: map[string]*pluginsdk.Schema{
"id": {
"rai_blocklist_id": {
Type: pluginsdk.TypeString,
Required: true,
ValidateFunc: raiblocklists.ValidateRaiBlocklistID,
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/cognitive_account_rai_policy.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ A `content_filter` block supports the following:

A `custom_blocklist` block supports the following:

* `id` - (Required) The ARM resource ID of the custom blocklist.
* `rai_blocklist_id` - (Required) The ARM resource ID of the custom blocklist.

* `block_enabled` - (Required) Whether the custom blocklist should block content. Possible values are `true` or `false`.

Expand Down

0 comments on commit c18d7cc

Please sign in to comment.