amazon-textract-textractor icon indicating copy to clipboard operation
amazon-textract-textractor copied to clipboard

Added config parameter

Open akhilnarayanan1 opened this issue 1 year ago • 2 comments

Issue #, if available:

  • No option to set botocore config to the textract client.

Description of changes:

  • This change provides the ability to pass botocore config to Textract object

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

akhilnarayanan1 avatar Sep 04 '24 10:09 akhilnarayanan1

What is the use case here? Isn't this redundant since Config contains region as well?

Belval avatar Nov 06 '24 16:11 Belval

@Belval , yes, the Config object does indeed contain a region_name parameter.

The specific use case I'm interested in is implementing a retry mechanism at the API level. Within my organization, we're aiming to increase the number of retries for API calls in case of failures (such as throttling errors), as this can often resolve temporary issues.

The Config object offers granular control over various parameters, which can be beneficial for interacting with the underlying Boto3 APIs.

akhilnarayanan1 avatar Nov 06 '24 17:11 akhilnarayanan1