Parameter | Type | Description | Example |
---|---|---|---|
object | The information about request parameters to create the trigger. | ||
description | string | The description of the trigger. | trigger for test |
invocationRole | string | The RAM role that is 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 | The configurations of the trigger. The configurations vary based on the trigger type. The following items list the data structures for different types of triggers:
| {"events":["oss:ObjectCreated:*"],"filter":{"key":{"prefix":"/prefix","suffix":".zip"}}} |
triggerName | string | The name of the trigger. The name can contain only letters, digits, hyphens (-), and underscores (_). The name must be 1 to 128 characters in length and cannot start with a digit or a hyphen (-). | oss_create_object_demo |
triggerType | string | The type of the trigger. Valid values:
| oss |