INNER CODE UNIT · Python
lambda_handler
aws-samples/serverless-test-samples · python-test-samples/apigw-lambda-layer/src/sampleLambda/app.py:16
def lambda_handler(event: APIGatewayProxyEvent, context: LambdaContext) -> dict:
print("Hello logfile!")
bucket_list = get_s3_bucket_list_as_string()
return {
"statusCode": 200,
"body": bucket_list
}