Skip to content

Typed dictionaries

Index > Textract > Typed dictionaries

Auto-generated documentation for Textract type annotations stubs module mypy-boto3-textract.

DocumentMetadataTypeDef

Usage Example
from mypy_boto3_textract.type_defs import DocumentMetadataTypeDef

def get_value() -> DocumentMetadataTypeDef:
    return {
        "Pages": ...,
    }
Definition
class DocumentMetadataTypeDef(TypedDict):
    Pages: NotRequired[int],

HumanLoopActivationOutputTypeDef

Usage Example
from mypy_boto3_textract.type_defs import HumanLoopActivationOutputTypeDef

def get_value() -> HumanLoopActivationOutputTypeDef:
    return {
        "HumanLoopArn": ...,
    }
Definition
class HumanLoopActivationOutputTypeDef(TypedDict):
    HumanLoopArn: NotRequired[str],
    HumanLoopActivationReasons: NotRequired[List[str]],
    HumanLoopActivationConditionsEvaluationResults: NotRequired[str],

ResponseMetadataTypeDef

Usage Example
from mypy_boto3_textract.type_defs import ResponseMetadataTypeDef

def get_value() -> ResponseMetadataTypeDef:
    return {
        "RequestId": ...,
        "HostId": ...,
        "HTTPStatusCode": ...,
        "HTTPHeaders": ...,
        "RetryAttempts": ...,
    }
Definition
class ResponseMetadataTypeDef(TypedDict):
    RequestId: str,
    HostId: str,
    HTTPStatusCode: int,
    HTTPHeaders: Dict[str, str],
    RetryAttempts: int,

NormalizedValueTypeDef

Usage Example
from mypy_boto3_textract.type_defs import NormalizedValueTypeDef

def get_value() -> NormalizedValueTypeDef:
    return {
        "Value": ...,
    }
Definition
class NormalizedValueTypeDef(TypedDict):
    Value: NotRequired[str],
    ValueType: NotRequired[ValueTypeType],  # (1)
  1. See ValueTypeType

QueryTypeDef

Usage Example
from mypy_boto3_textract.type_defs import QueryTypeDef

def get_value() -> QueryTypeDef:
    return {
        "Text": ...,
    }
Definition
class QueryTypeDef(TypedDict):
    Text: str,
    Alias: NotRequired[str],
    Pages: NotRequired[Sequence[str]],

RelationshipTypeDef

Usage Example
from mypy_boto3_textract.type_defs import RelationshipTypeDef

def get_value() -> RelationshipTypeDef:
    return {
        "Type": ...,
    }
Definition
class RelationshipTypeDef(TypedDict):
    Type: NotRequired[RelationshipTypeType],  # (1)
    Ids: NotRequired[List[str]],
  1. See RelationshipTypeType

BoundingBoxTypeDef

Usage Example
from mypy_boto3_textract.type_defs import BoundingBoxTypeDef

def get_value() -> BoundingBoxTypeDef:
    return {
        "Width": ...,
    }
Definition
class BoundingBoxTypeDef(TypedDict):
    Width: NotRequired[float],
    Height: NotRequired[float],
    Left: NotRequired[float],
    Top: NotRequired[float],

DetectedSignatureTypeDef

Usage Example
from mypy_boto3_textract.type_defs import DetectedSignatureTypeDef

def get_value() -> DetectedSignatureTypeDef:
    return {
        "Page": ...,
    }
Definition
class DetectedSignatureTypeDef(TypedDict):
    Page: NotRequired[int],

SplitDocumentTypeDef

Usage Example
from mypy_boto3_textract.type_defs import SplitDocumentTypeDef

def get_value() -> SplitDocumentTypeDef:
    return {
        "Index": ...,
    }
Definition
class SplitDocumentTypeDef(TypedDict):
    Index: NotRequired[int],
    Pages: NotRequired[List[int]],

UndetectedSignatureTypeDef

Usage Example
from mypy_boto3_textract.type_defs import UndetectedSignatureTypeDef

def get_value() -> UndetectedSignatureTypeDef:
    return {
        "Page": ...,
    }
Definition
class UndetectedSignatureTypeDef(TypedDict):
    Page: NotRequired[int],

S3ObjectTypeDef

Usage Example
from mypy_boto3_textract.type_defs import S3ObjectTypeDef

def get_value() -> S3ObjectTypeDef:
    return {
        "Bucket": ...,
    }
Definition
class S3ObjectTypeDef(TypedDict):
    Bucket: NotRequired[str],
    Name: NotRequired[str],
    Version: NotRequired[str],

ExpenseCurrencyTypeDef

Usage Example
from mypy_boto3_textract.type_defs import ExpenseCurrencyTypeDef

def get_value() -> ExpenseCurrencyTypeDef:
    return {
        "Code": ...,
    }
Definition
class ExpenseCurrencyTypeDef(TypedDict):
    Code: NotRequired[str],
    Confidence: NotRequired[float],

ExpenseGroupPropertyTypeDef

Usage Example
from mypy_boto3_textract.type_defs import ExpenseGroupPropertyTypeDef

