You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/core/event_handler/api_gateway.md
+5-4
Original file line number
Diff line number
Diff line change
@@ -97,7 +97,7 @@ When using Amazon Application Load Balancer (ALB) to front your Lambda functions
97
97
98
98
#### Lambda Function URL
99
99
100
-
When using an [AWS Lambda Function URL](https://docs.aws.amazon.com/lambda/latest/dg/urls-configuration.html), you can use `LambdaFunctionUrlResolver`.
100
+
When using [AWS Lambda Function URL](https://docs.aws.amazon.com/lambda/latest/dg/urls-configuration.html), you can use `LambdaFunctionUrlResolver`.
@@ -294,7 +294,7 @@ This will ensure that CORS headers are always returned as part of the response w
294
294
295
295
#### Pre-flight
296
296
297
-
Pre-flight (OPTIONS) calls are typically handled at the API Gateway or Lambda Function URL level as per [our sample infrastructure](#required-resources), no Lambda integration necessary. However, ALB expects you to handle pre-flight requests.
297
+
Pre-flight (OPTIONS) calls are typically handled at the API Gateway or Lambda Function URL level as per [our sample infrastructure](#required-resources), no Lambda integration is necessary. However, ALB expects you to handle pre-flight requests.
298
298
299
299
For convenience, we automatically handle that for you as long as you [setup CORS in the constructor level](#cors).
300
300
@@ -362,8 +362,9 @@ Like `compress` feature, the client must send the `Accept` header with the corre
362
362
363
363
???+ warning
364
364
This feature requires API Gateway to configure binary media types, see [our sample infrastructure](#required-resources) for reference.
365
-
For Lambda Function URLs, no additional configuration is necessary.
366
365
366
+
???+ note
367
+
Lambda Function URLs handle binary media types automatically.
367
368
=== "binary_responses.py"
368
369
369
370
```python hl_lines="14 20"
@@ -405,7 +406,7 @@ This will enable full tracebacks errors in the response, print request and respo
405
406
406
407
### Custom serializer
407
408
408
-
You can instruct an event handler to use a custom serializer to best suit your needs, for example take into account Enums when serializing.
409
+
You can instruct event handler to use a custom serializer to best suit your needs, for example take into account Enums when serializing.
409
410
410
411
```python hl_lines="35 40" title="Using a custom JSON serializer for responses"
Copy file name to clipboardExpand all lines: docs/index.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -417,7 +417,7 @@ Core utilities such as Tracing, Logging, Metrics, and Event Handler will be avai
417
417
|[Logger](./core/logger.md)| Structured logging made easier, and decorator to enrich structured logging with key Lambda context details |
418
418
|[Metrics](./core/metrics.md)| Custom Metrics created asynchronously via CloudWatch Embedded Metric Format (EMF) |
419
419
|[Event handler: AppSync](./core/event_handler/appsync.md)| AppSync event handler for Lambda Direct Resolver and Amplify GraphQL Transformer function |
420
-
|[Event handler: API Gateway, ALB and Lambda Function URL](https://awslabs.github.io/aws-lambda-powertools-python/latest/core/event_handler/api_gateway/)| Amazon API Gateway REST/HTTP API and ALB event handler for Lambda functions invoked using Proxy integration |
420
+
|[Event handler: API Gateway, ALB and Lambda Function URL](https://awslabs.github.io/aws-lambda-powertools-python/latest/core/event_handler/api_gateway/)| Amazon API Gateway REST/HTTP API and ALB event handler for Lambda functions invoked using Proxy integration, and Lambda Function URL|
421
421
|[Middleware factory](./utilities/middleware_factory.md)| Decorator factory to create your own middleware to run logic before, and after each Lambda invocation |
422
422
|[Parameters](./utilities/parameters.md)| Retrieve parameter values from AWS Systems Manager Parameter Store, AWS Secrets Manager, or Amazon DynamoDB, and cache them for a specific amount of time |
0 commit comments