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:
resource "google_document_ai_processor" "processor" {
location = "us"
display_name = "test-processor"
type = "OCR_PROCESSOR"
}
The following arguments are supported:
type
-
(Required)
The type of processor. For possible types see the official list
display_name
-
(Required)
The display name. Must be unique.
location
-
(Required)
The location of the resource.
kms_key_name
-
(Optional)
The KMS key used for encryption/decryption in CMEK scenarios. See https://cloud.google.com/security-key-management.
project
- (Optional) The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
In addition to the arguments listed above, the following computed attributes are exported:
id
- an identifier for the resource with format projects/{{project}}/locations/{{location}}/processors/{{name}}
name
-
The resource name of the processor.
This resource provides the following Timeouts configuration options:
create
- Default is 20 minutes.delete
- Default is 20 minutes.Processor can be imported using any of these accepted formats:
projects/{{project}}/locations/{{location}}/processors/{{name}}
{{project}}/{{location}}/{{name}}
{{location}}/{{name}}
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}}
This resource supports User Project Overrides.