publish-function-version
Deploy the latest code of a serverless function as a new version on Alibaba Cloud Function Compute. Specify the function name, region, and version description to manage updates effectively.
Instructions
将函数的最新代码发布为新版本
Input Schema
Name | Required | Description | Default |
---|---|---|---|
description | Yes | 函数版本的描述,可以描述一下发布的函数版本的功能。 | |
functionName | Yes | 函数名称,函数名称在每个region必须是唯一的。 | |
region | No | 部署的区域,当前可选的区域是cn-hangzhou, cn-shanghai, cn-beijing, cn-shenzhen, cn-hongkong, ap-southeast-1, ap-southeast-2, ap-southeast-3, ap-southeast-5, ap-northeast-1, eu-central-1, eu-west-1, us-west-1, us-east-1, ap-south-1, me-east-1, cn-chengdu, cn-wulanchabu, cn-guangzhou,默认是cn-hangzhou | cn-hangzhou |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"description": {
"description": "函数版本的描述,可以描述一下发布的函数版本的功能。",
"type": "string"
},
"functionName": {
"description": "函数名称,函数名称在每个region必须是唯一的。",
"pattern": "^[a-zA-Z0-9_][a-zA-Z0-9_-]{0,63}$",
"type": "string"
},
"region": {
"default": "cn-hangzhou",
"description": "部署的区域,当前可选的区域是cn-hangzhou, cn-shanghai, cn-beijing, cn-shenzhen, cn-hongkong, ap-southeast-1, ap-southeast-2, ap-southeast-3, ap-southeast-5, ap-northeast-1, eu-central-1, eu-west-1, us-west-1, us-east-1, ap-south-1, me-east-1, cn-chengdu, cn-wulanchabu, cn-guangzhou,默认是cn-hangzhou",
"enum": [
"cn-hangzhou",
"cn-shanghai",
"cn-beijing",
"cn-shenzhen",
"cn-hongkong",
"ap-southeast-1",
"ap-southeast-2",
"ap-southeast-3",
"ap-southeast-5",
"ap-northeast-1",
"eu-central-1",
"eu-west-1",
"us-west-1",
"us-east-1",
"ap-south-1",
"me-east-1",
"cn-chengdu",
"cn-wulanchabu",
"cn-guangzhou"
],
"type": "string"
}
},
"required": [
"functionName",
"description"
],
"type": "object"
}