Skip to content

Commit

Permalink
docs(cc|cfw): correct the mistakes in the sample code provided in the…
Browse files Browse the repository at this point in the history
… data source document (#5697)
  • Loading branch information
profoundwu authored Oct 16, 2024
1 parent 5bfab91 commit 0093e2e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions docs/data-sources/cc_central_network_policies.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
subcategory: "Cloud Connect (CC)"
layout: "huaweicloud"
page_title: "HuaweiCloud: huaweicloud_cc_central_network_policies"
description: ""
description: |-
Use this data source to get the list of CC central network policies.
---

# huaweicloud_cc_central_network_policies
Expand All @@ -15,7 +16,7 @@ Use this data source to get the list of CC central network policies.
variable "central_network_id" {}
variable "central_network_policy_id" {}
resource "huaweicloud_cc_central_network_policies" "test" {
data "huaweicloud_cc_central_network_policies" "test" {
central_network_id = var.central_network_id
policy_id = var.central_network_policy_id
}
Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/cc_central_networks.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Use this data source to get the list of CC central networks.
```hcl
variable "central_network_name" {}
resource "huaweicloud_cc_central_networks" "test" {
data "huaweicloud_cc_central_networks" "test" {
name = var.central_network_name
}
```
Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/cfw_address_group_members.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Use this data source to get the list of CFW address group members.
```hcl
variable "group_id" {}
resource "huaweicloud_cfw_address_group_members" "test" {
data "huaweicloud_cfw_address_group_members" "test" {
group_id = var.group_id
}
```
Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/cfw_protection_rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Use this data source to get the list of CFW protection rules.
variable "object_id" {}
variable "name" {}
resource "huaweicloud_cfw_protection_rules" "test" {
data "huaweicloud_cfw_protection_rules" "test" {
object_id = var.object_id
name = var.name
}
Expand Down

0 comments on commit 0093e2e

Please sign in to comment.