File tree Expand file tree Collapse file tree 2 files changed +9
-12
lines changed
Libraries/src/Amazon.Lambda.S3Events Expand file tree Collapse file tree 2 files changed +9
-12
lines changed Original file line number Diff line number Diff line change 4
4
5
5
<PropertyGroup >
6
6
<Description >Amazon Lambda .NET Core support - S3Events package.</Description >
7
- <TargetFrameworks >netstandard2.0; netcoreapp3.1</TargetFrameworks >
7
+ <TargetFrameworks >netcoreapp3.1</TargetFrameworks >
8
8
<AssemblyTitle >Amazon.Lambda.S3Events</AssemblyTitle >
9
9
<VersionPrefix >2.0.1</VersionPrefix >
10
10
<AssemblyName >Amazon.Lambda.S3Events</AssemblyName >
11
11
<PackageId >Amazon.Lambda.S3Events</PackageId >
12
12
<PackageTags >AWS;Amazon;Lambda</PackageTags >
13
13
</PropertyGroup >
14
14
15
- <ItemGroup >
16
- <PackageReference Include =" Newtonsoft.Json" Version =" 13.0.1" />
17
- </ItemGroup >
18
-
19
15
</Project >
Original file line number Diff line number Diff line change @@ -2,16 +2,14 @@ namespace Amazon.Lambda.S3Events
2
2
{
3
3
using System ;
4
4
using System . Collections . Generic ;
5
-
6
- using Newtonsoft . Json ;
5
+ using System . Runtime . Serialization ;
7
6
8
7
/// <summary>
9
8
/// AWS S3 event
10
9
/// http://docs.aws.amazon.com/lambda/latest/dg/with-s3.html
11
10
/// http://docs.aws.amazon.com/lambda/latest/dg/eventsources.html#eventsources-s3-put
12
-
13
-
14
11
/// </summary>
12
+
15
13
public class S3Event
16
14
{
17
15
@@ -123,19 +121,22 @@ public class RequestParametersEntity
123
121
/// <summary>
124
122
/// This class holds the response elements.
125
123
/// </summary>
124
+
125
+ [ DataContract ]
126
126
public class ResponseElementsEntity
127
127
{
128
128
/// <summary>
129
129
/// Gets and sets the XAmzId2 Property. This is the Amazon S3 host that processed the request.
130
130
/// </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" ) ]
133
133
public string XAmzId2 { get ; set ; }
134
134
135
135
/// <summary>
136
136
/// Gets and sets the XAmzRequestId. This is the Amazon S3 generated request ID.
137
137
/// </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" ) ]
139
140
public string XAmzRequestId { get ; set ; }
140
141
}
141
142
You can’t perform that action at this time.
0 commit comments