-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
26 lines (24 loc) · 962 Bytes
/
serverless.yml
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
service: email
provider:
name: aws
runtime: nodejs8.10
region: ap-south-1
apiKeys:
- ${env:MY_API_KEY}
usagePlan:
quota:
limit: 50 #The maximum number of requests that can be made in a given time period.
offset: 2 #The number of requests subtracted from the given limit in the initial time period.
period: MONTH #The time period in which the limit applies. Valid values are "DAY", "WEEK" or "MONTH".
throttle:
burstLimit: 10 #The maximum API request rate limit over a time ranging from one to a few seconds. The maximum API request rate limit depends on whether the underlying token bucket is at its full capacity.
rateLimit: 10 #The API request steady-state rate limit (average requests per second over an extended period of time)
functions:
sendEmail:
handler: handler.sendEmail
events:
- http:
path: sendEmail
method: post
cors: true
private: true