Skip to content

Commit e5381ae

Browse files
author
Michael Brewer
authored
fix(docs): Use updated names for ProxyEventType (#424)
1 parent bd1dbf0 commit e5381ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/core/event_handler/api_gateway.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ When using API Gateway HTTP API to front your Lambda functions, you can instruct
208208

209209
tracer = Tracer()
210210
logger = Logger()
211-
app = ApiGatewayResolver(proxy_type=ProxyEventType.http_api_v2)
211+
app = ApiGatewayResolver(proxy_type=ProxyEventType.APIGatewayProxyEventV2)
212212

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

236236
tracer = Tracer()
237237
logger = Logger()
238-
app = ApiGatewayResolver(proxy_type=ProxyEventType.alb_event)
238+
app = ApiGatewayResolver(proxy_type=ProxyEventType.ALBEvent)
239239

240240
@app.get("/hello")
241241
@tracer.capture_method

0 commit comments

Comments
 (0)