import json
import base64
def lambda_handler(event, context):
for record in event["Records"]:
data = record["kinesis"]["data"]
json_value = json.loads(base64.b64decode(data).decode())
print(json_value)
return {
'statusCode': 200,
'body': json.dumps('Hello from Lambda!')
}