{
"trigger_type_code":"string",
"display_name":"string",
"status":"string",
"event_codes":"array of string",
"description":"string"
}
Table 1 describes the parameters in the trigger type model.
Parameter |
Description |
|---|---|
trigger_type_code |
Trigger type code. Options: SMN, APIG, TIMER, DMS, kafka, DDS, CTS, LTS, and OBS. |
display_name |
Trigger type value. |
status |
Trigger type status. Options:
|
description |
Trigger description. |
{
"trigger_id":"string",
"trigger_type_code":"string",
"event_type_code":"string",
"status":"string",
"event_data":"json struct",
"last_updated_time":"string",
"created_time":"string"
}
Table 2 describes the parameters in the trigger instance model.
Parameter |
Description |
|---|---|
trigger_id |
Trigger ID. |
trigger_type_code |
Trigger type code. Options: SMN, APIG, TIMER, DMS, kafka, DDS, CTS, LTS, and OBS. |
event_type_code |
Event type code. This parameter is mandatory. It can be any non-null character string. This parameter is not used currently. |
status |
Trigger status. Options: ACTIVE and DISABLED. |
event_data |
Trigger data defined in JSON format. |
last_updated_time |
Time when the trigger was last updated. |
created_time |
Time when the trigger was created. |
{
"topic_urn":"string",
"subscription_status":"string"
}
Table 3 describes the parameters of an SMN trigger.
{
"queue_id":"string",
"consumer_group_id":"string",
"polling_interval":"int"
}
Table 4 describes the parameters of a DMS trigger.
Parameter |
Description |
|---|---|
queue_id |
Name of a DMS queue. This parameter is mandatory when you create a DMS trigger. |
consumer_group_id |
Name of a DMS consumer group. This parameter is mandatory when you create a DMS trigger. |
polling_interval |
Interval at which messages are polled. This parameter is mandatory when you create a DMS trigger. Default value: 30s. |
{
"bucket": "yourBucketName",
"events": ["s3:ObjectCreated:Put"],
"prefix": "yourPrefix",
"suffix": "yourSuffix"
}
Parameter |
Description |
|---|---|
bucket |
Bucket name. This parameter is mandatory. |
events |
Collection of OBS trigger events. Options: s3:ObjectCreated:*, s3:ObjectCreated:Put, s3:ObjectCreated:Post, s3:ObjectCreated:Copy, s3:ObjectCreated:CompleteMultipartUpload, s3:ObjectRemoved:*, s3:ObjectRemoved:DeleteMarkerCreated, and s3:ObjectRemoved:Delete. This parameter is mandatory. Note that s3:objectcreated:* includes all events that start with s3:objectcreated, and s3:objectremoved:* includes all events that start with s3:objectremoved. |
prefix |
Prefix of an OBS object. This parameter is optional. |
suffix |
Suffix of an OBS object. This parameter is optional. |
{
"group_id":"string",
"env_id":"string",
"auth":"string",
"protocol":"string",
"name":"string",
"path":"string",
"match_mode":"string",
"req_method":"string" ,
"backend_type":"string" ,
"type": int ,
"sl_domain":"string"
}
Table 6 describes the parameters of an APIG trigger.
Parameter |
Description |
|---|---|
group_id |
API group. This parameter is mandatory. |
env_id |
API publishing environment. This parameter is mandatory. |
auth |
API authentication mode. Options: NONE, IAM, and APP. This parameter is mandatory. |
protocol |
Access protocol. Options: HTTP and HTTPS. This parameter is mandatory. |
name |
API name. This parameter is mandatory. |
path |
API access address, which must meet the URL rules, for example, /a/b. This parameter is mandatory. |
match_mode |
Match mode. Currently, only the prefix match mode (corresponding to SWA) is supported. This parameter is mandatory. |
req_method |
API request method, which is of enumerated type. Options: GET, POST, and PUT. This parameter is mandatory. |
backend_type |
Backend type, which must be set to FUNCTION. This parameter is mandatory. |
type |
API type. Currently, only open APIs (corresponding to value 1) are supported. This parameter is mandatory. |
sl_domain |
Subdomain name. This parameter is mandatory. |
{
"name": "string",
"schedule_type": "string",
"schedule": "string",
"user_event": "string"
}
Table 7 describes the parameters of a timer trigger.
Parameter |
Description |
|---|---|
name |
Trigger name. This parameter is mandatory. |
schedule_type |
Schedule type. Options: Rate or Cron. This parameter is mandatory. |
schedule |
Schedule setting, which varies depending on the schedule type you choose. This parameter is mandatory. When schedule_type is set to Rate, add unit m, h, or d behind a rate, for example, 3m for 3 minutes. |
user_event |
Additional information for calling a function. This parameter is optional. |
{
"trigger_type_code": "LTS",
"event_type_code": "MessageCreated",
"trigger_status": "ACTIVE",
"event_data": {
"log_group_id": "3e4d3bf7-7bad-11e9-92c5-fa163e6216be",
"log_topic_id": "41d90375-7bad-11e9-8bcf-fa163ea23ac3",
"log_group_name": "lts-group-5b42",
"log_topic_name": "lts-topic-5f3e"
}
}
Table 8 describes the parameters of an LTS trigger.
{
"name": "eqwrwe",
"operations": ["AAD:addprotocolrule:addProtocolRule", "BCS:baas-apiserver:scalePeers", "ARS:ars:setConfigArs"]
}
Table 9 describes the parameters of a CTS trigger.
{
"instance_id": "string",
"collection_name": "string",
"db_name": "string",
"db_password": string,
"batch_size": int,
}
Parameter |
Description |
|---|---|
instance_id |
DB instance ID. |
collection_name |
Collection name. |
db_name |
Database name. |
db_password |
Password for logging in to the database. |
batch_size |
Batch size. |
{
"instance_id": "string",
"db_name": "string",
"collection_name": "string",
"db_user": "string",
"db_password": string,
"batch_size": int,
}
Parameter |
Description |
|---|---|
instance_id |
Kafka instance ID. |
topic_id |
Topic ID. |
kafka_user |
Username. |
kafka_password |
Password. |
kafka_ssl_enable |
Whether to enable SSL authentication. If SSL authentication is enabled, the kafka_user and kafka_password fields are mandatory. |
batch_size |
Batch size. |