File tree 1 file changed +29
-0
lines changed
docs/providers/aws/events
1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,20 @@ The Serverless Framework makes it possible to setup the connection between Appli
18
18
19
19
## Event definition
20
20
21
+ ``` yml
22
+ functions :
23
+ albEventConsumer :
24
+ handler : handler.hello
25
+ events :
26
+ - alb :
27
+ listenerArn : arn:aws:elasticloadbalancing:us-east-1:12345:listener/app/my-load-balancer/50dc6c495c0c9188/
28
+ priority : 1
29
+ conditions :
30
+ path : /hello
31
+ ` ` `
32
+
33
+ ## Using different conditions
34
+
21
35
` ` ` yml
22
36
functions :
23
37
albEventConsumer :
@@ -29,4 +43,19 @@ functions:
29
43
conditions :
30
44
host : example.com
31
45
path : /hello
46
+ method :
47
+ - POST
48
+ - PATCH
49
+ host :
50
+ - example.com
51
+ - example2.com
52
+ header :
53
+ name : foo
54
+ values :
55
+ - bar
56
+ query :
57
+ bar : true
58
+ ip :
59
+ - fe80:0000:0000:0000:0204:61ff:fe9d:f156/6
60
+ - 192.168.0.1/0
32
61
` ` `
You can’t perform that action at this time.
0 commit comments