DocumentAiProcessor

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:

Example Usage

Documentai Processor

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.essentialcontacts.DocumentAiProcessor;
import com.pulumi.gcp.essentialcontacts.DocumentAiProcessorArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var processor = new DocumentAiProcessor("processor", DocumentAiProcessorArgs.builder()
.displayName("test-processor")
.location("us")
.type("OCR_PROCESSOR")
.build());
}
}

Import

Processor can be imported using any of these accepted formats

$ pulumi import gcp:essentialcontacts/documentAiProcessor:DocumentAiProcessor default projects/{{project}}/locations/{{location}}/processors/{{name}}
$ pulumi import gcp:essentialcontacts/documentAiProcessor:DocumentAiProcessor default {{project}}/{{location}}/{{name}}
$ pulumi import gcp:essentialcontacts/documentAiProcessor:DocumentAiProcessor default {{location}}/{{name}}

Properties

Link copied to clipboard
val displayName: Output<String>

The display name. Must be unique.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val kmsKeyName: Output<String>?

The KMS key used for encryption/decryption in CMEK scenarios. See https://cloud.google.com/security-key-management.

Link copied to clipboard
val location: Output<String>

The location of the resource.

Link copied to clipboard
val name: Output<String>

The resource name of the processor.

Link copied to clipboard
val project: Output<String>

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val type: Output<String>

The type of processor. For possible types see the official list

Link copied to clipboard
val urn: Output<String>