函数工作流 FUNCTIONGRAPH-事件:配置
时间:2025-02-18 14:55:40
配置
事件属于每个函数,可以在serverless.yml的events属性中找到。
# serverless.yml functions: first: # Function name handler: index.http # Reference to file index.js & exported function 'http' events: - apigw: env_id: DEFAULT_ENVIRONMENT_RELEASE_ID env_name: RELEASE req_method: GET path: /test name: API_test

目前,每个函数只支持一个事件定义。
support.huaweicloud.com/devg-functiongraph/functiongraph_02_0742.html