Skip to content

Commit 0a124d5

Browse files
committed
commit 2
1 parent 620f8cd commit 0a124d5

File tree

12 files changed

+76
-49
lines changed

12 files changed

+76
-49
lines changed

Libraries/src/Amazon.Lambda.Annotations.Models/APIGateway/HttpApiAttribute.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ public class HttpApiAttribute : Attribute
2222
/// <inheritdoc cref="LambdaHttpMethod"/>
2323
public LambdaHttpMethod Method { get; set; }
2424

25+
/// <summary>
26+
/// Constructs a <see cref="HttpApiAttribute"/>
27+
/// </summary>
2528
public HttpApiAttribute(LambdaHttpMethod method, string template)
2629
{
2730
Template = template;

Libraries/src/Amazon.Lambda.Annotations.Models/APIGateway/HttpApiVersion.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@ namespace Amazon.Lambda.Annotations.APIGateway
66
/// </summary>
77
public enum HttpApiVersion
88
{
9+
/// <summary>
10+
/// API Gateway HTTP API V1
11+
/// </summary>
912
V1,
13+
/// <summary>
14+
/// API Gateway HTTP API V2
15+
/// </summary>
1016
V2
1117
}
1218
}

Libraries/src/Amazon.Lambda.Annotations.Models/APIGateway/LambdaHttpMethod.cs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,37 @@ namespace Amazon.Lambda.Annotations.APIGateway
55
/// </summary>
66
public enum LambdaHttpMethod
77
{
8+
/// <summary>
9+
/// Any HTTP Method/Verb
10+
/// </summary>
811
Any,
12+
/// <summary>
13+
/// GET HTTP Method/Verb
14+
/// </summary>
915
Get,
16+
/// <summary>
17+
/// POST HTTP Method/Verb
18+
/// </summary>
1019
Post,
20+
/// <summary>
21+
/// PUT HTTP Method/Verb
22+
/// </summary>
1123
Put,
24+
/// <summary>
25+
/// PATCH HTTP Method/Verb
26+
/// </summary>
1227
Patch,
28+
/// <summary>
29+
/// HEAD HTTP Method/Verb
30+
/// </summary>
1331
Head,
32+
/// <summary>
33+
/// DELETE HTTP Method/Verb
34+
/// </summary>
1435
Delete,
36+
/// <summary>
37+
/// OPTIONS HTTP Method/Verb
38+
/// </summary>
1539
Options
1640
}
1741
}

Libraries/src/Amazon.Lambda.Annotations.Models/APIGateway/RestApiAttribute.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ public class RestApiAttribute : Attribute
1919
/// <inheritdoc cref="LambdaHttpMethod" />
2020
public LambdaHttpMethod Method { get; set; }
2121

22+
/// <summary>
23+
/// Constructs a <see cref="RestApiAttribute"/>
24+
/// </summary>
2225
public RestApiAttribute(LambdaHttpMethod method, string template)
2326
{
2427
Template = template;

Libraries/src/Amazon.Lambda.Annotations.Models/Amazon.Lambda.Annotations.Models.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<Version>1.5.2</Version>
54
<TargetFrameworks>netstandard2.0;net6.0;net8.0</TargetFrameworks>
65
<GenerateDocumentationFile>true</GenerateDocumentationFile>
76

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
namespace Amazon.Lambda.Annotations
22
{
3+
/// <summary>
4+
/// Interface for a named attribute
5+
/// </summary>
36
public interface INamedAttribute
47
{
8+
/// <summary>
9+
/// Name of the attribute
10+
/// </summary>
511
string Name { get; set; }
612
}
713
}

Libraries/src/Amazon.Lambda.Annotations.Models/LambdaPackageType.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@
66
/// </summary>
77
public enum LambdaPackageType
88
{
9+
/// <summary>
10+
/// A Zip deployment package type
11+
/// </summary>
912
Zip=0,
13+
/// <summary>
14+
/// An Image deployment package type
15+
/// </summary>
1016
Image=1
1117
}
1218
}

Libraries/src/Amazon.Lambda.Annotations.SourceGenerator/Amazon.Lambda.Annotations.SourceGenerator.csproj

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,26 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<Version>1.5.2</Version>
4+
<PackageId>Amazon.Lambda.Annotations</PackageId>
55
<TargetFrameworks>netstandard2.0;net6.0;net8.0</TargetFrameworks>
6-
7-
<!--This assembly needs to access internal methods inside the Amazon.Lambda.Annotations assembly.
6+
7+
<Authors>Amazon Web Services</Authors>
8+
<PackageTags>AWS Amazon Lambda</PackageTags>
9+
<Description>Annotations that can be added to Lambda projects to generate C# code and CloudFormation templates.</Description>
10+
<PackageProjectUrl>https://github.com/aws/aws-lambda-dotnet</PackageProjectUrl>
11+
<PackageIcon>images\icon.png</PackageIcon>
12+
<PackageReadmeFile>docs\README.md</PackageReadmeFile>
13+
14+
<!--This assembly needs to access internal methods inside the Amazon.Lambda.Annotations.Models assembly.
815
Both these assemblies need to be strongly signed for the InternalsVisibleTo attribute to take effect.-->
916
<AssemblyOriginatorKeyFile>..\..\..\buildtools\public.snk</AssemblyOriginatorKeyFile>
1017
<SignAssembly>true</SignAssembly>
1118

