-
Notifications
You must be signed in to change notification settings - Fork 494
Expand file tree
/
Copy pathLambdaConfigFile.cs
More file actions
39 lines (31 loc) · 1.15 KB
/
LambdaConfigFile.cs
File metadata and controls
39 lines (31 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using System;
using System.Text.Json.Serialization;
namespace Amazon.Lambda.TestTool
{
public class LambdaConfigFile
{
public string Framework { get; set; }
public string Profile { get; set; }
public string Region { get; set; }
public string Template { get; set; }
[JsonPropertyName("function-handler")]
public string FunctionHandler { get; set; }
[JsonPropertyName("function-name")]
public string FunctionName { get; set; }
[JsonPropertyName("function-timeout")]
public int? FunctionTimeOut { get; set; }
[JsonPropertyName("function-debugtimeout")]
public int? FunctionDebugTimeOut { get; set; }
[JsonPropertyName("image-command")]
public string ImageCommand { get; set; }
[JsonPropertyName("environment-variables")]
public string EnvironmentVariables { get; set; }
public string ConfigFileLocation { get; set; }
public string DetermineHandler()
{
if (!string.IsNullOrEmpty(this.FunctionHandler))
return this.FunctionHandler;
return this.ImageCommand;
}
}
}