Skip to content

Commit 5e9a2c6

Browse files
committed
fix ckafka doc
1 parent b400e96 commit 5e9a2c6

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

tencentcloud/resource_tc_ckafka_instance.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
Use this resource to create ckafka instance.
33
4-
~> **NOTE:** It only support create profession ckafka instance.
4+
~> **NOTE:** It only support create profession and prepaid ckafka instance.
55
66
Example Usage
77
@@ -102,13 +102,13 @@ func resourceTencentCloudCkafkaInstance() *schema.Resource {
102102
},
103103
"vpc_id": {
104104
Type: schema.TypeString,
105-
Required: true,
106-
Description: "Vpc id.",
105+
Optional: true,
106+
Description: "Vpc id, it will be basic network if not set.",
107107
},
108108
"subnet_id": {
109109
Type: schema.TypeString,
110-
Required: true,
111-
Description: "Subnet id.",
110+
Optional: true,
111+
Description: "Subnet id, it will be basic network if not set.",
112112
},
113113
"msg_retention_time": {
114114
Type: schema.TypeInt,
@@ -272,7 +272,7 @@ func resourceTencentCloudCkafkaInstance() *schema.Resource {
272272
Type: schema.TypeInt,
273273
Optional: true,
274274
Computed: true,
275-
Description: "Timestamp.",
275+
Description: "Bandwidth of the public network.",
276276
},
277277
"vip": {
278278
Type: schema.TypeString,

website/docs/r/ckafka_instance.html.markdown

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ description: |-
1111

1212
Use this resource to create ckafka instance.
1313

14-
~> **NOTE:** It only support create profession ckafka instance.
14+
~> **NOTE:** It only support create profession and prepaid ckafka instance.
1515

1616
## Example Usage
1717

@@ -56,8 +56,6 @@ resource "tencentcloud_ckafka_instance" "foo" {
5656
The following arguments are supported:
5757

5858
* `instance_name` - (Required, String) Instance name.
59-
* `subnet_id` - (Required, String) Subnet id.
60-
* `vpc_id` - (Required, String) Vpc id.
6159
* `zone_id` - (Required, Int) Available zone id.
6260
* `band_width` - (Optional, Int) Instance bandwidth in MBps.
6361
* `config` - (Optional, List) Instance configuration.
@@ -69,11 +67,13 @@ The following arguments are supported:
6967
* `multi_zone_flag` - (Optional, Bool) Indicates whether the instance is multi zones. NOTE: if set to `true`, `zone_ids` must set together.
7068
* `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.
7169
* `period` - (Optional, Int) Prepaid purchase time, such as 1, is one month.
72-
* `public_network` - (Optional, Int) Timestamp.
70+
* `public_network` - (Optional, Int) Bandwidth of the public network.
7371
* `rebalance_time` - (Optional, Int) Modification of the rebalancing time after upgrade.
7472
* `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).
73+
* `subnet_id` - (Optional, String) Subnet id, it will be basic network if not set.
7574
* `tag_set` - (Optional, Map) Tag set of instance.
7675
* `tags` - (Optional, List, **Deprecated**) It has been deprecated from version 1.78.5, because it do not support change. Use `tag_set` instead. Tags of instance. Partition size, the professional version does not need tag.
76+
* `vpc_id` - (Optional, String) Vpc id, it will be basic network if not set.
7777
* `zone_ids` - (Optional, Set: [`Int`]) List of available zone id. NOTE: this argument must set together with `multi_zone_flag`.
7878

7979
The `config` object supports the following:

0 commit comments

Comments
 (0)