Skip to content

Commit 6eeba11

Browse files
committed
Update documentation
1 parent bc0e05f commit 6eeba11

File tree

1 file changed

+29
-0
lines changed
  • docs/providers/aws/events

1 file changed

+29
-0
lines changed

docs/providers/aws/events/alb.md

+29
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,20 @@ The Serverless Framework makes it possible to setup the connection between Appli
1818

1919
## Event definition
2020

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+
2135
```yml
2236
functions:
2337
albEventConsumer:
@@ -29,4 +43,19 @@ functions:
2943
conditions:
3044
host: example.com
3145
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
3261
```

0 commit comments

Comments
 (0)