|
282 | 282 | "detailType": "Scheduled Event",
|
283 | 283 | },
|
284 | 284 | ),
|
285 |
| - ( # elb example trigger |
| 285 | + ( # old elb example trigger |
286 | 286 | {
|
287 | 287 | "requestContext": {
|
288 | 288 | "elb": {
|
|
302 | 302 | "host": "lambd-loadb-bp68mp6nujg0-50156485.us-east-1.elb.amazonaws.com",
|
303 | 303 | },
|
304 | 304 | },
|
305 |
| - {"triggeredBy": "unknown"}, |
| 305 | + { |
| 306 | + "api": "lambd-loadb-bp68mp6nujg0-50156485.us-east-1.elb.amazonaws.com", |
| 307 | + "httpMethod": "POST", |
| 308 | + "triggeredBy": "load_balancer", |
| 309 | + }, |
| 310 | + ), |
| 311 | + ( # new elb example trigger |
| 312 | + { |
| 313 | + "requestContext": { |
| 314 | + "elb": { |
| 315 | + "targetGroupArn": "arn:aws:elasticloadbalancing:region:123456789012:targetgroup/my-target-group/111" |
| 316 | + } |
| 317 | + }, |
| 318 | + "httpMethod": "GET", |
| 319 | + "path": "/", |
| 320 | + "queryStringParameters": {}, |
| 321 | + "headers": { |
| 322 | + "accept": "text/html,application/xhtml+xml", |
| 323 | + "accept-language": "en-US,en;q=0.8", |
| 324 | + "content-type": "text/plain", |
| 325 | + "cookie": "cookies", |
| 326 | + "host": "lambda-111-us-east-2.elb.amazonaws.com", |
| 327 | + "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6)", |
| 328 | + "x-amzn-trace-id": "Root=1-111", |
| 329 | + "x-forwarded-for": "111", |
| 330 | + "x-forwarded-port": "111", |
| 331 | + "x-forwarded-proto": "https", |
| 332 | + }, |
| 333 | + "isBase64Encoded": False, |
| 334 | + "body": "request_body", |
| 335 | + }, |
| 336 | + { |
| 337 | + "api": "lambda-111-us-east-2.elb.amazonaws.com", |
| 338 | + "httpMethod": "GET", |
| 339 | + "triggeredBy": "load_balancer", |
| 340 | + }, |
| 341 | + ), |
| 342 | + ( # alb example trigger |
| 343 | + { |
| 344 | + "requestContext": { |
| 345 | + "alb": { |
| 346 | + "targetGroupArn": "arn:aws:elasticloadbalancing:region:123456789012:targetgroup/my-target-group/111" |
| 347 | + } |
| 348 | + }, |
| 349 | + "httpMethod": "GET", |
| 350 | + "path": "/", |
| 351 | + "queryStringParameters": {}, |
| 352 | + "headers": { |
| 353 | + "accept": "text/html,application/xhtml+xml", |
| 354 | + "accept-language": "en-US,en;q=0.8", |
| 355 | + "content-type": "text/plain", |
| 356 | + "cookie": "cookies", |
| 357 | + "host": "lambda-111-us-east-2.elb.amazonaws.com", |
| 358 | + "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6)", |
| 359 | + "x-amzn-trace-id": "Root=1-111", |
| 360 | + "x-forwarded-for": "111", |
| 361 | + "x-forwarded-port": "111", |
| 362 | + "x-forwarded-proto": "https", |
| 363 | + }, |
| 364 | + "isBase64Encoded": False, |
| 365 | + "body": "request_body", |
| 366 | + }, |
| 367 | + { |
| 368 | + "api": "lambda-111-us-east-2.elb.amazonaws.com", |
| 369 | + "httpMethod": "GET", |
| 370 | + "triggeredBy": "load_balancer", |
| 371 | + }, |
306 | 372 | ),
|
307 | 373 | ( # API GW V2
|
308 | 374 | {
|
|
0 commit comments