import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Job Run resource in Oracle Cloud Infrastructure Data Science service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/data-science/latest/JobRun * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/datascience * * Creates a job run. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testJobRun = new oci.datascience.JobRun("test_job_run", { * compartmentId: compartmentId, * jobId: testJob.id, * projectId: testProject.id, * asynchronous: asynchronous === "true", * definedTags: { * "Operations.CostCenter": "42", * }, * displayName: jobRunDisplayName, * freeformTags: { * Department: "Finance", * }, * jobConfigurationOverrideDetails: { * jobType: jobRunJobConfigurationOverrideDetailsJobType, * commandLineArguments: jobRunJobConfigurationOverrideDetailsCommandLineArguments, * environmentVariables: jobRunJobConfigurationOverrideDetailsEnvironmentVariables, * maximumRuntimeInMinutes: jobRunJobConfigurationOverrideDetailsMaximumRuntimeInMinutes, * startupProbeDetails: { * commands: jobRunJobConfigurationOverrideDetailsStartupProbeDetailsCommand, * jobProbeCheckType: jobRunJobConfigurationOverrideDetailsStartupProbeDetailsJobProbeCheckType, * failureThreshold: Number(jobRunJobConfigurationOverrideDetailsStartupProbeDetailsFailureThreshold), * initialDelayInSeconds: Number(jobRunJobConfigurationOverrideDetailsStartupProbeDetailsInitialDelayInSeconds), * periodInSeconds: Number(jobRunJobConfigurationOverrideDetailsStartupProbeDetailsPeriodInSeconds), * }, * }, * jobEnvironmentConfigurationOverrideDetails: { * image: jobRunJobEnvironmentConfigurationOverrideDetailsImage, * jobEnvironmentType: jobRunJobEnvironmentConfigurationOverrideDetailsJobEnvironmentType, * cmds: jobRunJobEnvironmentConfigurationOverrideDetailsCmd, * entrypoints: jobRunJobEnvironmentConfigurationOverrideDetailsEntrypoint, * imageDigest: jobRunJobEnvironmentConfigurationOverrideDetailsImageDigest, * imageSignatureId: testImageSignature.id, * }, * jobInfrastructureConfigurationOverrideDetails: { * jobInfrastructureType: jobRunJobInfrastructureConfigurationOverrideDetailsJobInfrastructureType, * blockStorageSizeInGbs: Number(jobRunJobInfrastructureConfigurationOverrideDetailsBlockStorageSizeInGbs), * computeTargetId: testComputeTarget.id, * jobShapeConfigDetails: { * memoryInGbs: jobRunJobInfrastructureConfigurationOverrideDetailsJobShapeConfigDetailsMemoryInGbs, * ocpus: jobRunJobInfrastructureConfigurationOverrideDetailsJobShapeConfigDetailsOcpus, * }, * resourceConfiguration: { * resourceLimitConfiguration: { * memoryInGbs: jobRunJobInfrastructureConfigurationOverrideDetailsResourceConfigurationResourceLimitConfigurationMemoryInGbs, * ocpus: jobRunJobInfrastructureConfigurationOverrideDetailsResourceConfigurationResourceLimitConfigurationOcpus, * }, * resourceRequestConfiguration: { * gpus: Number(jobRunJobInfrastructureConfigurationOverrideDetailsResourceConfigurationResourceRequestConfigurationGpus), * memoryInGbs: jobRunJobInfrastructureConfigurationOverrideDetailsResourceConfigurationResourceRequestConfigurationMemoryInGbs, * ocpus: jobRunJobInfrastructureConfigurationOverrideDetailsResourceConfigurationResourceRequestConfigurationOcpus, * }, * }, * shapeName: testShape.name, * subnetId: testSubnet.id, * }, * jobLogConfigurationOverrideDetails: { * enableAutoLogCreation: jobRunJobLogConfigurationOverrideDetailsEnableAutoLogCreation === "true", * enableLogging: jobRunJobLogConfigurationOverrideDetailsEnableLogging === "true", * logGroupId: testLogGroup.id, * logId: testLog.id, * }, * jobNodeConfigurationOverrideDetails: { * jobNodeType: jobRunJobNodeConfigurationOverrideDetailsJobNodeType, * jobNetworkConfiguration: { * jobNetworkType: jobRunJobNodeConfigurationOverrideDetailsJobNetworkConfigurationJobNetworkType, * subnetId: testSubnet.id, * }, * jobNodeGroupConfigurationDetailsLists: [{ * name: jobRunJobNodeConfigurationOverrideDetailsJobNodeGroupConfigurationDetailsListName, * jobConfigurationDetails: { * jobType: jobRunJobNodeConfigurationOverrideDetailsJobNodeGroupConfigurationDetailsListJobConfigurationDetailsJobType, * commandLineArguments: jobRunJobNodeConfigurationOverrideDetailsJobNodeGroupConfigurationDetailsListJobConfigurationDetailsCommandLineArguments, * environmentVariables: jobRunJobNodeConfigurationOverrideDetailsJobNodeGroupConfigurationDetailsListJobConfigurationDetailsEnvironmentVariables, * maximumRuntimeInMinutes: jobRunJobNodeConfigurationOverrideDetailsJobNodeGroupConfigurationDetailsListJobConfigurationDetailsMaximumRuntimeInMinutes, * startupProbeDetails: { * commands: jobRunJobNodeConfigurationOverrideDetailsJobNodeGroupConfigurationDetailsListJobConfigurationDetailsStartupProbeDetailsCommand, * jobProbeCheckType: jobRunJobNodeConfigurationOverrideDetailsJobNodeGroupConfigurationDetailsListJobConfigurationDetailsStartupProbeDetailsJobProbeCheckType, * failureThreshold: Number(jobRunJobNodeConfigurationOverrideDetailsJobNodeGroupConfigurationDetailsListJobConfigurationDetailsStartupProbeDetailsFailureThreshold), * initialDelayInSeconds: Number(jobRunJobNodeConfigurationOverrideDetailsJobNodeGroupConfigurationDetailsListJobConfigurationDetailsStartupProbeDetailsInitialDelayInSeconds), * periodInSeconds: Number(jobRunJobNodeConfigurationOverrideDetailsJobNodeGroupConfigurationDetailsListJobConfigurationDetailsStartupProbeDetailsPeriodInSeconds), * }, * }, * jobEnvironmentConfigurationDetails: { * image: jobRunJobNodeConfigurationOverrideDetailsJobNodeGroupConfigurationDetailsListJobEnvironmentConfigurationDetailsImage, * jobEnvironmentType: jobRunJobNodeConfigurationOverrideDetailsJobNodeGroupConfigurationDetailsListJobEnvironmentConfigurationDetailsJobEnvironmentType, * cmds: jobRunJobNodeConfigurationOverrideDetailsJobNodeGroupConfigurationDetailsListJobEnvironmentConfigurationDetailsCmd, * entrypoints: jobRunJobNodeConfigurationOverrideDetailsJobNodeGroupConfigurationDetailsListJobEnvironmentConfigurationDetailsEntrypoint, * imageDigest: jobRunJobNodeConfigurationOverrideDetailsJobNodeGroupConfigurationDetailsListJobEnvironmentConfigurationDetailsImageDigest, * imageSignatureId: testImageSignature.id, * }, * jobInfrastructureConfigurationDetails: { * jobInfrastructureType: jobRunJobNodeConfigurationOverrideDetailsJobNodeGroupConfigurationDetailsListJobInfrastructureConfigurationDetailsJobInfrastructureType, * blockStorageSizeInGbs: Number(jobRunJobNodeConfigurationOverrideDetailsJobNodeGroupConfigurationDetailsListJobInfrastructureConfigurationDetailsBlockStorageSizeInGbs), * computeTargetId: testComputeTarget.id, * jobShapeConfigDetails: { * memoryInGbs: jobRunJobNodeConfigurationOverrideDetailsJobNodeGroupConfigurationDetailsListJobInfrastructureConfigurationDetailsJobShapeConfigDetailsMemoryInGbs, * ocpus: jobRunJobNodeConfigurationOverrideDetailsJobNodeGroupConfigurationDetailsListJobInfrastructureConfigurationDetailsJobShapeConfigDetailsOcpus, * }, * resourceConfiguration: { * resourceLimitConfiguration: { * memoryInGbs: jobRunJobNodeConfigurationOverrideDetailsJobNodeGroupConfigurationDetailsListJobInfrastructureConfigurationDetailsResourceConfigurationResourceLimitConfigurationMemoryInGbs, * ocpus: jobRunJobNodeConfigurationOverrideDetailsJobNodeGroupConfigurationDetailsListJobInfrastructureConfigurationDetailsResourceConfigurationResourceLimitConfigurationOcpus, * }, * resourceRequestConfiguration: { * gpus: Number(jobRunJobNodeConfigurationOverrideDetailsJobNodeGroupConfigurationDetailsListJobInfrastructureConfigurationDetailsResourceConfigurationResourceRequestConfigurationGpus), * memoryInGbs: jobRunJobNodeConfigurationOverrideDetailsJobNodeGroupConfigurationDetailsListJobInfrastructureConfigurationDetailsResourceConfigurationResourceRequestConfigurationMemoryInGbs, * ocpus: jobRunJobNodeConfigurationOverrideDetailsJobNodeGroupConfigurationDetailsListJobInfrastructureConfigurationDetailsResourceConfigurationResourceRequestConfigurationOcpus, * }, * }, * shapeName: testShape.name, * subnetId: testSubnet.id, * }, * minimumSuccessReplicas: Number(jobRunJobNodeConfigurationOverrideDetailsJobNodeGroupConfigurationDetailsListMinimumSuccessReplicas), * replicas: Number(jobRunJobNodeConfigurationOverrideDetailsJobNodeGroupConfigurationDetailsListReplicas), * }], * maximumRuntimeInMinutes: jobRunJobNodeConfigurationOverrideDetailsMaximumRuntimeInMinutes, * startupOrder: jobRunJobNodeConfigurationOverrideDetailsStartupOrder, * }, * jobStorageMountConfigurationOverrideDetailsList: [{ * destinationDirectoryName: jobRunJobStorageMountConfigurationOverrideDetailsListDestinationDirectoryName, * storageType: jobRunJobStorageMountConfigurationOverrideDetailsListStorageType, * bucket: jobRunJobStorageMountConfigurationOverrideDetailsListBucket, * destinationPath: jobRunJobStorageMountConfigurationOverrideDetailsListDestinationPath, * exportId: testExport.id, * mountTargetId: testMountTarget.id, * namespace: jobRunJobStorageMountConfigurationOverrideDetailsListNamespace, * prefix: jobRunJobStorageMountConfigurationOverrideDetailsListPrefix, * }], * opcParentRptUrl: jobRunOpcParentRptUrl, * }); * ``` * * ## Import * * JobRuns can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:DataScience/jobRun:JobRun test_job_run "id" * ``` */ export declare class JobRun extends pulumi.CustomResource { /** * Get an existing JobRun 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?: JobRunState, opts?: pulumi.CustomResourceOptions): JobRun; /** * Returns true if the given object is an instance of JobRun. 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 JobRun; /** * If set to true, do not wait for the JobRun to reach completion prior to returning. Can be useful for JobRuns with a long duration. */ readonly asynchronous: pulumi.Output; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where you want to create the job. */ readonly compartmentId: pulumi.Output; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the user who created the job run. */ readonly createdBy: pulumi.Output; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` */ readonly definedTags: pulumi.Output<{ [key: string]: string; }>; /** * (Updatable) A user-friendly display name for the resource. */ readonly displayName: pulumi.Output; /** * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ readonly freeformTags: pulumi.Output<{ [key: string]: string; }>; /** * The job configuration details */ readonly jobConfigurationOverrideDetails: pulumi.Output; /** * Environment configuration to capture job runtime dependencies. */ readonly jobEnvironmentConfigurationOverrideDetails: pulumi.Output; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the job to create a run for. */ readonly jobId: pulumi.Output; /** * The job infrastructure configuration details (shape, block storage, etc.) */ readonly jobInfrastructureConfigurationDetails: pulumi.Output; /** * The job infrastructure configuration details (shape, block storage, etc.) */ readonly jobInfrastructureConfigurationOverrideDetails: pulumi.Output; /** * Logging configuration for resource. */ readonly jobLogConfigurationOverrideDetails: pulumi.Output; /** * The job node configuration details */ readonly jobNodeConfigurationOverrideDetails: pulumi.Output; /** * Collection of JobStorageMountConfigurationDetails. */ readonly jobStorageMountConfigurationDetailsLists: pulumi.Output; /** * The state details of the node group. */ readonly lifecycleDetails: pulumi.Output; /** * Customer logging details for job run. */ readonly logDetails: pulumi.Output; /** * Collection of NodeGroupDetails */ readonly nodeGroupDetailsLists: pulumi.Output; /** * URL to fetch the Resource Principal Token from the parent resource. */ readonly opcParentRptUrl: pulumi.Output; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the project to associate the job run with. * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ readonly projectId: pulumi.Output; /** * The state of the job run. */ readonly state: pulumi.Output; /** * The date and time the job run was accepted in the timestamp format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). */ readonly timeAccepted: pulumi.Output; /** * The date and time the job run request was finished in the timestamp format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). */ readonly timeFinished: pulumi.Output; /** * The date and time the job run request was started in the timestamp format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). */ readonly timeStarted: pulumi.Output; /** * Create a JobRun 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: JobRunArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering JobRun resources. */ export interface JobRunState { /** * If set to true, do not wait for the JobRun to reach completion prior to returning. Can be useful for JobRuns with a long duration. */ asynchronous?: pulumi.Input; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where you want to create the job. */ compartmentId?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the user who created the job run. */ createdBy?: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) A user-friendly display name for the resource. */ displayName?: pulumi.Input; /** * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The job configuration details */ jobConfigurationOverrideDetails?: pulumi.Input; /** * Environment configuration to capture job runtime dependencies. */ jobEnvironmentConfigurationOverrideDetails?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the job to create a run for. */ jobId?: pulumi.Input; /** * The job infrastructure configuration details (shape, block storage, etc.) */ jobInfrastructureConfigurationDetails?: pulumi.Input[] | undefined>; /** * The job infrastructure configuration details (shape, block storage, etc.) */ jobInfrastructureConfigurationOverrideDetails?: pulumi.Input; /** * Logging configuration for resource. */ jobLogConfigurationOverrideDetails?: pulumi.Input; /** * The job node configuration details */ jobNodeConfigurationOverrideDetails?: pulumi.Input; /** * Collection of JobStorageMountConfigurationDetails. */ jobStorageMountConfigurationDetailsLists?: pulumi.Input[] | undefined>; /** * The state details of the node group. */ lifecycleDetails?: pulumi.Input; /** * Customer logging details for job run. */ logDetails?: pulumi.Input[] | undefined>; /** * Collection of NodeGroupDetails */ nodeGroupDetailsLists?: pulumi.Input[] | undefined>; /** * URL to fetch the Resource Principal Token from the parent resource. */ opcParentRptUrl?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the project to associate the job run with. * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ projectId?: pulumi.Input; /** * The state of the job run. */ state?: pulumi.Input; /** * The date and time the job run was accepted in the timestamp format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). */ timeAccepted?: pulumi.Input; /** * The date and time the job run request was finished in the timestamp format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). */ timeFinished?: pulumi.Input; /** * The date and time the job run request was started in the timestamp format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). */ timeStarted?: pulumi.Input; } /** * The set of arguments for constructing a JobRun resource. */ export interface JobRunArgs { /** * If set to true, do not wait for the JobRun to reach completion prior to returning. Can be useful for JobRuns with a long duration. */ asynchronous?: pulumi.Input; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where you want to create the job. */ compartmentId: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) A user-friendly display name for the resource. */ displayName?: pulumi.Input; /** * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The job configuration details */ jobConfigurationOverrideDetails?: pulumi.Input; /** * Environment configuration to capture job runtime dependencies. */ jobEnvironmentConfigurationOverrideDetails?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the job to create a run for. */ jobId: pulumi.Input; /** * The job infrastructure configuration details (shape, block storage, etc.) */ jobInfrastructureConfigurationOverrideDetails?: pulumi.Input; /** * Logging configuration for resource. */ jobLogConfigurationOverrideDetails?: pulumi.Input; /** * The job node configuration details */ jobNodeConfigurationOverrideDetails?: pulumi.Input; /** * URL to fetch the Resource Principal Token from the parent resource. */ opcParentRptUrl?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the project to associate the job run with. * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ projectId: pulumi.Input; } //# sourceMappingURL=jobRun.d.ts.map