Skip to content

Commit 62399f9

Browse files
Update README.md (#52)
1 parent 8456abd commit 62399f9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Aspire.Hosting.AWS/README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -176,18 +176,18 @@ var awsConfig = builder.AddAWSSDKConfig()
176176
// Add an executable Lambda function
177177
builder.AddAWSLambdaFunction<Projects.ExecutableLambdaFunction>(
178178
"MyLambdaFunction",
179-
handler: "ExecutableLambdaFunction")
179+
lambdaHandler: "ExecutableLambdaFunction")
180180
.WithReference(awsConfig);
181181

182182
// Add a class library Lambda function
183183
builder.AddAWSLambdaFunction<Projects.ClassLibraryLambdaFunction>(
184184
"MyLambdaFunction",
185-
handler: "ClassLibraryLambdaFunction::ClassLibraryLambdaFunction.Function::FunctionHandler")
185+
lambdaHandler: "ClassLibraryLambdaFunction::ClassLibraryLambdaFunction.Function::FunctionHandler")
186186
.WithReference(awsConfig);
187187

188188
```
189189

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:
191191

192192
- For executable projects: specify the assembly name.
193193
- 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
225225
// Add Lambda functions
226226
var rootWebFunction = builder.AddAWSLambdaFunction<Projects.WebApiLambdaFunction>(
227227
"RootLambdaFunction",
228-
handler: "WebApiLambdaFunction");
228+
lambdaHandler: "WebApiLambdaFunction");
229229

230230
var addFunction = builder.AddAWSLambdaFunction<Projects.WebAddLambdaFunction>(
231231
"AddLambdaFunction",
232-
handler: "WebAddLambdaFunction");
232+
lambdaHandler: "WebAddLambdaFunction");
233233

234234
// Configure API Gateway emulator
235235
builder.AddAPIGatewayEmulator("APIGatewayEmulator", APIGatewayType.HttpV2)

0 commit comments

Comments
 (0)