googleDocumentAiProcessorDefaultVersion
The default version for the processor. Deleting this resource is a no-op, and does not unset the default version.
Example Usage - Documentai Default Version
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as google from "./.gen/providers/google";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: google.
For a more precise conversion please use the --provider flag in convert.*/
const googleDocumentAiProcessorProcessor =
new google.documentAiProcessor.DocumentAiProcessor(this, "processor", {
display_name: "test-processor",
location: "us",
type: "OCR_PROCESSOR",
});
const googleDocumentAiProcessorDefaultVersionProcessor =
new google.documentAiProcessorDefaultVersion.DocumentAiProcessorDefaultVersion(
this,
"processor_1",
{
processor: googleDocumentAiProcessorProcessor.id,
version: `\${${googleDocumentAiProcessorProcessor.id}}/processorVersions/stable`,
}
);
googleDocumentAiProcessorDefaultVersionProcessor.addOverride("lifecycle", [
{
ignore_changes: ["${version}"],
},
]);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
googleDocumentAiProcessorDefaultVersionProcessor.overrideLogicalId("processor");
Argument Reference
The following arguments are supported:
-
version
- (Required) The version to set. Usingstable
orrc
will cause the API to return the latest version in that release channel. ApplylifecycleIgnoreChanges
to theversion
field to suppress this diff. -
processor
- (Required) The processor to set the version on.
Attributes Reference
In addition to the arguments listed above, the following computed attributes are exported:
id
- an identifier for the resource with format{{processor}}
Timeouts
This resource provides the following Timeouts configuration options:
create
- Default is 20 minutes.delete
- Default is 20 minutes.
Import
ProcessorDefaultVersion can be imported using any of these accepted formats: