Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.AiDocument.getProcessorJob
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
This data source provides details about a specific Processor Job resource in Oracle Cloud Infrastructure Ai Document service.
Get the details of a processor job.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testProcessorJob = oci.AiDocument.getProcessorJob({
processorJobId: testProcessorJobOciAiDocumentProcessorJob.id,
});
import pulumi
import pulumi_oci as oci
test_processor_job = oci.AiDocument.get_processor_job(processor_job_id=test_processor_job_oci_ai_document_processor_job["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/AiDocument"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := AiDocument.GetProcessorJob(ctx, &aidocument.GetProcessorJobArgs{
ProcessorJobId: testProcessorJobOciAiDocumentProcessorJob.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testProcessorJob = Oci.AiDocument.GetProcessorJob.Invoke(new()
{
ProcessorJobId = testProcessorJobOciAiDocumentProcessorJob.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.AiDocument.AiDocumentFunctions;
import com.pulumi.oci.AiDocument.inputs.GetProcessorJobArgs;
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) {
final var testProcessorJob = AiDocumentFunctions.getProcessorJob(GetProcessorJobArgs.builder()
.processorJobId(testProcessorJobOciAiDocumentProcessorJob.id())
.build());
}
}
variables:
testProcessorJob:
fn::invoke:
Function: oci:AiDocument:getProcessorJob
Arguments:
processorJobId: ${testProcessorJobOciAiDocumentProcessorJob.id}
Using getProcessorJob
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getProcessorJob(args: GetProcessorJobArgs, opts?: InvokeOptions): Promise<GetProcessorJobResult>
function getProcessorJobOutput(args: GetProcessorJobOutputArgs, opts?: InvokeOptions): Output<GetProcessorJobResult>
def get_processor_job(processor_job_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetProcessorJobResult
def get_processor_job_output(processor_job_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetProcessorJobResult]
func GetProcessorJob(ctx *Context, args *GetProcessorJobArgs, opts ...InvokeOption) (*GetProcessorJobResult, error)
func GetProcessorJobOutput(ctx *Context, args *GetProcessorJobOutputArgs, opts ...InvokeOption) GetProcessorJobResultOutput
> Note: This function is named GetProcessorJob
in the Go SDK.
public static class GetProcessorJob
{
public static Task<GetProcessorJobResult> InvokeAsync(GetProcessorJobArgs args, InvokeOptions? opts = null)
public static Output<GetProcessorJobResult> Invoke(GetProcessorJobInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetProcessorJobResult> getProcessorJob(GetProcessorJobArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:AiDocument/getProcessorJob:getProcessorJob
arguments:
# arguments dictionary
The following arguments are supported:
- Processor
Job stringId - Processor job id.
- Processor
Job stringId - Processor job id.
- processor
Job StringId - Processor job id.
- processor
Job stringId - Processor job id.
- processor_
job_ strid - Processor job id.
- processor
Job StringId - Processor job id.
getProcessorJob Result
The following output properties are available:
- Compartment
Id string - The compartment identifier.
- Display
Name string - The display name of the processor job.
- Id string
- The id of the processor job.
- Input
Locations List<GetProcessor Job Input Location> - The location of the inputs.
- Lifecycle
Details string - The detailed status of FAILED state.
- Output
Locations List<GetProcessor Job Output Location> - The object storage location where to store analysis results.
- Percent
Complete double - How much progress the operation has made, compared to the total amount of work to be performed.
- Processor
Configs List<GetProcessor Job Processor Config> - The configuration of a processor.
- Processor
Job stringId - State string
- The current state of the processor job.
- Time
Accepted string - The job acceptance time.
- Time
Finished string - The job finish time.
- Time
Started string - The job start time.
- Compartment
Id string - The compartment identifier.
- Display
Name string - The display name of the processor job.
- Id string
- The id of the processor job.
- Input
Locations []GetProcessor Job Input Location - The location of the inputs.
- Lifecycle
Details string - The detailed status of FAILED state.
- Output
Locations []GetProcessor Job Output Location - The object storage location where to store analysis results.
- Percent
Complete float64 - How much progress the operation has made, compared to the total amount of work to be performed.
- Processor
Configs []GetProcessor Job Processor Config - The configuration of a processor.
- Processor
Job stringId - State string
- The current state of the processor job.
- Time
Accepted string - The job acceptance time.
- Time
Finished string - The job finish time.
- Time
Started string - The job start time.
- compartment
Id String - The compartment identifier.
- display
Name String - The display name of the processor job.
- id String
- The id of the processor job.
- input
Locations List<GetProcessor Job Input Location> - The location of the inputs.
- lifecycle
Details String - The detailed status of FAILED state.
- output
Locations List<GetProcessor Job Output Location> - The object storage location where to store analysis results.
- percent
Complete Double - How much progress the operation has made, compared to the total amount of work to be performed.
- processor
Configs List<GetProcessor Job Processor Config> - The configuration of a processor.
- processor
Job StringId - state String
- The current state of the processor job.
- time
Accepted String - The job acceptance time.
- time
Finished String - The job finish time.
- time
Started String - The job start time.
- compartment
Id string - The compartment identifier.
- display
Name string - The display name of the processor job.
- id string
- The id of the processor job.
- input
Locations GetProcessor Job Input Location[] - The location of the inputs.
- lifecycle
Details string - The detailed status of FAILED state.
- output
Locations GetProcessor Job Output Location[] - The object storage location where to store analysis results.
- percent
Complete number - How much progress the operation has made, compared to the total amount of work to be performed.
- processor
Configs GetProcessor Job Processor Config[] - The configuration of a processor.
- processor
Job stringId - state string
- The current state of the processor job.
- time
Accepted string - The job acceptance time.
- time
Finished string - The job finish time.
- time
Started string - The job start time.
- compartment_
id str - The compartment identifier.
- display_
name str - The display name of the processor job.
- id str
- The id of the processor job.
- input_
locations Sequence[aidocument.Get Processor Job Input Location] - The location of the inputs.
- lifecycle_
details str - The detailed status of FAILED state.
- output_
locations Sequence[aidocument.Get Processor Job Output Location] - The object storage location where to store analysis results.
- percent_
complete float - How much progress the operation has made, compared to the total amount of work to be performed.
- processor_
configs Sequence[aidocument.Get Processor Job Processor Config] - The configuration of a processor.
- processor_
job_ strid - state str
- The current state of the processor job.
- time_
accepted str - The job acceptance time.
- time_
finished str - The job finish time.
- time_
started str - The job start time.
- compartment
Id String - The compartment identifier.
- display
Name String - The display name of the processor job.
- id String
- The id of the processor job.
- input
Locations List<Property Map> - The location of the inputs.
- lifecycle
Details String - The detailed status of FAILED state.
- output
Locations List<Property Map> - The object storage location where to store analysis results.
- percent
Complete Number - How much progress the operation has made, compared to the total amount of work to be performed.
- processor
Configs List<Property Map> - The configuration of a processor.
- processor
Job StringId - state String
- The current state of the processor job.
- time
Accepted String - The job acceptance time.
- time
Finished String - The job finish time.
- time
Started String - The job start time.
Supporting Types
GetProcessorJobInputLocation
- Data string
- Raw document data with Base64 encoding.
- Object
Locations List<GetProcessor Job Input Location Object Location> - The list of ObjectLocations.
- Source
Type string - The type of input location. The allowed values are:
OBJECT_STORAGE_LOCATIONS
: A list of object locations in Object Storage.INLINE_DOCUMENT_CONTENT
: The content of an inline document.
- Data string
- Raw document data with Base64 encoding.
- Object
Locations []GetProcessor Job Input Location Object Location - The list of ObjectLocations.
- Source
Type string - The type of input location. The allowed values are:
OBJECT_STORAGE_LOCATIONS
: A list of object locations in Object Storage.INLINE_DOCUMENT_CONTENT
: The content of an inline document.
- data String
- Raw document data with Base64 encoding.
- object
Locations List<GetProcessor Job Input Location Object Location> - The list of ObjectLocations.
- source
Type String - The type of input location. The allowed values are:
OBJECT_STORAGE_LOCATIONS
: A list of object locations in Object Storage.INLINE_DOCUMENT_CONTENT
: The content of an inline document.
- data string
- Raw document data with Base64 encoding.
- object
Locations GetProcessor Job Input Location Object Location[] - The list of ObjectLocations.
- source
Type string - The type of input location. The allowed values are:
OBJECT_STORAGE_LOCATIONS
: A list of object locations in Object Storage.INLINE_DOCUMENT_CONTENT
: The content of an inline document.
- data str
- Raw document data with Base64 encoding.
- object_
locations Sequence[aidocument.Get Processor Job Input Location Object Location] - The list of ObjectLocations.
- source_
type str - The type of input location. The allowed values are:
OBJECT_STORAGE_LOCATIONS
: A list of object locations in Object Storage.INLINE_DOCUMENT_CONTENT
: The content of an inline document.
- data String
- Raw document data with Base64 encoding.
- object
Locations List<Property Map> - The list of ObjectLocations.
- source
Type String - The type of input location. The allowed values are:
OBJECT_STORAGE_LOCATIONS
: A list of object locations in Object Storage.INLINE_DOCUMENT_CONTENT
: The content of an inline document.
GetProcessorJobInputLocationObjectLocation
GetProcessorJobOutputLocation
GetProcessorJobProcessorConfig
- Document
Type string - The document type.
- Features
List<Get
Processor Job Processor Config Feature> - The types of document analysis requested.
- Is
Zip boolOutput Enabled - Whether or not to generate a ZIP file containing the results.
- Language string
- The document language, abbreviated according to the BCP 47 Language-Tag syntax.
- Processor
Type string - The type of the processor.
- Document
Type string - The document type.
- Features
[]Get
Processor Job Processor Config Feature - The types of document analysis requested.
- Is
Zip boolOutput Enabled - Whether or not to generate a ZIP file containing the results.
- Language string
- The document language, abbreviated according to the BCP 47 Language-Tag syntax.
- Processor
Type string - The type of the processor.
- document
Type String - The document type.
- features
List<Get
Processor Job Processor Config Feature> - The types of document analysis requested.
- is
Zip BooleanOutput Enabled - Whether or not to generate a ZIP file containing the results.
- language String
- The document language, abbreviated according to the BCP 47 Language-Tag syntax.
- processor
Type String - The type of the processor.
- document
Type string - The document type.
- features
Get
Processor Job Processor Config Feature[] - The types of document analysis requested.
- is
Zip booleanOutput Enabled - Whether or not to generate a ZIP file containing the results.
- language string
- The document language, abbreviated according to the BCP 47 Language-Tag syntax.
- processor
Type string - The type of the processor.
- document_
type str - The document type.
- features
Sequence[aidocument.
Get Processor Job Processor Config Feature] - The types of document analysis requested.
- is_
zip_ booloutput_ enabled - Whether or not to generate a ZIP file containing the results.
- language str
- The document language, abbreviated according to the BCP 47 Language-Tag syntax.
- processor_
type str - The type of the processor.
- document
Type String - The document type.
- features List<Property Map>
- The types of document analysis requested.
- is
Zip BooleanOutput Enabled - Whether or not to generate a ZIP file containing the results.
- language String
- The document language, abbreviated according to the BCP 47 Language-Tag syntax.
- processor
Type String - The type of the processor.
GetProcessorJobProcessorConfigFeature
- Feature
Type string - The type of document analysis requested. The allowed values are:
LANGUAGE_CLASSIFICATION
: Detect the language.TEXT_EXTRACTION
: Recognize text.TABLE_EXTRACTION
: Detect and extract data in tables.KEY_VALUE_EXTRACTION
: Extract form fields.DOCUMENT_CLASSIFICATION
: Identify the type of document.
- Generate
Searchable boolPdf - Whether or not to generate a searchable PDF file.
- Max
Results int - The maximum number of results to return.
- Model
Id string - The custom model ID.
- Tenancy
Id string - The custom model tenancy ID when modelId represents aliasName.
- Feature
Type string - The type of document analysis requested. The allowed values are:
LANGUAGE_CLASSIFICATION
: Detect the language.TEXT_EXTRACTION
: Recognize text.TABLE_EXTRACTION
: Detect and extract data in tables.KEY_VALUE_EXTRACTION
: Extract form fields.DOCUMENT_CLASSIFICATION
: Identify the type of document.
- Generate
Searchable boolPdf - Whether or not to generate a searchable PDF file.
- Max
Results int - The maximum number of results to return.
- Model
Id string - The custom model ID.
- Tenancy
Id string - The custom model tenancy ID when modelId represents aliasName.
- feature
Type String - The type of document analysis requested. The allowed values are:
LANGUAGE_CLASSIFICATION
: Detect the language.TEXT_EXTRACTION
: Recognize text.TABLE_EXTRACTION
: Detect and extract data in tables.KEY_VALUE_EXTRACTION
: Extract form fields.DOCUMENT_CLASSIFICATION
: Identify the type of document.
- generate
Searchable BooleanPdf - Whether or not to generate a searchable PDF file.
- max
Results Integer - The maximum number of results to return.
- model
Id String - The custom model ID.
- tenancy
Id String - The custom model tenancy ID when modelId represents aliasName.
- feature
Type string - The type of document analysis requested. The allowed values are:
LANGUAGE_CLASSIFICATION
: Detect the language.TEXT_EXTRACTION
: Recognize text.TABLE_EXTRACTION
: Detect and extract data in tables.KEY_VALUE_EXTRACTION
: Extract form fields.DOCUMENT_CLASSIFICATION
: Identify the type of document.
- generate
Searchable booleanPdf - Whether or not to generate a searchable PDF file.
- max
Results number - The maximum number of results to return.
- model
Id string - The custom model ID.
- tenancy
Id string - The custom model tenancy ID when modelId represents aliasName.
- feature_
type str - The type of document analysis requested. The allowed values are:
LANGUAGE_CLASSIFICATION
: Detect the language.TEXT_EXTRACTION
: Recognize text.TABLE_EXTRACTION
: Detect and extract data in tables.KEY_VALUE_EXTRACTION
: Extract form fields.DOCUMENT_CLASSIFICATION
: Identify the type of document.
- generate_
searchable_ boolpdf - Whether or not to generate a searchable PDF file.
- max_
results int - The maximum number of results to return.
- model_
id str - The custom model ID.
- tenancy_
id str - The custom model tenancy ID when modelId represents aliasName.
- feature
Type String - The type of document analysis requested. The allowed values are:
LANGUAGE_CLASSIFICATION
: Detect the language.TEXT_EXTRACTION
: Recognize text.TABLE_EXTRACTION
: Detect and extract data in tables.KEY_VALUE_EXTRACTION
: Extract form fields.DOCUMENT_CLASSIFICATION
: Identify the type of document.
- generate
Searchable BooleanPdf - Whether or not to generate a searchable PDF file.
- max
Results Number - The maximum number of results to return.
- model
Id String - The custom model ID.
- tenancy
Id String - The custom model tenancy ID when modelId represents aliasName.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi