Skip to content

Commit

Permalink
fix(docs): Use updated names for ProxyEventType
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Brewer committed May 6, 2021
1 parent bd1dbf0 commit 641ec73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/core/event_handler/api_gateway.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ When using API Gateway HTTP API to front your Lambda functions, you can instruct

tracer = Tracer()
logger = Logger()
app = ApiGatewayResolver(proxy_type=ProxyEventType.http_api_v2)
app = ApiGatewayResolver(proxy_type=ProxyEventType.APIGatewayProxyEventV2)

@app.get("/hello")
@tracer.capture_method
Expand All @@ -235,7 +235,7 @@ When using ALB to front your Lambda functions, you can instruct `ApiGatewayResol

tracer = Tracer()
logger = Logger()
app = ApiGatewayResolver(proxy_type=ProxyEventType.alb_event)
app = ApiGatewayResolver(proxy_type=ProxyEventType.ALBEvent)

@app.get("/hello")
@tracer.capture_method
Expand Down

0 comments on commit 641ec73

Please sign in to comment.