@@ -176,18 +176,18 @@ var awsConfig = builder.AddAWSSDKConfig()
176
176
// Add an executable Lambda function
177
177
builder .AddAWSLambdaFunction <Projects .ExecutableLambdaFunction >(
178
178
" MyLambdaFunction" ,
179
- handler : " ExecutableLambdaFunction" )
179
+ lambdaHandler : " ExecutableLambdaFunction" )
180
180
.WithReference (awsConfig );
181
181
182
182
// Add a class library Lambda function
183
183
builder .AddAWSLambdaFunction <Projects .ClassLibraryLambdaFunction >(
184
184
" MyLambdaFunction" ,
185
- handler : " ClassLibraryLambdaFunction::ClassLibraryLambdaFunction.Function::FunctionHandler" )
185
+ lambdaHandler : " ClassLibraryLambdaFunction::ClassLibraryLambdaFunction.Function::FunctionHandler" )
186
186
.WithReference (awsConfig );
187
187
188
188
```
189
189
190
- The handler parameter specifies the Lambda handler in different formats depending on the project type:
190
+ The lambdaHandler parameter specifies the Lambda handler in different formats depending on the project type:
191
191
192
192
- For executable projects: specify the assembly name.
193
193
- For class library projects: use the format ` {assembly}::{type}::{method} ` .
@@ -225,11 +225,11 @@ To add an API Gateaway emulator to your .NET Aspire AppHost, use the `AddAPIGate
225
225
// Add Lambda functions
226
226
var rootWebFunction = builder .AddAWSLambdaFunction <Projects .WebApiLambdaFunction >(
227
227
" RootLambdaFunction" ,
228
- handler : " WebApiLambdaFunction" );
228
+ lambdaHandler : " WebApiLambdaFunction" );
229
229
230
230
var addFunction = builder .AddAWSLambdaFunction <Projects .WebAddLambdaFunction >(
231
231
" AddLambdaFunction" ,
232
- handler : " WebAddLambdaFunction" );
232
+ lambdaHandler : " WebAddLambdaFunction" );
233
233
234
234
// Configure API Gateway emulator
235
235
builder .AddAPIGatewayEmulator (" APIGatewayEmulator" , APIGatewayType .HttpV2 )
0 commit comments