Skip to content

Commit 92fac62

Browse files
committed
fix docs error
1 parent 4f2f9f7 commit 92fac62

File tree

5 files changed

+34
-32
lines changed

5 files changed

+34
-32
lines changed

docs/data-sources/cfw_firewalls.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The following arguments are supported:
2121
* `region` - (Optional, String) Specifies the region in which to query the data source.
2222
If omitted, the provider-level region will be used.
2323

24-
* `fw_instance_id` - (Optional, String) Specifies the firewall instance ID.
24+
* `fw_instance_id` - (Optional, String) Specifies the firewall instance ID.
2525
If not specified, the first instance will be returned.
2626

2727
* `service_type` - (Optional, Int) Specifies the service type. The value can be:

docs/resources/ces_resource_group.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ The following arguments are supported:
103103

104104
Changing this parameter will create a new resource.
105105

106-
* `resources` - (Required, List) Specifies the list of resources to add into the group.
106+
* `resources` - (Optional, List) Specifies the list of resources to add into the group.
107107
The [ResourcesOpts](#ResourceGroup_ResourcesOpts) structure is documented below.
108108

109109
<a name="ResourceGroup_ResourcesOpts"></a>

docs/resources/mapreduce_cluster.md

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -340,11 +340,15 @@ The following arguments are supported:
340340
the cluster, please following [reference](https://support.huaweicloud.com/intl/en-us/productdesc-mrs/mrs_08_0005.html)
341341
Changing this will create a new MapReduce cluster resource.
342342

343-
* `master_nodes` - (Required, List, ForceNew) Specifies a list of the informations about the master nodes in the
344-
MapReduce cluster.
343+
* `master_nodes` - (Required, List, ForceNew) Specifies the informations about master nodes in the MapReduce cluster.
345344
The `nodes` object structure of the `master_nodes` is documented below.
346345
Changing this will create a new MapReduce cluster resource.
347346

347+
* `manager_admin_pass` - (Required, String, ForceNew) Specifies the administrator password, which is used to log in to
348+
the cluster management page. The password can contain 8 to 26 characters and cannot be the username or the username
349+
spelled backwards. The password must contain lowercase letters, uppercase letters, digits, spaces and the special
350+
characters: `!?,.:-_{}[]@$^+=/`. Changing this will create a new MapReduce cluster resource.
351+
348352
* `vpc_id` - (Required, String, ForceNew) Specifies the ID of the VPC which bound to the MapReduce cluster. Changing
349353
this will create a new MapReduce cluster resource.
350354

@@ -369,11 +373,6 @@ The EIP must have been created and must be in the same region as the cluster.
369373
Default to true. If `log_collection` set true, the OBS buckets will be created and only used to collect logs that
370374
record MapReduce cluster creation failures. Changing this will create a new MapReduce cluster resource.
371375

372-
* `manager_admin_pass` - (Optional, String, ForceNew) Specifies the administrator password, which is used to log in to
373-
the cluster management page. The password can contain 8 to 26 characters and cannot be the username or the username
374-
spelled backwards. The password must contain lowercase letters, uppercase letters, digits, spaces and the special
375-
characters: `!?,.:-_{}[]@$^+=/`. Changing this will create a new MapReduce cluster resource.
376-
377376
* `node_admin_pass` - (Optional, String, ForceNew) Specifies the administrator password, which is used to log in to the
378377
each nodes(/ECSs). The password can contain 8 to 26 characters and cannot be the username or the username spelled
379378
backwards. The password must contain lowercase letters, uppercase letters, digits, spaces and the special
@@ -403,46 +402,49 @@ The EIP must have been created and must be in the same region as the cluster.
403402
and data instances are deployed in different node groups. This deployment mode is applicable to a cluster with more
404403
than 500 nodes. Components can be deployed separately, which can be used for a larger cluster scale.
405404

406-
* `analysis_core_nodes` - (Optional, List) Specifies a list of the informations about the analysis core nodes in the
407-
MapReduce cluster.
405+
* `analysis_core_nodes` - (Optional, List, ForceNew) Specifies the informations about analysis core nodes in the
406+
MapReduce cluster.
408407
The `nodes` object structure of the `analysis_core_nodes` is documented below.
408+
Changing this will create a new MapReduce cluster resource.
409409

410-
* `streaming_core_nodes` - (Optional, List) Specifies a list of the informations about the streaming core nodes in the
411-
MapReduce cluster.
410+
* `streaming_core_nodes` - (Optional, List, ForceNew) Specifies the informations about streaming core nodes in the
411+
MapReduce cluster.
412412
The `nodes` object structure of the `streaming_core_nodes` is documented below.
413+
Changing this will create a new MapReduce cluster resource.
413414

414-
* `analysis_task_nodes` - (Optional, List) Specifies a list of the informations about the analysis task nodes in the
415-
MapReduce cluster.
415+
* `analysis_task_nodes` - (Optional, List, ForceNew) Specifies the informations about analysis task nodes in the
416+
MapReduce cluster.
416417
The `nodes` object structure of the `analysis_task_nodes` is documented below.
418+
Changing this will create a new MapReduce cluster resource.
417419

418-
* `streaming_task_nodes` - (Optional, List) Specifies a list of the informations about the streaming task nodes in the
419-
MapReduce cluster.
420+
* `streaming_task_nodes` - (Optional, List, ForceNew) Specifies the informations about streaming task nodes in the
421+
MapReduce cluster.
420422
The `nodes` object structure of the `streaming_task_nodes` is documented below.
423+
Changing this will create a new MapReduce cluster resource.
421424

422-
* `custom_nodes` - (Optional, List) Specifies a list of the informations about the custom nodes in the MapReduce
423-
cluster.
425+
* `custom_nodes` - (Optional, List, ForceNew) Specifies the informations about custom nodes in the MapReduce cluster.
424426
The `nodes` object structure of the `custom_nodes` is documented below.
425-
`Unlike other nodes, it needs to specify group_name`
427+
Changing this will create a new MapReduce cluster resource.
426428

427429
* `component_configs` - (Optional, List, ForceNew) Specifies the component configurations of the cluster.
428430
The [object](#component_configurations) structure is documented below.
429431
Changing this will create a new MapReduce cluster resource.
430432

431-
* `tags` - (Optional, Map, ForceNew) Specifies the key/value pairs to associate with the cluster.
433+
* `tags` - (Optional, Map) Specifies the key/value pairs to associate with the cluster.
432434

433435
The `nodes` block supports:
434436

435437
* `group_name` - (Optional, String, ForceNew) Specifies the name of nodes for the node group.
436438

437-
-> **NOTE:** Only the custom_nodes has this argument
439+
-> **NOTE:** This parameter is only valid and mandatory for `custom_nodes`.
438440

439441
* `flavor` - (Required, String, ForceNew) Specifies the instance specifications for each nodes in node group.
440442
Changing this will create a new MapReduce cluster resource.
441443

442444
* `node_number` - (Required, Int) Specifies the number of nodes for the node group.
443445

444-
-> **NOTE:** Only the core group and task group updations are allowed. The number of nodes after scaling cannot be
445-
less than the number of nodes originally created.
446+
-> **NOTE:** Only the core node group and task node group are allowed to be updated. The number of nodes after scaling
447+
cannot be less than the number of nodes originally created.
446448

447449
* `root_volume_type` - (Required, String, ForceNew) Specifies the system disk flavor of the nodes. Changing this will
448450
create a new MapReduce cluster resource.

huaweicloud/services/cfw/resource_huaweicloud_cfw_address_group.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func ResourceAddressGroup() *schema.Resource {
5656
Optional: true,
5757
Computed: true,
5858
ForceNew: true,
59-
Description: `Specifies the Address type.`,
59+
Description: `schema: Computed; Specifies the Address type.`,
6060
},
6161
"description": {
6262
Type: schema.TypeString,

huaweicloud/services/mrs/resource_huaweicloud_mapreduce_cluster.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -299,13 +299,6 @@ func nodeGroupSchemaResource(groupName string, nodeScalable bool, minNodeNum, ma
299299
Required: true,
300300
ForceNew: true,
301301
},
302-
"host_ips": {
303-
Type: schema.TypeList,
304-
Computed: true,
305-
Elem: &schema.Schema{
306-
Type: schema.TypeString,
307-
},
308-
},
309302
"assigned_roles": {
310303
Type: schema.TypeList,
311304
Optional: true,
@@ -320,6 +313,13 @@ func nodeGroupSchemaResource(groupName string, nodeScalable bool, minNodeNum, ma
320313
return false
321314
},
322315
},
316+
"host_ips": {
317+
Type: schema.TypeList,
318+
Computed: true,
319+
Elem: &schema.Schema{
320+
Type: schema.TypeString,
321+
},
322+
},
323323
},
324324
}
325325

0 commit comments

Comments
 (0)