Skip to content

Commit fa4f919

Browse files
committed
C#: Add autogenerated stubs for Aws.Lambda.Core and Aws.Lambda.APIGatewayEvents.
1 parent f336ff0 commit fa4f919

File tree

7 files changed

+387
-140
lines changed

7 files changed

+387
-140
lines changed

csharp/ql/test/resources/stubs/Amazon.Lambda.APIGatewayEvents/2.7.0/Amazon.Lambda.APIGatewayEvents.cs

Lines changed: 282 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<TargetFramework>net7.0</TargetFramework>
4+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
5+
<OutputPath>bin\</OutputPath>
6+
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
7+
</PropertyGroup>
8+
9+
<ItemGroup>
10+
<ProjectReference Include="../../_frameworks/Microsoft.NETCore.App/Microsoft.NETCore.App.csproj" />
11+
</ItemGroup>
12+
</Project>
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
// This file contains auto-generated code.
2+
// Generated from `Amazon.Lambda.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=885c28607f98e604`.
3+
namespace Amazon
4+
{
5+
namespace Lambda
6+
{
7+
namespace Core
8+
{
9+
public interface IClientApplication
10+
{
11+
string AppPackageName { get; }
12+
string AppTitle { get; }
13+
string AppVersionCode { get; }
14+
string AppVersionName { get; }
15+
string InstallationId { get; }
16+
}
17+
public interface IClientContext
18+
{
19+
Amazon.Lambda.Core.IClientApplication Client { get; }
20+
System.Collections.Generic.IDictionary<string, string> Custom { get; }
21+
System.Collections.Generic.IDictionary<string, string> Environment { get; }
22+
}
23+
public interface ICognitoIdentity
24+
{
25+
string IdentityId { get; }
26+
string IdentityPoolId { get; }
27+
}
28+
public interface ILambdaContext
29+
{
30+
string AwsRequestId { get; }
31+
Amazon.Lambda.Core.IClientContext ClientContext { get; }
32+
string FunctionName { get; }
33+
string FunctionVersion { get; }
34+
Amazon.Lambda.Core.ICognitoIdentity Identity { get; }
35+
string InvokedFunctionArn { get; }
36+
Amazon.Lambda.Core.ILambdaLogger Logger { get; }
37+
string LogGroupName { get; }
38+
string LogStreamName { get; }
39+
int MemoryLimitInMB { get; }
40+
System.TimeSpan RemainingTime { get; }
41+
}
42+
public interface ILambdaLogger
43+
{
44+
void Log(string message);
45+
virtual void Log(string level, string message) => throw null;
46+
virtual void Log(Amazon.Lambda.Core.LogLevel level, string message) => throw null;
47+
virtual void LogCritical(string message) => throw null;
48+
virtual void LogDebug(string message) => throw null;
49+
virtual void LogError(string message) => throw null;
50+
virtual void LogInformation(string message) => throw null;
51+
void LogLine(string message);
52+
virtual void LogTrace(string message) => throw null;
53+
virtual void LogWarning(string message) => throw null;
54+
}
55+
public interface ILambdaSerializer
56+
{
57+
T Deserialize<T>(System.IO.Stream requestStream);
58+
void Serialize<T>(T response, System.IO.Stream responseStream);
59+
}
60+
public static class LambdaLogger
61+
{
62+
public static void Log(string message) => throw null;
63+
}
64+
[System.AttributeUsage((System.AttributeTargets)65, AllowMultiple = false)]
65+
public sealed class LambdaSerializerAttribute : System.Attribute
66+
{
67+
public LambdaSerializerAttribute(System.Type serializerType) => throw null;
68+
public System.Type SerializerType { get => throw null; set { } }
69+
}
70+
public enum LogLevel
71+
{
72+
Trace = 0,
73+
Debug = 1,
74+
Information = 2,
75+
Warning = 3,
76+
Error = 4,
77+
Critical = 5,
78+
}
79+
}
80+
}
81+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<TargetFramework>net7.0</TargetFramework>
4+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
5+
<OutputPath>bin\</OutputPath>
6+
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
7+
</PropertyGroup>
8+
9+
<ItemGroup>
10+
<ProjectReference Include="../../_frameworks/Microsoft.NETCore.App/Microsoft.NETCore.App.csproj" />
11+
</ItemGroup>
12+
</Project>

csharp/ql/test/resources/stubs/Amazon.Lambda/2.1.0/Amazon.Lambda.APIGatewayEvents.cs

Lines changed: 0 additions & 46 deletions
This file was deleted.

csharp/ql/test/resources/stubs/Amazon.Lambda/2.1.0/Amazon.Lambda.Core.cs

Lines changed: 0 additions & 81 deletions
This file was deleted.

csharp/ql/test/resources/stubs/Amazon.Lambda/2.1.0/Amazon.Lambda.csproj

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)