-
Notifications
You must be signed in to change notification settings - Fork 485
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 6MB request and response size check (#1990)
- Loading branch information
1 parent
4e50b80
commit 700568a
Showing
17 changed files
with
618 additions
and
62 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
.autover/changes/e65c21d6-7608-481f-8135-198a7ab8ad54.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"Projects": [ | ||
{ | ||
"Name": "Amazon.Lambda.TestTool", | ||
"Type": "Patch", | ||
"ChangelogMessages": [ | ||
"Add 6MB request and response size validation." | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
Tools/LambdaTestTool-v2/src/Amazon.Lambda.TestTool/Exceptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
namespace Amazon.Lambda.TestTool; | ||
|
||
/// <summary> | ||
/// Contains constant string values for AWS Lambda exception types. | ||
/// </summary> | ||
public class Exceptions | ||
{ | ||
/// <summary> | ||
/// Exception thrown when the request payload size exceeds AWS Lambda's limits. | ||
/// This occurs when the request payload is larger than 6 MB for synchronous invocations. | ||
/// </summary> | ||
public const string RequestEntityTooLargeException = "RequestEntityTooLargeException"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
Tools/LambdaTestTool-v2/src/Amazon.Lambda.TestTool/Models/LambdaOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
namespace Amazon.Lambda.TestTool.Models; | ||
|
||
/// <summary> | ||
/// Configuration options for invoking lambda functions. | ||
/// </summary> | ||
public class LambdaOptions | ||
{ | ||
/// <summary> | ||
/// Gets or sets the endpoint URL for Lambda function invocations. | ||
/// </summary> | ||
/// <value> | ||
/// A string containing the endpoint URL. Defaults to an empty string. | ||
/// </value> | ||
public string Endpoint { get; set; } = string.Empty; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.