diff --git a/.github/ISSUE_TEMPLATE/bug-report.yml b/.github/ISSUE_TEMPLATE/bug-report.yml new file mode 100644 index 00000000..fdeb72d4 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug-report.yml @@ -0,0 +1,83 @@ +--- +name: "🐛 Bug Report" +description: Report a bug +title: "(short issue description)" +labels: [bug, needs-triage] +assignees: [] +body: + - type: textarea + id: description + attributes: + label: Describe the bug + description: What is the problem? A clear and concise description of the bug. + validations: + required: true + - type: textarea + id: expected + attributes: + label: Expected Behavior + description: | + What did you expect to happen? + validations: + required: true + - type: textarea + id: current + attributes: + label: Current Behavior + description: | + What actually happened? + + Please include full errors, uncaught exceptions, stack traces, and relevant logs. + If service responses are relevant, please include wire logs. + validations: + required: true + - type: textarea + id: reproduction + attributes: + label: Reproduction Steps + description: | + Provide a self-contained, concise snippet of code that can be used to reproduce the issue. + For more complex issues provide a repo with the smallest sample that reproduces the bug. + + Avoid including business logic or unrelated code, it makes diagnosis more difficult. + The code sample should be an SSCCE. See http://sscce.org/ for details. In short, please provide a code sample that we can copy/paste, run and reproduce. + validations: + required: true + - type: textarea + id: solution + attributes: + label: Possible Solution + description: | + Suggest a fix/reason for the bug + validations: + required: false + - type: textarea + id: context + attributes: + label: Additional Information/Context + description: | + Anything else that might be relevant for troubleshooting this bug. Providing context helps us come up with a solution that is most useful in the real world. + validations: + required: false + + - type: input + id: swift-sdk-version + attributes: + label: AWS SWIFT SDK version used + validations: + required: true + + - type: input + id: compiler-version + attributes: + label: Compiler and Version used + description: Xcode version, Swift compiler version, Swift Tools version + validations: + required: true + + - type: input + id: operating-system + attributes: + label: Operating System and version + validations: + required: true diff --git a/.github/ISSUE_TEMPLATE/documentation.yml b/.github/ISSUE_TEMPLATE/documentation.yml new file mode 100644 index 00000000..c068514d --- /dev/null +++ b/.github/ISSUE_TEMPLATE/documentation.yml @@ -0,0 +1,23 @@ +--- +name: "📕 Documentation Issue" +description: Report an issue in the API Reference documentation or Developer Guide +title: "(short issue description)" +labels: [documentation, needs-triage] +assignees: [] +body: + - type: textarea + id: description + attributes: + label: Describe the issue + description: A clear and concise description of the issue. + validations: + required: true + + - type: textarea + id: links + attributes: + label: Links + description: | + Include links to affected documentation page(s). + validations: + required: true diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml new file mode 100644 index 00000000..a5c45cd8 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -0,0 +1,54 @@ +--- +name: 🚀 Feature Request +description: Suggest an idea for this project +title: "(short issue description)" +labels: [feature-request, needs-triage] +assignees: [] +body: + - type: markdown + attributes: + value: | + ## Community Note + 1. Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request + 2. Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request + 3. If you are interested in working on this issue, please leave a comment + - type: textarea + id: description + attributes: + label: Describe the feature + description: A clear and concise description of the feature you are proposing. + validations: + required: true + - type: textarea + id: use-case + attributes: + label: Use Case + description: | + Why do you need this feature? For example: "I'm always frustrated when..." + validations: + required: true + - type: textarea + id: solution + attributes: + label: Proposed Solution + description: | + Suggest how to implement the addition or change. Please include prototype/workaround/sketch/reference implementation. + validations: + required: false + - type: textarea + id: other + attributes: + label: Other Information + description: | + Any alternative solutions or features you considered, a more detailed explanation, stack traces, related issues, links for context, etc. + validations: + required: false + - type: checkboxes + id: ack + attributes: + label: Acknowledgements + options: + - label: I may be able to implement this feature request + required: false + - label: This feature might incur a breaking change + required: false diff --git a/.github/ISSUE_TEMPLATE/issue-report.yml b/.github/ISSUE_TEMPLATE/issue-report.yml deleted file mode 100644 index ae6e0ba3..00000000 --- a/.github/ISSUE_TEMPLATE/issue-report.yml +++ /dev/null @@ -1,71 +0,0 @@ -name: Swift AWS Lambda SDK issue -description: File an issue report with the usage of the Swift AWS Lambda Runtime -body: - - type: markdown - attributes: - value: "Thanks for taking the time to fill out this issue report" - - type: textarea - id: expected-behavior - attributes: - label: Expected behavior - description: What you expected to happen? - placeholder: Describe with your own words the expected result - validations: - required: true - - type: textarea - id: what-happend - attributes: - label: Actual behavior - description: What actually happened - placeholder: Describe - validations: - required: true - - type: textarea - id: steps-to-reproduce - attributes: - label: Steps to reproduce - description: List the steps followed to reproduce the behaviour you are reporting - placeholder: | - 1. First I... - 2. Then... - 3. Finally... - validations: - required: true - - type: textarea - id: code-snippet - attributes: - label: If possible, minimal yet complete reproducer code (or URL to code) - description: List the steps followed to reproduce the behaviour you are reporting - placeholder: | - You can add any relevant code snippet that you consider or an URL to code. - - URL could be a link to a GitHub Gist, for example - validations: - required: false - - type: input - id: swift-aws-lambda-runtime-version - attributes: - label: What version of this project (`swift-aws-lambda-runtime`) are you using? - description: The release, branch or commit hash related with this issue. - placeholder: 1.0.0-alpha.1 - validations: - required: true - - type: textarea - id: swift-version - attributes: - label: Swift version - description: Swift environment version. - placeholder: | - Open a Terminal and execute the following command - - swift --version && uname -a - validations: - required: true - - type: input - id: amazon-linux-2-version - attributes: - label: Amazon Linux 2 docker image version - description: The docker image tag used to archive the lambda, if available. - placeholder: 5.7.3-amazonlinux2 - validations: - required: false diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index ab90c7b9..b4486e2f 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,13 +1,17 @@ -_[One line description of your change]_ + -### Motivation: +## Issue \# + -_[Explain here the context, and why you're making that change. What is the problem you're trying to solve.]_ +## Description of changes + -### Modifications: +## New/existing dependencies impact assessment, if applicable + + -_[Describe the modifications you've done.]_ +## Conventional Commits + + -### Result: - -_[After your change, what will change.]_ +By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. \ No newline at end of file diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index be5613de..0d0b8886 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -1,4 +1,4 @@ -name: PR +name: swift-aws-lambda-runtime-build on: pull_request: diff --git a/.license_header_template b/.license_header_template new file mode 100644 index 00000000..ac9523e5 --- /dev/null +++ b/.license_header_template @@ -0,0 +1,14 @@ +@@===----------------------------------------------------------------------===@@ +@@ +@@ This source file is part of the SwiftAWSLambdaRuntime open source project +@@ +@@ Copyright SwiftAWSLambdaRuntime project authors +@@ Copyright (c) Amazon.com, Inc. or its affiliates. +@@ Licensed under Apache License v2.0 +@@ +@@ See LICENSE.txt for license information +@@ See CONTRIBUTORS.txt for the list of SwiftAWSLambdaRuntime project authors +@@ +@@ SPDX-License-Identifier: Apache-2.0 +@@ +@@===----------------------------------------------------------------------===@@ diff --git a/.mailmap b/.mailmap index 59f7e426..890ad9f9 100644 --- a/.mailmap +++ b/.mailmap @@ -3,4 +3,6 @@ Tomer Doron Tomer Doron Fabian Fett Fabian Fett -Sébastien Stormacq \ No newline at end of file +Sébastien Stormacq +Sébastien Stormacq +Natan Rolnik \ No newline at end of file diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md deleted file mode 100644 index 0776b8a0..00000000 --- a/CODE_OF_CONDUCT.md +++ /dev/null @@ -1,3 +0,0 @@ -# Code of Conduct - -The code of conduct for this project can be found at https://swift.org/code-of-conduct. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ea08754c..615e894c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,68 +1,57 @@ -## Legal +# Contributing Guidelines -By submitting a pull request, you represent that you have the right to license -your contribution to Apple and the community, and agree by submitting the patch -that your contributions are licensed under the Apache 2.0 license (see -`LICENSE.txt`). +Thank you for your interest in contributing to our project. Whether it's a bug report, new feature, correction, or additional +documentation, we greatly value feedback and contributions from our community. +Please read through this document before submitting any issues or pull requests to ensure we have all the necessary +information to effectively respond to your bug report or contribution. -## How to submit a bug report -Please ensure to specify the following: +## Reporting Bugs/Feature Requests -* SwiftAWSLambdaRuntime commit hash -* Contextual information (e.g. what you were trying to achieve with SwiftAWSLambdaRuntime) -* Simplest possible steps to reproduce - * More complex the steps are, lower the priority will be. - * A pull request with failing test case is preferred, but it's just fine to paste the test case into the issue description. -* Anything that might be relevant in your opinion, such as: - * Swift version or the output of `swift --version` - * OS version and the output of `uname -a` - * Network configuration +We welcome you to use the GitHub issue tracker to report bugs or suggest features. +When filing an issue, please check [existing open](https://github.com/awslabs/swift-aws-lambda-runtime/issues), or [recently closed](https://github.com/awslabs/swift-aws-lambda-runtime/issues?q=is%3Aissue%20state%3Aclosed), issues to make sure somebody else hasn't already +reported the issue. Please try to include as much information as you can. Details like these are incredibly useful: -### Example +* A reproducible test case or series of steps +* The version of our code being used +* Any modifications you've made relevant to the bug +* Anything unusual about your environment or deployment -``` -SwiftAWSLambdaRuntime commit hash: 22ec043dc9d24bb011b47ece4f9ee97ee5be2757 -Context: -While load testing my Lambda written with SwiftAWSLambdaRuntime, I noticed -that one file descriptor is leaked per request. +## Contributing via Pull Requests +Contributions via pull requests are much appreciated. Before sending us a pull request, please ensure that: -Steps to reproduce: -1. ... -2. ... -3. ... -4. ... +1. You are working against the latest source on the *main* branch. +2. You check existing open, and recently merged, pull requests to make sure someone else hasn't addressed the problem already. +3. You open an issue to discuss any significant work - we would hate for your time to be wasted. -$ swift --version -Swift version 4.0.2 (swift-4.0.2-RELEASE) -Target: x86_64-unknown-linux-gnu +To send us a pull request, please: -Operating system: Ubuntu Linux 16.04 64-bit +1. Fork the repository. +2. Modify the source; please focus on the specific change you are contributing. If you also reformat all the code, it will be hard for us to focus on your change. +3. Ensure local tests pass. +4. Commit to your fork using clear commit messages. +5. Send us a pull request, answering any default questions in the pull request interface. +6. Pay attention to any automated CI failures reported in the pull request, and stay involved in the conversation. -$ uname -a -Linux beefy.machine 4.4.0-101-generic #124-Ubuntu SMP Fri Nov 10 18:29:59 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux +GitHub provides additional document on [forking a repository](https://help.github.com/articles/fork-a-repo/) and +[creating a pull request](https://help.github.com/articles/creating-a-pull-request/). -My system has IPv6 disabled. -``` -## Writing a Patch +## Finding contributions to work on +Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use GitHub issue labels (looking at any ['good first issue'](https://github.com/awslabs/swift-aws-lambda-runtime/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22good%20first%20issue%22) issues is a great place to start. -A good SwiftAWSLambdaRuntime patch is: -1. Concise, and contains as few changes as needed to achieve the end result. -2. Tested, ensuring that any tests provided failed before the patch and pass after it. -3. Documented, adding API documentation as needed to cover new functions and properties. -4. Accompanied by a great commit message, using our commit message template. +## Code of Conduct +This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct). +For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact +opensource-codeofconduct@amazon.com with any additional questions or comments. -### Commit Message Template -We require that your commit messages match our template. The easiest way to do that is to get git to help you by explicitly using the template. To do that, `cd` to the root of our repository and run: +## Licensing - git config commit.template dev/git.commit.template +See the [LICENSE](https://github.com/awslabs/swift-aws-lambda-runtime/blob/main/LICENSE.txt) file for our project's licensing. We will ask you confirm the licensing of your contribution. -## How to contribute your work - -Please open a pull request at https://github.com/awslabs/swift-aws-lambda-runtime. Make sure the CI passes, and then wait for code review. +We may ask you to sign a [Contributor License Agreement (CLA)](http://en.wikipedia.org/wiki/Contributor_License_Agreement) for larger changes. \ No newline at end of file diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt index 77d546ad..a80e1c14 100644 --- a/CONTRIBUTORS.txt +++ b/CONTRIBUTORS.txt @@ -7,8 +7,8 @@ needs to be listed here. ## COPYRIGHT HOLDERS +- Amazon.com, Inc. (all contributors with '@amazon.com') - Apple Inc. (all contributors with '@apple.com') -- Amazon.com, Inc. or its affiliates (all contributors with '@amazon.com') ### Contributors @@ -16,6 +16,7 @@ needs to be listed here. - Adolfo - Alessio Buratti <9006089+Buratti@users.noreply.github.com> - Andrea Scuderi +- Ben Rosen - Bill <3207996+gestrich@users.noreply.github.com> - Brendan Kirchner - Bryan Bartow @@ -28,6 +29,7 @@ needs to be listed here. - DwayneCoussement - DwayneCoussement - Eneko Alonso +- Erin Sparling - Fabian Fett - Filipp Fediakov - Florent Morin @@ -46,7 +48,7 @@ needs to be listed here. - Marwane Koutar <100198937+MarwaneKoutar@users.noreply.github.com> - Matt Massicotte <85322+mattmassicotte@users.noreply.github.com> - Max Desiatov -- Natan Rolnik +- Natan Rolnik - Norman Maurer - Paul Toffoloni <69189821+ptoffy@users.noreply.github.com> - Ralph Küpper diff --git a/Examples/APIGatewayV1/Sources/main.swift b/Examples/APIGatewayV1/Sources/main.swift index 2f65d84f..c5dea5b4 100644 --- a/Examples/APIGatewayV1/Sources/main.swift +++ b/Examples/APIGatewayV1/Sources/main.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2025 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Examples/APIGatewayV2+LambdaAuthorizer/Sources/APIGatewayLambda/main.swift b/Examples/APIGatewayV2+LambdaAuthorizer/Sources/APIGatewayLambda/main.swift index f7662d1c..b12ef15b 100644 --- a/Examples/APIGatewayV2+LambdaAuthorizer/Sources/APIGatewayLambda/main.swift +++ b/Examples/APIGatewayV2+LambdaAuthorizer/Sources/APIGatewayLambda/main.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2024 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Examples/APIGatewayV2+LambdaAuthorizer/Sources/AuthorizerLambda/main.swift b/Examples/APIGatewayV2+LambdaAuthorizer/Sources/AuthorizerLambda/main.swift index 60ea2b7b..34f0180d 100644 --- a/Examples/APIGatewayV2+LambdaAuthorizer/Sources/AuthorizerLambda/main.swift +++ b/Examples/APIGatewayV2+LambdaAuthorizer/Sources/AuthorizerLambda/main.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2024 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Examples/APIGatewayV2/Sources/main.swift b/Examples/APIGatewayV2/Sources/main.swift index f7662d1c..b12ef15b 100644 --- a/Examples/APIGatewayV2/Sources/main.swift +++ b/Examples/APIGatewayV2/Sources/main.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2024 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Examples/BackgroundTasks/Sources/main.swift b/Examples/BackgroundTasks/Sources/main.swift index 1985fc34..84503aa5 100644 --- a/Examples/BackgroundTasks/Sources/main.swift +++ b/Examples/BackgroundTasks/Sources/main.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2024 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Examples/CDK/Sources/main.swift b/Examples/CDK/Sources/main.swift index 2d5707d6..6e32a1ed 100644 --- a/Examples/CDK/Sources/main.swift +++ b/Examples/CDK/Sources/main.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2024 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Examples/CDK/infra/bin/deploy.ts b/Examples/CDK/infra/bin/deploy.ts index a83096da..46416917 100644 --- a/Examples/CDK/infra/bin/deploy.ts +++ b/Examples/CDK/infra/bin/deploy.ts @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2024 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Examples/CDK/infra/lib/lambda-api-project-stack.ts b/Examples/CDK/infra/lib/lambda-api-project-stack.ts index b4aaa3d1..b99d3313 100644 --- a/Examples/CDK/infra/lib/lambda-api-project-stack.ts +++ b/Examples/CDK/infra/lib/lambda-api-project-stack.ts @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2024 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Examples/HelloJSON/Sources/main.swift b/Examples/HelloJSON/Sources/main.swift index 7e48971b..70f883c4 100644 --- a/Examples/HelloJSON/Sources/main.swift +++ b/Examples/HelloJSON/Sources/main.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2024 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Examples/HelloWorld/Sources/main.swift b/Examples/HelloWorld/Sources/main.swift index 5aab1a79..476b9269 100644 --- a/Examples/HelloWorld/Sources/main.swift +++ b/Examples/HelloWorld/Sources/main.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2024 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Examples/HelloWorldNoTraits/Sources/main.swift b/Examples/HelloWorldNoTraits/Sources/main.swift index f0f167ab..212115d3 100644 --- a/Examples/HelloWorldNoTraits/Sources/main.swift +++ b/Examples/HelloWorldNoTraits/Sources/main.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2025 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Examples/HummingbirdLambda/Sources/main.swift b/Examples/HummingbirdLambda/Sources/main.swift index 15d19099..e0c8a7b9 100644 --- a/Examples/HummingbirdLambda/Sources/main.swift +++ b/Examples/HummingbirdLambda/Sources/main.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2024 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Examples/ResourcesPackaging/Sources/main.swift b/Examples/ResourcesPackaging/Sources/main.swift index dccbd863..36c8b347 100644 --- a/Examples/ResourcesPackaging/Sources/main.swift +++ b/Examples/ResourcesPackaging/Sources/main.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2025 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Examples/S3EventNotifier/Sources/main.swift b/Examples/S3EventNotifier/Sources/main.swift index 9a55974e..4555cb8a 100644 --- a/Examples/S3EventNotifier/Sources/main.swift +++ b/Examples/S3EventNotifier/Sources/main.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2025 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Examples/S3_AWSSDK/Sources/main.swift b/Examples/S3_AWSSDK/Sources/main.swift index 6665893c..d57c2403 100644 --- a/Examples/S3_AWSSDK/Sources/main.swift +++ b/Examples/S3_AWSSDK/Sources/main.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2024 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Examples/S3_Soto/Sources/main.swift b/Examples/S3_Soto/Sources/main.swift index caa70116..67a1bb81 100644 --- a/Examples/S3_Soto/Sources/main.swift +++ b/Examples/S3_Soto/Sources/main.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2024 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Examples/ServiceLifecycle+Postgres/Sources/Lambda.swift b/Examples/ServiceLifecycle+Postgres/Sources/Lambda.swift index a59654fb..18b81bdd 100644 --- a/Examples/ServiceLifecycle+Postgres/Sources/Lambda.swift +++ b/Examples/ServiceLifecycle+Postgres/Sources/Lambda.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2025 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Examples/ServiceLifecycle+Postgres/Sources/PreludeService.swift b/Examples/ServiceLifecycle+Postgres/Sources/PreludeService.swift index a64053a2..cf082153 100644 --- a/Examples/ServiceLifecycle+Postgres/Sources/PreludeService.swift +++ b/Examples/ServiceLifecycle+Postgres/Sources/PreludeService.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2025 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -16,7 +17,6 @@ // This source file is part of the Hummingbird server framework project // // Copyright (c) 2024 the Hummingbird authors -// Licensed under Apache License v2.0 // // See LICENSE.txt for license information // See hummingbird/CONTRIBUTORS.txt for the list of Hummingbird authors diff --git a/Examples/ServiceLifecycle+Postgres/Sources/RDSCertificates/RootRDSCert.swift b/Examples/ServiceLifecycle+Postgres/Sources/RDSCertificates/RootRDSCert.swift index f89c5fbb..4e54549a 100644 --- a/Examples/ServiceLifecycle+Postgres/Sources/RDSCertificates/RootRDSCert.swift +++ b/Examples/ServiceLifecycle+Postgres/Sources/RDSCertificates/RootRDSCert.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2025 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Examples/ServiceLifecycle+Postgres/Sources/RDSCertificates/eu-central-1.swift b/Examples/ServiceLifecycle+Postgres/Sources/RDSCertificates/eu-central-1.swift index e602ebf2..af36f93d 100644 --- a/Examples/ServiceLifecycle+Postgres/Sources/RDSCertificates/eu-central-1.swift +++ b/Examples/ServiceLifecycle+Postgres/Sources/RDSCertificates/eu-central-1.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2025 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Examples/ServiceLifecycle+Postgres/Sources/RDSCertificates/us-east-1.swift b/Examples/ServiceLifecycle+Postgres/Sources/RDSCertificates/us-east-1.swift index f68a6781..51abbd4f 100644 --- a/Examples/ServiceLifecycle+Postgres/Sources/RDSCertificates/us-east-1.swift +++ b/Examples/ServiceLifecycle+Postgres/Sources/RDSCertificates/us-east-1.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2025 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Examples/ServiceLifecycle+Postgres/Sources/Timeout.swift b/Examples/ServiceLifecycle+Postgres/Sources/Timeout.swift index 6a8dc5dc..78a4392b 100644 --- a/Examples/ServiceLifecycle+Postgres/Sources/Timeout.swift +++ b/Examples/ServiceLifecycle+Postgres/Sources/Timeout.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2025 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Examples/ServiceLifecycle+Postgres/deploy.sh b/Examples/ServiceLifecycle+Postgres/deploy.sh index 262cbf65..fdeb4871 100755 --- a/Examples/ServiceLifecycle+Postgres/deploy.sh +++ b/Examples/ServiceLifecycle+Postgres/deploy.sh @@ -3,7 +3,8 @@ ## ## This source file is part of the SwiftAWSLambdaRuntime open source project ## -## Copyright (c) 2025 Apple Inc. and the SwiftAWSLambdaRuntime project authors +## Copyright SwiftAWSLambdaRuntime project authors +## Copyright (c) Amazon.com, Inc. or its affiliates. ## Licensed under Apache License v2.0 ## ## See LICENSE.txt for license information diff --git a/Examples/ServiceLifecycle+Postgres/localdb.sh b/Examples/ServiceLifecycle+Postgres/localdb.sh index db615b4d..9a124712 100644 --- a/Examples/ServiceLifecycle+Postgres/localdb.sh +++ b/Examples/ServiceLifecycle+Postgres/localdb.sh @@ -3,7 +3,8 @@ ## ## This source file is part of the SwiftAWSLambdaRuntime open source project ## -## Copyright (c) 2025 Apple Inc. and the SwiftAWSLambdaRuntime project authors +## Copyright SwiftAWSLambdaRuntime project authors +## Copyright (c) Amazon.com, Inc. or its affiliates. ## Licensed under Apache License v2.0 ## ## See LICENSE.txt for license information diff --git a/Examples/Streaming+Codable/Sources/LambdaStreaming+Codable.swift b/Examples/Streaming+Codable/Sources/LambdaStreaming+Codable.swift index 4b447fcb..4cc8677f 100644 --- a/Examples/Streaming+Codable/Sources/LambdaStreaming+Codable.swift +++ b/Examples/Streaming+Codable/Sources/LambdaStreaming+Codable.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2025 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Examples/Streaming+Codable/Sources/main.swift b/Examples/Streaming+Codable/Sources/main.swift index bf559dd8..041da471 100644 --- a/Examples/Streaming+Codable/Sources/main.swift +++ b/Examples/Streaming+Codable/Sources/main.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2024 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Examples/Streaming+Codable/Tests/LambdaStreamingCodableTests.swift b/Examples/Streaming+Codable/Tests/LambdaStreamingCodableTests.swift index b95388aa..ca25ed34 100644 --- a/Examples/Streaming+Codable/Tests/LambdaStreamingCodableTests.swift +++ b/Examples/Streaming+Codable/Tests/LambdaStreamingCodableTests.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2025 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Examples/Streaming/Sources/main.swift b/Examples/Streaming/Sources/main.swift index d8831976..49ff62f2 100644 --- a/Examples/Streaming/Sources/main.swift +++ b/Examples/Streaming/Sources/main.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2024 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Examples/Testing/Sources/Business.swift b/Examples/Testing/Sources/Business.swift index af95b8e5..2bbf2bff 100644 --- a/Examples/Testing/Sources/Business.swift +++ b/Examples/Testing/Sources/Business.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2024 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Examples/Testing/Sources/main.swift b/Examples/Testing/Sources/main.swift index af76e02c..d244bc23 100644 --- a/Examples/Testing/Sources/main.swift +++ b/Examples/Testing/Sources/main.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2024 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Examples/Testing/Tests/BusinessTests.swift b/Examples/Testing/Tests/BusinessTests.swift index 85f821e1..73848f20 100644 --- a/Examples/Testing/Tests/BusinessTests.swift +++ b/Examples/Testing/Tests/BusinessTests.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2024 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Examples/Testing/Tests/HandlerTests.swift b/Examples/Testing/Tests/HandlerTests.swift index 85cc4e4e..0afc5d91 100644 --- a/Examples/Testing/Tests/HandlerTests.swift +++ b/Examples/Testing/Tests/HandlerTests.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2024 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Examples/Tutorial/Sources/main.swift b/Examples/Tutorial/Sources/main.swift index db28931d..4f35b4e4 100644 --- a/Examples/Tutorial/Sources/main.swift +++ b/Examples/Tutorial/Sources/main.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2025 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Examples/_MyFirstFunction/clean.sh b/Examples/_MyFirstFunction/clean.sh index 457e1c8a..7be3ac40 100755 --- a/Examples/_MyFirstFunction/clean.sh +++ b/Examples/_MyFirstFunction/clean.sh @@ -3,7 +3,8 @@ ## ## This source file is part of the SwiftAWSLambdaRuntime open source project ## -## Copyright (c) 2017-2024 Apple Inc. and the SwiftAWSLambdaRuntime project authors +## Copyright SwiftAWSLambdaRuntime project authors +## Copyright (c) Amazon.com, Inc. or its affiliates. ## Licensed under Apache License v2.0 ## ## See LICENSE.txt for license information diff --git a/Examples/_MyFirstFunction/create_and_deploy_function.sh b/Examples/_MyFirstFunction/create_and_deploy_function.sh index 9a99836c..fe3ae57d 100755 --- a/Examples/_MyFirstFunction/create_and_deploy_function.sh +++ b/Examples/_MyFirstFunction/create_and_deploy_function.sh @@ -3,7 +3,8 @@ ## ## This source file is part of the SwiftAWSLambdaRuntime open source project ## -## Copyright (c) 2017-2024 Apple Inc. and the SwiftAWSLambdaRuntime project authors +## Copyright SwiftAWSLambdaRuntime project authors +## Copyright (c) Amazon.com, Inc. or its affiliates. ## Licensed under Apache License v2.0 ## ## See LICENSE.txt for license information diff --git a/NOTICE.txt b/NOTICE.txt index de6a5448..022b2863 100644 --- a/NOTICE.txt +++ b/NOTICE.txt @@ -1,31 +1,7 @@ +swift-aws-lambda-runtime +Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. - The SwiftAWSLambdaRuntime Project - ================================= - -Please visit the SwiftAWSLambdaRuntime web site for more information: - - * https://github.com/awslabs/swift-aws-lambda-runtime - -Copyright 2017-2021 The SwiftAWSLambdaRuntime Project - -The SwiftAWSLambdaRuntime Project licenses this file to you under the Apache License, -version 2.0 (the "License"); you may not use this file except in compliance -with the License. You may obtain a copy of the License at: - - https://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -License for the specific language governing permissions and limitations -under the License. - -Also, please refer to each LICENSE.txt file, which is located in -the 'license' directory of the distribution file, for the license terms of the -components that this product depends on. - -------------------------------------------------------------------------------- - +--- This product contains a derivation various code and scripts from SwiftNIO. @@ -34,11 +10,3 @@ This product contains a derivation various code and scripts from SwiftNIO. * HOMEPAGE: * https://github.com/apple/swift-nio ---- - -This product contains a derivation of the swift-extras' 'swift-extras-uuid'. - - * LICENSE (MIT): - * https://github.com/swift-extras/swift-extras-uuid/blob/main/LICENSE - * HOMEPAGE: - * https://github.com/swift-extras/swift-extras-uuid diff --git a/Plugins/AWSLambdaPackager/Plugin.swift b/Plugins/AWSLambdaPackager/Plugin.swift index 8b633f7c..ad7d820d 100644 --- a/Plugins/AWSLambdaPackager/Plugin.swift +++ b/Plugins/AWSLambdaPackager/Plugin.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2022 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Plugins/AWSLambdaPackager/PluginUtils.swift b/Plugins/AWSLambdaPackager/PluginUtils.swift index f4e8cb02..cce60fab 100644 --- a/Plugins/AWSLambdaPackager/PluginUtils.swift +++ b/Plugins/AWSLambdaPackager/PluginUtils.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2022 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/SECURITY.md b/SECURITY.md index 1430c662..cecb5bf1 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -1,43 +1,7 @@ -# Security +# SECURITY.md -This document specifies the security process for the Swift AWS Lambda Runtime project. +## Reporting a Vulnerability -## Disclosures - -### Private Disclosure Process - -The Swift AWS Lambda Runtime maintainers ask that known and suspected vulnerabilities be -privately and responsibly disclosed by emailing -[sswg-security-reports@forums.swift.org](mailto:sswg-security-reports@forums.swift.org) -with the all the required detail. -**Do not file a public issue.** - -#### When to report a vulnerability - -* You think you have discovered a potential security vulnerability in Swift AWS Lambda Runtime. -* You are unsure how a vulnerability affects Swift AWS Lambda Runtime. - -#### What happens next? - -* A member of the team will acknowledge receipt of the report within 3 - working days (United States). This may include a request for additional - information about reproducing the vulnerability. -* We will privately inform the Swift Server Work Group ([SSWG][sswg]) of the - vulnerability within 10 days of the report as per their [security - guidelines][sswg-security]. -* Once we have identified a fix we may ask you to validate it. We aim to do this - within 30 days. In some cases this may not be possible, for example when the - vulnerability exists at the protocol level and the industry must coordinate on - the disclosure process. -* If a CVE number is required, one will be requested from [MITRE][mitre] - providing you with full credit for the discovery. -* We will decide on a planned release date and let you know when it is. -* Prior to release, we will inform major dependents that a security-related - patch is impending. -* Once the fix has been released we will publish a security advisory on GitHub - and in the Server → Security Updates category on the [Swift forums][swift-forums-sec]. - -[sswg]: https://github.com/swift-server/sswg -[sswg-security]: https://github.com/swift-server/sswg/blob/main/security/README.md -[swift-forums-sec]: https://forums.swift.org/c/server/security-updates/ -[mitre]: https://cveform.mitre.org/ +If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via +our [vulnerability reporting page](http://aws.amazon.com/security/vulnerability-reporting/) or directly via email +to [aws-security@amazon.com](mailto:aws-security@amazon.com). Please do not create a public GitHub issue. \ No newline at end of file diff --git a/Sources/AWSLambdaRuntime/ControlPlaneRequest.swift b/Sources/AWSLambdaRuntime/ControlPlaneRequest.swift index 9fa933f1..4d82d76b 100644 --- a/Sources/AWSLambdaRuntime/ControlPlaneRequest.swift +++ b/Sources/AWSLambdaRuntime/ControlPlaneRequest.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2017-2021 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/AWSLambdaRuntime/ControlPlaneRequestEncoder.swift b/Sources/AWSLambdaRuntime/ControlPlaneRequestEncoder.swift index 6934b064..1f2a9f80 100644 --- a/Sources/AWSLambdaRuntime/ControlPlaneRequestEncoder.swift +++ b/Sources/AWSLambdaRuntime/ControlPlaneRequestEncoder.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2021 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/AWSLambdaRuntime/FoundationSupport/Context+Foundation.swift b/Sources/AWSLambdaRuntime/FoundationSupport/Context+Foundation.swift index 1dd6584c..806913fa 100644 --- a/Sources/AWSLambdaRuntime/FoundationSupport/Context+Foundation.swift +++ b/Sources/AWSLambdaRuntime/FoundationSupport/Context+Foundation.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2017-2020 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/AWSLambdaRuntime/FoundationSupport/Lambda+JSON.swift b/Sources/AWSLambdaRuntime/FoundationSupport/Lambda+JSON.swift index da58360b..646e77f9 100644 --- a/Sources/AWSLambdaRuntime/FoundationSupport/Lambda+JSON.swift +++ b/Sources/AWSLambdaRuntime/FoundationSupport/Lambda+JSON.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2017-2022 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/AWSLambdaRuntime/FoundationSupport/Vendored/ByteBuffer-foundation.swift b/Sources/AWSLambdaRuntime/FoundationSupport/Vendored/ByteBuffer-foundation.swift index 482e020f..1b2a73bf 100644 --- a/Sources/AWSLambdaRuntime/FoundationSupport/Vendored/ByteBuffer-foundation.swift +++ b/Sources/AWSLambdaRuntime/FoundationSupport/Vendored/ByteBuffer-foundation.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2017-2022 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -17,7 +18,6 @@ // This source file is part of the SwiftNIO open source project // // Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors -// Licensed under Apache License v2.0 // // See LICENSE.txt for license information // See CONTRIBUTORS.txt for the list of SwiftNIO project authors diff --git a/Sources/AWSLambdaRuntime/FoundationSupport/Vendored/JSON+ByteBuffer.swift b/Sources/AWSLambdaRuntime/FoundationSupport/Vendored/JSON+ByteBuffer.swift index 89ce9b87..b62f26d4 100644 --- a/Sources/AWSLambdaRuntime/FoundationSupport/Vendored/JSON+ByteBuffer.swift +++ b/Sources/AWSLambdaRuntime/FoundationSupport/Vendored/JSON+ByteBuffer.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2017-2022 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -17,7 +18,6 @@ // This source file is part of the SwiftNIO open source project // // Copyright (c) 2019-2021 Apple Inc. and the SwiftNIO project authors -// Licensed under Apache License v2.0 // // See LICENSE.txt for license information // See CONTRIBUTORS.txt for the list of SwiftNIO project authors diff --git a/Sources/AWSLambdaRuntime/Lambda+Codable.swift b/Sources/AWSLambdaRuntime/Lambda+Codable.swift index bf88b67c..f20f5a47 100644 --- a/Sources/AWSLambdaRuntime/Lambda+Codable.swift +++ b/Sources/AWSLambdaRuntime/Lambda+Codable.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2024 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/AWSLambdaRuntime/Lambda+LocalServer.swift b/Sources/AWSLambdaRuntime/Lambda+LocalServer.swift index 1e924a55..e52afd3e 100644 --- a/Sources/AWSLambdaRuntime/Lambda+LocalServer.swift +++ b/Sources/AWSLambdaRuntime/Lambda+LocalServer.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2025 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/AWSLambdaRuntime/Lambda.swift b/Sources/AWSLambdaRuntime/Lambda.swift index d53efade..7f748457 100644 --- a/Sources/AWSLambdaRuntime/Lambda.swift +++ b/Sources/AWSLambdaRuntime/Lambda.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2017-2018 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/AWSLambdaRuntime/LambdaClock.swift b/Sources/AWSLambdaRuntime/LambdaClock.swift index 5fe65e75..db36f867 100644 --- a/Sources/AWSLambdaRuntime/LambdaClock.swift +++ b/Sources/AWSLambdaRuntime/LambdaClock.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2025 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/AWSLambdaRuntime/LambdaContext.swift b/Sources/AWSLambdaRuntime/LambdaContext.swift index df0166d2..111c97ec 100644 --- a/Sources/AWSLambdaRuntime/LambdaContext.swift +++ b/Sources/AWSLambdaRuntime/LambdaContext.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2017-2022 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/AWSLambdaRuntime/LambdaHandlers.swift b/Sources/AWSLambdaRuntime/LambdaHandlers.swift index 4b42d0d7..9ff33121 100644 --- a/Sources/AWSLambdaRuntime/LambdaHandlers.swift +++ b/Sources/AWSLambdaRuntime/LambdaHandlers.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2024 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/AWSLambdaRuntime/LambdaRequestID.swift b/Sources/AWSLambdaRuntime/LambdaRequestID.swift index df576947..fe657449 100644 --- a/Sources/AWSLambdaRuntime/LambdaRequestID.swift +++ b/Sources/AWSLambdaRuntime/LambdaRequestID.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2021 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/AWSLambdaRuntime/LambdaResponseStreamWriter+Headers.swift b/Sources/AWSLambdaRuntime/LambdaResponseStreamWriter+Headers.swift index 0aeb84e5..d8cf9a42 100644 --- a/Sources/AWSLambdaRuntime/LambdaResponseStreamWriter+Headers.swift +++ b/Sources/AWSLambdaRuntime/LambdaResponseStreamWriter+Headers.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2017-2024 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/AWSLambdaRuntime/LambdaRuntime+ServiceLifecycle.swift b/Sources/AWSLambdaRuntime/LambdaRuntime+ServiceLifecycle.swift index 7489e8a3..b2ab81e6 100644 --- a/Sources/AWSLambdaRuntime/LambdaRuntime+ServiceLifecycle.swift +++ b/Sources/AWSLambdaRuntime/LambdaRuntime+ServiceLifecycle.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2025 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/AWSLambdaRuntime/LambdaRuntime.swift b/Sources/AWSLambdaRuntime/LambdaRuntime.swift index 3bef7d53..5de52022 100644 --- a/Sources/AWSLambdaRuntime/LambdaRuntime.swift +++ b/Sources/AWSLambdaRuntime/LambdaRuntime.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2024 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/AWSLambdaRuntime/LambdaRuntimeClient+ChannelHandler.swift b/Sources/AWSLambdaRuntime/LambdaRuntimeClient+ChannelHandler.swift index ed0a8733..6238fac4 100644 --- a/Sources/AWSLambdaRuntime/LambdaRuntimeClient+ChannelHandler.swift +++ b/Sources/AWSLambdaRuntime/LambdaRuntimeClient+ChannelHandler.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2025 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/AWSLambdaRuntime/LambdaRuntimeClient.swift b/Sources/AWSLambdaRuntime/LambdaRuntimeClient.swift index b7a5a0a4..2a29a782 100644 --- a/Sources/AWSLambdaRuntime/LambdaRuntimeClient.swift +++ b/Sources/AWSLambdaRuntime/LambdaRuntimeClient.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2024 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/AWSLambdaRuntime/LambdaRuntimeClientProtocol.swift b/Sources/AWSLambdaRuntime/LambdaRuntimeClientProtocol.swift index 409fa8a0..f72cd840 100644 --- a/Sources/AWSLambdaRuntime/LambdaRuntimeClientProtocol.swift +++ b/Sources/AWSLambdaRuntime/LambdaRuntimeClientProtocol.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2024 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/AWSLambdaRuntime/LambdaRuntimeError.swift b/Sources/AWSLambdaRuntime/LambdaRuntimeError.swift index bc4865db..b9eada07 100644 --- a/Sources/AWSLambdaRuntime/LambdaRuntimeError.swift +++ b/Sources/AWSLambdaRuntime/LambdaRuntimeError.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2024 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/AWSLambdaRuntime/SendableMetatype.swift b/Sources/AWSLambdaRuntime/SendableMetatype.swift index a33f1aab..984ed759 100644 --- a/Sources/AWSLambdaRuntime/SendableMetatype.swift +++ b/Sources/AWSLambdaRuntime/SendableMetatype.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2025 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/AWSLambdaRuntime/Utils.swift b/Sources/AWSLambdaRuntime/Utils.swift index ec9945f0..6a80e7f6 100644 --- a/Sources/AWSLambdaRuntime/Utils.swift +++ b/Sources/AWSLambdaRuntime/Utils.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2017-2018 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/AWSLambdaRuntime/Version.swift b/Sources/AWSLambdaRuntime/Version.swift index f55c30f1..b203ee74 100644 --- a/Sources/AWSLambdaRuntime/Version.swift +++ b/Sources/AWSLambdaRuntime/Version.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2017-2018 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Sources/MockServer/MockHTTPServer.swift b/Sources/MockServer/MockHTTPServer.swift index ad69b216..bec3787c 100644 --- a/Sources/MockServer/MockHTTPServer.swift +++ b/Sources/MockServer/MockHTTPServer.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2017-2025 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/AWSLambdaRuntimeTests/CollectEverythingLogHandler.swift b/Tests/AWSLambdaRuntimeTests/CollectEverythingLogHandler.swift index 98004b6a..b02406f0 100644 --- a/Tests/AWSLambdaRuntimeTests/CollectEverythingLogHandler.swift +++ b/Tests/AWSLambdaRuntimeTests/CollectEverythingLogHandler.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2025 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/AWSLambdaRuntimeTests/ControlPlaneRequestEncoderTests.swift b/Tests/AWSLambdaRuntimeTests/ControlPlaneRequestEncoderTests.swift index c050ae5e..74adb287 100644 --- a/Tests/AWSLambdaRuntimeTests/ControlPlaneRequestEncoderTests.swift +++ b/Tests/AWSLambdaRuntimeTests/ControlPlaneRequestEncoderTests.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2021 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/AWSLambdaRuntimeTests/InvocationTests.swift b/Tests/AWSLambdaRuntimeTests/InvocationTests.swift index 6d1d7afa..13e5956e 100644 --- a/Tests/AWSLambdaRuntimeTests/InvocationTests.swift +++ b/Tests/AWSLambdaRuntimeTests/InvocationTests.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2022 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/AWSLambdaRuntimeTests/Lambda+CodableTests.swift b/Tests/AWSLambdaRuntimeTests/Lambda+CodableTests.swift index 2027616b..4e7e0219 100644 --- a/Tests/AWSLambdaRuntimeTests/Lambda+CodableTests.swift +++ b/Tests/AWSLambdaRuntimeTests/Lambda+CodableTests.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2024 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/AWSLambdaRuntimeTests/LambdaClockTests.swift b/Tests/AWSLambdaRuntimeTests/LambdaClockTests.swift index 5fe33235..e0147f55 100644 --- a/Tests/AWSLambdaRuntimeTests/LambdaClockTests.swift +++ b/Tests/AWSLambdaRuntimeTests/LambdaClockTests.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2025 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/AWSLambdaRuntimeTests/LambdaContextTests.swift b/Tests/AWSLambdaRuntimeTests/LambdaContextTests.swift index 7a53c1ef..e0f6a7b4 100644 --- a/Tests/AWSLambdaRuntimeTests/LambdaContextTests.swift +++ b/Tests/AWSLambdaRuntimeTests/LambdaContextTests.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2017-2022 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/AWSLambdaRuntimeTests/LambdaLocalServer+StreamingTests.swift b/Tests/AWSLambdaRuntimeTests/LambdaLocalServer+StreamingTests.swift index bfb0131d..7a756533 100644 --- a/Tests/AWSLambdaRuntimeTests/LambdaLocalServer+StreamingTests.swift +++ b/Tests/AWSLambdaRuntimeTests/LambdaLocalServer+StreamingTests.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2025 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/AWSLambdaRuntimeTests/LambdaLocalServerTests.swift b/Tests/AWSLambdaRuntimeTests/LambdaLocalServerTests.swift index 806f5c83..6962bd1a 100644 --- a/Tests/AWSLambdaRuntimeTests/LambdaLocalServerTests.swift +++ b/Tests/AWSLambdaRuntimeTests/LambdaLocalServerTests.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2025 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/AWSLambdaRuntimeTests/LambdaRequestIDTests.swift b/Tests/AWSLambdaRuntimeTests/LambdaRequestIDTests.swift index a144e20c..dc800785 100644 --- a/Tests/AWSLambdaRuntimeTests/LambdaRequestIDTests.swift +++ b/Tests/AWSLambdaRuntimeTests/LambdaRequestIDTests.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2021 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/AWSLambdaRuntimeTests/LambdaResponseStreamWriter+HeadersTests.swift b/Tests/AWSLambdaRuntimeTests/LambdaResponseStreamWriter+HeadersTests.swift index bcd38894..c411dd24 100644 --- a/Tests/AWSLambdaRuntimeTests/LambdaResponseStreamWriter+HeadersTests.swift +++ b/Tests/AWSLambdaRuntimeTests/LambdaResponseStreamWriter+HeadersTests.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2017-2024 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/AWSLambdaRuntimeTests/LambdaRunLoopTests.swift b/Tests/AWSLambdaRuntimeTests/LambdaRunLoopTests.swift index 0be96376..c508fb7a 100644 --- a/Tests/AWSLambdaRuntimeTests/LambdaRunLoopTests.swift +++ b/Tests/AWSLambdaRuntimeTests/LambdaRunLoopTests.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2024 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/AWSLambdaRuntimeTests/LambdaRuntime+ServiceLifeCycle.swift b/Tests/AWSLambdaRuntimeTests/LambdaRuntime+ServiceLifeCycle.swift index 3971c261..4532533d 100644 --- a/Tests/AWSLambdaRuntimeTests/LambdaRuntime+ServiceLifeCycle.swift +++ b/Tests/AWSLambdaRuntimeTests/LambdaRuntime+ServiceLifeCycle.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2024 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/AWSLambdaRuntimeTests/LambdaRuntimeClientTests.swift b/Tests/AWSLambdaRuntimeTests/LambdaRuntimeClientTests.swift index 2ba38496..16626b71 100644 --- a/Tests/AWSLambdaRuntimeTests/LambdaRuntimeClientTests.swift +++ b/Tests/AWSLambdaRuntimeTests/LambdaRuntimeClientTests.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2024 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/AWSLambdaRuntimeTests/LambdaRuntimeTests.swift b/Tests/AWSLambdaRuntimeTests/LambdaRuntimeTests.swift index 0fadf5d2..bfd4a322 100644 --- a/Tests/AWSLambdaRuntimeTests/LambdaRuntimeTests.swift +++ b/Tests/AWSLambdaRuntimeTests/LambdaRuntimeTests.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2025 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/AWSLambdaRuntimeTests/MockLambdaClient.swift b/Tests/AWSLambdaRuntimeTests/MockLambdaClient.swift index f35b08a0..216ea8ef 100644 --- a/Tests/AWSLambdaRuntimeTests/MockLambdaClient.swift +++ b/Tests/AWSLambdaRuntimeTests/MockLambdaClient.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2024 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/AWSLambdaRuntimeTests/MockLambdaServer.swift b/Tests/AWSLambdaRuntimeTests/MockLambdaServer.swift index fa84ed75..dad07fd8 100644 --- a/Tests/AWSLambdaRuntimeTests/MockLambdaServer.swift +++ b/Tests/AWSLambdaRuntimeTests/MockLambdaServer.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2017-2021 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/AWSLambdaRuntimeTests/PoolTests.swift b/Tests/AWSLambdaRuntimeTests/PoolTests.swift index 8cbe8a2e..705db9df 100644 --- a/Tests/AWSLambdaRuntimeTests/PoolTests.swift +++ b/Tests/AWSLambdaRuntimeTests/PoolTests.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2025 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/AWSLambdaRuntimeTests/Timeout.swift b/Tests/AWSLambdaRuntimeTests/Timeout.swift index 934325cd..8e96d05b 100644 --- a/Tests/AWSLambdaRuntimeTests/Timeout.swift +++ b/Tests/AWSLambdaRuntimeTests/Timeout.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2025 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/AWSLambdaRuntimeTests/Utils.swift b/Tests/AWSLambdaRuntimeTests/Utils.swift index 49a3cfbb..5ae9f96e 100644 --- a/Tests/AWSLambdaRuntimeTests/Utils.swift +++ b/Tests/AWSLambdaRuntimeTests/Utils.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2017-2024 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/Tests/AWSLambdaRuntimeTests/UtilsTest.swift b/Tests/AWSLambdaRuntimeTests/UtilsTest.swift index e519ce0c..3c29a9ba 100644 --- a/Tests/AWSLambdaRuntimeTests/UtilsTest.swift +++ b/Tests/AWSLambdaRuntimeTests/UtilsTest.swift @@ -2,7 +2,8 @@ // // This source file is part of the SwiftAWSLambdaRuntime open source project // -// Copyright (c) 2017-2018 Apple Inc. and the SwiftAWSLambdaRuntime project authors +// Copyright SwiftAWSLambdaRuntime project authors +// Copyright (c) Amazon.com, Inc. or its affiliates. // Licensed under Apache License v2.0 // // See LICENSE.txt for license information diff --git a/readme.md b/readme.md index 875a3100..238d471d 100644 --- a/readme.md +++ b/readme.md @@ -1,4 +1,6 @@ +This package makes it easy to run AWS Lambda Functions written in Swift. + You can read [the Swift AWS Lambda Runtime documentation](https://swiftpackageindex.com/awslabs/swift-aws-lambda-runtime/2.3.0/documentation/awslambdaruntime) on the Swift Package Index. This guide contains the following sections: @@ -11,6 +13,8 @@ This guide contains the following sections: - [Deploying your Swift Lambda functions](#deploying-your-swift-lambda-functions) - [Swift AWS Lambda Runtime - Design Principles](#swift-aws-lambda-runtime---design-principles) +The Swift runtime client is an experimental package. It is subject to change and intended only for evaluation purposes. + ## The Swift AWS Lambda Runtime Many modern systems have client components like iOS, macOS or watchOS applications as well as server components that those clients interact with. Serverless functions are often the easiest and most efficient way for client application developers to extend their applications into the cloud. diff --git a/scripts/check-doc.sh b/scripts/check-doc.sh index ab27bd60..3cc85023 100755 --- a/scripts/check-doc.sh +++ b/scripts/check-doc.sh @@ -3,7 +3,8 @@ ## ## This source file is part of the SwiftAWSLambdaRuntime open source project ## -## Copyright (c) 2025 Apple Inc. and the SwiftAWSLambdaRuntime project authors +## Copyright SwiftAWSLambdaRuntime project authors +## Copyright (c) Amazon.com, Inc. or its affiliates. ## Licensed under Apache License v2.0 ## ## See LICENSE.txt for license information diff --git a/scripts/check-format-linux.sh b/scripts/check-format-linux.sh index 57393937..10c5b523 100755 --- a/scripts/check-format-linux.sh +++ b/scripts/check-format-linux.sh @@ -3,7 +3,8 @@ ## ## This source file is part of the SwiftAWSLambdaRuntime open source project ## -## Copyright (c) 2025 Apple Inc. and the SwiftAWSLambdaRuntime project authors +## Copyright SwiftAWSLambdaRuntime project authors +## Copyright (c) Amazon.com, Inc. or its affiliates. ## Licensed under Apache License v2.0 ## ## See LICENSE.txt for license information diff --git a/scripts/check-format.sh b/scripts/check-format.sh index 51fd80ac..fe710267 100755 --- a/scripts/check-format.sh +++ b/scripts/check-format.sh @@ -3,7 +3,8 @@ ## ## This source file is part of the SwiftAWSLambdaRuntime open source project ## -## Copyright (c) 2025 Apple Inc. and the SwiftAWSLambdaRuntime project authors +## Copyright SwiftAWSLambdaRuntime project authors +## Copyright (c) Amazon.com, Inc. or its affiliates. ## Licensed under Apache License v2.0 ## ## See LICENSE.txt for license information diff --git a/scripts/check-license.sh b/scripts/check-license.sh new file mode 100755 index 00000000..74b65425 --- /dev/null +++ b/scripts/check-license.sh @@ -0,0 +1,114 @@ +#!/bin/bash +##===----------------------------------------------------------------------===## +## +## This source file is part of the SwiftAWSLambdaRuntime open source project +## +## Copyright SwiftAWSLambdaRuntime project authors +## Copyright (c) Amazon.com, Inc. or its affiliates. +## Licensed under Apache License v2.0 +## +## See LICENSE.txt for license information +## See CONTRIBUTORS.txt for the list of SwiftAWSLambdaRuntime project authors +## +## SPDX-License-Identifier: Apache-2.0 +## +##===----------------------------------------------------------------------===## + +# ===----------------------------------------------------------------------===// +# +# This source file is part of the Swift.org open source project +# +# Copyright (c) 2024 Apple Inc. and the Swift project authors +# Licensed under Apache License v2.0 with Runtime Library Exception +# +# See https://swift.org/LICENSE.txt for license information +# See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +# +# ===----------------------------------------------------------------------===// + +set -euo pipefail + +set +x + +log() { printf -- "** %s\n" "$*" >&2; } +error() { printf -- "** ERROR: %s\n" "$*" >&2; } +fatal() { error "$@"; exit 1; } + +test -n "${PROJECT_NAME:-}" || fatal "PROJECT_NAME unset" + +if [ -f .license_header_template ]; then + log "Using custom license header template" + # allow projects to override the license header template + expected_file_header_template=$(cat .license_header_template) +else + expected_file_header_template="@@===----------------------------------------------------------------------===@@ +@@ +@@ This source file is part of the ${PROJECT_NAME} open source project +@@ +@@ Copyright ${PROJECT_NAME} project authors +@@ Copyright (c) Amazon.com, Inc. or its affiliates. +@@ +@@ See LICENSE.txt for license information +@@ See CONTRIBUTORS.txt for the list of ${PROJECT_NAME} project authors +@@ +@@ SPDX-License-Identifier: Apache-2.0 +@@ +@@===----------------------------------------------------------------------===@@" +fi + +paths_with_missing_license=( ) + +# file_excludes=".license_header_template +# .licenseignore" +# if [ -f .licenseignore ]; then +# file_excludes=$(printf '%s\n%s' "$file_excludes" "$(cat .licenseignore)") +# fi +# file_paths=$(echo "$file_excludes" | tr '\n' '\0' | xargs -0 -I% printf '":(exclude)%" '| xargs git ls-files) +file_paths=$(tr '\n' '\0' < .licenseignore | xargs -0 -I% printf '":(exclude)%" '| xargs git ls-files ":(exclude).licenseignore" ":(exclude).license_header_template" ) +echo "${file_paths}" + +while IFS= read -r file_path; do + file_basename=$(basename -- "${file_path}") + file_extension="${file_basename##*.}" + + # shellcheck disable=SC2001 # We prefer to use sed here instead of bash search/replace + case "${file_extension}" in + swift) expected_file_header=$(sed -e 's|@@|//|g' <<<"${expected_file_header_template}") ;; + h) expected_file_header=$(sed -e 's|@@|//|g' <<<"${expected_file_header_template}") ;; + c) expected_file_header=$(sed -e 's|@@|//|g' <<<"${expected_file_header_template}") ;; + sh) expected_file_header=$(cat <(echo '#!/bin/bash') <(sed -e 's|@@|##|g' <<<"${expected_file_header_template}")) ;; + kts) expected_file_header=$(sed -e 's|@@|//|g' <<<"${expected_file_header_template}") ;; + ts) expected_file_header=$(sed -e 's|@@|//|g' <<<"${expected_file_header_template}") ;; + gradle) expected_file_header=$(sed -e 's|@@|//|g' <<<"${expected_file_header_template}") ;; + groovy) expected_file_header=$(sed -e 's|@@|//|g' <<<"${expected_file_header_template}") ;; + java) expected_file_header=$(sed -e 's|@@|//|g' <<<"${expected_file_header_template}") ;; + py) expected_file_header=$(cat <(echo '#!/usr/bin/env python3') <(sed -e 's|@@|##|g' <<<"${expected_file_header_template}")) ;; + rb) expected_file_header=$(cat <(echo '#!/usr/bin/env ruby') <(sed -e 's|@@|##|g' <<<"${expected_file_header_template}")) ;; + in) expected_file_header=$(sed -e 's|@@|##|g' <<<"${expected_file_header_template}") ;; + cmake) expected_file_header=$(sed -e 's|@@|##|g' <<<"${expected_file_header_template}") ;; + *) + error "Unsupported file extension ${file_extension} for file (exclude or update this script): ${file_path}" + paths_with_missing_license+=("${file_path} ") + ;; + esac + expected_file_header_linecount=$(wc -l <<<"${expected_file_header}") + + file_header=$(head -n "${expected_file_header_linecount}" "${file_path}") + normalized_file_header=$( + echo "${file_header}" \ + | sed -e 's/20[12][0123456789]-20[12][0123456789]/YEARS/' -e 's/20[12][0123456789]/YEARS/' \ + ) + + if ! diff -u \ + --label "Expected header" <(echo "${expected_file_header}") \ + --label "${file_path}" <(echo "${normalized_file_header}") + then + paths_with_missing_license+=("${file_path} ") + fi +done <<< "$file_paths" + +if [ "${#paths_with_missing_license[@]}" -gt 0 ]; then + fatal "❌ Found missing license header in files: ${paths_with_missing_license[*]}." +fi + +log "✅ Found no files with missing license header." diff --git a/scripts/extract_aws_credentials.sh b/scripts/extract_aws_credentials.sh index 039f44f3..e26c23f3 100755 --- a/scripts/extract_aws_credentials.sh +++ b/scripts/extract_aws_credentials.sh @@ -3,7 +3,8 @@ ## ## This source file is part of the SwiftAWSLambdaRuntime open source project ## -## Copyright (c) 2025 Apple Inc. and the SwiftAWSLambdaRuntime project authors +## Copyright SwiftAWSLambdaRuntime project authors +## Copyright (c) Amazon.com, Inc. or its affiliates. ## Licensed under Apache License v2.0 ## ## See LICENSE.txt for license information diff --git a/scripts/generate_contributors_list.sh b/scripts/generate_contributors_list.sh index 9d4014d8..51819884 100755 --- a/scripts/generate_contributors_list.sh +++ b/scripts/generate_contributors_list.sh @@ -3,7 +3,8 @@ ## ## This source file is part of the SwiftAWSLambdaRuntime open source project ## -## Copyright (c) 2017-2025 Apple Inc. and the SwiftAWSLambdaRuntime project authors +## Copyright SwiftAWSLambdaRuntime project authors +## Copyright (c) Amazon.com, Inc. or its affiliates. ## Licensed under Apache License v2.0 ## ## See LICENSE.txt for license information @@ -27,6 +28,7 @@ cat > "$here/../CONTRIBUTORS.txt" <<- EOF ## COPYRIGHT HOLDERS + - Amazon.com, Inc. (all contributors with '@amazon.com') - Apple Inc. (all contributors with '@apple.com') ### Contributors diff --git a/scripts/linux_performance_setup.sh b/scripts/linux_performance_setup.sh index f02ac66b..7b9183e1 100755 --- a/scripts/linux_performance_setup.sh +++ b/scripts/linux_performance_setup.sh @@ -3,7 +3,8 @@ ## ## This source file is part of the SwiftAWSLambdaRuntime open source project ## -## Copyright (c) 2020 Apple Inc. and the SwiftAWSLambdaRuntime project authors +## Copyright SwiftAWSLambdaRuntime project authors +## Copyright (c) Amazon.com, Inc. or its affiliates. ## Licensed under Apache License v2.0 ## ## See LICENSE.txt for license information diff --git a/scripts/performance_test.sh b/scripts/performance_test.sh index 700b6810..e72c8442 100755 --- a/scripts/performance_test.sh +++ b/scripts/performance_test.sh @@ -3,7 +3,8 @@ ## ## This source file is part of the SwiftAWSLambdaRuntime open source project ## -## Copyright (c) 2017-2025 Apple Inc. and the SwiftAWSLambdaRuntime project authors +## Copyright SwiftAWSLambdaRuntime project authors +## Copyright (c) Amazon.com, Inc. or its affiliates. ## Licensed under Apache License v2.0 ## ## See LICENSE.txt for license information diff --git a/scripts/test-coverage.sh b/scripts/test-coverage.sh new file mode 100755 index 00000000..24b24182 --- /dev/null +++ b/scripts/test-coverage.sh @@ -0,0 +1,34 @@ +#!/bin/bash +##===----------------------------------------------------------------------===## +## +## This source file is part of the SwiftAWSLambdaRuntime open source project +## +## Copyright SwiftAWSLambdaRuntime project authors +## Copyright (c) Amazon.com, Inc. or its affiliates. +## Licensed under Apache License v2.0 +## +## See LICENSE.txt for license information +## See CONTRIBUTORS.txt for the list of SwiftAWSLambdaRuntime project authors +## +## SPDX-License-Identifier: Apache-2.0 +## +##===----------------------------------------------------------------------===## + +BIN_PATH="$(swift build --show-bin-path)" +XCTEST_PATH=$(find "${BIN_PATH}" -name '*.xctest') +COV_BIN=$XCTEST_PATH + +if [[ "$OSTYPE" == "darwin"* ]]; then + f=$(basename "${XCTEST_PATH}" .xctest) + COV_BIN="${COV_BIN}/Contents/MacOS/$f" + LLVM_COV="/opt/homebrew/opt/llvm/bin/llvm-cov" +else + echo "Unsupported OS: $OSTYPE" + exit 1 +fi + +${LLVM_COV} report \ + "${COV_BIN}" \ + -instr-profile=.build/debug/codecov/default.profdata \ + -ignore-filename-regex=".build|Tests" \ + -use-color \ No newline at end of file diff --git a/scripts/ubuntu-install-swift.sh b/scripts/ubuntu-install-swift.sh index 5ff58f46..9a786d6a 100644 --- a/scripts/ubuntu-install-swift.sh +++ b/scripts/ubuntu-install-swift.sh @@ -3,7 +3,8 @@ ## ## This source file is part of the SwiftAWSLambdaRuntime open source project ## -## Copyright (c) 2025 Apple Inc. and the SwiftAWSLambdaRuntime project authors +## Copyright SwiftAWSLambdaRuntime project authors +## Copyright (c) Amazon.com, Inc. or its affiliates. ## Licensed under Apache License v2.0 ## ## See LICENSE.txt for license information diff --git a/scripts/ubuntu-test-plugin.sh b/scripts/ubuntu-test-plugin.sh index 16045007..51bf79ac 100644 --- a/scripts/ubuntu-test-plugin.sh +++ b/scripts/ubuntu-test-plugin.sh @@ -3,7 +3,8 @@ ## ## This source file is part of the SwiftAWSLambdaRuntime open source project ## -## Copyright (c) 2025 Apple Inc. and the SwiftAWSLambdaRuntime project authors +## Copyright SwiftAWSLambdaRuntime project authors +## Copyright (c) Amazon.com, Inc. or its affiliates. ## Licensed under Apache License v2.0 ## ## See LICENSE.txt for license information