From 0e3a2f9588e96c260cdbe1ceeee451da8bab7db9 Mon Sep 17 00:00:00 2001 From: Garrett Beatty Date: Wed, 2 Apr 2025 10:45:45 -0400 Subject: [PATCH] Update README.md --- src/Aspire.Hosting.AWS/README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Aspire.Hosting.AWS/README.md b/src/Aspire.Hosting.AWS/README.md index 97c80ac..c39df7a 100644 --- a/src/Aspire.Hosting.AWS/README.md +++ b/src/Aspire.Hosting.AWS/README.md @@ -176,18 +176,18 @@ var awsConfig = builder.AddAWSSDKConfig() // Add an executable Lambda function builder.AddAWSLambdaFunction( "MyLambdaFunction", - handler: "ExecutableLambdaFunction") + lambdaHandler: "ExecutableLambdaFunction") .WithReference(awsConfig); // Add a class library Lambda function builder.AddAWSLambdaFunction( "MyLambdaFunction", - handler: "ClassLibraryLambdaFunction::ClassLibraryLambdaFunction.Function::FunctionHandler") + lambdaHandler: "ClassLibraryLambdaFunction::ClassLibraryLambdaFunction.Function::FunctionHandler") .WithReference(awsConfig); ``` -The handler parameter specifies the Lambda handler in different formats depending on the project type: +The lambdaHandler parameter specifies the Lambda handler in different formats depending on the project type: - For executable projects: specify the assembly name. - 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 // Add Lambda functions var rootWebFunction = builder.AddAWSLambdaFunction( "RootLambdaFunction", - handler: "WebApiLambdaFunction"); + lambdaHandler: "WebApiLambdaFunction"); var addFunction = builder.AddAWSLambdaFunction( "AddLambdaFunction", - handler: "WebAddLambdaFunction"); + lambdaHandler: "WebAddLambdaFunction"); // Configure API Gateway emulator builder.AddAPIGatewayEmulator("APIGatewayEmulator", APIGatewayType.HttpV2)