google_document_ai_warehouse_document_schema

A document schema is used to define document structure.

To get more information about DocumentSchema, see:

Example Usage - Document Ai Warehouse Document Schema Text

resource "google_document_ai_warehouse_document_schema" "example_text" {
  project_number     = data.google_project.project.number
  display_name       = "test-property-text"
  location           = "us"
  document_is_folder = false

  property_definitions {
    name                 = "prop3"
    display_name         = "propdisp3"
    is_repeatable        = false
    is_filterable        = true
    is_searchable        = true
    is_metadata          = false
    is_required          = false
    retrieval_importance = "HIGHEST"
    schema_sources {
      name           = "dummy_source"
      processor_type = "dummy_processor"
    }
    text_type_options {}
  }
}

data "google_project" "project" {
}

Argument Reference

The following arguments are supported:

The property_definitions block supports:

The schema_sources block supports:

The property_type_options block supports:

The property_definitions block supports:

The schema_sources block supports:

The enum_type_options block supports:

The enum_type_options block supports:


Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

Timeouts

This resource provides the following Timeouts configuration options:

Import

DocumentSchema can be imported using any of these accepted formats:

In Terraform v1.5.0 and later, use an import block to import DocumentSchema using one of the formats above. For example:

import {
  id = "projects/{{project_number}}/locations/{{location}}/documentSchemas/{{name}}"
  to = google_document_ai_warehouse_document_schema.default
}

When using the terraform import command, DocumentSchema can be imported using one of the formats above. For example:

$ terraform import google_document_ai_warehouse_document_schema.default projects/{{project_number}}/locations/{{location}}/documentSchemas/{{name}}
$ terraform import google_document_ai_warehouse_document_schema.default {{project_number}}/{{location}}/{{name}}