Skip to content

Commit 5fed731

Browse files
committed
add
1 parent bf4eb30 commit 5fed731

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

tencentcloud/services/mqtt/resource_tc_mqtt_device_certificate.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,30 +27,35 @@ 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+
ForceNew: true,
4852
Description: "Client ID.",
4953
},
5054

5155
"format": {
5256
Type: schema.TypeString,
5357
Optional: true,
58+
ForceNew: true,
5459
Description: "Certificate format, Default is PEM.",
5560
},
5661

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)