Constructor TextractOcr
- Namespace
- LMKit.Integrations.AWS.Ocr.Textract
- Assembly
- LM-Kit.NET.dll
TextractOcr(string, string, AWSRegion)
Initializes a new instance of the TextractOcr class with the specified AWS credentials and region.
public TextractOcr(string awsAccessKeyId, string awsSecretAccessKey, AWSRegion region)
Parameters
awsAccessKeyIdstringThe AWS Access Key ID used to sign requests to the Textract service. Cannot be null, empty, or whitespace.
awsSecretAccessKeystringThe AWS Secret Access Key corresponding to the access key ID. Cannot be null, empty, or whitespace.
regionAWSRegionThe AWSRegion where the Textract service is hosted (for example,
us-east-1). Cannot be Unknown.
Exceptions
- ArgumentNullException
Thrown if
awsAccessKeyIdorawsSecretAccessKeyis null, empty, or whitespace.- ArgumentException
Thrown if
regionis Unknown.