Skip to content

Commit 6a54670

Browse files
committed
add
1 parent 9eb0aed commit 6a54670

File tree

4 files changed

+83
-9
lines changed

4 files changed

+83
-9
lines changed

tencentcloud/provider.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2293,8 +2293,7 @@ Resource
22932293
tencentcloud_mqtt_instance
22942294
tencentcloud_mqtt_instance_public_endpoint
22952295
tencentcloud_mqtt_topic
2296-
tencentcloud_mqtt_ca_certificate
22972296
tencentcloud_mqtt_user
2298-
tencentcloud_mqtt_device_certificate
22992297
tencentcloud_mqtt_jwt_authenticator
23002298
tencentcloud_mqtt_jwks_authenticator
2299+
tencentcloud_mqtt_http_authenticator

tencentcloud/services/mqtt/resource_tc_mqtt_jwt_authenticator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ func resourceTencentCloudMqttJwtAuthenticatorRead(d *schema.ResourceData, meta i
170170
}
171171

172172
if v, ok := configMap["public_key"].(string); ok && v != "" {
173-
_ = d.Set("public_key", v)
173+
_ = d.Set("publicKey", v)
174174
}
175175
}
176176

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
---
2+
subcategory: "TDMQ for MQTT(MQTT)"
3+
layout: "tencentcloud"
4+
page_title: "TencentCloud: tencentcloud_mqtt_http_authenticator"
5+
sidebar_current: "docs-tencentcloud-resource-mqtt_http_authenticator"
6+
description: |-
7+
Provides a resource to create a MQTT http authenticator
8+
---
9+
10+
# tencentcloud_mqtt_http_authenticator
11+
12+
Provides a resource to create a MQTT http authenticator
13+
14+
## Example Usage
15+
16+
```hcl
17+
resource "tencentcloud_mqtt_http_authenticator" "example" {
18+
instance_id = "mqtt-zxjwkr98"
19+
endpoint = "https://example.com"
20+
concurrency = 8
21+
method = "POST"
22+
status = "open"
23+
remark = "Remark."
24+
connect_timeout = 10
25+
read_timeout = 10
26+
header {
27+
key = "Content-type"
28+
value = "application/json"
29+
}
30+
31+
body {
32+
key = "bodyKey"
33+
value = "bodyValue"
34+
}
35+
}
36+
```
37+
38+
## Argument Reference
39+
40+
The following arguments are supported:
41+
42+
* `endpoint` - (Required, String) JWKS endpoint.
43+
* `instance_id` - (Required, String) Instance ID.
44+
* `body` - (Optional, List) Forwarding request body.
45+
* `concurrency` - (Optional, Int) Maximum concurrent connections, default 8, range: 1-20.
46+
* `connect_timeout` - (Optional, Int) Connection timeout, unit: seconds, range: 1-30.
47+
* `header` - (Optional, List) Forwarding request header.
48+
* `method` - (Optional, String) Network request method GET or POST, default POST.
49+
* `read_timeout` - (Optional, Int) Request timeout, unit: seconds, range: 1-30.
50+
* `remark` - (Optional, String) Remark.
51+
* `status` - (Optional, String) Is the authenticator enabled: open enable; Close close.
52+
53+
The `body` object supports the following:
54+
55+
* `key` - (Required, String) Body key.
56+
* `value` - (Required, String) Body key.
57+
58+
The `header` object supports the following:
59+
60+
* `key` - (Required, String) Header key.
61+
* `value` - (Required, String) Header value.
62+
63+
## Attributes Reference
64+
65+
In addition to all arguments above, the following attributes are exported:
66+
67+
* `id` - ID of the resource.
68+
69+
70+
71+
## Import
72+
73+
MQTT http authenticator can be imported using the id, e.g.
74+
75+
```
76+
terraform import tencentcloud_mqtt_http_authenticator.example mqtt-zxjwkr98
77+
```
78+

website/tencentcloud.erb

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4021,21 +4021,18 @@
40214021
<li>
40224022
<a href="/docs/providers/tencentcloud/r/mqtt_topic.html">tencentcloud_mqtt_topic</a>
40234023
</li>
4024-
<li>
4025-
<a href="/docs/providers/tencentcloud/r/mqtt_ca_certificate.html">tencentcloud_mqtt_ca_certificate</a>
4026-
</li>
40274024
<li>
40284025
<a href="/docs/providers/tencentcloud/r/mqtt_user.html">tencentcloud_mqtt_user</a>
40294026
</li>
4030-
<li>
4031-
<a href="/docs/providers/tencentcloud/r/mqtt_device_certificate.html">tencentcloud_mqtt_device_certificate</a>
4032-
</li>
40334027
<li>
40344028
<a href="/docs/providers/tencentcloud/r/mqtt_jwt_authenticator.html">tencentcloud_mqtt_jwt_authenticator</a>
40354029
</li>
40364030
<li>
40374031
<a href="/docs/providers/tencentcloud/r/mqtt_jwks_authenticator.html">tencentcloud_mqtt_jwks_authenticator</a>
40384032
</li>
4033+
<li>
4034+
<a href="/docs/providers/tencentcloud/r/mqtt_http_authenticator.html">tencentcloud_mqtt_http_authenticator</a>
4035+
</li>
40394036
</ul>
40404037
</li>
40414038
</ul>

0 commit comments

Comments
 (0)