Skip to content

fix(mqtt): [122438056] update fileds property #3352

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,36 +27,44 @@ func ResourceTencentCloudMqttDeviceCertificate() *schema.Resource {
"instance_id": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
Description: "Instance ID.",
},

"device_certificate": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
Description: "Device certificate.",
},

"ca_sn": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
Description: "Associated CA certificate SN.",
},

"client_id": {
Type: schema.TypeString,
Optional: true,
Computed: true,
ForceNew: true,
Description: "Client ID.",
},

"format": {
Type: schema.TypeString,
Optional: true,
Computed: true,
ForceNew: true,
Description: "Certificate format, Default is PEM.",
},

"status": {
Type: schema.TypeString,
Optional: true,
Computed: true,
ValidateFunc: tccommon.ValidateAllowedStringValue([]string{"ACTIVE", "INACTIVE"}),
Description: "Certificate status, Default is ACTIVE.\\n ACTIVE activation;\\n INACTIVE not active.",
},
Expand Down
10 changes: 5 additions & 5 deletions website/docs/r/mqtt_device_certificate.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ EOF

The following arguments are supported:

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

## Attributes Reference
Expand Down
Loading