Skip to content

Commit bc30f90

Browse files
committed
address comments
1 parent 95cf205 commit bc30f90

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

Libraries/src/Amazon.Lambda.S3Events/Amazon.Lambda.S3Events.csproj

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,12 @@
44

55
<PropertyGroup>
66
<Description>Amazon Lambda .NET Core support - S3Events package.</Description>
7-
<TargetFrameworks>netstandard2.0;netcoreapp3.1</TargetFrameworks>
7+
<TargetFrameworks>netcoreapp3.1</TargetFrameworks>
88
<AssemblyTitle>Amazon.Lambda.S3Events</AssemblyTitle>
99
<VersionPrefix>2.0.1</VersionPrefix>
1010
<AssemblyName>Amazon.Lambda.S3Events</AssemblyName>
1111
<PackageId>Amazon.Lambda.S3Events</PackageId>
1212
<PackageTags>AWS;Amazon;Lambda</PackageTags>
1313
</PropertyGroup>
1414

15-
<ItemGroup>
16-
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
17-
</ItemGroup>
18-
1915
</Project>

Libraries/src/Amazon.Lambda.S3Events/S3Event.cs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,14 @@ namespace Amazon.Lambda.S3Events
22
{
33
using System;
44
using System.Collections.Generic;
5-
6-
using Newtonsoft.Json;
5+
using System.Runtime.Serialization;
76

87
/// <summary>
98
/// AWS S3 event
109
/// http://docs.aws.amazon.com/lambda/latest/dg/with-s3.html
1110
/// http://docs.aws.amazon.com/lambda/latest/dg/eventsources.html#eventsources-s3-put
12-
13-
1411
/// </summary>
12+
1513
public class S3Event
1614
{
1715

@@ -123,19 +121,22 @@ public class RequestParametersEntity
123121
/// <summary>
124122
/// This class holds the response elements.
125123
/// </summary>
124+
125+
[DataContract]
126126
public class ResponseElementsEntity
127127
{
128128
/// <summary>
129129
/// Gets and sets the XAmzId2 Property. This is the Amazon S3 host that processed the request.
130130
/// </summary>
131-
132-
[JsonProperty("x-amz-id-2")]
131+
[DataMember(Name = "x-amz-id-2", EmitDefaultValue = false)]
132+
[System.Text.Json.Serialization.JsonPropertyName("x-amz-id-2")]
133133
public string XAmzId2 { get; set; }
134134

135135
/// <summary>
136136
/// Gets and sets the XAmzRequestId. This is the Amazon S3 generated request ID.
137137
/// </summary>
138-
[JsonProperty("x-amz-request-id")]
138+
[DataMember(Name = "x-amz-request-id", EmitDefaultValue = false)]
139+
[System.Text.Json.Serialization.JsonPropertyName("x-amz-request-id")]
139140
public string XAmzRequestId { get; set; }
140141
}
141142

0 commit comments

Comments
 (0)