def get_value() -> ExpenseGroupPropertyTypeDef:
    return {
        "Types": ...,
    }
Definition
class ExpenseGroupPropertyTypeDef(TypedDict):
    Types: NotRequired[List[str]],
    Id: NotRequired[str],

ExpenseTypeTypeDef

Usage Example
from mypy_boto3_textract.type_defs import ExpenseTypeTypeDef

def get_value() -> ExpenseTypeTypeDef:
    return {
        "Text": ...,
    }
Definition
class ExpenseTypeTypeDef(TypedDict):
    Text: NotRequired[str],
    Confidence: NotRequired[float],

PointTypeDef

Usage Example
from mypy_boto3_textract.type_defs import PointTypeDef

def get_value() -> PointTypeDef:
    return {
        "X": ...,
    }
Definition
class PointTypeDef(TypedDict):
    X: NotRequired[float],
    Y: NotRequired[float],

GetDocumentAnalysisRequestRequestTypeDef

Usage Example
from mypy_boto3_textract.type_defs import GetDocumentAnalysisRequestRequestTypeDef

def get_value() -> GetDocumentAnalysisRequestRequestTypeDef:
    return {
        "JobId": ...,
    }
Definition
class GetDocumentAnalysisRequestRequestTypeDef(TypedDict):
    JobId: str,
    MaxResults: NotRequired[int],
    NextToken: NotRequired[str],

WarningTypeDef

Usage Example
from mypy_boto3_textract.type_defs import WarningTypeDef

def get_value() -> WarningTypeDef:
    return {
        "ErrorCode": ...,
    }
Definition
class WarningTypeDef(TypedDict):
    ErrorCode: NotRequired[str],
    Pages: NotRequired[List[int]],

GetDocumentTextDetectionRequestRequestTypeDef

Usage Example
from mypy_boto3_textract.type_defs import GetDocumentTextDetectionRequestRequestTypeDef

def get_value() -> GetDocumentTextDetectionRequestRequestTypeDef:
    return {
        "JobId": ...,
    }
Definition
class GetDocumentTextDetectionRequestRequestTypeDef(TypedDict):
    JobId: str,
    MaxResults: NotRequired[int],
    NextToken: NotRequired[str],

GetExpenseAnalysisRequestRequestTypeDef

Usage Example
from mypy_boto3_textract.type_defs import GetExpenseAnalysisRequestRequestTypeDef

def get_value() -> GetExpenseAnalysisRequestRequestTypeDef:
    return {
        "JobId": ...,
    }
Definition
class GetExpenseAnalysisRequestRequestTypeDef(TypedDict):
    JobId: str,
    MaxResults: NotRequired[int],
    NextToken: NotRequired[str],

GetLendingAnalysisRequestRequestTypeDef

Usage Example
from mypy_boto3_textract.type_defs import GetLendingAnalysisRequestRequestTypeDef

def get_value() -> GetLendingAnalysisRequestRequestTypeDef:
    return {
        "JobId": ...,
    }
Definition
class GetLendingAnalysisRequestRequestTypeDef(TypedDict):
    JobId: str,
    MaxResults: NotRequired[int],
    NextToken: NotRequired[str],

GetLendingAnalysisSummaryRequestRequestTypeDef

Usage Example
from mypy_boto3_textract.type_defs import GetLendingAnalysisSummaryRequestRequestTypeDef

def get_value() -> GetLendingAnalysisSummaryRequestRequestTypeDef:
    return {
        "JobId": ...,
    }
Definition
class GetLendingAnalysisSummaryRequestRequestTypeDef(TypedDict):
    JobId: str,

HumanLoopDataAttributesTypeDef

Usage Example
from mypy_boto3_textract.type_defs import HumanLoopDataAttributesTypeDef

def get_value() -> HumanLoopDataAttributesTypeDef:
    return {
        "ContentClassifiers": ...,
    }
Definition
class HumanLoopDataAttributesTypeDef(TypedDict):
    ContentClassifiers: NotRequired[Sequence[ContentClassifierType]],  # (1)
  1. See ContentClassifierType

NotificationChannelTypeDef

Usage Example
from mypy_boto3_textract.type_defs import NotificationChannelTypeDef

def get_value() -> NotificationChannelTypeDef:
    return {
        "SNSTopicArn": ...,
        "RoleArn": ...,
    }
Definition
class NotificationChannelTypeDef(TypedDict):
    SNSTopicArn: str,
    RoleArn: str,

OutputConfigTypeDef

Usage Example
from mypy_boto3_textract.type_defs import OutputConfigTypeDef

def get_value() -> OutputConfigTypeDef:
    return {
        "S3Bucket": ...,
    }
Definition
class OutputConfigTypeDef(TypedDict):
    S3Bucket: str,
    S3Prefix: NotRequired[str],

PredictionTypeDef

Usage Example
from mypy_boto3_textract.type_defs import PredictionTypeDef

def get_value() -> PredictionTypeDef:
    return {
        "Value": ...,
    }
