-
Notifications
You must be signed in to change notification settings - Fork 0
406 lines (405 loc) · 11.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
# doc: https://github.com/serverless-components/tencent-scf/blob/master/docs/configure.md
inputs:
type:
type: string
message: '不支持当前类型,支持类型有:[event , web]'
allow:
- event
- web
name:
type: string
rules:
- regex: '^[A-Za-z][\w-_]*[A-Za-z0-9]$'
message: '只能包含字母、数字、下划线、连字符,以字母开头,以数字或字母结尾'
- min: 2
message: '长度不能小于2'
- max: 60
message: '长度不能大于60'
handler:
type: string
runtime:
type: string
message: '运行时选择错误,请参考https://cloud.tencent.com/document/product/583/54977'
allow:
- Python2.7
- Python3.6
- Python3.7
- Nodejs6.10
- Nodejs8.9
- Nodejs10.15
- Nodejs12.16
- Nodejs14.18
- Nodejs16.13
- Php5
- Php7
- Php7.4
- Php8.0
- Go1
- Java8
- Java11
- CustomRuntime
region:
type: string
message: '地区选择错误,https://cloud.tencent.com/document/api/583/17238#.E5.9C.B0.E5.9F.9F.E5.88.97.E8.A1.A8'
allow:
- ap-beijing
- ap-chengdu
- ap-chongqing
- ap-guangzhou
- ap-hongkong
- ap-mumbai
- ap-seoul
- ap-shanghai
- ap-shanghai-fsi
- ap-shenzhen-fsi
- ap-singapore
- ap-tokyo
- eu-frankfurt
- na-siliconvalley
- na-toronto
memorySize:
type: number
message: '可选范围 64、128MB-3072MB,并且以 128MB 为阶梯'
allow:
- 64
- 128
- 256
- 384
- 512
- 640
- 768
- 896
- 1024
- 1152
- 1280
- 1408
- 1536
- 1664
- 1792
- 1920
- 2048
- 2176
- 2304
- 2432
- 2560
- 2688
- 2816
- 2944
- 3072
level: 'warning'
environment:
type: object
keys:
variables:
type: object
vpcConfig:
type: object
keys:
vpcId:
type: string
subnetId:
type: string
deadLetter:
type: object
keys:
Type:
type: string
required: true
Name:
type: string
required: true
timeout:
type: number
min: 1
max: 900
message: 'timeout 取值范围为 [1, 900]'
level: 'warning'
initTimeout:
type: number
min: 3
max: 300
message: '函数初始化超时时间,单位为秒,可选值范围 3-300 秒'
level: 'warning'
cfs:
type: array
items:
- type: object
keys:
cfsId:
type: string
required: true
mountInsId:
type: string
localMountDir:
type: string
required: true
remoteMountDir:
type: string
required: true
publicAccess:
type: boolean
eip:
type: boolean
image:
type: object
keys:
imageUrl:
type: string
required: true
regex: '([a-z0-9-]{5,50}).(tencentcloudcr|tencentyun).com\/([a-z-_.0-9]{2,30})\/([a-z0-9-_.\/]{2,200}):([\w-]+)@sha256:(\w+)'
message: '镜像地址 imageUrl 格式需要遵守: {domain}/{namespace}/{imageName}:{tag}@{digest}'
installDependency:
type: boolean
protocolType:
type: string
allow:
- WS # inputs.type = web 时才会生效
protocolParams:
type: object
keys:
wsParams:
type: object
keys:
idleTimeOut:
message: 'idleTimeOut 空闲超时时间的取值范围为 【 1(秒)- 1800(秒)】'
type: number
min: 1
max: 1800
provisionedNum:
type: number
max: 100
message: "provisionedNum 预置并发数量的上限为 100"
qualifier:
type: number
asyncRunEnable:
type: boolean
l5Enable:
type: boolean
tags:
type: object
layers:
type: array
items:
- type: object
keys:
name:
type: string
required: true
version:
type: number
required: true
events:
type: array
items:
- type: object
keys:
timer:
type: object
keys:
parameters:
type: object
required: true
keys:
name:
type: string
enable:
type: boolean
cronExpression:
type: string
required: true
apigw:
type: object
keys:
parameters:
type: object
keys:
protocols:
type: array
items:
- type: string
message: 'protocols 无法识别,当前只支持 http, https'
allow:
- http
- https
netTypes:
type: array
items:
- type: string
message: 'netTypes 无法识别,当前只支持 OUTER, INNER'
allow:
- OUTER
- INNER
description:
type: string
environment:
type: string
message: 'environment 无法识别,当前只支持 release, test, prepub'
allow:
- release
- test
- prepub
endpoints:
type: array
required: true
items:
- type: object
keys:
path:
type: string
required: true
serviceTimeout:
type: number
min: 1
max: 1800
message: 'serviceTimeout 取值范围为 [1, 1800]'
method:
type: string
allow:
- 'ANY'
- 'GET'
- 'HEAD'
- 'POST'
- 'PUT'
- 'DELETE'
enableCORS:
type: boolean
serviceId:
type: string
serviceName:
type: string
regex: '^[a-zA-Z][a-zA-Z0-9(_)]{0,48}[a-zA-Z0-9]?$'
message: '最长 50 个字符,支持 a-z,A-Z,0-9,_, 必须字母开头,字母或者数字结尾'
cos:
type: object
keys:
parameters:
type: object
keys:
enable:
type: boolean
bucket:
type: string
required: true
filter:
type: object
required: true
keys:
prefix:
type: string
suffix:
type: string
events:
required: true
type: string
message: 'cos.events 无法识别,请参考 https://cloud.tencent.com/document/product/583/9707#cos-.E8.A7.A6.E5.8F.91.E5.99.A8.E5.B1.9E.E6.80.A7'
allow:
- 'cos:ObjectCreated:*'
- 'cos:ObjectCreated:Put'
- 'cos:ObjectCreated:Post'
- 'cos:ObjectCreated:Copy'
- 'cos:ObjectCreated:CompleteMultipartUpload'
- 'cos:ObjectCreated:Origin'
- 'cos:ObjectCreated:Replication'
- 'cos:ObjectRemove:*'
- 'cos:ObjectRemove:Delete'
- 'cos:ObjectRemove:DeleteMarkerCreated'
- 'cos:ObjectRestore:Post'
- 'cos:ObjectRestore:Completed'
ckafka:
type: object
keys:
parameters:
type: object
keys:
enable:
type: boolean
name:
type: string
topic:
type: string
retry:
type: number
maxMsgNum:
type: number
min: 1
max: 10000
message: 'ckafka.maxMsgNum 的取值范围是[1, 100000]'
offset:
type: string
message: 'ckafka.offset 配置无法识别,当前只支持 latest, earliest, timestamp'
allow:
- latest
- earliest
- timestamp
cmq:
type: object
keys:
parameters:
type: object
keys:
enable:
type: boolean
name:
type: string
required: true
cls:
type: object
keys:
parameters:
type: object
keys:
enable:
type: boolean
topicId:
type: string
required: true
maxWait:
message: 'cls.maxWait 的取值范围是 [3, 300]'
type: number
min: 3
max: 300
mps:
type: object
keys:
parameters:
type: object
keys:
enable:
type: boolean
type:
type: string
required: true
message: 'mps.type 无法识别,当前只支持 WorkflowTask, EditMediaTask'
allow:
- WorkflowTask
- EditMediaTask
clb:
type: object
keys:
parameters:
type: object
keys:
loadBalanceId:
type: string
required: true
protocol:
type: string
required: true
message: 'clb.protocal 是必填字段,并且当前只支持 HTTP, HTTPS'
allow:
- HTTP
- HTTPS
port:
type: number
required: true
domain:
type: string
required: true
url:
type: string
required: true
weight:
message: 'clb.weight 取值范围是 [1, 100]'
type: number
min: 0
max: 100