1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. essentialcontacts
  5. DocumentAiProcessor
Google Cloud v8.23.0 published on Monday, Mar 24, 2025 by Pulumi

gcp.essentialcontacts.DocumentAiProcessor

Explore with Pulumi AI

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

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const processor = new gcp.essentialcontacts.DocumentAiProcessor("processor", {
    location: "us",
    displayName: "test-processor",
    type: "OCR_PROCESSOR",
});
Copy
import pulumi
import pulumi_gcp as gcp

processor = gcp.essentialcontacts.DocumentAiProcessor("processor",
    location="us",
    display_name="test-processor",
    type="OCR_PROCESSOR")
Copy
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/essentialcontacts"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := essentialcontacts.NewDocumentAiProcessor(ctx, "processor", &essentialcontacts.DocumentAiProcessorArgs{
			Location:    pulumi.String("us"),
			DisplayName: pulumi.String("test-processor"),
			Type:        pulumi.String("OCR_PROCESSOR"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    var processor = new Gcp.EssentialContacts.DocumentAiProcessor("processor", new()
    {
        Location = "us",
        DisplayName = "test-processor",
        Type = "OCR_PROCESSOR",
    });

});
Copy
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()
            .location("us")
            .displayName("test-processor")
            .type("OCR_PROCESSOR")
            .build());

    }
}
Copy
resources:
  processor:
    type: gcp:essentialcontacts:DocumentAiProcessor
    properties:
      location: us
      displayName: test-processor
      type: OCR_PROCESSOR
Copy

Create DocumentAiProcessor Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new DocumentAiProcessor(name: string, args: DocumentAiProcessorArgs, opts?: CustomResourceOptions);
@overload
def DocumentAiProcessor(resource_name: str,
                        args: DocumentAiProcessorArgs,
                        opts: Optional[ResourceOptions] = None)

@overload
def DocumentAiProcessor(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        display_name: Optional[str] = None,
                        location: Optional[str] = None,
                        type: Optional[str] = None,
                        kms_key_name: Optional[str] = None,
                        project: Optional[str] = None)
func NewDocumentAiProcessor(ctx *Context, name string, args DocumentAiProcessorArgs, opts ...ResourceOption) (*DocumentAiProcessor, error)
public DocumentAiProcessor(string name, DocumentAiProcessorArgs args, CustomResourceOptions? opts = null)
public DocumentAiProcessor(String name, DocumentAiProcessorArgs args)
public DocumentAiProcessor(String name, DocumentAiProcessorArgs args, CustomResourceOptions options)
type: gcp:essentialcontacts:DocumentAiProcessor
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. DocumentAiProcessorArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. DocumentAiProcessorArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. DocumentAiProcessorArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. DocumentAiProcessorArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. DocumentAiProcessorArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var documentAiProcessorResource = new Gcp.EssentialContacts.DocumentAiProcessor("documentAiProcessorResource", new()
{
    DisplayName = "string",
    Location = "string",
    Type = "string",
    KmsKeyName = "string",
    Project = "string",
});
Copy
example, err := essentialcontacts.NewDocumentAiProcessor(ctx, "documentAiProcessorResource", &essentialcontacts.DocumentAiProcessorArgs{
	DisplayName: pulumi.String("string"),
	Location:    pulumi.String("string"),
	Type:        pulumi.String("string"),
	KmsKeyName:  pulumi.String("string"),
	Project:     pulumi.String("string"),
})
Copy
var documentAiProcessorResource = new DocumentAiProcessor("documentAiProcessorResource", DocumentAiProcessorArgs.builder()
    .displayName("string")
    .location("string")
    .type("string")
    .kmsKeyName("string")
    .project("string")
    .build());
Copy
document_ai_processor_resource = gcp.essentialcontacts.DocumentAiProcessor("documentAiProcessorResource",
    display_name="string",
    location="string",
    type="string",
    kms_key_name="string",
    project="string")
