import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Processor Job resource in Oracle Cloud Infrastructure Ai Document service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/document-understanding/latest/ProcessorJob * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/aiDocument * * Create a processor job for document analysis. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testProcessorJob = new oci.aidocument.ProcessorJob("test_processor_job", { * compartmentId: compartmentId, * inputLocation: { * sourceType: processorJobInputLocationSourceType, * data: processorJobInputLocationData, * objectLocations: [{ * bucket: processorJobInputLocationObjectLocationsBucket, * namespace: processorJobInputLocationObjectLocationsNamespace, * object: processorJobInputLocationObjectLocationsObject, * pageRanges: processorJobInputLocationObjectLocationsPageRange, * }], * pageRanges: processorJobInputLocationPageRange, * }, * outputLocation: { * bucket: processorJobOutputLocationBucket, * namespace: processorJobOutputLocationNamespace, * prefix: processorJobOutputLocationPrefix, * }, * processorConfig: { * processorType: processorJobProcessorConfigProcessorType, * documentType: processorJobProcessorConfigDocumentType, * features: [{ * featureType: processorJobProcessorConfigFeaturesFeatureType, * generateSearchablePdf: processorJobProcessorConfigFeaturesGenerateSearchablePdf === "true", * maxResults: Number(processorJobProcessorConfigFeaturesMaxResults), * modelId: testModel.id, * selectionMarkDetection: processorJobProcessorConfigFeaturesSelectionMarkDetection === "true", * tenancyId: testTenancy.id, * }], * isZipOutputEnabled: processorJobProcessorConfigIsZipOutputEnabled === "true", * language: processorJobProcessorConfigLanguage, * modelId: testModel.id, * normalizationFields: [{ * maps: [{ * normalizationType: processorJobProcessorConfigNormalizationFieldsMapNormalizationType, * }], * }], * }, * displayName: processorJobDisplayName, * }); * ``` * * ## Import * * ProcessorJobs can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:AiDocument/processorJob:ProcessorJob test_processor_job "id" * ``` */ export declare class ProcessorJob extends pulumi.CustomResource { /** * Get an existing ProcessorJob resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: ProcessorJobState, opts?: pulumi.CustomResourceOptions): ProcessorJob; /** * Returns true if the given object is an instance of ProcessorJob. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is ProcessorJob; /** * The compartment identifier. */ readonly compartmentId: pulumi.Output; /** * The display name of the processor job. */ readonly displayName: pulumi.Output; /** * The location of the inputs. */ readonly inputLocation: pulumi.Output; /** * The detailed status of FAILED state. */ readonly lifecycleDetails: pulumi.Output; /** * The object storage location where to store analysis results. */ readonly outputLocation: pulumi.Output; /** * How much progress the operation has made, compared to the total amount of work to be performed. */ readonly percentComplete: pulumi.Output; /** * The configuration of a processor. */ readonly processorConfig: pulumi.Output; /** * The current state of the processor job. */ readonly state: pulumi.Output; /** * The job acceptance time. */ readonly timeAccepted: pulumi.Output; /** * The job finish time. */ readonly timeFinished: pulumi.Output; /** * The job start time. */ readonly timeStarted: pulumi.Output; /** * Create a ProcessorJob resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: ProcessorJobArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ProcessorJob resources. */ export interface ProcessorJobState { /** * The compartment identifier. */ compartmentId?: pulumi.Input; /** * The display name of the processor job. */ displayName?: pulumi.Input; /** * The location of the inputs. */ inputLocation?: pulumi.Input; /** * The detailed status of FAILED state. */ lifecycleDetails?: pulumi.Input; /** * The object storage location where to store analysis results. */ outputLocation?: pulumi.Input; /** * How much progress the operation has made, compared to the total amount of work to be performed. */ percentComplete?: pulumi.Input; /** * The configuration of a processor. */ processorConfig?: pulumi.Input; /** * The current state of the processor job. */ state?: pulumi.Input; /** * The job acceptance time. */ timeAccepted?: pulumi.Input; /** * The job finish time. */ timeFinished?: pulumi.Input; /** * The job start time. */ timeStarted?: pulumi.Input; } /** * The set of arguments for constructing a ProcessorJob resource. */ export interface ProcessorJobArgs { /** * The compartment identifier. */ compartmentId: pulumi.Input; /** * The display name of the processor job. */ displayName?: pulumi.Input; /** * The location of the inputs. */ inputLocation: pulumi.Input; /** * The object storage location where to store analysis results. */ outputLocation: pulumi.Input; /** * The configuration of a processor. */ processorConfig: pulumi.Input; } //# sourceMappingURL=processorJob.d.ts.map