Definition
class PredictionTypeDef(TypedDict):
    Value: NotRequired[str],
    Confidence: NotRequired[float],

StartDocumentAnalysisResponseTypeDef

Usage Example
from mypy_boto3_textract.type_defs import StartDocumentAnalysisResponseTypeDef

def get_value() -> StartDocumentAnalysisResponseTypeDef:
    return {
        "JobId": ...,
        "ResponseMetadata": ...,
    }
Definition
class StartDocumentAnalysisResponseTypeDef(TypedDict):
    JobId: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

StartDocumentTextDetectionResponseTypeDef

Usage Example
from mypy_boto3_textract.type_defs import StartDocumentTextDetectionResponseTypeDef

def get_value() -> StartDocumentTextDetectionResponseTypeDef:
    return {
        "JobId": ...,
        "ResponseMetadata": ...,
    }
Definition
class StartDocumentTextDetectionResponseTypeDef(TypedDict):
    JobId: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

StartExpenseAnalysisResponseTypeDef

Usage Example
from mypy_boto3_textract.type_defs import StartExpenseAnalysisResponseTypeDef

def get_value() -> StartExpenseAnalysisResponseTypeDef:
    return {
        "JobId": ...,
        "ResponseMetadata": ...,
    }
Definition
class StartExpenseAnalysisResponseTypeDef(TypedDict):
    JobId: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

StartLendingAnalysisResponseTypeDef

Usage Example
from mypy_boto3_textract.type_defs import StartLendingAnalysisResponseTypeDef

def get_value() -> StartLendingAnalysisResponseTypeDef:
    return {
        "JobId": ...,
        "ResponseMetadata": ...,
    }
Definition
class StartLendingAnalysisResponseTypeDef(TypedDict):
    JobId: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

AnalyzeIDDetectionsTypeDef

Usage Example
from mypy_boto3_textract.type_defs import AnalyzeIDDetectionsTypeDef

def get_value() -> AnalyzeIDDetectionsTypeDef:
    return {
        "Text": ...,
    }
Definition
class AnalyzeIDDetectionsTypeDef(TypedDict):
    Text: str,
    NormalizedValue: NotRequired[NormalizedValueTypeDef],  # (1)
    Confidence: NotRequired[float],
  1. See NormalizedValueTypeDef

QueriesConfigTypeDef

Usage Example
from mypy_boto3_textract.type_defs import QueriesConfigTypeDef

def get_value() -> QueriesConfigTypeDef:
    return {
        "Queries": ...,
    }
Definition
class QueriesConfigTypeDef(TypedDict):
    Queries: Sequence[QueryTypeDef],  # (1)
  1. See QueryTypeDef

DocumentGroupTypeDef

Usage Example
from mypy_boto3_textract.type_defs import DocumentGroupTypeDef

def get_value() -> DocumentGroupTypeDef:
    return {
        "Type": ...,
    }
Definition
class DocumentGroupTypeDef(TypedDict):
    Type: NotRequired[str],
    SplitDocuments: NotRequired[List[SplitDocumentTypeDef]],  # (1)
    DetectedSignatures: NotRequired[List[DetectedSignatureTypeDef]],  # (2)
    UndetectedSignatures: NotRequired[List[UndetectedSignatureTypeDef]],  # (3)
  1. See SplitDocumentTypeDef
  2. See DetectedSignatureTypeDef
  3. See UndetectedSignatureTypeDef

DocumentLocationTypeDef

Usage Example
from mypy_boto3_textract.type_defs import DocumentLocationTypeDef

def get_value() -> DocumentLocationTypeDef:
    return {
        "S3Object": ...,
    }
Definition
class DocumentLocationTypeDef(TypedDict):
    S3Object: NotRequired[S3ObjectTypeDef],  # (1)
  1. See S3ObjectTypeDef

DocumentTypeDef

Usage Example
from mypy_boto3_textract.type_defs import DocumentTypeDef

def get_value() -> DocumentTypeDef:
    return {
        "Bytes": ...,
    }
Definition
class DocumentTypeDef(TypedDict):
    Bytes: NotRequired[Union[str, bytes, IO[Any], StreamingBody]],
    S3Object: NotRequired[S3ObjectTypeDef],  # (1)
  1. See S3ObjectTypeDef

GeometryTypeDef

Usage Example
from mypy_boto3_textract.type_defs import GeometryTypeDef

def get_value() -> GeometryTypeDef:
    return {
        "BoundingBox": ...,
    }
Definition
class GeometryTypeDef(TypedDict):
    BoundingBox: NotRequired[BoundingBoxTypeDef],  # (1)
    Polygon: NotRequired[List[PointTypeDef]],  # (2)
  1. See BoundingBoxTypeDef
  2. See PointTypeDef

HumanLoopConfigTypeDef

Usage Example
from mypy_boto3_textract.type_defs import HumanLoopConfigTypeDef

def get_value() -> HumanLoopConfigTypeDef:
    return {
        "HumanLoopName": ...,
        "FlowDefinitionArn": ...,
    }
