Skip to content

Commit 64165f0

Browse files
committed
add
1 parent e39e804 commit 64165f0

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
@@ -2298,8 +2298,7 @@ Resource
22982298
tencentcloud_mqtt_instance
22992299
tencentcloud_mqtt_instance_public_endpoint
23002300
tencentcloud_mqtt_topic
2301-
tencentcloud_mqtt_ca_certificate
23022301
tencentcloud_mqtt_user
2303-
tencentcloud_mqtt_device_certificate
23042302
tencentcloud_mqtt_jwt_authenticator
23052303
tencentcloud_mqtt_jwks_authenticator
2304+
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
@@ -4024,21 +4024,18 @@
40244024
<li>
40254025
<a href="/docs/providers/tencentcloud/r/mqtt_topic.html">tencentcloud_mqtt_topic</a>
40264026
</li>
4027-
<li>
4028-
<a href="/docs/providers/tencentcloud/r/mqtt_ca_certificate.html">tencentcloud_mqtt_ca_certificate</a>
4029-
</li>
40304027
<li>
40314028
<a href="/docs/providers/tencentcloud/r/mqtt_user.html">tencentcloud_mqtt_user</a>
40324029
</li>
4033-
<li>
4034-
<a href="/docs/providers/tencentcloud/r/mqtt_device_certificate.html">tencentcloud_mqtt_device_certificate</a>
4035-
</li>
40364030
<li>
40374031
<a href="/docs/providers/tencentcloud/r/mqtt_jwt_authenticator.html">tencentcloud_mqtt_jwt_authenticator</a>
40384032
</li>
40394033
<li>
40404034
<a href="/docs/providers/tencentcloud/r/mqtt_jwks_authenticator.html">tencentcloud_mqtt_jwks_authenticator</a>
40414035
</li>
4036+
<li>
4037+
<a href="/docs/providers/tencentcloud/r/mqtt_http_authenticator.html">tencentcloud_mqtt_http_authenticator</a>
4038+
</li>
40424039
</ul>
40434040
</li>
40444041
</ul>

0 commit comments

Comments
 (0)