Skip to content

Commit b0cf988

Browse files
author
mikatong
committed
remove RequiredWith on availability_zone_list and hidden_zone
1 parent 91b8f2e commit b0cf988

File tree

4 files changed

+10
-14
lines changed

4 files changed

+10
-14
lines changed

tencentcloud/services/mongodb/resource_tc_mongodb_instance.go

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,19 +109,17 @@ func ResourceTencentCloudMongodbInstance() *schema.Resource {
109109
Elem: &schema.Schema{
110110
Type: schema.TypeString,
111111
},
112-
RequiredWith: []string{"hidden_zone"},
113112
Description: `A list of nodes deployed in multiple availability zones. For more information, please use the API DescribeSpecInfo.
114113
- Multi-availability zone deployment nodes can only be deployed in 3 different availability zones. It is not supported to deploy most nodes of the cluster in the same availability zone. For example, a 3-node cluster does not support the deployment of 2 nodes in the same zone.
115114
- Version 4.2 and above are not supported.
116115
- Read-only disaster recovery instances are not supported.
117116
- Basic network cannot be selected.`,
118117
},
119118
"hidden_zone": {
120-
Type: schema.TypeString,
121-
Optional: true,
122-
Computed: true,
123-
RequiredWith: []string{"availability_zone_list"},
124-
Description: "The availability zone to which the Hidden node belongs. This parameter must be configured to deploy instances across availability zones.",
119+
Type: schema.TypeString,
120+
Optional: true,
121+
Computed: true,
122+
Description: "The availability zone to which the Hidden node belongs. This parameter is required in cross-AZ instance deployment.",
125123
},
126124
"maintenance_start": {
127125
Type: schema.TypeString,

tencentcloud/services/mongodb/resource_tc_mongodb_sharding_instance.go

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,17 @@ func ResourceTencentCloudMongodbShardingInstance() *schema.Resource {
4242
Elem: &schema.Schema{
4343
Type: schema.TypeString,
4444
},
45-
RequiredWith: []string{"hidden_zone"},
4645
Description: `A list of nodes deployed in multiple availability zones. For more information, please use the API DescribeSpecInfo.
4746
- Multi-availability zone deployment nodes can only be deployed in 3 different availability zones. It is not supported to deploy most nodes of the cluster in the same availability zone. For example, a 3-node cluster does not support the deployment of 2 nodes in the same zone.
4847
- Version 4.2 and above are not supported.
4948
- Read-only disaster recovery instances are not supported.
5049
- Basic network cannot be selected.`,
5150
},
5251
"hidden_zone": {
53-
Type: schema.TypeString,
54-
Optional: true,
55-
Computed: true,
56-
RequiredWith: []string{"availability_zone_list"},
57-
Description: "The availability zone to which the Hidden node belongs. This parameter must be configured to deploy instances across availability zones.",
52+
Type: schema.TypeString,
53+
Optional: true,
54+
Computed: true,
55+
Description: "The availability zone to which the Hidden node belongs. This parameter is required in cross-AZ instance deployment.",
5856
},
5957
}
6058
basic := TencentMongodbBasicInfo()

website/docs/r/mongodb_instance.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ The following arguments are supported:
4646
- Read-only disaster recovery instances are not supported.
4747
- Basic network cannot be selected.
4848
* `charge_type` - (Optional, String, ForceNew) The charge type of instance. Valid values are `PREPAID` and `POSTPAID_BY_HOUR`. Default value is `POSTPAID_BY_HOUR`. Note: TencentCloud International only supports `POSTPAID_BY_HOUR`. Caution that update operation on this field will delete old instances and create new one with new charge type.
49-
* `hidden_zone` - (Optional, String) The availability zone to which the Hidden node belongs. This parameter must be configured to deploy instances across availability zones.
49+
* `hidden_zone` - (Optional, String) The availability zone to which the Hidden node belongs. This parameter is required in cross-AZ instance deployment.
5050
* `maintenance_end` - (Optional, String) Maintenance window end time.
5151
- The value range is any full point or half point from `00:00-23:00`, and the maintenance time duration is at least 30 minutes and at most 3 hours.
5252
- The end time must be based on the start time backwards.

website/docs/r/mongodb_sharding_instance.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ The following arguments are supported:
5252
- Read-only disaster recovery instances are not supported.
5353
- Basic network cannot be selected.
5454
* `charge_type` - (Optional, String, ForceNew) The charge type of instance. Valid values are `PREPAID` and `POSTPAID_BY_HOUR`. Default value is `POSTPAID_BY_HOUR`. Note: TencentCloud International only supports `POSTPAID_BY_HOUR`. Caution that update operation on this field will delete old instances and create new one with new charge type.
55-
* `hidden_zone` - (Optional, String) The availability zone to which the Hidden node belongs. This parameter must be configured to deploy instances across availability zones.
55+
* `hidden_zone` - (Optional, String) The availability zone to which the Hidden node belongs. This parameter is required in cross-AZ instance deployment.
5656
* `mongos_cpu` - (Optional, Int) Number of mongos cpu.
5757
* `mongos_memory` - (Optional, Int) Mongos memory size in GB.
5858
* `mongos_node_num` - (Optional, Int) Number of mongos.

0 commit comments

Comments
 (0)