Definition
class HumanLoopConfigTypeDef(TypedDict):
    HumanLoopName: str,
    FlowDefinitionArn: str,
    DataAttributes: NotRequired[HumanLoopDataAttributesTypeDef],  # (1)
  1. See HumanLoopDataAttributesTypeDef

PageClassificationTypeDef

Usage Example
from mypy_boto3_textract.type_defs import PageClassificationTypeDef

def get_value() -> PageClassificationTypeDef:
    return {
        "PageType": ...,
        "PageNumber": ...,
    }
Definition
class PageClassificationTypeDef(TypedDict):
    PageType: List[PredictionTypeDef],  # (1)
    PageNumber: List[PredictionTypeDef],  # (1)
  1. See PredictionTypeDef
  2. See PredictionTypeDef

IdentityDocumentFieldTypeDef

Usage Example
from mypy_boto3_textract.type_defs import IdentityDocumentFieldTypeDef

def get_value() -> IdentityDocumentFieldTypeDef:
    return {
        "Type": ...,
    }
Definition
class IdentityDocumentFieldTypeDef(TypedDict):
    Type: NotRequired[AnalyzeIDDetectionsTypeDef],  # (1)
    ValueDetection: NotRequired[AnalyzeIDDetectionsTypeDef],  # (1)
  1. See AnalyzeIDDetectionsTypeDef
  2. See AnalyzeIDDetectionsTypeDef

LendingSummaryTypeDef

Usage Example
from mypy_boto3_textract.type_defs import LendingSummaryTypeDef

def get_value() -> LendingSummaryTypeDef:
    return {
        "DocumentGroups": ...,
    }
Definition
class LendingSummaryTypeDef(TypedDict):
    DocumentGroups: NotRequired[List[DocumentGroupTypeDef]],  # (1)
    UndetectedDocumentTypes: NotRequired[List[str]],
  1. See DocumentGroupTypeDef

StartDocumentAnalysisRequestRequestTypeDef

Usage Example
from mypy_boto3_textract.type_defs import StartDocumentAnalysisRequestRequestTypeDef

def get_value() -> StartDocumentAnalysisRequestRequestTypeDef:
    return {
        "DocumentLocation": ...,
        "FeatureTypes": ...,
    }
Definition
class StartDocumentAnalysisRequestRequestTypeDef(TypedDict):
    DocumentLocation: DocumentLocationTypeDef,  # (1)
    FeatureTypes: Sequence[FeatureTypeType],  # (2)
    ClientRequestToken: NotRequired[str],
    JobTag: NotRequired[str],
    NotificationChannel: NotRequired[NotificationChannelTypeDef],  # (3)
    OutputConfig: NotRequired[OutputConfigTypeDef],  # (4)
    KMSKeyId: NotRequired[str],
    QueriesConfig: NotRequired[QueriesConfigTypeDef],  # (5)
  1. See DocumentLocationTypeDef
  2. See FeatureTypeType
  3. See NotificationChannelTypeDef
  4. See OutputConfigTypeDef
  5. See QueriesConfigTypeDef

StartDocumentTextDetectionRequestRequestTypeDef

Usage Example
from mypy_boto3_textract.type_defs import StartDocumentTextDetectionRequestRequestTypeDef

def get_value() -> StartDocumentTextDetectionRequestRequestTypeDef:
    return {
        "DocumentLocation": ...,
    }
Definition
class StartDocumentTextDetectionRequestRequestTypeDef(TypedDict):
    DocumentLocation: DocumentLocationTypeDef,  # (1)
    ClientRequestToken: NotRequired[str],
    JobTag: NotRequired[str],
    NotificationChannel: NotRequired[NotificationChannelTypeDef],  # (2)
    OutputConfig: NotRequired[OutputConfigTypeDef],  # (3)
    KMSKeyId: NotRequired[str],
  1. See DocumentLocationTypeDef
  2. See NotificationChannelTypeDef
  3. See OutputConfigTypeDef

StartExpenseAnalysisRequestRequestTypeDef

Usage Example
from mypy_boto3_textract.type_defs import StartExpenseAnalysisRequestRequestTypeDef

def get_value() -> StartExpenseAnalysisRequestRequestTypeDef:
    return {
        "DocumentLocation": ...,
    }
Definition
class StartExpenseAnalysisRequestRequestTypeDef(TypedDict):
    DocumentLocation: DocumentLocationTypeDef,  # (1)
    ClientRequestToken: NotRequired[str],
    JobTag: NotRequired[str],
    NotificationChannel: NotRequired[NotificationChannelTypeDef],  # (2)
    OutputConfig: NotRequired[OutputConfigTypeDef],  # (3)
    KMSKeyId: NotRequired[str],
  1. See DocumentLocationTypeDef
  2. See NotificationChannelTypeDef
  3. See OutputConfigTypeDef

StartLendingAnalysisRequestRequestTypeDef

Usage Example
from mypy_boto3_textract.type_defs import StartLendingAnalysisRequestRequestTypeDef

def get_value() -> StartLendingAnalysisRequestRequestTypeDef:
    return {
        "DocumentLocation": ...,
    }
Definition
class StartLendingAnalysisRequestRequestTypeDef(TypedDict):
    DocumentLocation: DocumentLocationTypeDef,  # (1)
    ClientRequestToken: NotRequired[str],
    JobTag: NotRequired[str],
    NotificationChannel: NotRequired[NotificationChannelTypeDef],  # (2)
    OutputConfig: NotRequired[OutputConfigTypeDef],  # (3)
    KMSKeyId: NotRequired[str],
  1. See DocumentLocationTypeDef
  2. See NotificationChannelTypeDef
  3. See OutputConfigTypeDef

AnalyzeExpenseRequestRequestTypeDef

Usage Example
from mypy_boto3_textract.type_defs import AnalyzeExpenseRequestRequestTypeDef

def get_value() -> AnalyzeExpenseRequestRequestTypeDef:
    return {
        "Document": ...,
    }
Definition
class AnalyzeExpenseRequestRequestTypeDef(TypedDict):
    Document: DocumentTypeDef,  # (1)
  1. See DocumentTypeDef

AnalyzeIDRequestRequestTypeDef

Usage Example
from mypy_boto3_textract.type_defs import AnalyzeIDRequestRequestTypeDef

def get_value() -> AnalyzeIDRequestRequestTypeDef:
    return {
        "DocumentPages": ...,
    }
Definition
class AnalyzeIDRequestRequestTypeDef(TypedDict):
    DocumentPages: Sequence[DocumentTypeDef],  # (1)
  1. See DocumentTypeDef

DetectDocumentTextRequestRequestTypeDef

Usage Example
from mypy_boto3_textract.type_defs import DetectDocumentTextRequestRequestTypeDef

def get_value() -> DetectDocumentTextRequestRequestTypeDef:
    return {
        "Document": ...,
    }
Definition
class DetectDocumentTextRequestRequestTypeDef(TypedDict):
    Document: DocumentTypeDef,  # (1)
  1. See DocumentTypeDef

BlockTypeDef

Usage Example
from mypy_boto3_textract.type_defs import BlockTypeDef

def get_value() -> BlockTypeDef:
    return {
        "BlockType": ...,
    }
Definition
class BlockTypeDef(TypedDict):
    BlockType: NotRequired[BlockTypeType],  # (1)
    Confidence: NotRequired[float],
    Text: NotRequired[str],
    TextType: NotRequired[TextTypeType],  # (2)
    RowIndex: NotRequired[int],
    ColumnIndex: NotRequired[int],
    RowSpan: NotRequired[int],
    ColumnSpan: NotRequired[int],
    Geometry: NotRequired[GeometryTypeDef],  # (3)
    Id: NotRequired[str],
    Relationships: NotRequired[List[RelationshipTypeDef]],  # (4)
    EntityTypes: NotRequired[List[EntityTypeType]],  # (5)
    SelectionStatus: NotRequired[SelectionStatusType],  # (6)
    Page: NotRequired[int],
    Query: NotRequired[QueryTypeDef],  # (7)
  1. See BlockTypeType
  2. See TextTypeType
  3. See GeometryTypeDef
  4. See RelationshipTypeDef
  5. See EntityTypeType
  6. See SelectionStatusType
  7. See QueryTypeDef

ExpenseDetectionTypeDef

Usage Example
from mypy_boto3_textract.type_defs import ExpenseDetectionTypeDef

def get_value() -> ExpenseDetectionTypeDef:
    return {
        "Text": ...,
    }
Definition
class ExpenseDetectionTypeDef(TypedDict):
    Text: NotRequired[str],
    Geometry: NotRequired[GeometryTypeDef],  # (1)
    Confidence: NotRequired[float],
  1. See GeometryTypeDef

LendingDetectionTypeDef

Usage Example
from mypy_boto3_textract.type_defs import LendingDetectionTypeDef

def get_value() -> LendingDetectionTypeDef:
    return {
        "Text": ...,
    }
Definition
class LendingDetectionTypeDef(TypedDict):
    Text: NotRequired[str],
    SelectionStatus: NotRequired[SelectionStatusType],  # (1)
    Geometry: NotRequired[GeometryTypeDef],  # (2)
    Confidence: NotRequired[float],
  1. See SelectionStatusType
  2. See GeometryTypeDef

SignatureDetectionTypeDef

Usage Example
from mypy_boto3_textract.type_defs import SignatureDetectionTypeDef

def get_value() -> SignatureDetectionTypeDef:
    return {
        "Confidence": ...,
    }
Definition
class SignatureDetectionTypeDef(TypedDict):
    Confidence: NotRequired[float],
    Geometry: NotRequired[GeometryTypeDef],  # (1)
  1. See GeometryTypeDef

AnalyzeDocumentRequestRequestTypeDef

Usage Example
from mypy_boto3_textract.type_defs import AnalyzeDocumentRequestRequestTypeDef

def get_value() -> AnalyzeDocumentRequestRequestTypeDef:
    return {
        "Document": ...,
        "FeatureTypes": ...,
    }
Definition
class AnalyzeDocumentRequestRequestTypeDef(TypedDict):
    Document: DocumentTypeDef,  # (1)
    FeatureTypes: Sequence[FeatureTypeType],  # (2)
    HumanLoopConfig: NotRequired[HumanLoopConfigTypeDef],  # (3)
    QueriesConfig: NotRequired[QueriesConfigTypeDef],  # (4)
  1. See DocumentTypeDef
  2. See FeatureTypeType
  3. See HumanLoopConfigTypeDef
  4. See QueriesConfigTypeDef

GetLendingAnalysisSummaryResponseTypeDef

Usage Example
from mypy_boto3_textract.type_defs import GetLendingAnalysisSummaryResponseTypeDef

def get_value() -> GetLendingAnalysisSummaryResponseTypeDef:
    return {
        "DocumentMetadata": ...,
        "JobStatus": ...,
        "Summary": ...,
        "Warnings": ...,
        "StatusMessage": ...,
        "AnalyzeLendingModelVersion": ...,
        "ResponseMetadata": ...,
    }
Definition
class GetLendingAnalysisSummaryResponseTypeDef(TypedDict):
    DocumentMetadata: DocumentMetadataTypeDef,  # (1)
    JobStatus: JobStatusType,  # (2)
    Summary: LendingSummaryTypeDef,  # (3)
    Warnings: List[WarningTypeDef],  # (4)
    StatusMessage: str,
    AnalyzeLendingModelVersion: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (5)
  1. See DocumentMetadataTypeDef
  2. See JobStatusType
  3. See LendingSummaryTypeDef
  4. See WarningTypeDef
  5. See ResponseMetadataTypeDef

AnalyzeDocumentResponseTypeDef

Usage Example
from mypy_boto3_textract.type_defs import AnalyzeDocumentResponseTypeDef

def get_value() -> AnalyzeDocumentResponseTypeDef:
    return {
        "DocumentMetadata": ...,
        "Blocks": ...,
        "HumanLoopActivationOutput": ...,
        "AnalyzeDocumentModelVersion": ...,
        "ResponseMetadata": ...,
    }
Definition
class AnalyzeDocumentResponseTypeDef(TypedDict):
    DocumentMetadata: DocumentMetadataTypeDef,  # (1)
    Blocks: List[BlockTypeDef],  # (2)
    HumanLoopActivationOutput: HumanLoopActivationOutputTypeDef,  # (3)
    AnalyzeDocumentModelVersion: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (4)
  1. See DocumentMetadataTypeDef
  2. See BlockTypeDef
  3. See HumanLoopActivationOutputTypeDef
  4. See ResponseMetadataTypeDef

DetectDocumentTextResponseTypeDef

Usage Example
from mypy_boto3_textract.type_defs import DetectDocumentTextResponseTypeDef

def get_value() -> DetectDocumentTextResponseTypeDef:
    return {
        "DocumentMetadata": ...,
        "Blocks": ...,
        "DetectDocumentTextModelVersion": ...,
        "ResponseMetadata": ...,
    }
Definition
class DetectDocumentTextResponseTypeDef(TypedDict):
    DocumentMetadata: DocumentMetadataTypeDef,  # (1)
    Blocks: List[BlockTypeDef],  # (2)
    DetectDocumentTextModelVersion: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
  1. See DocumentMetadataTypeDef
  2. See BlockTypeDef
  3. See ResponseMetadataTypeDef

GetDocumentAnalysisResponseTypeDef

Usage Example
from mypy_boto3_textract.type_defs import GetDocumentAnalysisResponseTypeDef

def get_value() -> GetDocumentAnalysisResponseTypeDef:
    return {
        "DocumentMetadata": ...,
        "JobStatus": ...,
        "NextToken": ...,
        "Blocks": ...,
        "Warnings": ...,
        "StatusMessage": ...,
        "AnalyzeDocumentModelVersion": ...,
        "ResponseMetadata": ...,
    }
Definition
class GetDocumentAnalysisResponseTypeDef(TypedDict):
    DocumentMetadata: DocumentMetadataTypeDef,  # (1)
    JobStatus: JobStatusType,  # (2)
    NextToken: str,
    Blocks: List[BlockTypeDef],  # (3)
    Warnings: List[WarningTypeDef],  # (4)
    StatusMessage: str,
    AnalyzeDocumentModelVersion: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (5)
  1. See DocumentMetadataTypeDef
  2. See JobStatusType
  3. See BlockTypeDef
  4. See WarningTypeDef
  5. See ResponseMetadataTypeDef

GetDocumentTextDetectionResponseTypeDef

Usage Example
from mypy_boto3_textract.type_defs import GetDocumentTextDetectionResponseTypeDef

def get_value() -> GetDocumentTextDetectionResponseTypeDef:
    return {
        "DocumentMetadata": ...,
        "JobStatus": ...,
        "NextToken": ...,
        "Blocks": ...,
        "Warnings": ...,
        "StatusMessage": ...,
        "DetectDocumentTextModelVersion": ...,
        "ResponseMetadata": ...,
    }
