Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.documentai/v1.Processor
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates a processor from the ProcessorType provided. The processor will be at ENABLED
state by default after its creation.
Auto-naming is currently not supported for this resource.
Create Processor Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Processor(name: string, args?: ProcessorArgs, opts?: CustomResourceOptions);
@overload
def Processor(resource_name: str,
args: Optional[ProcessorArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Processor(resource_name: str,
opts: Optional[ResourceOptions] = None,
create_time: Optional[str] = None,
default_processor_version: Optional[str] = None,
display_name: Optional[str] = None,
kms_key_name: Optional[str] = None,
location: Optional[str] = None,
project: Optional[str] = None,
type: Optional[str] = None)
func NewProcessor(ctx *Context, name string, args *ProcessorArgs, opts ...ResourceOption) (*Processor, error)
public Processor(string name, ProcessorArgs? args = null, CustomResourceOptions? opts = null)
public Processor(String name, ProcessorArgs args)
public Processor(String name, ProcessorArgs args, CustomResourceOptions options)
type: google-native:documentai/v1:Processor
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ProcessorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ProcessorArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ProcessorArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProcessorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ProcessorArgs
- 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 processorResource = new GoogleNative.DocumentAI.V1.Processor("processorResource", new()
{
CreateTime = "string",
DefaultProcessorVersion = "string",
DisplayName = "string",
KmsKeyName = "string",
Location = "string",
Project = "string",
Type = "string",
});
example, err := documentai.NewProcessor(ctx, "processorResource", &documentai.ProcessorArgs{
CreateTime: pulumi.String("string"),
DefaultProcessorVersion: pulumi.String("string"),
DisplayName: pulumi.String("string"),
KmsKeyName: pulumi.String("string"),
Location: pulumi.String("string"),
Project: pulumi.String("string"),
Type: pulumi.String("string"),
})
var processorResource = new Processor("processorResource", ProcessorArgs.builder()
.createTime("string")
.defaultProcessorVersion("string")
.displayName("string")
.kmsKeyName("string")
.location("string")
.project("string")
.type("string")
.build());
processor_resource = google_native.documentai.v1.Processor("processorResource",
create_time="string",
default_processor_version="string",
display_name="string",
kms_key_name="string",
location="string",
project="string",
type="string")
const processorResource = new google_native.documentai.v1.Processor("processorResource", {
createTime: "string",
defaultProcessorVersion: "string",
displayName: "string",
kmsKeyName: "string",
location: "string",
project: "string",
type: "string",
});
type: google-native:documentai/v1:Processor
properties:
createTime: string
defaultProcessorVersion: string
displayName: string
kmsKeyName: string
location: string
project: string
type: string
Processor Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Processor resource accepts the following input properties:
- Create
Time string - The time the processor was created.
- Default
Processor stringVersion - The default processor version.
- Display
Name string - The display name of the processor.
- Kms
Key stringName - The KMS key used for encryption and decryption in CMEK scenarios.
- Location string
- Project string
- Type string
- The processor type, such as:
OCR_PROCESSOR
,INVOICE_PROCESSOR
. To get a list of processor types, see FetchProcessorTypes.
- Create
Time string - The time the processor was created.
- Default
Processor stringVersion - The default processor version.
- Display
Name string - The display name of the processor.
- Kms
Key stringName - The KMS key used for encryption and decryption in CMEK scenarios.
- Location string
- Project string
- Type string
- The processor type, such as:
OCR_PROCESSOR
,INVOICE_PROCESSOR
. To get a list of processor types, see FetchProcessorTypes.
- create
Time String - The time the processor was created.
- default
Processor StringVersion - The default processor version.
- display
Name String - The display name of the processor.
- kms
Key StringName - The KMS key used for encryption and decryption in CMEK scenarios.
- location String
- project String
- type String
- The processor type, such as:
OCR_PROCESSOR
,INVOICE_PROCESSOR
. To get a list of processor types, see FetchProcessorTypes.
- create
Time string - The time the processor was created.
- default
Processor stringVersion - The default processor version.
- display
Name string - The display name of the processor.
- kms
Key stringName - The KMS key used for encryption and decryption in CMEK scenarios.
- location string
- project string
- type string
- The processor type, such as:
OCR_PROCESSOR
,INVOICE_PROCESSOR
. To get a list of processor types, see FetchProcessorTypes.
- create_
time str - The time the processor was created.
- default_
processor_ strversion - The default processor version.
- display_
name str - The display name of the processor.
- kms_
key_ strname - The KMS key used for encryption and decryption in CMEK scenarios.
- location str
- project str
- type str
- The processor type, such as:
OCR_PROCESSOR
,INVOICE_PROCESSOR
. To get a list of processor types, see FetchProcessorTypes.
- create
Time String - The time the processor was created.
- default
Processor StringVersion - The default processor version.
- display
Name String - The display name of the processor.
- kms
Key StringName - The KMS key used for encryption and decryption in CMEK scenarios.
- location String
- project String
- type String
- The processor type, such as:
OCR_PROCESSOR
,INVOICE_PROCESSOR
. To get a list of processor types, see FetchProcessorTypes.
Outputs
All input properties are implicitly available as output properties. Additionally, the Processor resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Immutable. The resource name of the processor. Format:
projects/{project}/locations/{location}/processors/{processor}
- Process
Endpoint string - Immutable. The http endpoint that can be called to invoke processing.
- Processor
Version List<Pulumi.Aliases Google Native. Document AI. V1. Outputs. Google Cloud Documentai V1Processor Version Alias Response> - The processor version aliases.
- State string
- The state of the processor.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Immutable. The resource name of the processor. Format:
projects/{project}/locations/{location}/processors/{processor}
- Process
Endpoint string - Immutable. The http endpoint that can be called to invoke processing.
- Processor
Version []GoogleAliases Cloud Documentai V1Processor Version Alias Response - The processor version aliases.
- State string
- The state of the processor.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Immutable. The resource name of the processor. Format:
projects/{project}/locations/{location}/processors/{processor}
- process
Endpoint String - Immutable. The http endpoint that can be called to invoke processing.
- processor
Version List<GoogleAliases Cloud Documentai V1Processor Version Alias Response> - The processor version aliases.
- state String
- The state of the processor.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Immutable. The resource name of the processor. Format:
projects/{project}/locations/{location}/processors/{processor}
- process
Endpoint string - Immutable. The http endpoint that can be called to invoke processing.
- processor
Version GoogleAliases Cloud Documentai V1Processor Version Alias Response[] - The processor version aliases.
- state string
- The state of the processor.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Immutable. The resource name of the processor. Format:
projects/{project}/locations/{location}/processors/{processor}
- process_
endpoint str - Immutable. The http endpoint that can be called to invoke processing.
- processor_
version_ Sequence[Googlealiases Cloud Documentai V1Processor Version Alias Response] - The processor version aliases.
- state str
- The state of the processor.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Immutable. The resource name of the processor. Format:
projects/{project}/locations/{location}/processors/{processor}
- process
Endpoint String - Immutable. The http endpoint that can be called to invoke processing.
- processor
Version List<Property Map>Aliases - The processor version aliases.
- state String
- The state of the processor.
Supporting Types
GoogleCloudDocumentaiV1ProcessorVersionAliasResponse, GoogleCloudDocumentaiV1ProcessorVersionAliasResponseArgs
- Alias string
- The alias in the form of
processor_version
resource name. - Processor
Version string - The resource name of aliased processor version.
- Alias string
- The alias in the form of
processor_version
resource name. - Processor
Version string - The resource name of aliased processor version.
- alias String
- The alias in the form of
processor_version
resource name. - processor
Version String - The resource name of aliased processor version.
- alias string
- The alias in the form of
processor_version
resource name. - processor
Version string - The resource name of aliased processor version.
- alias str
- The alias in the form of
processor_version
resource name. - processor_
version str - The resource name of aliased processor version.
- alias String
- The alias in the form of
processor_version
resource name. - processor
Version String - The resource name of aliased processor version.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.