lambda-handler.py 680 B

1234567891011121314151617181920212223
  1. """
  2. Copyright (c) Contributors to the Open 3D Engine Project.
  3. For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. SPDX-License-Identifier: Apache-2.0 OR MIT
  5. """
  6. def main(event: dict, context: dict) -> dict:
  7. """
  8. Simple lambda handler to echo back responses
  9. :param event: A JSON-formatted document that contains data for a Lambda function to process.
  10. :param context: Provides methods and properties that provide information about the invocation,
  11. function, and runtime environment.
  12. :return: A response as json dict
  13. """
  14. print(event)
  15. return {
  16. 'statusCode': 200,
  17. 'body': event
  18. }