Skip to content

Commit 045309f

Browse files
author
mikatong
committed
public-network rm deprecated and validate min is 3
1 parent 7459353 commit 045309f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tencentcloud/services/ckafka/resource_tc_ckafka_instance.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -255,11 +255,11 @@ func ResourceTencentCloudCkafkaInstance() *schema.Resource {
255255
Description: "Modification of the rebalancing time after upgrade.",
256256
},
257257
"public_network": {
258-
Type: schema.TypeInt,
259-
Optional: true,
260-
Computed: true,
261-
Deprecated: "It has been deprecated from version 1.81.6. If set public network value, it will cause error.",
262-
Description: "Bandwidth of the public network.",
258+
Type: schema.TypeInt,
259+
Optional: true,
260+
Computed: true,
261+
ValidateFunc: tccommon.ValidateIntegerMin(3),
262+
Description: "Bandwidth of the public network.",
263263
},
264264
"max_message_byte": {
265265
Type: schema.TypeInt,

website/docs/r/ckafka_instance.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ The following arguments are supported:
151151
* `multi_zone_flag` - (Optional, Bool) Indicates whether the instance is multi zones. NOTE: if set to `true`, `zone_ids` must set together.
152152
* `partition` - (Optional, Int) Partition Size. Its interval varies with bandwidth, and the input must be within the interval, which can be viewed through the control. If it is not within the interval, the plan will cause a change when first created.
153153
* `period` - (Optional, Int) Prepaid purchase time, such as 1, is one month.
154-
* `public_network` - (Optional, Int, **Deprecated**) It has been deprecated from version 1.81.6. If set public network value, it will cause error. Bandwidth of the public network.
154+
* `public_network` - (Optional, Int) Bandwidth of the public network.
155155
* `rebalance_time` - (Optional, Int) Modification of the rebalancing time after upgrade.
156156
* `renew_flag` - (Optional, Int) Prepaid automatic renewal mark, 0 means the default state, the initial state, 1 means automatic renewal, 2 means clear no automatic renewal (user setting).
157157
* `specifications_type` - (Optional, String) Specifications type of instance. Allowed values are `standard`, `profession`. Default is `profession`.

0 commit comments

Comments
 (0)