Files
o3de/Gems/AWSCore/cdk/example/lambda/lambda-handler.py
T
Steve Pham b4a2edec6a Final update copyright headers to reference license files at the repo root (#1693)
* Final update copyright headers to reference license files at the repo root

Signed-off-by: spham <spham@amazon.com>

* Fix copyright validator unit tests to support the stale O3DE header scenario

Signed-off-by: spham <spham@amazon.com>
2021-06-30 19:51:55 -07:00

22 lines
680 B
Python
Executable File

"""
Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
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
}