Skip to content

Commit b1107bf

Browse files
committed
add
1 parent 9216eab commit b1107bf

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

tencentcloud/services/scf/resource_tc_scf_function.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -317,10 +317,9 @@ func ResourceTencentCloudScfFunction() *schema.Resource {
317317
Description: "Region of cos bucket. if `type` is `cos`, `cos_region` is required.",
318318
},
319319
"type": {
320-
Type: schema.TypeString,
321-
Required: true,
322-
ValidateFunc: tccommon.ValidateAllowedStringValue(SCF_TRIGGER_TYPES),
323-
Description: "Type of the SCF function trigger, support `cos`, `cls`, `timer`, `ckafka`, `http`, `apigw`, `cmq`.",
320+
Type: schema.TypeString,
321+
Required: true,
322+
Description: "Type of the SCF function trigger, support `timer`, `ckafka`, `custom_kafka`, `apigw`, `cmq`, `cos`, `mqtt`, `cls`, `clb`, `mps`, `vod`, `cm`, `eb`, `http`.",
324323
},
325324
"trigger_desc": {
326325
Type: schema.TypeString,

website/docs/r/scf_function.html.markdown

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

172172
* `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.
173173
* `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"}}`.
174-
* `type` - (Required, String) Type of the SCF function trigger, support `cos`, `cls`, `timer`, `ckafka`, `http`, `apigw`, `cmq`.
174+
* `type` - (Required, String) Type of the SCF function trigger, support `timer`, `ckafka`, `custom_kafka`, `apigw`, `cmq`, `cos`, `mqtt`, `cls`, `clb`, `mps`, `vod`, `cm`, `eb`, `http`.
175175
* `cos_region` - (Optional, String) Region of cos bucket. if `type` is `cos`, `cos_region` is required.
176176

177177
## Attributes Reference

0 commit comments

Comments
 (0)