示例#1
0
def handler(event, context):  # pylint:disable=unused-argument
    return {"statusCode": 200, "body": hello_func("a_lambda")}
def handler(event: dict, context: dict) -> dict:
    return {"statusCode": 200, "body": json.dumps(hello_func("b_lambda"))}
示例#3
0
def handler(event, context):  # pylint:disable=unused-argument
    LOGGER.info("Some info message")
    return {"statusCode": 200, "body": hello_func("a_lambda")}
 def test_success(self):
     response = hello_func("TEST")
     self.assertEqual({"message": "HELLO FROM TEST"}, response)
示例#5
0
def handler(event: dict, context: dict) -> dict:
    LOGGER.info("Some info message")
    return {
        "statusCode": 200,
        "body": hello_func("a_lambda")
    }