Skip to content

Commit 1648611

Browse files
tongyimingmikatong
and
mikatong
authored
fix(ckafka): [117466142]public-network rm deprecated and validate min is 3 (#2631)
* public-network rm deprecated and validate min is 3 * add changelog --------- Co-authored-by: mikatong <[email protected]>
1 parent c632438 commit 1648611

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

.changelog/2631.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
resource/tencentcloud_ckafka_instance: remove `public-network` deprecated and validate minimum value is 3
3+
```

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)