All Products
Search
Document Center

Function Compute:CreateTriggerInput

Last Updated:Aug 02, 2024
ParameterTypeDescriptionExample
object

The information about request parameters to create the trigger.

descriptionstring

The description of the trigger.

trigger for test
invocationRolestring

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
qualifierstring

The version or alias of the function.

LATEST
sourceArnstring

The Alibaba Cloud Resource Name (ARN) of the trigger event source.

acs:oss:cn-shanghai:12345:mybucket
triggerConfigstring

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"}}}
triggerNamestring

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
triggerTypestring

The type of the trigger. Valid values:

  • oss: OSS event triggers. For more information, see Overview .
  • log: Simple Log Service triggers. For more information, see Simple Log Service triggers.
  • timer: time triggers. For more information, see Time triggers.
  • http: HTTP triggers. For more information, see Overview .
  • tablestore: Tablestore triggers. For more information, see Tablestore triggers.
  • cdn_events: CDN event triggers. For more information, see Overview .
  • mns_topic: Message Service (MNS) topic triggers. For more information, see MNS topic triggers.
  • eventbridge: EventBridge-based triggers.
oss