Skip to content
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
1 change: 1 addition & 0 deletions tencentcloud/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,7 @@ Security Token Service(STS)
Short Message Service(SMS)
Resource
tencentcloud_sms_sign
tencentcloud_sms_template

*/
package tencentcloud
Expand Down
3 changes: 2 additions & 1 deletion tencentcloud/resource_tc_elasticsearch_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,10 @@ import (
"context"
"errors"
"fmt"
sdkErrors "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors"
"log"

sdkErrors "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors"

"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
es "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/es/v20180416"
Expand Down
43 changes: 43 additions & 0 deletions website/docs/r/sms_template.html.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
subcategory: "Short Message Service(SMS)"
layout: "tencentcloud"
page_title: "TencentCloud: tencentcloud_sms_template"
sidebar_current: "docs-tencentcloud-resource-sms_template"
description: |-
Provides a resource to create a sms template
---

# tencentcloud_sms_template

Provides a resource to create a sms template

## Example Usage

```hcl
resource "tencentcloud_sms_template" "template" {
template_name = "Template By Terraform"
template_content = "Template Content"
international = 0
sms_type = 0
remark = "terraform test"
}
```

## Argument Reference

The following arguments are supported:

* `international` - (Required, Int) Whether it is Global SMS: 0: Mainland China SMS; 1: Global SMS.
* `remark` - (Required, String) Template remarks, such as reason for application and use case.
* `sms_type` - (Required, Int) SMS type. 0: regular SMS, 1: marketing SMS.
* `template_content` - (Required, String) Message Template Content.
* `template_name` - (Required, String) Message Template name, which must be unique.

## Attributes Reference

In addition to all arguments above, the following attributes are exported:

* `id` - ID of the resource.



3 changes: 3 additions & 0 deletions website/tencentcloud.erb
Original file line number Diff line number Diff line change
Expand Up @@ -1503,6 +1503,9 @@
<li>
<a href="/docs/providers/tencentcloud/r/sms_sign.html">tencentcloud_sms_sign</a>
</li>
<li>
<a href="/docs/providers/tencentcloud/r/sms_template.html">tencentcloud_sms_template</a>
</li>
</ul>
</li>
</ul>
Expand Down