检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
用Python语言写代码时,自己创建的包名不能与Python标准库同名,否则会提示module加载失败。例如“json”、“lib”、“os”等。 以下示例使用的Python 2.7版本。 创建函数工程。 编写打印helloworld的代码。
= client.CreateWorkflow(request) if err == nil { fmt.Printf("%+v\n", response) } else { fmt.Println(err) } } 更多 更多编程语言的
= client.UpdateWorkFlow(request) if err == nil { fmt.Printf("%+v\n", response) } else { fmt.Println(err) } } 更多 更多编程语言的
= client.UpdateTrigger(request) if err == nil { fmt.Printf("%+v\n", response) } else { fmt.Println(err) } } 更多 更多编程语言的
client.ShowFunctionTrigger(request) if err == nil { fmt.Printf("%+v\n", response) } else { fmt.Println(err) } } 更多 更多编程语言的
(系统配置无要求) 创建一个空文件夹 mkdir custom_container_event_example && cd custom_container_event_example 以Nodejs语言为例,实现一个Http Server,处理函数初始化init请求和函数调用invoke
幂等性 在编程中,幂等性指应用程序或组件具备识别重复事件和防止重复、不一致或数据丢失的能力。若需要函数保持幂等性,可以通过函数逻辑设计来正确处理重复的事件。
String 否 子网掩码 gateway String 否 网关 表5 dependency参数说明 参数 类型 是否必选 说明 owner String 否 依赖包属主的domainId link String 否 依赖包在OBS上的链接 runtime String 否 依赖包语言类型
client.CreateFunctionTrigger(request) if err == nil { fmt.Printf("%+v\n", response) } else { fmt.Println(err) } } 更多 更多编程语言的