Where can I find my client id?

0

Hi everyone, I'm currently working with textract and I'm not sure where to retrieve my "textract client" which I'm asked for in the python script. Is it the same as my IAM profile, or is it the 12-digit account ID, or something else? Sorry for the dumb and probably confusing question and thanks to anyone who'll reply

2개 답변
0

Hi everyone, I'm currently working with textract and I'm not sure where to retrieve my "textract client" which I'm asked for in the python script. Is it the same as my IAM profile, or is it the...

profile picture
답변함 일 년 전
0

Hi Martina,

In the context of Amazon Textract & 'boto3', a Textract client or boto3 client is basically an object that lets you to interact with Amazon Textract service ( you can think of it as an interface to the Textract API, helping you make requests and receive responses from the service)

If you are using Boto3 ( which is an AWS SDK for Python), these are the steps you would follow:

  1. Create a textract client object: textract_client = boto3.client('textract',region_name=<region_name>)
  2. Call the respective Textract API, For eg response = textract_client.analyse_document(Document= {'Bytes': <document_bytes>},FeatureTypes =['TABLES','FORMS]}

You can refer to the following links for further information: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/textract.html https://docs.aws.amazon.com/code-library/latest/ug/python_3_textract_code_examples.html

profile pictureAWS
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