google_document_ai_processor

The first-class citizen for Document AI. Each processor defines how to extract structural information from a document.

To get more information about Processor, see:

Open in Cloud Shell

Example Usage - Documentai Processor

resource "google_document_ai_processor" "processor" {
  location = "us"
  display_name = "test-processor"
  type = "OCR_PROCESSOR"
}

Argument Reference

The following arguments are supported:


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

Processor can be imported using any of these accepted formats:

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

import {
  id = "projects/{{project}}/locations/{{location}}/processors/{{name}}"
  to = google_document_ai_processor.default
}

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

$ terraform import google_document_ai_processor.default projects/{{project}}/locations/{{location}}/processors/{{name}}
$ terraform import google_document_ai_processor.default {{project}}/{{location}}/{{name}}
$ terraform import google_document_ai_processor.default {{location}}/{{name}}

User Project Overrides

This resource supports User Project Overrides.