Skip to content

Commit faeceaf

Browse files
authored
Merge pull request #1356 from tencentcloudstack/feat/add_sms_template_doc
update doc
2 parents 2ae1e08 + 1f5fa12 commit faeceaf

File tree

4 files changed

+49
-1
lines changed

4 files changed

+49
-1
lines changed

tencentcloud/provider.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,7 @@ Security Token Service(STS)
708708
Short Message Service(SMS)
709709
Resource
710710
tencentcloud_sms_sign
711+
tencentcloud_sms_template
711712
712713
*/
713714
package tencentcloud

tencentcloud/resource_tc_elasticsearch_instance.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,10 @@ import (
5454
"context"
5555
"errors"
5656
"fmt"
57-
sdkErrors "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors"
5857
"log"
5958

59+
sdkErrors "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors"
60+
6061
"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
6162
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
6263
es "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/es/v20180416"
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
subcategory: "Short Message Service(SMS)"
3+
layout: "tencentcloud"
4+
page_title: "TencentCloud: tencentcloud_sms_template"
5+
sidebar_current: "docs-tencentcloud-resource-sms_template"
6+
description: |-
7+
Provides a resource to create a sms template
8+
---
9+
10+
# tencentcloud_sms_template
11+
12+
Provides a resource to create a sms template
13+
14+
## Example Usage
15+
16+
```hcl
17+
resource "tencentcloud_sms_template" "template" {
18+
template_name = "Template By Terraform"
19+
template_content = "Template Content"
20+
international = 0
21+
sms_type = 0
22+
remark = "terraform test"
23+
}
24+
```
25+
26+
## Argument Reference
27+
28+
The following arguments are supported:
29+
30+
* `international` - (Required, Int) Whether it is Global SMS: 0: Mainland China SMS; 1: Global SMS.
31+
* `remark` - (Required, String) Template remarks, such as reason for application and use case.
32+
* `sms_type` - (Required, Int) SMS type. 0: regular SMS, 1: marketing SMS.
33+
* `template_content` - (Required, String) Message Template Content.
34+
* `template_name` - (Required, String) Message Template name, which must be unique.
35+
36+
## Attributes Reference
37+
38+
In addition to all arguments above, the following attributes are exported:
39+
40+
* `id` - ID of the resource.
41+
42+
43+

website/tencentcloud.erb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1503,6 +1503,9 @@
15031503
<li>
15041504
<a href="/docs/providers/tencentcloud/r/sms_sign.html">tencentcloud_sms_sign</a>
15051505
</li>
1506+
<li>
1507+
<a href="/docs/providers/tencentcloud/r/sms_template.html">tencentcloud_sms_template</a>
1508+
</li>
15061509
</ul>
15071510
</li>
15081511
</ul>

0 commit comments

Comments
 (0)