Last active
December 17, 2019 19:56
-
-
Save lvthillo/640aaa4167e4b5c9217d561041d5b320 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| textract = boto3.client('textract') | |
| textract.start_document_analysis( | |
| DocumentLocation={ | |
| 'S3Object': { | |
| 'Bucket': bucket, | |
| 'Name': key | |
| } | |
| }, | |
| JobTag=key + '_Job', | |
| FeatureTypes=[ | |
| 'TABLES' | |
| ], | |
| NotificationChannel={ | |
| 'RoleArn': os.environ['SNSROLEARN'], | |
| 'SNSTopicArn': os.environ['SNSTOPIC'] | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment