package types
import "github.com/aws/aws-sdk-go-v2/service/textract/types"
Index ¶
- type AccessDeniedException
- func (e *AccessDeniedException) Error() string
- func (e *AccessDeniedException) ErrorCode() string
- func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault
- func (e *AccessDeniedException) ErrorMessage() string
- func (e *AccessDeniedException) GetCode() string
- func (e *AccessDeniedException) GetMessage() string
- func (e *AccessDeniedException) HasCode() bool
- func (e *AccessDeniedException) HasMessage() bool
- type BadDocumentException
- func (e *BadDocumentException) Error() string
- func (e *BadDocumentException) ErrorCode() string
- func (e *BadDocumentException) ErrorFault() smithy.ErrorFault
- func (e *BadDocumentException) ErrorMessage() string
- func (e *BadDocumentException) GetCode() string
- func (e *BadDocumentException) GetMessage() string
- func (e *BadDocumentException) HasCode() bool
- func (e *BadDocumentException) HasMessage() bool
- type Block
- type BlockType
- type BoundingBox
- type ContentClassifier
- type Document
- type DocumentLocation
- type DocumentMetadata
- type DocumentTooLargeException
- func (e *DocumentTooLargeException) Error() string
- func (e *DocumentTooLargeException) ErrorCode() string
- func (e *DocumentTooLargeException) ErrorFault() smithy.ErrorFault
- func (e *DocumentTooLargeException) ErrorMessage() string
- func (e *DocumentTooLargeException) GetCode() string
- func (e *DocumentTooLargeException) GetMessage() string
- func (e *DocumentTooLargeException) HasCode() bool
- func (e *DocumentTooLargeException) HasMessage() bool
- type EntityType
- type FeatureType
- type Geometry
- type HumanLoopActivationOutput
- type HumanLoopConfig
- type HumanLoopDataAttributes
- type HumanLoopQuotaExceededException
- func (e *HumanLoopQuotaExceededException) Error() string
- func (e *HumanLoopQuotaExceededException) ErrorCode() string
- func (e *HumanLoopQuotaExceededException) ErrorFault() smithy.ErrorFault
- func (e *HumanLoopQuotaExceededException) ErrorMessage() string
- func (e *HumanLoopQuotaExceededException) GetCode() string
- func (e *HumanLoopQuotaExceededException) GetMessage() string
- func (e *HumanLoopQuotaExceededException) GetQuotaCode() string
- func (e *HumanLoopQuotaExceededException) GetResourceType() string
- func (e *HumanLoopQuotaExceededException) GetServiceCode() string
- func (e *HumanLoopQuotaExceededException) HasCode() bool
- func (e *HumanLoopQuotaExceededException) HasMessage() bool
- func (e *HumanLoopQuotaExceededException) HasQuotaCode() bool
- func (e *HumanLoopQuotaExceededException) HasResourceType() bool
- func (e *HumanLoopQuotaExceededException) HasServiceCode() bool
- type IdempotentParameterMismatchException
- func (e *IdempotentParameterMismatchException) Error() string
- func (e *IdempotentParameterMismatchException) ErrorCode() string
- func (e *IdempotentParameterMismatchException) ErrorFault() smithy.ErrorFault
- func (e *IdempotentParameterMismatchException) ErrorMessage() string
- func (e *IdempotentParameterMismatchException) GetCode() string
- func (e *IdempotentParameterMismatchException) GetMessage() string
- func (e *IdempotentParameterMismatchException) HasCode() bool
- func (e *IdempotentParameterMismatchException) HasMessage() bool
- type InternalServerError
- func (e *InternalServerError) Error() string
- func (e *InternalServerError) ErrorCode() string
- func (e *InternalServerError) ErrorFault() smithy.ErrorFault
- func (e *InternalServerError) ErrorMessage() string
- func (e *InternalServerError) GetCode() string
- func (e *InternalServerError) GetMessage() string
- func (e *InternalServerError) HasCode() bool
- func (e *InternalServerError) HasMessage() bool
- type InvalidJobIdException
- func (e *InvalidJobIdException) Error() string
- func (e *InvalidJobIdException) ErrorCode() string
- func (e *InvalidJobIdException) ErrorFault() smithy.ErrorFault
- func (e *InvalidJobIdException) ErrorMessage() string
- func (e *InvalidJobIdException) GetCode() string
- func (e *InvalidJobIdException) GetMessage() string
- func (e *InvalidJobIdException) HasCode() bool
- func (e *InvalidJobIdException) HasMessage() bool
- type InvalidParameterException
- func (e *InvalidParameterException) Error() string
- func (e *InvalidParameterException) ErrorCode() string
- func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault
- func (e *InvalidParameterException) ErrorMessage() string
- func (e *InvalidParameterException) GetCode() string
- func (e *InvalidParameterException) GetMessage() string
- func (e *InvalidParameterException) HasCode() bool
- func (e *InvalidParameterException) HasMessage() bool
- type InvalidS3ObjectException
- func (e *InvalidS3ObjectException) Error() string
- func (e *InvalidS3ObjectException) ErrorCode() string
- func (e *InvalidS3ObjectException) ErrorFault() smithy.ErrorFault
- func (e *InvalidS3ObjectException) ErrorMessage() string
- func (e *InvalidS3ObjectException) GetCode() string
- func (e *InvalidS3ObjectException) GetMessage() string
- func (e *InvalidS3ObjectException) HasCode() bool
- func (e *InvalidS3ObjectException) HasMessage() bool
- type JobStatus
- type LimitExceededException
- func (e *LimitExceededException) Error() string
- func (e *LimitExceededException) ErrorCode() string
- func (e *LimitExceededException) ErrorFault() smithy.ErrorFault
- func (e *LimitExceededException) ErrorMessage() string
- func (e *LimitExceededException) GetCode() string
- func (e *LimitExceededException) GetMessage() string
- func (e *LimitExceededException) HasCode() bool
- func (e *LimitExceededException) HasMessage() bool
- type NotificationChannel
- type Point
- type ProvisionedThroughputExceededException
- func (e *ProvisionedThroughputExceededException) Error() string
- func (e *ProvisionedThroughputExceededException) ErrorCode() string
- func (e *ProvisionedThroughputExceededException) ErrorFault() smithy.ErrorFault
- func (e *ProvisionedThroughputExceededException) ErrorMessage() string
- func (e *ProvisionedThroughputExceededException) GetCode() string
- func (e *ProvisionedThroughputExceededException) GetMessage() string
- func (e *ProvisionedThroughputExceededException) HasCode() bool
- func (e *ProvisionedThroughputExceededException) HasMessage() bool
- type Relationship
- type RelationshipType
- type S3Object
- type SelectionStatus
- type ThrottlingException
- func (e *ThrottlingException) Error() string
- func (e *ThrottlingException) ErrorCode() string
- func (e *ThrottlingException) ErrorFault() smithy.ErrorFault
- func (e *ThrottlingException) ErrorMessage() string
- func (e *ThrottlingException) GetCode() string
- func (e *ThrottlingException) GetMessage() string
- func (e *ThrottlingException) HasCode() bool
- func (e *ThrottlingException) HasMessage() bool
- type UnsupportedDocumentException
- func (e *UnsupportedDocumentException) Error() string
- func (e *UnsupportedDocumentException) ErrorCode() string
- func (e *UnsupportedDocumentException) ErrorFault() smithy.ErrorFault
- func (e *UnsupportedDocumentException) ErrorMessage() string
- func (e *UnsupportedDocumentException) GetCode() string
- func (e *UnsupportedDocumentException) GetMessage() string
- func (e *UnsupportedDocumentException) HasCode() bool
- func (e *UnsupportedDocumentException) HasMessage() bool
- type Warning
Types ¶
type AccessDeniedException ¶
You aren't authorized to perform the action.
func (*AccessDeniedException) Error ¶
func (e *AccessDeniedException) Error() string
func (*AccessDeniedException) ErrorCode ¶
func (e *AccessDeniedException) ErrorCode() string
func (*AccessDeniedException) ErrorFault ¶
func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault
func (*AccessDeniedException) ErrorMessage ¶
func (e *AccessDeniedException) ErrorMessage() string
func (*AccessDeniedException) GetCode ¶
func (e *AccessDeniedException) GetCode() string
func (*AccessDeniedException) GetMessage ¶
func (e *AccessDeniedException) GetMessage() string
func (*AccessDeniedException) HasCode ¶
func (e *AccessDeniedException) HasCode() bool
func (*AccessDeniedException) HasMessage ¶
func (e *AccessDeniedException) HasMessage() bool
type BadDocumentException ¶
Amazon Textract isn't able to read the document.
func (*BadDocumentException) Error ¶
func (e *BadDocumentException) Error() string
func (*BadDocumentException) ErrorCode ¶
func (e *BadDocumentException) ErrorCode() string
func (*BadDocumentException) ErrorFault ¶
func (e *BadDocumentException) ErrorFault() smithy.ErrorFault
func (*BadDocumentException) ErrorMessage ¶
func (e *BadDocumentException) ErrorMessage() string
func (*BadDocumentException) GetCode ¶
func (e *BadDocumentException) GetCode() string
func (*BadDocumentException) GetMessage ¶
func (e *BadDocumentException) GetMessage() string
func (*BadDocumentException) HasCode ¶
func (e *BadDocumentException) HasCode() bool
func (*BadDocumentException) HasMessage ¶
func (e *BadDocumentException) HasMessage() bool
type Block ¶
type Block struct { // The word or line of text that's recognized by Amazon Textract. Text *string // The row in which a table cell is located. The first row position is 1. RowIndex // isn't returned by DetectDocumentText and GetDocumentTextDetection. RowIndex *int32 // The confidence score that Amazon Textract has in the accuracy of the recognized // text and the accuracy of the geometry points around the recognized text. Confidence *float32 // The type of entity. The following can be returned: // // * KEY - An identifier // for a field on the document. // // * VALUE - The field text. // // EntityTypes isn't // returned by DetectDocumentText and GetDocumentTextDetection. EntityTypes []EntityType // The column in which a table cell appears. The first column position is 1. // ColumnIndex isn't returned by DetectDocumentText and GetDocumentTextDetection. ColumnIndex *int32 // The selection status of a selection element, such as an option button or check // box. SelectionStatus SelectionStatus // A list of child blocks of the current block. For example, a LINE object has // child blocks for each WORD block that's part of the line of text. There aren't // Relationship objects in the list for relationships that don't exist, such as // when the current block has no child blocks. The list size can be the // following: // // * 0 - The block has no child blocks. // // * 1 - The block has // child blocks. Relationships []*Relationship // The number of columns that a table cell spans. Currently this value is always 1, // even if the number of columns spanned is greater than 1. ColumnSpan isn't // returned by DetectDocumentText and GetDocumentTextDetection. ColumnSpan *int32 // The location of the recognized text on the image. It includes an axis-aligned, // coarse bounding box that surrounds the text, and a finer-grain polygon for more // accurate spatial information. Geometry *Geometry // The page on which a block was detected. Page is returned by asynchronous // operations. Page values greater than 1 are only returned for multipage documents // that are in PDF format. A scanned image (JPEG/PNG), even if it contains multiple // document pages, is considered to be a single-page document. The value of Page is // always 1. Synchronous operations don't return Page because every input document // is considered to be a single-page document. Page *int32 // The number of rows that a table cell spans. Currently this value is always 1, // even if the number of rows spanned is greater than 1. RowSpan isn't returned by // DetectDocumentText and GetDocumentTextDetection. RowSpan *int32 // The type of text item that's recognized. In operations for text detection, the // following types are returned: // // * PAGE - Contains a list of the LINE Block // objects that are detected on a document page. // // * WORD - A word detected on a // document page. A word is one or more ISO basic Latin script characters that // aren't separated by spaces. // // * LINE - A string of tab-delimited, contiguous // words that are detected on a document page. // // In text analysis operations, the // following types are returned: // // * PAGE - Contains a list of child Block // objects that are detected on a document page. // // * KEY_VALUE_SET - Stores the // KEY and VALUE Block objects for linked text that's detected on a document page. // Use the EntityType field to determine if a KEY_VALUE_SET object is a KEY Block // object or a VALUE Block object. // // * WORD - A word that's detected on a // document page. A word is one or more ISO basic Latin script characters that // aren't separated by spaces. // // * LINE - A string of tab-delimited, contiguous // words that are detected on a document page. // // * TABLE - A table that's // detected on a document page. A table is grid-based information with two or more // rows or columns, with a cell span of one row and one column each. // // * CELL - // A cell within a detected table. The cell is the parent of the block that // contains the text in the cell. // // * SELECTION_ELEMENT - A selection element // such as an option button (radio button) or a check box that's detected on a // document page. Use the value of SelectionStatus to determine the status of the // selection element. BlockType BlockType // The identifier for the recognized text. The identifier is only unique for a // single operation. Id *string }
A Block represents items that are recognized in a document within a group of pixels close to each other. The information returned in a Block object depends on the type of operation. In text detection for documents (for example DetectDocumentText ()), you get information about the detected words and lines of text. In text analysis (for example AnalyzeDocument ()), you can also get information about the fields, tables, and selection elements that are detected in the document. An array of Block objects is returned by both synchronous and asynchronous operations. In synchronous operations, such as DetectDocumentText (), the array of Block objects is the entire set of results. In asynchronous operations, such as GetDocumentAnalysis (), the array is returned over one or more responses. For more information, see How Amazon Textract Works (https://docs.aws.amazon.com/textract/latest/dg/how-it-works.html).
type BlockType ¶
type BlockType string
const ( BlockTypeKey_value_set BlockType = "KEY_VALUE_SET" BlockTypePage BlockType = "PAGE" BlockTypeLine BlockType = "LINE" BlockTypeWord BlockType = "WORD" BlockTypeTable BlockType = "TABLE" BlockTypeCell BlockType = "CELL" BlockTypeSelection_element BlockType = "SELECTION_ELEMENT" )
Enum values for BlockType
type BoundingBox ¶
type BoundingBox struct { // The top coordinate of the bounding box as a ratio of overall document page // height. Top *float32 // The left coordinate of the bounding box as a ratio of overall document page // width. Left *float32 // The width of the bounding box as a ratio of the overall document page width. Width *float32 // The height of the bounding box as a ratio of the overall document page height. Height *float32 }
The bounding box around the detected page, text, key-value pair, table, table cell, or selection element on a document page. The left (x-coordinate) and top (y-coordinate) are coordinates that represent the top and left sides of the bounding box. Note that the upper-left corner of the image is the origin (0,0). The top and left values returned are ratios of the overall document page size. For example, if the input image is 700 x 200 pixels, and the top-left coordinate of the bounding box is 350 x 50 pixels, the API returns a left value of 0.5 (350/700) and a top value of 0.25 (50/200). The width and height values represent the dimensions of the bounding box as a ratio of the overall document page dimension. For example, if the document page size is 700 x 200 pixels, and the bounding box width is 70 pixels, the width returned is 0.1.
type ContentClassifier ¶
type ContentClassifier string
const ( ContentClassifierFree_of_personally_identifiable_information ContentClassifier = "FreeOfPersonallyIdentifiableInformation" ContentClassifierFree_of_adult_content ContentClassifier = "FreeOfAdultContent" )
Enum values for ContentClassifier
type Document ¶
type Document struct { // Identifies an S3 object as the document source. The maximum size of a document // that's stored in an S3 bucket is 5 MB. S3Object *S3Object // A blob of base64-encoded document bytes. The maximum size of a document that's // provided in a blob of bytes is 5 MB. The document bytes must be in PNG or JPEG // format. If you're using an AWS SDK to call Amazon Textract, you might not need // to base64-encode image bytes passed using the Bytes field. Bytes []byte }
The input document, either as bytes or as an S3 object. You pass image bytes to an Amazon Textract API operation by using the Bytes property. For example, you would use the Bytes property to pass a document loaded from a local file system. Image bytes passed by using the Bytes property must be base64 encoded. Your code might not need to encode document file bytes if you're using an AWS SDK to call Amazon Textract API operations. You pass images stored in an S3 bucket to an Amazon Textract API operation by using the S3Object property. Documents stored in an S3 bucket don't need to be base64 encoded. The AWS Region for the S3 bucket that contains the S3 object must match the AWS Region that you use for Amazon Textract operations. If you use the AWS CLI to call Amazon Textract operations, passing image bytes using the Bytes property isn't supported. You must first upload the document to an Amazon S3 bucket, and then call the operation using the S3Object property. <p>For Amazon Textract to process an S3 object, the user must have permission to access the S3 object. </p>
type DocumentLocation ¶
type DocumentLocation struct { // The Amazon S3 bucket that contains the input document. S3Object *S3Object }
The Amazon S3 bucket that contains the document to be processed. It's used by asynchronous operations such as StartDocumentTextDetection (). The input document can be an image file in JPEG or PNG format. It can also be a file in PDF format.
type DocumentMetadata ¶
type DocumentMetadata struct { // The number of pages that are detected in the document. Pages *int32 }
Information about the input document.
type DocumentTooLargeException ¶
The document can't be processed because it's too large. The maximum document size for synchronous operations 5 MB. The maximum document size for asynchronous operations is 500 MB for PDF files.
func (*DocumentTooLargeException) Error ¶
func (e *DocumentTooLargeException) Error() string
func (*DocumentTooLargeException) ErrorCode ¶
func (e *DocumentTooLargeException) ErrorCode() string
func (*DocumentTooLargeException) ErrorFault ¶
func (e *DocumentTooLargeException) ErrorFault() smithy.ErrorFault
func (*DocumentTooLargeException) ErrorMessage ¶
func (e *DocumentTooLargeException) ErrorMessage() string
func (*DocumentTooLargeException) GetCode ¶
func (e *DocumentTooLargeException) GetCode() string
func (*DocumentTooLargeException) GetMessage ¶
func (e *DocumentTooLargeException) GetMessage() string
func (*DocumentTooLargeException) HasCode ¶
func (e *DocumentTooLargeException) HasCode() bool
func (*DocumentTooLargeException) HasMessage ¶
func (e *DocumentTooLargeException) HasMessage() bool
type EntityType ¶
type EntityType string
const ( EntityTypeKey EntityType = "KEY" EntityTypeValue EntityType = "VALUE" )
Enum values for EntityType
type FeatureType ¶
type FeatureType string
const ( FeatureTypeTables FeatureType = "TABLES" FeatureTypeForms FeatureType = "FORMS" )
Enum values for FeatureType
type Geometry ¶
type Geometry struct { // Within the bounding box, a fine-grained polygon around the recognized item. Polygon []*Point // An axis-aligned coarse representation of the location of the recognized item on // the document page. BoundingBox *BoundingBox }
Information about where the following items are located on a document page: detected page, text, key-value pairs, tables, table cells, and selection elements.
type HumanLoopActivationOutput ¶
type HumanLoopActivationOutput struct { // Shows the result of condition evaluations, including those conditions which // activated a human review. // This value conforms to the media type: application/json HumanLoopActivationConditionsEvaluationResults *string // Shows if and why human review was needed. HumanLoopActivationReasons []*string // The Amazon Resource Name (ARN) of the HumanLoop created. HumanLoopArn *string }
Shows the results of the human in the loop evaluation. If there is no HumanLoopArn, the input did not trigger human review.
type HumanLoopConfig ¶
type HumanLoopConfig struct { // Sets attributes of the input data. DataAttributes *HumanLoopDataAttributes // The name of the human workflow used for this image. This should be kept unique // within a region. HumanLoopName *string // The Amazon Resource Name (ARN) of the flow definition. FlowDefinitionArn *string }
Sets up the human review workflow the document will be sent to if one of the conditions is met. You can also set certain attributes of the image before review.
type HumanLoopDataAttributes ¶
type HumanLoopDataAttributes struct { // Sets whether the input image is free of personally identifiable information or // adult content. ContentClassifiers []ContentClassifier }
Allows you to set attributes of the image. Currently, you can declare an image as free of personally identifiable information and adult content.
type HumanLoopQuotaExceededException ¶
type HumanLoopQuotaExceededException struct { Message *string Code *string ResourceType *string QuotaCode *string ServiceCode *string }
Indicates you have exceeded the maximum number of active human in the loop workflows available
func (*HumanLoopQuotaExceededException) Error ¶
func (e *HumanLoopQuotaExceededException) Error() string
func (*HumanLoopQuotaExceededException) ErrorCode ¶
func (e *HumanLoopQuotaExceededException) ErrorCode() string
func (*HumanLoopQuotaExceededException) ErrorFault ¶
func (e *HumanLoopQuotaExceededException) ErrorFault() smithy.ErrorFault
func (*HumanLoopQuotaExceededException) ErrorMessage ¶
func (e *HumanLoopQuotaExceededException) ErrorMessage() string
func (*HumanLoopQuotaExceededException) GetCode ¶
func (e *HumanLoopQuotaExceededException) GetCode() string
func (*HumanLoopQuotaExceededException) GetMessage ¶
func (e *HumanLoopQuotaExceededException) GetMessage() string
func (*HumanLoopQuotaExceededException) GetQuotaCode ¶
func (e *HumanLoopQuotaExceededException) GetQuotaCode() string
func (*HumanLoopQuotaExceededException) GetResourceType ¶
func (e *HumanLoopQuotaExceededException) GetResourceType() string
func (*HumanLoopQuotaExceededException) GetServiceCode ¶
func (e *HumanLoopQuotaExceededException) GetServiceCode() string
func (*HumanLoopQuotaExceededException) HasCode ¶
func (e *HumanLoopQuotaExceededException) HasCode() bool
func (*HumanLoopQuotaExceededException) HasMessage ¶
func (e *HumanLoopQuotaExceededException) HasMessage() bool
func (*HumanLoopQuotaExceededException) HasQuotaCode ¶
func (e *HumanLoopQuotaExceededException) HasQuotaCode() bool
func (*HumanLoopQuotaExceededException) HasResourceType ¶
func (e *HumanLoopQuotaExceededException) HasResourceType() bool
func (*HumanLoopQuotaExceededException) HasServiceCode ¶
func (e *HumanLoopQuotaExceededException) HasServiceCode() bool
type IdempotentParameterMismatchException ¶
A ClientRequestToken input parameter was reused with an operation, but at least one of the other input parameters is different from the previous call to the operation.
func (*IdempotentParameterMismatchException) Error ¶
func (e *IdempotentParameterMismatchException) Error() string
func (*IdempotentParameterMismatchException) ErrorCode ¶
func (e *IdempotentParameterMismatchException) ErrorCode() string
func (*IdempotentParameterMismatchException) ErrorFault ¶
func (e *IdempotentParameterMismatchException) ErrorFault() smithy.ErrorFault
func (*IdempotentParameterMismatchException) ErrorMessage ¶
func (e *IdempotentParameterMismatchException) ErrorMessage() string
func (*IdempotentParameterMismatchException) GetCode ¶
func (e *IdempotentParameterMismatchException) GetCode() string
func (*IdempotentParameterMismatchException) GetMessage ¶
func (e *IdempotentParameterMismatchException) GetMessage() string
func (*IdempotentParameterMismatchException) HasCode ¶
func (e *IdempotentParameterMismatchException) HasCode() bool
func (*IdempotentParameterMismatchException) HasMessage ¶
func (e *IdempotentParameterMismatchException) HasMessage() bool
type InternalServerError ¶
Amazon Textract experienced a service issue. Try your call again.
func (*InternalServerError) Error ¶
func (e *InternalServerError) Error() string
func (*InternalServerError) ErrorCode ¶
func (e *InternalServerError) ErrorCode() string
func (*InternalServerError) ErrorFault ¶
func (e *InternalServerError) ErrorFault() smithy.ErrorFault
func (*InternalServerError) ErrorMessage ¶
func (e *InternalServerError) ErrorMessage() string
func (*InternalServerError) GetCode ¶
func (e *InternalServerError) GetCode() string
func (*InternalServerError) GetMessage ¶
func (e *InternalServerError) GetMessage() string
func (*InternalServerError) HasCode ¶
func (e *InternalServerError) HasCode() bool
func (*InternalServerError) HasMessage ¶
func (e *InternalServerError) HasMessage() bool
type InvalidJobIdException ¶
An invalid job identifier was passed to GetDocumentAnalysis () or to GetDocumentAnalysis ().
func (*InvalidJobIdException) Error ¶
func (e *InvalidJobIdException) Error() string
func (*InvalidJobIdException) ErrorCode ¶
func (e *InvalidJobIdException) ErrorCode() string
func (*InvalidJobIdException) ErrorFault ¶
func (e *InvalidJobIdException) ErrorFault() smithy.ErrorFault
func (*InvalidJobIdException) ErrorMessage ¶
func (e *InvalidJobIdException) ErrorMessage() string
func (*InvalidJobIdException) GetCode ¶
func (e *InvalidJobIdException) GetCode() string
func (*InvalidJobIdException) GetMessage ¶
func (e *InvalidJobIdException) GetMessage() string
func (*InvalidJobIdException) HasCode ¶
func (e *InvalidJobIdException) HasCode() bool
func (*InvalidJobIdException) HasMessage ¶
func (e *InvalidJobIdException) HasMessage() bool
type InvalidParameterException ¶
An input parameter violated a constraint. For example, in synchronous operations, an InvalidParameterException exception occurs when neither of the S3Object or Bytes values are supplied in the Document request parameter. Validate your parameter before calling the API operation again.
func (*InvalidParameterException) Error ¶
func (e *InvalidParameterException) Error() string
func (*InvalidParameterException) ErrorCode ¶
func (e *InvalidParameterException) ErrorCode() string
func (*InvalidParameterException) ErrorFault ¶
func (e *InvalidParameterException) ErrorFault() smithy.ErrorFault
func (*InvalidParameterException) ErrorMessage ¶
func (e *InvalidParameterException) ErrorMessage() string
func (*InvalidParameterException) GetCode ¶
func (e *InvalidParameterException) GetCode() string
func (*InvalidParameterException) GetMessage ¶
func (e *InvalidParameterException) GetMessage() string
func (*InvalidParameterException) HasCode ¶
func (e *InvalidParameterException) HasCode() bool
func (*InvalidParameterException) HasMessage ¶
func (e *InvalidParameterException) HasMessage() bool
type InvalidS3ObjectException ¶
Amazon Textract is unable to access the S3 object that's specified in the request.
func (*InvalidS3ObjectException) Error ¶
func (e *InvalidS3ObjectException) Error() string
func (*InvalidS3ObjectException) ErrorCode ¶
func (e *InvalidS3ObjectException) ErrorCode() string
func (*InvalidS3ObjectException) ErrorFault ¶
func (e *InvalidS3ObjectException) ErrorFault() smithy.ErrorFault
func (*InvalidS3ObjectException) ErrorMessage ¶
func (e *InvalidS3ObjectException) ErrorMessage() string
func (*InvalidS3ObjectException) GetCode ¶
func (e *InvalidS3ObjectException) GetCode() string
func (*InvalidS3ObjectException) GetMessage ¶
func (e *InvalidS3ObjectException) GetMessage() string
func (*InvalidS3ObjectException) HasCode ¶
func (e *InvalidS3ObjectException) HasCode() bool
func (*InvalidS3ObjectException) HasMessage ¶
func (e *InvalidS3ObjectException) HasMessage() bool
type JobStatus ¶
type JobStatus string
const ( JobStatusIn_progress JobStatus = "IN_PROGRESS" JobStatusSucceeded JobStatus = "SUCCEEDED" JobStatusFailed JobStatus = "FAILED" JobStatusPartial_success JobStatus = "PARTIAL_SUCCESS" )
Enum values for JobStatus
type LimitExceededException ¶
An Amazon Textract service limit was exceeded. For example, if you start too many asynchronous jobs concurrently, calls to start operations (StartDocumentTextDetection, for example) raise a LimitExceededException exception (HTTP status code: 400) until the number of concurrently running jobs is below the Amazon Textract service limit.
func (*LimitExceededException) Error ¶
func (e *LimitExceededException) Error() string
func (*LimitExceededException) ErrorCode ¶
func (e *LimitExceededException) ErrorCode() string
func (*LimitExceededException) ErrorFault ¶
func (e *LimitExceededException) ErrorFault() smithy.ErrorFault
func (*LimitExceededException) ErrorMessage ¶
func (e *LimitExceededException) ErrorMessage() string
func (*LimitExceededException) GetCode ¶
func (e *LimitExceededException) GetCode() string
func (*LimitExceededException) GetMessage ¶
func (e *LimitExceededException) GetMessage() string
func (*LimitExceededException) HasCode ¶
func (e *LimitExceededException) HasCode() bool
func (*LimitExceededException) HasMessage ¶
func (e *LimitExceededException) HasMessage() bool
type NotificationChannel ¶
type NotificationChannel struct { // The Amazon SNS topic that Amazon Textract posts the completion status to. SNSTopicArn *string // The Amazon Resource Name (ARN) of an IAM role that gives Amazon Textract // publishing permissions to the Amazon SNS topic. RoleArn *string }
The Amazon Simple Notification Service (Amazon SNS) topic to which Amazon Textract publishes the completion status of an asynchronous document operation, such as StartDocumentTextDetection ().
type Point ¶
type Point struct { // The value of the X coordinate for a point on a Polygon. X *float32 // The value of the Y coordinate for a point on a Polygon. Y *float32 }
The X and Y coordinates of a point on a document page. The X and Y values that are returned are ratios of the overall document page size. For example, if the input document is 700 x 200 and the operation returns X=0.5 and Y=0.25, then the point is at the (350,50) pixel coordinate on the document page. <p>An array of <code>Point</code> objects, <code>Polygon</code>, is returned by <a>DetectDocumentText</a>. <code>Polygon</code> represents a fine-grained polygon around detected text. For more information, see Geometry in the Amazon Textract Developer Guide. </p>
type ProvisionedThroughputExceededException ¶
The number of requests exceeded your throughput limit. If you want to increase this limit, contact Amazon Textract.
func (*ProvisionedThroughputExceededException) Error ¶
func (e *ProvisionedThroughputExceededException) Error() string
func (*ProvisionedThroughputExceededException) ErrorCode ¶
func (e *ProvisionedThroughputExceededException) ErrorCode() string
func (*ProvisionedThroughputExceededException) ErrorFault ¶
func (e *ProvisionedThroughputExceededException) ErrorFault() smithy.ErrorFault
func (*ProvisionedThroughputExceededException) ErrorMessage ¶
func (e *ProvisionedThroughputExceededException) ErrorMessage() string
func (*ProvisionedThroughputExceededException) GetCode ¶
func (e *ProvisionedThroughputExceededException) GetCode() string
func (*ProvisionedThroughputExceededException) GetMessage ¶
func (e *ProvisionedThroughputExceededException) GetMessage() string
func (*ProvisionedThroughputExceededException) HasCode ¶
func (e *ProvisionedThroughputExceededException) HasCode() bool
func (*ProvisionedThroughputExceededException) HasMessage ¶
func (e *ProvisionedThroughputExceededException) HasMessage() bool
type Relationship ¶
type Relationship struct { // The type of relationship that the blocks in the IDs array have with the current // block. The relationship can be VALUE or CHILD. A relationship of type VALUE is a // list that contains the ID of the VALUE block that's associated with the KEY of a // key-value pair. A relationship of type CHILD is a list of IDs that identify WORD // blocks. Type RelationshipType // An array of IDs for related blocks. You can get the type of the relationship // from the Type element. Ids []*string }
Information about how blocks are related to each other. A Block object contains 0 or more Relation objects in a list, Relationships. For more information, see Block (). The Type element provides the type of the relationship for all blocks in the IDs array.
type RelationshipType ¶
type RelationshipType string
const ( RelationshipTypeValue RelationshipType = "VALUE" RelationshipTypeChild RelationshipType = "CHILD" )
Enum values for RelationshipType
type S3Object ¶
type S3Object struct { // The file name of the input document. Synchronous operations can use image files // that are in JPEG or PNG format. Asynchronous operations also support PDF format // files. Name *string // If the bucket has versioning enabled, you can specify the object version. Version *string // The name of the S3 bucket. Bucket *string }
The S3 bucket name and file name that identifies the document. The AWS Region for the S3 bucket that contains the document must match the Region that you use for Amazon Textract operations. <p>For Amazon Textract to process a file in an S3 bucket, the user must have permission to access the S3 bucket and file. </p>
type SelectionStatus ¶
type SelectionStatus string
const ( SelectionStatusSelected SelectionStatus = "SELECTED" SelectionStatusNot_selected SelectionStatus = "NOT_SELECTED" )
Enum values for SelectionStatus
type ThrottlingException ¶
Amazon Textract is temporarily unable to process the request. Try your call again.
func (*ThrottlingException) Error ¶
func (e *ThrottlingException) Error() string
func (*ThrottlingException) ErrorCode ¶
func (e *ThrottlingException) ErrorCode() string
func (*ThrottlingException) ErrorFault ¶
func (e *ThrottlingException) ErrorFault() smithy.ErrorFault
func (*ThrottlingException) ErrorMessage ¶
func (e *ThrottlingException) ErrorMessage() string
func (*ThrottlingException) GetCode ¶
func (e *ThrottlingException) GetCode() string
func (*ThrottlingException) GetMessage ¶
func (e *ThrottlingException) GetMessage() string
func (*ThrottlingException) HasCode ¶
func (e *ThrottlingException) HasCode() bool
func (*ThrottlingException) HasMessage ¶
func (e *ThrottlingException) HasMessage() bool
type UnsupportedDocumentException ¶
The format of the input document isn't supported. Documents for synchronous operations can be in PNG or JPEG format. Documents for asynchronous operations can also be in PDF format.
func (*UnsupportedDocumentException) Error ¶
func (e *UnsupportedDocumentException) Error() string
func (*UnsupportedDocumentException) ErrorCode ¶
func (e *UnsupportedDocumentException) ErrorCode() string
func (*UnsupportedDocumentException) ErrorFault ¶
func (e *UnsupportedDocumentException) ErrorFault() smithy.ErrorFault
func (*UnsupportedDocumentException) ErrorMessage ¶
func (e *UnsupportedDocumentException) ErrorMessage() string
func (*UnsupportedDocumentException) GetCode ¶
func (e *UnsupportedDocumentException) GetCode() string
func (*UnsupportedDocumentException) GetMessage ¶
func (e *UnsupportedDocumentException) GetMessage() string
func (*UnsupportedDocumentException) HasCode ¶
func (e *UnsupportedDocumentException) HasCode() bool
func (*UnsupportedDocumentException) HasMessage ¶
func (e *UnsupportedDocumentException) HasMessage() bool
type Warning ¶
type Warning struct { // The error code for the warning. ErrorCode *string // A list of the pages that the warning applies to. Pages []*int32 }
A warning about an issue that occurred during asynchronous text analysis (StartDocumentAnalysis ()) or asynchronous document text detection (StartDocumentTextDetection ()).
Source Files ¶
- Version
- v0.1.0
- Published
- Sep 29, 2020
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 6 hours ago –
Tools for package owners.