Skip to content

Commit 4854396

Browse files
committed
add
1 parent cce4fd1 commit 4854396

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

tencentcloud/services/scf/extension_scf.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ const (
1919
SCF_TRIGGER_TYPE_TIMER = "timer"
2020
SCF_TRIGGER_TYPE_CKAFKA = "ckafka"
2121
SCF_TRIGGER_TYPE_API_GATEWAY = "apigw"
22+
SCF_TRIGGER_TYPE_API_HTTP = "http"
23+
SCF_TRIGGER_TYPE_API_CLS = "cls"
2224

2325
SCF_LOGS_ORDER_BY_FUNCTION_NAME = "function_name"
2426
SCF_LOGS_ORDER_BY_DERATION = "duration"
@@ -57,6 +59,8 @@ var (
5759
SCF_TRIGGER_TYPE_TIMER,
5860
SCF_TRIGGER_TYPE_CKAFKA,
5961
SCF_TRIGGER_TYPE_API_GATEWAY,
62+
SCF_TRIGGER_TYPE_API_HTTP,
63+
SCF_TRIGGER_TYPE_API_CLS,
6064
}
6165

6266
SCF_LOGS_ORDERS = []string{

tencentcloud/services/scf/resource_tc_scf_function.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ func ResourceTencentCloudScfFunction() *schema.Resource {
320320
Type: schema.TypeString,
321321
Required: true,
322322
ValidateFunc: tccommon.ValidateAllowedStringValue(SCF_TRIGGER_TYPES),
323-
Description: "Type of the SCF function trigger, support `cos`, `cmq`, `timer`, `ckafka`, `apigw`.",
323+
Description: "Type of the SCF function trigger, support `cos`, `cls`, `timer`, `ckafka`, `http`, `apigw`, `cmq`.",
324324
},
325325
"trigger_desc": {
326326
Type: schema.TypeString,

website/docs/r/scf_function.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ The `triggers` object supports the following:
160160

161161
* `name` - (Required, String) Name of the SCF function trigger, if `type` is `ckafka`, the format of name must be `<ckafkaInstanceId>-<topicId>`; if `type` is `cos`, the name is cos bucket id, other In any case, it can be combined arbitrarily. It can only contain English letters, numbers, connectors and underscores. The maximum length is 100.
162162
* `trigger_desc` - (Required, String) TriggerDesc of the SCF function trigger, parameter format of `timer` is linux cron expression; parameter of `cos` type is json string `{"bucketUrl":"<name-appid>.cos.<region>.myqcloud.com","event":"cos:ObjectCreated:*","filter":{"Prefix":"","Suffix":""}}`, where `bucketUrl` is cos bucket (optional), `event` is the cos event trigger, `Prefix` is the corresponding file prefix filter condition, `Suffix` is the suffix filter condition, if not need filter condition can not pass; `cmq` type does not pass this parameter; `ckafka` type parameter format is json string `{"maxMsgNum":"1","offset":"latest"}`; `apigw` type parameter format is json string `{"api":{"authRequired":"FALSE","requestConfig":{"method":"ANY"},"isIntegratedResponse":"FALSE"},"service":{"serviceId":"service-dqzh68sg"},"release":{"environmentName":"test"}}`.
163-
* `type` - (Required, String) Type of the SCF function trigger, support `cos`, `cmq`, `timer`, `ckafka`, `apigw`.
163+
* `type` - (Required, String) Type of the SCF function trigger, support `cos`, `cls`, `timer`, `ckafka`, `http`, `apigw`, `cmq`.
164164
* `cos_region` - (Optional, String) Region of cos bucket. if `type` is `cos`, `cos_region` is required.
165165

166166
## Attributes Reference

0 commit comments

Comments
 (0)