This repository was archived by the owner on Apr 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathserverless.types.js
129 lines (129 loc) · 3.03 KB
/
serverless.types.js
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
module.exports = {
credentials: ['amazon_web_services'],
functions: {
default: {
description: 'Deploys an instance of this component',
inputs: [
{
name: 'code',
type: 'code',
required: true,
description: 'The directory which contains your backend code, declared by an index.js file',
defaultRuntime: 'nodejs10.x',
runtimes: [
'nodejs10.x',
'nodejs8.10',
]
},
{
name: 'region',
type: 'value',
valueType: 'string',
required: true,
description: 'The AWS region this should be located in',
default: 'us-east-1',
options: [
'us-east-1',
'us-east-2',
'us-west-1',
'us-west-2',
'ap-east-1',
'ap-south-1',
'ap-northeast-1',
'ap-northeast-2',
'ap-southeast-1',
'ap-southeast-2',
'ca-central-1',
'cn-north-1',
'cn-northwest-1',
'eu-central-1',
'eu-west-1',
'eu-west-2',
'eu-west-3',
'eu-north-1',
'sa-east-1',
'us-gov-east-1',
'us-gov-west-1',
]
},
{
name: 'env',
type: 'key_values',
description: 'Variables you wish to be automatically bundled into your code',
required: false
},
{
name: 'memory',
type: 'value',
valueType: 'number',
description: 'The memory size of the AWS Lambda function running the back-end code. Increased memory size will result in faster performance, reduced cold-start times, but also higher cost',
required: true,
default: 896,
options: [
128,
384,
512,
896,
1280,
2048,
2560,
3008,
]
},
{
name: 'timeout',
type: 'value',
valueType: 'number',
description: 'The number of seconds which the AWS Lambda function running the back-end code can run for',
required: true,
default: 9,
options: [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
12,
14,
16,
20,
28,
36,
42,
50,
60,
80,
100,
120,
150,
200,
250,
300,
500,
800,
1000,
2000,
3000,
4000,
5000,
6000,
7000,
8000,
10000,
12000,
15000,
]
},
],
},
remove: {
description: 'Removes this instance of this component',
inputs: []
}
}
}