1. Packages
  2. AWS Native
  3. API Docs
  4. comprehend
  5. DocumentClassifier

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.105.0 published on Thursday, May 2, 2024 by Pulumi

aws-native.comprehend.DocumentClassifier

Explore with Pulumi AI

aws-native logo

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.105.0 published on Thursday, May 2, 2024 by Pulumi

    Document Classifier enables training document classifier models.

    Create DocumentClassifier Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new DocumentClassifier(name: string, args: DocumentClassifierArgs, opts?: CustomResourceOptions);
    @overload
    def DocumentClassifier(resource_name: str,
                           args: DocumentClassifierArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def DocumentClassifier(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           data_access_role_arn: Optional[str] = None,
                           input_data_config: Optional[DocumentClassifierInputDataConfigArgs] = None,
                           language_code: Optional[DocumentClassifierLanguageCode] = None,
                           document_classifier_name: Optional[str] = None,
                           mode: Optional[DocumentClassifierMode] = None,
                           model_kms_key_id: Optional[str] = None,
                           model_policy: Optional[str] = None,
                           output_data_config: Optional[DocumentClassifierOutputDataConfigArgs] = None,
                           tags: Optional[Sequence[_root_inputs.TagArgs]] = None,
                           version_name: Optional[str] = None,
                           volume_kms_key_id: Optional[str] = None,
                           vpc_config: Optional[DocumentClassifierVpcConfigArgs] = None)
    func NewDocumentClassifier(ctx *Context, name string, args DocumentClassifierArgs, opts ...ResourceOption) (*DocumentClassifier, error)
    public DocumentClassifier(string name, DocumentClassifierArgs args, CustomResourceOptions? opts = null)
    public DocumentClassifier(String name, DocumentClassifierArgs args)
    public DocumentClassifier(String name, DocumentClassifierArgs args, CustomResourceOptions options)
    
    type: aws-native:comprehend:DocumentClassifier
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args DocumentClassifierArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args DocumentClassifierArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args DocumentClassifierArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DocumentClassifierArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DocumentClassifierArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    const documentClassifierResource = new aws_native.comprehend.DocumentClassifier("documentClassifierResource", {
        dataAccessRoleArn: "string",
        inputDataConfig: {
            augmentedManifests: [{
                attributeNames: ["string"],
                s3Uri: "string",
                split: aws_native.comprehend.DocumentClassifierAugmentedManifestsListItemSplit.Train,
            }],
            dataFormat: aws_native.comprehend.DocumentClassifierInputDataConfigDataFormat.ComprehendCsv,
            documentReaderConfig: {
                documentReadAction: aws_native.comprehend.DocumentClassifierDocumentReaderConfigDocumentReadAction.TextractDetectDocumentText,
                documentReadMode: aws_native.comprehend.DocumentClassifierDocumentReaderConfigDocumentReadMode.ServiceDefault,
                featureTypes: [aws_native.comprehend.DocumentClassifierDocumentReaderConfigFeatureTypesItem.Tables],
            },
            documentType: aws_native.comprehend.DocumentClassifierInputDataConfigDocumentType.PlainTextDocument,
            documents: {
                s3Uri: "string",
                testS3Uri: "string",
            },
            labelDelimiter: "string",
            s3Uri: "string",
            testS3Uri: "string",
        },
        languageCode: aws_native.comprehend.DocumentClassifierLanguageCode.En,
        documentClassifierName: "string",
        mode: aws_native.comprehend.DocumentClassifierMode.MultiClass,
        modelKmsKeyId: "string",
        modelPolicy: "string",
        outputDataConfig: {
            kmsKeyId: "string",
            s3Uri: "string",
        },
        tags: [{
            key: "string",
            value: "string",
        }],
        versionName: "string",
        volumeKmsKeyId: "string",
        vpcConfig: {
            securityGroupIds: ["string"],
            subnets: ["string"],
        },
    });
    
    Coming soon!
    

    DocumentClassifier Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The DocumentClassifier resource accepts the following input properties:

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DocumentClassifier resource produces the following output properties:

    Arn string
    Id string
    The provider-assigned unique ID for this managed resource.
    Arn string
    Id string
    The provider-assigned unique ID for this managed resource.
    arn String
    id String
    The provider-assigned unique ID for this managed resource.
    arn string
    id string
    The provider-assigned unique ID for this managed resource.
    arn str
    id str
    The provider-assigned unique ID for this managed resource.
    arn String
    id String
    The provider-assigned unique ID for this managed resource.

    Supporting Types

    DocumentClassifierAugmentedManifestsListItem, DocumentClassifierAugmentedManifestsListItemArgs

    DocumentClassifierAugmentedManifestsListItemSplit, DocumentClassifierAugmentedManifestsListItemSplitArgs

    Train
    TRAIN
    Test
    TEST
    DocumentClassifierAugmentedManifestsListItemSplitTrain
    TRAIN
    DocumentClassifierAugmentedManifestsListItemSplitTest
    TEST
    Train
    TRAIN
    Test
    TEST
    Train
    TRAIN
    Test
    TEST
    TRAIN
    TRAIN
    TEST
    TEST
    "TRAIN"
    TRAIN
    "TEST"
    TEST

    DocumentClassifierDocumentReaderConfig, DocumentClassifierDocumentReaderConfigArgs

    DocumentClassifierDocumentReaderConfigDocumentReadAction, DocumentClassifierDocumentReaderConfigDocumentReadActionArgs

    TextractDetectDocumentText
    TEXTRACT_DETECT_DOCUMENT_TEXT
    TextractAnalyzeDocument
    TEXTRACT_ANALYZE_DOCUMENT
    DocumentClassifierDocumentReaderConfigDocumentReadActionTextractDetectDocumentText
    TEXTRACT_DETECT_DOCUMENT_TEXT
    DocumentClassifierDocumentReaderConfigDocumentReadActionTextractAnalyzeDocument
    TEXTRACT_ANALYZE_DOCUMENT
    TextractDetectDocumentText
    TEXTRACT_DETECT_DOCUMENT_TEXT
    TextractAnalyzeDocument
    TEXTRACT_ANALYZE_DOCUMENT
    TextractDetectDocumentText
    TEXTRACT_DETECT_DOCUMENT_TEXT
    TextractAnalyzeDocument
    TEXTRACT_ANALYZE_DOCUMENT
    TEXTRACT_DETECT_DOCUMENT_TEXT
    TEXTRACT_DETECT_DOCUMENT_TEXT
    TEXTRACT_ANALYZE_DOCUMENT
    TEXTRACT_ANALYZE_DOCUMENT
    "TEXTRACT_DETECT_DOCUMENT_TEXT"
    TEXTRACT_DETECT_DOCUMENT_TEXT
    "TEXTRACT_ANALYZE_DOCUMENT"
    TEXTRACT_ANALYZE_DOCUMENT

    DocumentClassifierDocumentReaderConfigDocumentReadMode, DocumentClassifierDocumentReaderConfigDocumentReadModeArgs

    ServiceDefault
    SERVICE_DEFAULT
    ForceDocumentReadAction
    FORCE_DOCUMENT_READ_ACTION
    DocumentClassifierDocumentReaderConfigDocumentReadModeServiceDefault
    SERVICE_DEFAULT
    DocumentClassifierDocumentReaderConfigDocumentReadModeForceDocumentReadAction
    FORCE_DOCUMENT_READ_ACTION
    ServiceDefault
    SERVICE_DEFAULT
    ForceDocumentReadAction
    FORCE_DOCUMENT_READ_ACTION
    ServiceDefault
    SERVICE_DEFAULT
    ForceDocumentReadAction
    FORCE_DOCUMENT_READ_ACTION
    SERVICE_DEFAULT
    SERVICE_DEFAULT
    FORCE_DOCUMENT_READ_ACTION
    FORCE_DOCUMENT_READ_ACTION
    "SERVICE_DEFAULT"
    SERVICE_DEFAULT
    "FORCE_DOCUMENT_READ_ACTION"
    FORCE_DOCUMENT_READ_ACTION

    DocumentClassifierDocumentReaderConfigFeatureTypesItem, DocumentClassifierDocumentReaderConfigFeatureTypesItemArgs

    Tables
    TABLES
    Forms
    FORMS
    DocumentClassifierDocumentReaderConfigFeatureTypesItemTables
    TABLES
    DocumentClassifierDocumentReaderConfigFeatureTypesItemForms
    FORMS
    Tables
    TABLES
    Forms
    FORMS
    Tables
    TABLES
    Forms
    FORMS
    TABLES
    TABLES
    FORMS
    FORMS
    "TABLES"
    TABLES
    "FORMS"
    FORMS

    DocumentClassifierDocuments, DocumentClassifierDocumentsArgs

    S3Uri string
    TestS3Uri string
    S3Uri string
    TestS3Uri string
    s3Uri String
    testS3Uri String
    s3Uri string
    testS3Uri string
    s3Uri String
    testS3Uri String

    DocumentClassifierInputDataConfig, DocumentClassifierInputDataConfigArgs

    DocumentClassifierInputDataConfigDataFormat, DocumentClassifierInputDataConfigDataFormatArgs

    ComprehendCsv
    COMPREHEND_CSV
    AugmentedManifest
    AUGMENTED_MANIFEST
    DocumentClassifierInputDataConfigDataFormatComprehendCsv
    COMPREHEND_CSV
    DocumentClassifierInputDataConfigDataFormatAugmentedManifest
    AUGMENTED_MANIFEST
    ComprehendCsv
    COMPREHEND_CSV
    AugmentedManifest
    AUGMENTED_MANIFEST
    ComprehendCsv
    COMPREHEND_CSV
    AugmentedManifest
    AUGMENTED_MANIFEST
    COMPREHEND_CSV
    COMPREHEND_CSV
    AUGMENTED_MANIFEST
    AUGMENTED_MANIFEST
    "COMPREHEND_CSV"
    COMPREHEND_CSV
    "AUGMENTED_MANIFEST"
    AUGMENTED_MANIFEST

    DocumentClassifierInputDataConfigDocumentType, DocumentClassifierInputDataConfigDocumentTypeArgs

    PlainTextDocument
    PLAIN_TEXT_DOCUMENT
    SemiStructuredDocument
    SEMI_STRUCTURED_DOCUMENT
    DocumentClassifierInputDataConfigDocumentTypePlainTextDocument
    PLAIN_TEXT_DOCUMENT
    DocumentClassifierInputDataConfigDocumentTypeSemiStructuredDocument
    SEMI_STRUCTURED_DOCUMENT
    PlainTextDocument
    PLAIN_TEXT_DOCUMENT
    SemiStructuredDocument
    SEMI_STRUCTURED_DOCUMENT
    PlainTextDocument
    PLAIN_TEXT_DOCUMENT
    SemiStructuredDocument
    SEMI_STRUCTURED_DOCUMENT
    PLAIN_TEXT_DOCUMENT
    PLAIN_TEXT_DOCUMENT
    SEMI_STRUCTURED_DOCUMENT
    SEMI_STRUCTURED_DOCUMENT
    "PLAIN_TEXT_DOCUMENT"
    PLAIN_TEXT_DOCUMENT
    "SEMI_STRUCTURED_DOCUMENT"
    SEMI_STRUCTURED_DOCUMENT

    DocumentClassifierLanguageCode, DocumentClassifierLanguageCodeArgs

    En
    en
    Es
    es
    Fr
    fr
    It
    it
    De
    de
    Pt
    pt
    DocumentClassifierLanguageCodeEn
    en
    DocumentClassifierLanguageCodeEs
    es
    DocumentClassifierLanguageCodeFr
    fr
    DocumentClassifierLanguageCodeIt
    it
    DocumentClassifierLanguageCodeDe
    de
    DocumentClassifierLanguageCodePt
    pt
    En
    en
    Es
    es
    Fr
    fr
    It
    it
    De
    de
    Pt
    pt
    En
    en
    Es
    es
    Fr
    fr
    It
    it
    De
    de
    Pt
    pt
    EN
    en
    ES
    es
    FR
    fr
    IT
    it
    DE
    de
    PT
    pt
    "en"
    en
    "es"
    es
    "fr"
    fr
    "it"
    it
    "de"
    de
    "pt"
    pt

    DocumentClassifierMode, DocumentClassifierModeArgs

    MultiClass
    MULTI_CLASS
    MultiLabel
    MULTI_LABEL
    DocumentClassifierModeMultiClass
    MULTI_CLASS
    DocumentClassifierModeMultiLabel
    MULTI_LABEL
    MultiClass
    MULTI_CLASS
    MultiLabel
    MULTI_LABEL
    MultiClass
    MULTI_CLASS
    MultiLabel
    MULTI_LABEL
    MULTI_CLASS
    MULTI_CLASS
    MULTI_LABEL
    MULTI_LABEL
    "MULTI_CLASS"
    MULTI_CLASS
    "MULTI_LABEL"
    MULTI_LABEL

    DocumentClassifierOutputDataConfig, DocumentClassifierOutputDataConfigArgs

    KmsKeyId string
    S3Uri string
    KmsKeyId string
    S3Uri string
    kmsKeyId String
    s3Uri String
    kmsKeyId string
    s3Uri string
    kmsKeyId String
    s3Uri String

    DocumentClassifierVpcConfig, DocumentClassifierVpcConfigArgs

    SecurityGroupIds List<string>
    Subnets List<string>
    SecurityGroupIds []string
    Subnets []string
    securityGroupIds List<String>
    subnets List<String>
    securityGroupIds string[]
    subnets string[]
    security_group_ids Sequence[str]
    subnets Sequence[str]
    securityGroupIds List<String>
    subnets List<String>

    Tag, TagArgs

    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    AWS Native is in preview. AWS Classic is fully supported.

    AWS Native v0.105.0 published on Thursday, May 2, 2024 by Pulumi