The default version for the processor. Deleting this resource is a no-op, and does not unset the default version.
resource "google_document_ai_processor" "processor" {
location = "us"
display_name = "test-processor"
type = "OCR_PROCESSOR"
}
resource "google_document_ai_processor_default_version" "processor" {
processor = google_document_ai_processor.processor.id
version = "${google_document_ai_processor.processor.id}/processorVersions/stable"
lifecycle {
ignore_changes = [
# Using "stable" or "rc" will return a specific version from the API; suppressing the diff.
version,
]
}
}
The following arguments are supported:
version
-
(Required)
The version to set. Using stable
or rc
will cause the API to return the latest version in that release channel.
Apply lifecycle.ignore_changes
to the version
field to suppress this diff.
processor
-
(Required)
The processor to set the version on.
In addition to the arguments listed above, the following computed attributes are exported:
id
- an identifier for the resource with format {{processor}}
This resource provides the following Timeouts configuration options:
create
- Default is 20 minutes.delete
- Default is 20 minutes.ProcessorDefaultVersion can be imported using any of these accepted formats:
{{processor}}
In Terraform v1.5.0 and later, use an import
block to import ProcessorDefaultVersion using one of the formats above. For example:
import {
id = "{{processor}}"
to = google_document_ai_processor_default_version.default
}
When using the terraform import
command, ProcessorDefaultVersion can be imported using one of the formats above. For example:
$ terraform import google_document_ai_processor_default_version.default {{processor}}