Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Libraries/src/Amazon.Lambda.Tools/Commands/BaseCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ private static void SetUserAgentString()
public bool EnableInteractive { get; set; } = false;

IAmazonLambda _lambdaClient;
public IAmazonLambda LamdbaClient
public IAmazonLambda LambdaClient
{
get
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public override async Task<bool> ExecuteAsync()

try
{
await this.LamdbaClient.DeleteFunctionAsync(deleteRequest);
await this.LambdaClient.DeleteFunctionAsync(deleteRequest);
}
catch(Exception e)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public override async Task<bool> ExecuteAsync()

try
{
await this.LamdbaClient.CreateFunctionAsync(createRequest);
await this.LambdaClient.CreateFunctionAsync(createRequest);
this.Logger.WriteLine("New Lambda function created");
}
catch (Exception e)
Expand Down Expand Up @@ -221,7 +221,7 @@ public override async Task<bool> ExecuteAsync()

try
{
await this.LamdbaClient.UpdateFunctionCodeAsync(updateCodeRequest);
await this.LambdaClient.UpdateFunctionCodeAsync(updateCodeRequest);
}
catch (Exception e)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public override async Task<bool> ExecuteAsync()

try
{
response = await this.LamdbaClient.GetFunctionConfigurationAsync(this.GetStringValueOrDefault(this.FunctionName, DefinedCommandOptions.ARGUMENT_FUNCTION_NAME, true));
response = await this.LambdaClient.GetFunctionConfigurationAsync(this.GetStringValueOrDefault(this.FunctionName, DefinedCommandOptions.ARGUMENT_FUNCTION_NAME, true));
}
catch (Exception e)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public override async Task<bool> ExecuteAsync()
InvokeResponse response = null;
try
{
response = await this.LamdbaClient.InvokeAsync(invokeRequest);
response = await this.LambdaClient.InvokeAsync(invokeRequest);
}
catch(Exception e)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public override async Task<bool> ExecuteAsync()

try
{
response = await this.LamdbaClient.ListFunctionsAsync(request);
response = await this.LambdaClient.ListFunctionsAsync(request);
}
catch (Exception e)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ protected async Task UpdateConfigAsync(GetFunctionConfigurationResponse existing
this.Logger.WriteLine($"Updating runtime configuration for function {this.GetStringValueOrDefault(this.FunctionName, DefinedCommandOptions.ARGUMENT_FUNCTION_NAME, true)}");
try
{
await this.LamdbaClient.UpdateFunctionConfigurationAsync(request);
await this.LambdaClient.UpdateFunctionConfigurationAsync(request);
}
catch (Exception e)
{
Expand All @@ -160,7 +160,7 @@ public async Task<GetFunctionConfigurationResponse> GetFunctionConfigurationAsyn
};
try
{
var response = await this.LamdbaClient.GetFunctionConfigurationAsync(request);
var response = await this.LambdaClient.GetFunctionConfigurationAsync(request);
return response;
}
catch (ResourceNotFoundException)
Expand Down
2 changes: 1 addition & 1 deletion Libraries/src/Amazon.Lambda.Tools/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ private static void PrintUsage()
{
const int NAME_WIDTH = 23;
Console.WriteLine("\t");
Console.WriteLine("Commands to deploy and manage AWS Lamdba functions:");
Console.WriteLine("Commands to deploy and manage AWS Lambda functions:");
Console.WriteLine("\t");
Console.WriteLine($"\t{DeployFunctionCommand.COMMAND_DEPLOY_NAME.PadRight(NAME_WIDTH)} {DeployFunctionCommand.COMMAND_DEPLOY_DESCRIPTION}");
Console.WriteLine($"\t{InvokeFunctionCommand.COMMAND_NAME.PadRight(NAME_WIDTH)} {InvokeFunctionCommand.COMMAND_DESCRIPTION}");
Expand Down
4 changes: 2 additions & 2 deletions Libraries/test/Amazon.Lambda.Tools.Test/DeployTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@ public async Task RunDeployCommand()
LogType = LogType.Tail,
Payload = "\"hello world\""
};
var response = await command.LamdbaClient.InvokeAsync(invokeRequest);
var response = await command.LambdaClient.InvokeAsync(invokeRequest);

var payload = new StreamReader(response.Payload).ReadToEnd();
var log = System.Text.UTF8Encoding.UTF8.GetString(Convert.FromBase64String(response.LogResult));
Assert.Equal("\"HELLO WORLD\"", payload);
}
finally
{
await command.LamdbaClient.DeleteFunctionAsync(command.FunctionName);
await command.LambdaClient.DeleteFunctionAsync(command.FunctionName);
}
}

Expand Down