New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(cloudformation): request and response models for custom resources #19
feat(cloudformation): request and response models for custom resources #19
Conversation
Can one of the admins verify this patch? |
5 similar comments
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
thank you so much @renatoaguimaraes, would you mind adding a unit test following the examples of the other events |
Sure, I will follow the existing examples. Thanks. |
08b43de
to
2eb6f63
Compare
Hello @tomerd. Can you take a look? Thank you. |
@swift-server-bot test this please |
@renatoaguimaraes looks like the new tests are failing? |
Yes, there is one scenario failing. I'm running the new unit tests on Running on swift:5.4-amazonlinux2. Expected:
Result:
Mac OS 12.3.1 + Swift 5.6.1 Expected:
Result:
|
@swift-server-bot test this please |
@renatoaguimaraes looks like some formatting issues left - you can fix that locally by running the formatting task in docker |
@swift-server-bot test this please |
thank you @renatoaguimaraes |
Thank you. It is my pleasure to contribute to the project. |
Mapping
Request
andResponse
ofCustomResource
used byType: AWS::Lambda::Function
.Motivation:
Avoid to write repeated code for every Swift Lambda Function where is used a CustomResource to pass properties. Inspired on event.go and response.go from https://github.com/aws/aws-lambda-go.git.
Modifications:
Added two new structs:
Request
andResponse
for Lambda event triggered by CloudFormation.Result:
New models to be shared between Swift Lambda Functions that use CustomResource.