Definition
class GetDocumentTextDetectionResponseTypeDef(TypedDict):
    DocumentMetadata: DocumentMetadataTypeDef,  # (1)
    JobStatus: JobStatusType,  # (2)
    NextToken: str,
    Blocks: List[BlockTypeDef],  # (3)
    Warnings: List[WarningTypeDef],  # (4)
    StatusMessage: str,
    DetectDocumentTextModelVersion: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (5)
  1. See DocumentMetadataTypeDef
  2. See JobStatusType
  3. See BlockTypeDef
  4. See WarningTypeDef
  5. See ResponseMetadataTypeDef

IdentityDocumentTypeDef

Usage Example
from mypy_boto3_textract.type_defs import IdentityDocumentTypeDef

def get_value() -> IdentityDocumentTypeDef:
    return {
        "DocumentIndex": ...,
    }
Definition
class IdentityDocumentTypeDef(TypedDict):
    DocumentIndex: NotRequired[int],
    IdentityDocumentFields: NotRequired[List[IdentityDocumentFieldTypeDef]],  # (1)
    Blocks: NotRequired[List[BlockTypeDef]],  # (2)
  1. See IdentityDocumentFieldTypeDef
  2. See BlockTypeDef

ExpenseFieldTypeDef

Usage Example
from mypy_boto3_textract.type_defs import ExpenseFieldTypeDef

def get_value() -> ExpenseFieldTypeDef:
    return {
        "Type": ...,
    }
Definition
class ExpenseFieldTypeDef(TypedDict):
    Type: NotRequired[ExpenseTypeTypeDef],  # (1)
    LabelDetection: NotRequired[ExpenseDetectionTypeDef],  # (2)
    ValueDetection: NotRequired[ExpenseDetectionTypeDef],  # (2)
    PageNumber: NotRequired[int],
    Currency: NotRequired[ExpenseCurrencyTypeDef],  # (4)
    GroupProperties: NotRequired[List[ExpenseGroupPropertyTypeDef]],  # (5)
  1. See ExpenseTypeTypeDef
  2. See ExpenseDetectionTypeDef
  3. See ExpenseDetectionTypeDef
  4. See ExpenseCurrencyTypeDef
  5. See ExpenseGroupPropertyTypeDef

LendingFieldTypeDef

Usage Example
from mypy_boto3_textract.type_defs import LendingFieldTypeDef

def get_value() -> LendingFieldTypeDef:
    return {
        "Type": ...,
    }
Definition
class LendingFieldTypeDef(TypedDict):
    Type: NotRequired[str],
    KeyDetection: NotRequired[LendingDetectionTypeDef],  # (1)
    ValueDetections: NotRequired[List[LendingDetectionTypeDef]],  # (2)
  1. See LendingDetectionTypeDef
  2. See LendingDetectionTypeDef

AnalyzeIDResponseTypeDef

Usage Example
from mypy_boto3_textract.type_defs import AnalyzeIDResponseTypeDef

def get_value() -> AnalyzeIDResponseTypeDef:
    return {
        "IdentityDocuments": ...,
        "DocumentMetadata": ...,
        "AnalyzeIDModelVersion": ...,
        "ResponseMetadata": ...,
    }
Definition
class AnalyzeIDResponseTypeDef(TypedDict):
    IdentityDocuments: List[IdentityDocumentTypeDef],  # (1)
    DocumentMetadata: DocumentMetadataTypeDef,  # (2)
    AnalyzeIDModelVersion: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
  1. See IdentityDocumentTypeDef
  2. See DocumentMetadataTypeDef
  3. See ResponseMetadataTypeDef

LineItemFieldsTypeDef

Usage Example
from mypy_boto3_textract.type_defs import LineItemFieldsTypeDef

def get_value() -> LineItemFieldsTypeDef:
    return {
        "LineItemExpenseFields": ...,
    }
Definition
class LineItemFieldsTypeDef(TypedDict):
    LineItemExpenseFields: NotRequired[List[ExpenseFieldTypeDef]],  # (1)
  1. See ExpenseFieldTypeDef

LendingDocumentTypeDef

Usage Example
from mypy_boto3_textract.type_defs import LendingDocumentTypeDef

def get_value() -> LendingDocumentTypeDef:
    return {
        "LendingFields": ...,
    }
Definition
class LendingDocumentTypeDef(TypedDict):
    LendingFields: NotRequired[List[LendingFieldTypeDef]],  # (1)
    SignatureDetections: NotRequired[List[SignatureDetectionTypeDef]],  # (2)
  1. See LendingFieldTypeDef
  2. See SignatureDetectionTypeDef

LineItemGroupTypeDef

Usage Example
from mypy_boto3_textract.type_defs import LineItemGroupTypeDef

def get_value() -> LineItemGroupTypeDef:
    return {
        "LineItemGroupIndex": ...,
    }
Definition
class LineItemGroupTypeDef(TypedDict):
    LineItemGroupIndex: NotRequired[int],
    LineItems: NotRequired[List[LineItemFieldsTypeDef]],  # (1)
  1. See LineItemFieldsTypeDef

