import json
import boto3
def lambda_handler(event, context):
textract = boto3.client("textract")
if event:
file_obj = event["Records"][0]
bucketname = str(file_obj["s3"]["bucket"]["name"])
filename = str(file_obj["s3"]["object"]["key"])
response = textract.detect_document_text(
Document={
(
Read more... )