Copy
const documentAiProcessorResource = new gcp.essentialcontacts.DocumentAiProcessor("documentAiProcessorResource", {
    displayName: "string",
    location: "string",
    type: "string",
    kmsKeyName: "string",
    project: "string",
});
Copy
type: gcp:essentialcontacts:DocumentAiProcessor
properties:
    displayName: string
    kmsKeyName: string
    location: string
    project: string
    type: string
Copy

DocumentAiProcessor Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The DocumentAiProcessor resource accepts the following input properties:

DisplayName
This property is required.
Changes to this property will trigger replacement.
string
The display name. Must be unique.
Location
This property is required.
Changes to this property will trigger replacement.
string
The location of the resource.


Type
This property is required.
Changes to this property will trigger replacement.
string
The type of processor. For possible types see the official list
KmsKeyName Changes to this property will trigger replacement. string
The KMS key used for encryption/decryption in CMEK scenarios. See https://cloud.google.com/security-key-management.
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
DisplayName
This property is required.
Changes to this property will trigger replacement.
string
The display name. Must be unique.
Location
This property is required.
Changes to this property will trigger replacement.
string
The location of the resource.


Type
This property is required.
Changes to this property will trigger replacement.
string
The type of processor. For possible types see the official list
KmsKeyName Changes to this property will trigger replacement. string
The KMS key used for encryption/decryption in CMEK scenarios. See https://cloud.google.com/security-key-management.
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
displayName
This property is required.
Changes to this property will trigger replacement.
String
The display name. Must be unique.
location
This property is required.
Changes to this property will trigger replacement.
String
The location of the resource.


type
This property is required.
Changes to this property will trigger replacement.
String
The type of processor. For possible types see the official list
kmsKeyName Changes to this property will trigger replacement. String
The KMS key used for encryption/decryption in CMEK scenarios. See https://cloud.google.com/security-key-management.
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
displayName
This property is required.
Changes to this property will trigger replacement.
string
The display name. Must be unique.
location
This property is required.
Changes to this property will trigger replacement.
string
The location of the resource.


type
This property is required.
Changes to this property will trigger replacement.
string
The type of processor. For possible types see the official list
kmsKeyName Changes to this property will trigger replacement. string
The KMS key used for encryption/decryption in CMEK scenarios. See https://cloud.google.com/security-key-management.
project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
display_name
This property is required.
Changes to this property will trigger replacement.
str
The display name. Must be unique.
location
This property is required.
Changes to this property will trigger replacement.
str
The location of the resource.


type
This property is required.
Changes to this property will trigger replacement.
str
The type of processor. For possible types see the official list
kms_key_name Changes to this property will trigger replacement. str
The KMS key used for encryption/decryption in CMEK scenarios. See https://cloud.google.com/security-key-management.
project Changes to this property will trigger replacement. str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
displayName
This property is required.
Changes to this property will trigger replacement.
String
The display name. Must be unique.
location
This property is required.
Changes to this property will trigger replacement.
String
The location of the resource.


type
This property is required.
Changes to this property will trigger replacement.
String
The type of processor. For possible types see the official list
kmsKeyName Changes to this property will trigger replacement. String
The KMS key used for encryption/decryption in CMEK scenarios. See https://cloud.google.com/security-key-management.
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Outputs

All input properties are implicitly available as output properties. Additionally, the DocumentAiProcessor resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Name string
The resource name of the processor.
Id string
The provider-assigned unique ID for this managed resource.
Name string
The resource name of the processor.
id String
The provider-assigned unique ID for this managed resource.
name String
The resource name of the processor.
id string
The provider-assigned unique ID for this managed resource.
name string
The resource name of the processor.
id str
The provider-assigned unique ID for this managed resource.
name str
The resource name of the processor.
id String
The provider-assigned unique ID for this managed resource.
name String
The resource name of the processor.

Look up Existing DocumentAiProcessor Resource