ExpenseDocumentTypeDef

Usage Example
from mypy_boto3_textract.type_defs import ExpenseDocumentTypeDef

def get_value() -> ExpenseDocumentTypeDef:
    return {
        "ExpenseIndex": ...,
    }
Definition
class ExpenseDocumentTypeDef(TypedDict):
    ExpenseIndex: NotRequired[int],
    SummaryFields: NotRequired[List[ExpenseFieldTypeDef]],  # (1)
    LineItemGroups: NotRequired[List[LineItemGroupTypeDef]],  # (2)
    Blocks: NotRequired[List[BlockTypeDef]],  # (3)
  1. See ExpenseFieldTypeDef
  2. See LineItemGroupTypeDef
  3. See BlockTypeDef

AnalyzeExpenseResponseTypeDef

Usage Example
from mypy_boto3_textract.type_defs import AnalyzeExpenseResponseTypeDef

def get_value() -> AnalyzeExpenseResponseTypeDef:
    return {
        "DocumentMetadata": ...,
        "ExpenseDocuments": ...,
        "ResponseMetadata": ...,
    }
Definition
class AnalyzeExpenseResponseTypeDef(TypedDict):
    DocumentMetadata: DocumentMetadataTypeDef,  # (1)
    ExpenseDocuments: List[ExpenseDocumentTypeDef],  # (2)
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
  1. See DocumentMetadataTypeDef
  2. See ExpenseDocumentTypeDef
  3. See ResponseMetadataTypeDef

ExtractionTypeDef

Usage Example
from mypy_boto3_textract.type_defs import ExtractionTypeDef

def get_value() -> ExtractionTypeDef:
    return {
        "LendingDocument": ...,
    }
Definition
class ExtractionTypeDef(TypedDict):
    LendingDocument: NotRequired[LendingDocumentTypeDef],  # (1)
    ExpenseDocument: NotRequired[ExpenseDocumentTypeDef],  # (2)
    IdentityDocument: NotRequired[IdentityDocumentTypeDef],  # (3)
  1. See LendingDocumentTypeDef
  2. See ExpenseDocumentTypeDef
  3. See IdentityDocumentTypeDef

GetExpenseAnalysisResponseTypeDef

Usage Example
from mypy_boto3_textract.type_defs import GetExpenseAnalysisResponseTypeDef

def get_value() -> GetExpenseAnalysisResponseTypeDef:
    return {
        "DocumentMetadata": ...,
        "JobStatus": ...,
        "NextToken": ...,
        "ExpenseDocuments": ...,
        "Warnings": ...,
        "StatusMessage": ...,
        "AnalyzeExpenseModelVersion": ...,
        "ResponseMetadata": ...,
    }
Definition
class GetExpenseAnalysisResponseTypeDef(TypedDict):
    DocumentMetadata: DocumentMetadataTypeDef,  # (1)
    JobStatus: JobStatusType,  # (2)
    NextToken: str,
    ExpenseDocuments: List[ExpenseDocumentTypeDef],  # (3)
    Warnings: List[WarningTypeDef],  # (4)
    StatusMessage: str,
    AnalyzeExpenseModelVersion: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (5)
  1. See DocumentMetadataTypeDef
  2. See JobStatusType
  3. See ExpenseDocumentTypeDef
  4. See WarningTypeDef
  5. See ResponseMetadataTypeDef

LendingResultTypeDef

Usage Example
from mypy_boto3_textract.type_defs import LendingResultTypeDef

def get_value() -> LendingResultTypeDef:
    return {
        "Page": ...,
    }
Definition
class LendingResultTypeDef(TypedDict):
    Page: NotRequired[int],
    PageClassification: NotRequired[PageClassificationTypeDef],  # (1)
    Extractions: NotRequired[List[ExtractionTypeDef]],  # (2)
  1. See PageClassificationTypeDef
  2. See ExtractionTypeDef

GetLendingAnalysisResponseTypeDef

Usage Example
from mypy_boto3_textract.type_defs import GetLendingAnalysisResponseTypeDef

def get_value() -> GetLendingAnalysisResponseTypeDef:
    return {
        "DocumentMetadata": ...,
        "JobStatus": ...,
        "NextToken": ...,
        "Results": ...,
        "Warnings": ...,
        "StatusMessage": ...,
        "AnalyzeLendingModelVersion": ...,
        "ResponseMetadata": ...,
    }
Definition
class GetLendingAnalysisResponseTypeDef(TypedDict):
    DocumentMetadata: DocumentMetadataTypeDef,  # (1)
    JobStatus: JobStatusType,  # (2)
    NextToken: str,
    Results: List[LendingResultTypeDef],  # (3)
    Warnings: List[WarningTypeDef],  # (4)
    StatusMessage: str,
    AnalyzeLendingModelVersion: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (5)
  1. See DocumentMetadataTypeDef
  2. See JobStatusType
  3. See LendingResultTypeDef
  4. See WarningTypeDef
  5. See ResponseMetadataTypeDef