Files
o3de/Gems/AWSCore/cdk/example/lambda/lambda-handler.py
T
2021-06-23 10:55:22 -07:00

22 lines
581 B
Python
Executable File

"""
Copyright (c) Contributors to the Open 3D Engine Project
SPDX-License-Identifier: Apache-2.0 OR MIT
"""
def main(event: dict, context: dict) -> dict:
"""
Simple lambda handler to echo back responses
:param event: A JSON-formatted document that contains data for a Lambda function to process.
:param context: Provides methods and properties that provide information about the invocation,
function, and runtime environment.
:return: A response as json dict
"""
print(event)
return {
'statusCode': 200,
'body': event
}