Closed mrinaudo-aws closed 4 months ago
Issue #, if available:
Description of changes: Lambda function examples: fix handler error code typo: setting it to InternalFailure in some example Lambda functions.
InternalFailure
Ran sam local invoke to quickly check the overall runs of the target, example functions where the error code above is updated with this pull request:
sam local invoke
% sam local invoke --event event-success.json Invoking com.awssamples.s3versioningenabled.App::handleRequest (java17) [...] {"callbackDelaySeconds": 0, "errorCode": null, "callbackContext": {}, "message": "Versioning is enabled for the S3 bucket.", "status": "SUCCESS"}
% sam local invoke --event event-success.json Invoking index.handler (nodejs20.x) [...] {"status": "SUCCESS", "errorCode": null, "message": "Versioning is enabled for the S3 bucket.", "callbackContext": null, "callbackDelaySeconds": 0}
% sam local invoke --event event-success.json Invoking lambda_function.lambda_handler (python3.12) [...] {"status": "SUCCESS", "errorCode": null, "message": "Versioning is enabled for the S3 bucket.", "callbackContext": null, "callbackDelaySeconds": 0}
% sam local invoke --event event-success.json Invoking lambda_function.lambda_handler (ruby3.2) [...] {"status": "SUCCESS", "errorCode": null, "message": "Versioning is enabled for the S3 bucket.", "callbackContext": null, "callbackDelaySeconds": 0}
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Issue #, if available:
Description of changes: Lambda function examples: fix handler error code typo: setting it to
InternalFailure
in some example Lambda functions.Ran
sam local invoke
to quickly check the overall runs of the target, example functions where the error code above is updated with this pull request:By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.