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
awsAccessKeyId
stringThe AWS Access Key ID used to sign requests to the Textract service. Cannot be null, empty, or whitespace.
awsSecretAccessKey
stringThe AWS Secret Access Key corresponding to the access key ID. Cannot be null, empty, or whitespace.
region
AWSRegionThe AWSRegion where the Textract service is hosted (for example,
us-east-1
). Cannot be Unknown.
Exceptions
- ArgumentNullException
Thrown if
awsAccessKeyId
orawsSecretAccessKey
is null, empty, or whitespace.- ArgumentException
Thrown if
region
is Unknown.