-
Notifications
You must be signed in to change notification settings - Fork 0
320 lines (319 loc) · 8.41 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
# component doc: https://github.com/serverless-components/tencent-http/blob/master/docs/configure.md
inputs:
type:
type: string
message: '不支持当前类型,支持类型有:【 event , web 】'
allow:
- event
- web
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
faas:
type: object
keys:
framework:
type: string
required: true
allow:
- express
- koa
- egg
- nextjs
- nuxtjs
- nestjs
- flask
- django
- laravel
message: >-
framework 参数选择错误,请参考:
https://github.com/serverless-components/tencent-http/blob/master/docs/configure.md#faas
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
name:
type: string
regex: '^[A-Za-z][\w-_]{0,58}[A-Za-z0-9]$'
message: 只能包含字母、数字、下划线、连字符,以字母开头,以数字或字母结尾,2~60 个字符
environment:
type: array
items:
- type: object
keys:
key:
type: string
value:
type: string
vpc:
type: object
keys:
vpcId:
type: string
subnetId:
type: string
timeout:
type: number
min: 1
max: 900
message: 'timeout 取值范围为 [1, 900]'
level: 'warning'
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'
tags:
type: array
items:
- type: object
keys:
key:
type: string
required: true
value:
type: string
required: true
apigw:
type: object
keys:
id:
type: string
name:
type: string
regex: '^[A-Za-z][\w-_]{0,48}[A-Za-z0-9]$'
message: 只能包含字母、数字、下划线、连字符,以字母开头,以数字或字母结尾,2~50 个字符
protocols:
type: array
items:
- type: string
message: 'protocols 无法识别,当前只支持 http, https'
allow:
- http
- https
environment:
type: string
message: '不支持该环境,支持的环境有:【 test , prepub , release 】'
allow:
- test
- prepub
- release
usagePlan:
type: object
keys:
usagePlanId:
type: string
usagePlanName:
type: string
usagePlanDesc:
type: string
maxRequestNum:
type: number
auth:
type: object
keys:
secretName:
type: string
secretIds:
type: string
customDomains:
type: array
items:
- type: object
keys:
domain:
type: string
required: true
protocol:
type: array
items:
- type: string
message: '绑定自定义域名的协议类型, 当前支持 http, https'
allow:
- http
- https
pathMappingSet:
type: array
items:
- type: object
keys:
path:
type: string
required: true
environment:
type: string
required: true
message: '发布环境选择错误,当前只支持 test, prepub, release'
allow:
- test
- prepub
- release
tags:
type: array
items:
- type: object
keys:
key:
type: string
required: true
value:
type: string
required: true
enableCORS:
type: boolean
isDisabled:
type: boolean
api:
type: object
keys:
name:
type: string
regex: '^[A-Za-z][\w-_]{0,48}[A-Za-z0-9]$'
message: 只能包含字母、数字、下划线、连字符,以字母开头,以数字或字母结尾,2~50 个字符
timeout:
type: number
min: 1
max: 1800
message: '取值范围为 [1, 1800]'
cors:
type: boolean
qualifier:
type: string
ignoreUpdate:
type: boolean
assets:
type: object
keys:
cos:
type: object
required: true
keys:
bucket:
type: string
required: true
sources:
type: array
items:
- type: object
keys:
src:
type: string
required: true
cdn:
type: object
keys:
domain:
type: string
required: true
autoRefresh:
type: boolean
refreshType:
type: string
message: 不支持该刷新类型,支持的刷新类型有:【 delete(刷新全部资源),flush(刷新变更资源)】
allow:
- delete
- flush
forceRedirect:
type: object
keys:
switch:
type: string
message: '访问强制跳转配置开关配置失败, on:开启,off:关闭'
allow:
- 'on'
- 'off'
redirectType:
type: string
message: 不支持该强制跳转类型,支持的类型有:【 http (强制 http 跳转), https (强制 https 跳转)】
allow:
- http
- https
redirectStatusCode:
type: number
message: 强制跳转时返回状态码,支持 301、302
allow:
- 301
- 302
https:
type: object
keys:
certId:
type: string
required: true
http2:
type: string
required: true
message: 是否开启 HTTP2 配置错误,on: 开启,off: 关闭
allow:
- 'on'
- 'off'
area:
type: string
message: >-
area 参数错误,请参考:
https://github.com/serverless-components/tencent-http/blob/master/docs/configure.md#cdn
allow:
- mainland
- overseas
- global
ignoreUpdate:
type: boolean