|
Parameter |
Type |
Description |
Example |
|---|---|---|---|
|
object |
Request parameters for creating a trigger. |
||
| description |
string |
The description of the trigger. |
trigger for test |
| invocationRole |
string |
The RAM role used by the event source, such as Object Storage Service (OSS), to invoke the function. |
acs:ram::1234567890:role/fc-test |
| qualifier |
string |
The version or alias of the function. |
LATEST |
| sourceArn |
string |
The Alibaba Cloud Resource Name (ARN) of the trigger event source. |
acs:oss:cn-shanghai:12345:mybucket |
| triggerConfig |
string |
Trigger configurations. Data structures vary by trigger type:
|
{"events":["oss:ObjectCreated:*"],"filter":{"key":{"prefix":"/prefix","suffix":".zip"}}} |
| triggerName |
string |
The trigger name. Allows letters, digits, hyphens (-), and underscores (_). Must be 1 to 128 characters and cannot start with a digit or hyphen (-). |
oss_create_object_demo |
| triggerType |
string |
The trigger type. Valid values:
|
oss |