更新时间:2025-06-28 gmt 08:00
华为云函数工作流(functiongraph)yaml规范-j9九游会登录
字段解析
|
参数名 |
必填 |
类型 |
参数描述 |
|---|---|---|---|
|
region |
true |
enum |
enum |
|
function |
true |
struct |
函数 |
|
trigger |
false |
struct |
触发器 |
yaml完整配置
华为云函数工作流(functiongraph)组件的yaml字段如下:
edition: 1.0.0 # 命令行yaml规范版本,遵循语义化版本(semantic versioning)规范
name: fg-test # 项目名称
access: "default" # 秘钥别名
vars: # 全局变量
region: "cn-east-3"
functionname: "start-fg-event-nodejs14"
services:
component-test: # 服务名称
component: fgs # 组件名称
props:
region: ${vars.region}
function:
functionname: ${vars.functionname} # 函数名
handler: index.handler # 函数执行入口
memorysize: 256 # 函数消耗的内存
timeout: 30 # 函数执行超时时间
runtime: node.js14.18 # 运行时
agencyname: fgs-vpc-test # 委托名称
environmentvariables: # 环境变量
test: test
hello: world
vpcid: xxx-xxx # 虚拟私有云唯一标识
subnetid: xxx-xxx # 子网编号
concurrency: 10 # 单函数最大实例数
concurrentnum: 10 # 单实例最大并发数
codetype: zip # 函数代码类型
dependversionlist: # 依赖包,取依赖包的id
- xxx-xxx
code: # 本地代码地址
codeuri: ./code
trigger:
triggertypecode: timer # 触发器类型
status: disabled # 触发器状态
eventdata: # 触发器配置
name: apig_test # api名称
groupname: apigroup_xxx # 分组名称
auth: iam # 安全认证
protocol: https # 请求协议
timeout: 5000 # 后端超时时间
相关文档
意见反馈
文档内容是否对您有帮助?
提交成功!非常感谢您的反馈,我们会继续努力做到更好!
您可在查看反馈及问题处理状态。
系统繁忙,请稍后重试
如您有其它疑问,您也可以通过华为云社区问答频道来与我们联系探讨