Table of Contents

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 string

The AWS Access Key ID used to sign requests to the Textract service. Cannot be null, empty, or whitespace.

awsSecretAccessKey string

The AWS Secret Access Key corresponding to the access key ID. Cannot be null, empty, or whitespace.

region AWSRegion

The AWSRegion where the Textract service is hosted (for example, us-east-1). Cannot be Unknown.

Exceptions

ArgumentNullException

Thrown if awsAccessKeyId or awsSecretAccessKey is null, empty, or whitespace.

ArgumentException

Thrown if region is Unknown.