File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
src/api/Elastic.Documentation.Api.Lambda Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 99
1010 <AssemblyName >bootstrap</AssemblyName >
1111 <AWSProjectType >Lambda</AWSProjectType >
12+ <!-- Configured for Lambda Function URLs with CloudFront OAC -->
1213
1314 <IsPublishable >true</IsPublishable >
1415 <PublishAot >true</PublishAot >
Original file line number Diff line number Diff line change 33// See the LICENSE file in the project root for more information
44
55using System . Text . Json . Serialization ;
6- using Amazon . Lambda . APIGatewayEvents ;
76using Amazon . Lambda . Serialization . SystemTextJson ;
87using Elastic . Documentation . Api . Core . AskAi ;
98using Elastic . Documentation . Api . Core . Search ;
4948 process . Refresh ( ) ;
5049 Console . WriteLine ( $ "Elastic OTel configured. Memory: { process . WorkingSet64 / 1024 / 1024 } MB") ;
5150
52- _ = builder . Services . AddAWSLambdaHosting ( LambdaEventSource . RestApi , new SourceGeneratorLambdaJsonSerializer < LambdaJsonSerializerContext > ( ) ) ;
51+ _ = builder . Services . AddAWSLambdaHosting ( LambdaEventSource . HttpApi ) ;
5352 process . Refresh ( ) ;
5453 Console . WriteLine ( $ "AWS Lambda hosting configured. Memory: { process . WorkingSet64 / 1024 / 1024 } MB") ;
5554
8382 throw ;
8483}
8584
86- [ JsonSerializable ( typeof ( APIGatewayProxyRequest ) ) ]
87- [ JsonSerializable ( typeof ( APIGatewayProxyResponse ) ) ]
8885[ JsonSerializable ( typeof ( AskAiRequest ) ) ]
8986[ JsonSerializable ( typeof ( SearchRequest ) ) ]
9087[ JsonSerializable ( typeof ( SearchResponse ) ) ]
You can’t perform that action at this time.
0 commit comments