Skip to content

Commit 7c21b4b

Browse files
authored
fix(mqtt): [122438056] update fileds property (#3352)
* add * add
1 parent bf4eb30 commit 7c21b4b

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

tencentcloud/services/mqtt/resource_tc_mqtt_device_certificate.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,36 +27,44 @@ func ResourceTencentCloudMqttDeviceCertificate() *schema.Resource {
2727
"instance_id": {
2828
Type: schema.TypeString,
2929
Required: true,
30+
ForceNew: true,
3031
Description: "Instance ID.",
3132
},
3233

3334
"device_certificate": {
3435
Type: schema.TypeString,
3536
Required: true,
37+
ForceNew: true,
3638
Description: "Device certificate.",
3739
},
3840

3941
"ca_sn": {
4042
Type: schema.TypeString,
4143
Required: true,
44+
ForceNew: true,
4245
Description: "Associated CA certificate SN.",
4346
},
4447

4548
"client_id": {
4649
Type: schema.TypeString,
4750
Optional: true,
51+
Computed: true,
52+
ForceNew: true,
4853
Description: "Client ID.",
4954
},
5055

5156
"format": {
5257
Type: schema.TypeString,
5358
Optional: true,
59+
Computed: true,
60+
ForceNew: true,
5461
Description: "Certificate format, Default is PEM.",
5562
},
5663

5764
"status": {
5865
Type: schema.TypeString,
5966
Optional: true,
67+
Computed: true,
6068
ValidateFunc: tccommon.ValidateAllowedStringValue([]string{"ACTIVE", "INACTIVE"}),
6169
Description: "Certificate status, Default is ACTIVE.\\n ACTIVE activation;\\n INACTIVE not active.",
6270
},

website/docs/r/mqtt_device_certificate.html.markdown

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ EOF
5050

5151
The following arguments are supported:
5252

53-
* `ca_sn` - (Required, String) Associated CA certificate SN.
54-
* `device_certificate` - (Required, String) Device certificate.
55-
* `instance_id` - (Required, String) Instance ID.
56-
* `client_id` - (Optional, String) Client ID.
57-
* `format` - (Optional, String) Certificate format, Default is PEM.
53+
* `ca_sn` - (Required, String, ForceNew) Associated CA certificate SN.
54+
* `device_certificate` - (Required, String, ForceNew) Device certificate.
55+
* `instance_id` - (Required, String, ForceNew) Instance ID.
56+
* `client_id` - (Optional, String, ForceNew) Client ID.
57+
* `format` - (Optional, String, ForceNew) Certificate format, Default is PEM.
5858
* `status` - (Optional, String) Certificate status, Default is ACTIVE.\n ACTIVE activation;\n INACTIVE not active.
5959

6060
## Attributes Reference

0 commit comments

Comments
 (0)