1219
<!-- This is required to allow copying all the dependencies to bin directory which can be copied after to nuget package based on nuspec -->
1320
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
14-
1521
<IncludeBuildOutput>false</IncludeBuildOutput>
16-
<PackageId>Amazon.Lambda.Annotations</PackageId>
22+
23+
<Version>1.5.2</Version>
1724
</PropertyGroup>
1825

1926
<ItemGroup>
@@ -26,7 +33,6 @@
2633

2734
<None Include="$(OutputPath)\netstandard2.0\$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
2835
<None Include="$(OutputPath)\netstandard2.0\Amazon.Lambda.Annotations.Models.dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
29-
<!-- <None Include="$(OutputPath)\netstandard2.0\Amazon.Lambda.Core.dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />-->
3036
<None Include="$(OutputPath)\netstandard2.0\Newtonsoft.Json.dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
3137
<None Include="$(OutputPath)\netstandard2.0\YamlDotNet.dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
3238
</ItemGroup>
@@ -38,7 +44,6 @@
3844
</ItemGroup>
3945

4046
<ItemGroup>
41-
<!-- Generator dependencies, update Libraries/src/Amazon.Lambda.Annotations.nuspec whenever a new generator dependency is added. -->
4247
<PackageReference Include="Amazon.Lambda.Core" Version="2.1.0" />
4348
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" GeneratePathProperty="true" PrivateAssets="all" />
4449
<PackageReference Include="YamlDotNet" Version="12.0.0" GeneratePathProperty="true" PrivateAssets="all" />
@@ -130,4 +135,10 @@
130135
<AdditionalFiles Include="Diagnostics\AnalyzerReleases.Unshipped.md" />
131136
</ItemGroup>
132137

138+
<ItemGroup>
139+
<None Include="..\..\..\icon.png" Pack="true" PackagePath="images\icon.png" />
140+
<None Include=".\README.md" Pack="true" PackagePath="docs\README.md" />
141+
<None Include=".\THIRD_PARTY_LICENSES" Pack="true" PackagePath="" />
142+
</ItemGroup>
143+
133144
</Project>

Libraries/src/Amazon.Lambda.Annotations.SourceGenerator/Diagnostics/AnalyzerReleases.Shipped.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,45 +28,50 @@ AWSLambda0113 | AWSLambdaCSharpGenerator | Error | The GenerateMain global prope
2828
AWSLambda0114 | AWSLambdaCSharpGenerator | Error | The GenerateMain global property is set to true, but the project already contains a static Main method
2929

3030
## Release 1.0.0
31+
### New Rules
32+
3133
Rule ID | Category | Severity | Notes
3234
--------|----------|----------|-------
3335
AWSLambda0110 | AWSLambdaCSharpGenerator | Error | Invalid Parameter Attribute Name
3436

3537
## Release 0.13.4.0
38+
### New Rules
39+
3640
Rule ID | Category | Severity | Notes
3741
--------|----------|----------|-------
3842
AWSLambda0109 | AWSLambdaCSharpGenerator | Error | Unsupported Method Paramater Type
3943

4044
## Release 0.13.3.0
45+
### New Rules
46+
4147
Rule ID | Category | Severity | Notes
4248
--------|----------|----------|-------
4349
AWSLambda0108 | AWSLambdaCSharpGenerator | Error | Assembly attribute Amazon.Lambda.Core.LambdaSerializerAttribute is missing
4450

4551
## Release 0.13.1.0
46-
Rule ID | Category | Severity | Notes
47-
--------|----------|----------|-------
48-
AWSLambda0107 | AWSLambdaCSharpGenerator | Error | Unsupported error thrown during code generation
52+
### New Rules
4953

5054
Rule ID | Category | Severity | Notes
5155
--------|----------|----------|-------
52-
AWSLambda0106 | AWSLambdaCSharpGenerator | Error | Invalid CloudFormation resource name
56+
AWSLambda0107 | AWSLambdaCSharpGenerator | Error | Unsupported error thrown during code generation
5357

5458
## Release 0.13.0.0
59+
### New Rules
5560

5661
Rule ID | Category | Severity | Notes
5762
--------|----------|----------|-------
5863
AWSLambda0106 | AWSLambdaCSharpGenerator | Error | Invalid CloudFormation resource name
5964

6065

6166
## Release 0.11.0.0
67+
### New Rules
6268

6369
Rule ID | Category | Severity | Notes
6470
--------|----------|----------|-------
6571
AWSLambda0104 | AWSLambdaCSharpGenerator | Error | Missing reference to a required dependency
6672
AWSLambda0105 | AWSLambdaCSharpGenerator | Error | Invalid return type IHttpResult
6773

6874
## Release 0.4.2.0
69-
7075
### New Rules
7176

7277
Rule ID | Category | Severity | Notes

Libraries/src/Amazon.Lambda.Annotations.nuspec

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

0 commit comments

Comments
 (0)