s3client = boto.client('s3', region_name=REGION_NAME)
textract = boto.client('textract', region_name=REGION_NAME)
response = textract.start_document_text_detection(
DocumentLocation={
'S3Object': {'Bucket': 'bucket', 'Name':'name'}
},
NotificationChannel={
'SNSTopicArn': 'arn', 'RoleArn': 'role'
},
OutputConfig={
'S3Bucket': 'bucket',
'S3Prefix': 'prefix'
}
)
the SNS topic never gets published because the job never completes. Whenever I put the response['JobId'] into get_document_text_detection, it has a job status of IN_PROGRESS. What's going on?