Get an existing DocumentAiProcessor resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: DocumentAiProcessorState, opts?: CustomResourceOptions): DocumentAiProcessor
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        display_name: Optional[str] = None,
        kms_key_name: Optional[str] = None,
        location: Optional[str] = None,
        name: Optional[str] = None,
        project: Optional[str] = None,
        type: Optional[str] = None) -> DocumentAiProcessor
func GetDocumentAiProcessor(ctx *Context, name string, id IDInput, state *DocumentAiProcessorState, opts ...ResourceOption) (*DocumentAiProcessor, error)
public static DocumentAiProcessor Get(string name, Input<string> id, DocumentAiProcessorState? state, CustomResourceOptions? opts = null)
public static DocumentAiProcessor get(String name, Output<String> id, DocumentAiProcessorState state, CustomResourceOptions options)
resources:  _:    type: gcp:essentialcontacts:DocumentAiProcessor    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
DisplayName Changes to this property will trigger replacement. string
The display name. Must be unique.
KmsKeyName Changes to this property will trigger replacement. string
The KMS key used for encryption/decryption in CMEK scenarios. See https://cloud.google.com/security-key-management.
Location Changes to this property will trigger replacement. string
The location of the resource.


Name string
The resource name of the processor.
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Type Changes to this property will trigger replacement. string
The type of processor. For possible types see the official list
DisplayName Changes to this property will trigger replacement. string
The display name. Must be unique.
KmsKeyName Changes to this property will trigger replacement. string
The KMS key used for encryption/decryption in CMEK scenarios. See https://cloud.google.com/security-key-management.
Location Changes to this property will trigger replacement. string
The location of the resource.


Name string
The resource name of the processor.
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Type Changes to this property will trigger replacement. string
The type of processor. For possible types see the official list
displayName Changes to this property will trigger replacement. String
The display name. Must be unique.
kmsKeyName Changes to this property will trigger replacement. String
The KMS key used for encryption/decryption in CMEK scenarios. See https://cloud.google.com/security-key-management.
location Changes to this property will trigger replacement. String
The location of the resource.


name String
The resource name of the processor.
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
type Changes to this property will trigger replacement. String
The type of processor. For possible types see the official list
displayName Changes to this property will trigger replacement. string
The display name. Must be unique.
kmsKeyName Changes to this property will trigger replacement. string
The KMS key used for encryption/decryption in CMEK scenarios. See https://cloud.google.com/security-key-management.
location Changes to this property will trigger replacement. string
The location of the resource.


name string
The resource name of the processor.
project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
type Changes to this property will trigger replacement. string
The type of processor. For possible types see the official list
display_name Changes to this property will trigger replacement. str
The display name. Must be unique.
kms_key_name Changes to this property will trigger replacement. str
The KMS key used for encryption/decryption in CMEK scenarios. See https://cloud.google.com/security-key-management.
location Changes to this property will trigger replacement. str
The location of the resource.


name str
The resource name of the processor.
project Changes to this property will trigger replacement. str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
type Changes to this property will trigger replacement. str
The type of processor. For possible types see the official list
displayName Changes to this property will trigger replacement. String
The display name. Must be unique.
kmsKeyName Changes to this property will trigger replacement. String
The KMS key used for encryption/decryption in CMEK scenarios. See https://cloud.google.com/security-key-management.
location Changes to this property will trigger replacement. String
The location of the resource.


name String
The resource name of the processor.
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
type Changes to this property will trigger replacement. String
The type of processor. For possible types see the official list

Import

Processor can be imported using any of these accepted formats:

  • projects/{{project}}/locations/{{location}}/processors/{{name}}

  • {{project}}/{{location}}/{{name}}

  • {{location}}/{{name}}

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

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

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Google Cloud (GCP) Classic pulumi/pulumi-gcp
License
Apache-2.0
Notes
This Pulumi package is based on the google-beta Terraform Provider.