Commit Graph

171 Commits

Author SHA1 Message Date
Michael Ong
e7940cb234 Add additional cognito trigger sources 2023-02-16 14:16:39 +08:00
Adolfo
8e836e0893 Added the new AWS regions availables (#30) 2023-02-09 16:55:11 -08:00
Matt Massicotte
a374581e7a Initial cognito trigger support (#27)
* Initial cognito trigger support

* Fix up formatting
2023-01-27 11:27:58 -08:00
tomer doron
40a2be99fb add docker compose setup for swift 5.8 (#29)
motivation: prepare for swift 5.8

changes:
* align base Dockerfile with lambda runtime
* add docker compose setup for nightly 5.8
2023-01-25 18:47:31 -08:00
tomer doron
0bd5d23606 remove unnecessary preconcurrency imports (#28)
* remove unnecessary preconcurrency imports

motivation: eliminate warnings

changes: require swift 5.7 and remove unnecessary preconcurrency imports for foundation

* fixup
2023-01-10 16:23:39 -08:00
ML
501fe8ced1 Updated incorrect sns event fields to match correct format (#26) 2022-12-20 20:02:18 -08:00
Idelfonso Gutierrez
a8c815ef37 feature: Create LambdaProxyEvent Type (#18)
feature: Create LambdaProxyEvent Type
2022-11-01 09:47:18 -07:00
Mike Lewis
7487b2cd08 Add support for bare Lambda function URLs (#21)
Add request and response events for Lambda Function URL invocations

[Lambdas can be called with an auto-generated URL](https://docs.aws.amazon.com/lambda/latest/dg/urls-invocation.html), which has a specific format similar but not identical to API Gateway.
2022-11-01 09:46:08 -07:00
Mike Lewis
b415da20e7 Add domainName property to API Gateway V1 event (#24)
* Add `domainName` property to API Gateway V1 event

According to [AWS example events](cad20e9f29/sample-apps/nodejs-apig/event.json) and documentation, this seems to be included in all requests.

* Add example domain name properties to tests, to make sure both cases successfully decode.
2022-09-13 13:31:41 -07:00
Yim Lee
6a9065203e DocC setup (#22) 2022-08-11 17:01:48 -07:00
Renato Guimarães
94642d229f feat(cloudformation): make properties public (#20) 2022-05-26 13:09:41 -07:00
Renato Guimarães
d6934fef17 feat(cloudformation): request and response models for custom resources (#19)
add cloudformation request and response models for custom resources
2022-05-21 15:41:01 -07:00
Fabian Fett
2a118fb016 Add Sendable support (#15) 2022-04-21 08:51:15 +02:00
Fabian Fett
f1936ce147 Drop Swift 5.2 and 5.3 (#14)
As outlined in a [Swift forums post in November ’21](https://forums.swift.org/t/swiftnio-swift-version-support/53232), SwiftNIO will only support the latest non-patch Swift release and the 2 immediately prior non-patch versions.

In this commit we drop support for Swift 5.2 and 5.3.
2022-04-20 21:25:36 +02:00
Adam Fowler
2101c95d22 Allow for RFC5322 dates without a day (#12)
* Allow for RFC5322 dates without a day
* added comment
2022-04-11 11:23:10 -07:00
Adam Fowler
1e9645a0cb Make messageId optional (#11) 2022-04-11 11:21:48 -07:00
tomer doron
f646dc99c8 ci update (#10)
motivation: 5.6 is out

changes:
* use release version of 5.6
* add docker setup for 5.7 (using nightly for now)
2022-03-16 21:15:45 -07:00
Stefan Nienhuis
87e09a7f7d Make APIGatewayV2Request authorizer claims optional (#8)
APIGatewayV2Request authorizer claims are optional, allowing a nil value.
2022-02-16 22:04:05 +01:00
tomer doron
06f076ae07 update example to current runtime API (#9) 2022-02-10 23:29:38 -08:00
tomer doron
9ae45c9223 adjust example to recent API changes (#5)
motivation: correct examples

changes: adjust lambda signature to new API in @main
2021-09-22 17:19:04 -07:00
tomer doron
013cf95e82 Use release version of 5.5 in CI (#4)
motivation: 5.5 release is available

changes: update docker CI setup to use the release version of 5.5
2021-09-22 12:12:01 -07:00
Fabian Fett
2bffdda25d Remove service namespaces (#2)
To prevent naming collisions with other AWS libraries, we drop the service namespaces for events.
2021-08-19 18:39:17 +02:00
tomer doron
0505243340 Merge pull request #1 from tomerd/feature/samples 2021-08-18 07:30:22 -07:00
tom doron
6c4d566880 format 2021-08-17 15:51:34 -07:00
tom doron
969c614dc4 add samples
motivation: demonstrate how to use events using sample code

changes:
* add basic sample for API Gateway
* add docker setup to test samples when changing events
2021-08-17 15:40:57 -07:00
tom doron
91cdbbebc7 split events into spearate package
motivation: the runtime library has a stabel API while the events are still moving target, so in order to provide a 1.0 stable version we should separate them out

changes:
* import events module from the swift-aws-lambda-runtime, including git history
* update docker setup
* remove redundant examples and  scripts
2021-07-29 13:34:58 -07:00
Fabian Fett
4308b1be33 Fix platform requirements (#214)
- Replace the placeholder platform requirements with `@available(macOS 12, iOS 15, tvOS 15, watchOS 8, *)` 
- Bump required dependency versions: `swift-nio`, `swift-log` and `swift-backtrace`
2021-07-21 20:47:35 +02:00
tomer doron
77c8af6a27 add ci setup for 5.5 (#211) 2021-06-29 09:35:23 -07:00
DwayneCoussement
202f913e92 SNS MessageAttributes are optional (#208)
motivation: Notice that if you check the contents of the SQS records, some kind of transform happened on the original SNS message. MessageAttributes in the above example, these will not be set, so this is the initial fix.

changes: make MessageAttributes are optional
2021-06-11 10:14:48 -07:00
tomer doron
53ad717c85 adopt SSWG security guidelines (#209)
* add SECURITY.md detailing the security process
* Update readme.md
2021-06-11 10:02:16 -07:00
tomer doron
72a56d4c24 update 5.4 to release docker image (#207)
motivation: 5.4 is out!

changes: use release docker images instead of nightly
2021-05-06 17:43:10 -07:00
Fabian Fett
d82295a790 async/await support (#186)
- Add an `AsyncLambdaHandler`. Will be renamed to `LambdaHandler` as soon as we drop the current callback based `LambdaHandler`.
- The default way to use an `AsyncLambdaHandler` is to use `@main` to execute it. Don't use `Lambda.run` for it. We wan't to remove `Lambda.run` for 1.0.

Co-authored-by: tomer doron <tomerd@apple.com>
2021-04-27 22:47:11 +02:00
ML
367d8c50e0 Updated S3.Event (#195)
motivation: support s3:ObjectRemoved:* event

changes:
* Changed the S3.Event object size field to an optional due to the missing field on a s3:ObjectRemoved:* event
* Added one additional test to check propper json decoding
2021-04-15 10:35:08 -07:00
Fabian Fett
1cb9279c5b Inline default LambdaHandler implementations (#201)
Add `@inlinable` to default LambdaHandler implementations. This ensures that those implementations can be inlined into user code and can be specialized for their input and output types.
2021-04-14 22:59:42 +02:00
Fabian Fett
578253f98e Performance Improvements (#199)
Modifications:
- Replace `HTTPHandler` with `NIOHTTPClientResponseAggregator`, to fix a CoW issue. This increases performance.
- Ensure that we only use one `EventLoop` in tests.
- Use `syncOperations` to setup the `HTTPClient`.
2021-04-14 00:21:38 +02:00
Fabian Fett
703e86b918 Update .mailmap (#198) 2021-03-31 12:40:13 -07:00
Fabian Fett
0c1b742615 Add --disable redundantExtensionACL to .swiftformat (#197) 2021-03-30 14:08:43 -07:00
Fabian Fett
281ad87869 Update swiftformat (#196)
changes: 
* Update swiftformat from 0.44 to 0.47
* Adjust rules
2021-03-26 10:34:34 -07:00
tomer doron
8cc571ff63 update code of conduct (#190)
motivation: align with swift project coc update

changes: update coc to the version used by the swift project (contributor-covenant.org  1.4)

Update 0226-package-manager-target-based-dep-resolution.md

Co-authored-by: Konrad `ktoso` Malawski <ktoso@apple.com>
2021-03-05 12:16:07 +09:00
tomer doron
db597a029c add notice file (#191)
motivation: add notice for scripts that came from SwiftNIO

changes: add notice file
2021-03-04 15:58:48 -08:00
DwayneCoussement
590bb48180 Add support for AppSync events. (#187)
motivation: Support AWS AppSync events
changes: add Codable models for AppSync events
2021-03-02 13:05:50 -08:00
tomer doron
2e88475111 add docker setup for 5.4 and head/main (#189) 2021-02-27 12:57:06 -08:00
Fabian Fett
b7858b7776 Use welcoming language (#184) 2021-01-21 21:05:43 -08:00
Josh
6ae840e9af Fixed typo. (#183)
"avaialble" becomes "available"
2021-01-15 06:54:07 +09:00
Ralph Küpper
c1117a3d45 Fix the queryStringParameters in ALB.TargetGroupRequest. (#182) 2021-01-06 09:16:51 +01:00
Matt Massicotte
0a5fe3cbc9 Correct typo in SQS example (#181) 2020-12-29 19:37:19 +09:00
Johannes Bosecker
863c7af24c Fixed the visibility of the JWT in an API Gateway V2 Request. (#178)
Co-authored-by: Johannes Bosecker <johannes@Johanness-MacBook-Air.local>
2020-12-07 16:54:03 +09:00
Fabian Fett
fa1a21cbce updates to APIGateway V2 payloads
* Properties of HTTPResponses are now var (#176)
* remove redundant multiValueHeaders
2020-10-13 15:02:45 -07:00
tomer doron
c654e39e95 remove symbolicate-linux-fatal from Docker (#173)
motivation: we are not actually using symbolicate-linux-fatal in any meaningful way in CI and it's pinned to the master branch which has been removed

changes: remove symbolicate-linux-fatal fetching from Docker
2020-10-08 09:13:29 +09:00
Filipp Fediakov
9472b8ad95 Fix typo in LambdaRunner.swift documentation (#171) 2020-09-25 18:12:09 +02:00