1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataScience
  5. JobRun
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

oci.DataScience.JobRun

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

    This resource provides the Job Run resource in Oracle Cloud Infrastructure Data Science service.

    Creates a job run.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testJobRun = new oci.datascience.JobRun("testJobRun", {
        compartmentId: _var.compartment_id,
        jobId: oci_datascience_job.test_job.id,
        projectId: oci_datascience_project.test_project.id,
        asynchronous: _var.asynchronous,
        definedTags: {
            "Operations.CostCenter": "42",
        },
        displayName: _var.job_run_display_name,
        freeformTags: {
            Department: "Finance",
        },
        jobConfigurationOverrideDetails: {
            jobType: _var.job_run_job_configuration_override_details_job_type,
            commandLineArguments: _var.job_run_job_configuration_override_details_command_line_arguments,
            environmentVariables: _var.job_run_job_configuration_override_details_environment_variables,
            maximumRuntimeInMinutes: _var.job_run_job_configuration_override_details_maximum_runtime_in_minutes,
        },
        jobEnvironmentConfigurationOverrideDetails: {
            image: _var.job_run_job_environment_configuration_override_details_image,
            jobEnvironmentType: _var.job_run_job_environment_configuration_override_details_job_environment_type,
            cmds: _var.job_run_job_environment_configuration_override_details_cmd,
            entrypoints: _var.job_run_job_environment_configuration_override_details_entrypoint,
            imageDigest: _var.job_run_job_environment_configuration_override_details_image_digest,
            imageSignatureId: oci_datascience_image_signature.test_image_signature.id,
        },
        jobLogConfigurationOverrideDetails: {
            enableAutoLogCreation: _var.job_run_job_log_configuration_override_details_enable_auto_log_creation,
            enableLogging: _var.job_run_job_log_configuration_override_details_enable_logging,
            logGroupId: oci_logging_log_group.test_log_group.id,
            logId: oci_logging_log.test_log.id,
        },
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_job_run = oci.data_science.JobRun("testJobRun",
        compartment_id=var["compartment_id"],
        job_id=oci_datascience_job["test_job"]["id"],
        project_id=oci_datascience_project["test_project"]["id"],
        asynchronous=var["asynchronous"],
        defined_tags={
            "Operations.CostCenter": "42",
        },
        display_name=var["job_run_display_name"],
        freeform_tags={
            "Department": "Finance",
        },
        job_configuration_override_details=oci.data_science.JobRunJobConfigurationOverrideDetailsArgs(
            job_type=var["job_run_job_configuration_override_details_job_type"],
            command_line_arguments=var["job_run_job_configuration_override_details_command_line_arguments"],
            environment_variables=var["job_run_job_configuration_override_details_environment_variables"],
            maximum_runtime_in_minutes=var["job_run_job_configuration_override_details_maximum_runtime_in_minutes"],
        ),
        job_environment_configuration_override_details=oci.data_science.JobRunJobEnvironmentConfigurationOverrideDetailsArgs(
            image=var["job_run_job_environment_configuration_override_details_image"],
            job_environment_type=var["job_run_job_environment_configuration_override_details_job_environment_type"],
            cmds=var["job_run_job_environment_configuration_override_details_cmd"],
            entrypoints=var["job_run_job_environment_configuration_override_details_entrypoint"],
            image_digest=var["job_run_job_environment_configuration_override_details_image_digest"],
            image_signature_id=oci_datascience_image_signature["test_image_signature"]["id"],
        ),
        job_log_configuration_override_details=oci.data_science.JobRunJobLogConfigurationOverrideDetailsArgs(
            enable_auto_log_creation=var["job_run_job_log_configuration_override_details_enable_auto_log_creation"],
            enable_logging=var["job_run_job_log_configuration_override_details_enable_logging"],
            log_group_id=oci_logging_log_group["test_log_group"]["id"],
            log_id=oci_logging_log["test_log"]["id"],
        ))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/DataScience"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := DataScience.NewJobRun(ctx, "testJobRun", &DataScience.JobRunArgs{
    			CompartmentId: pulumi.Any(_var.Compartment_id),
    			JobId:         pulumi.Any(oci_datascience_job.Test_job.Id),
    			ProjectId:     pulumi.Any(oci_datascience_project.Test_project.Id),
    			Asynchronous:  pulumi.Any(_var.Asynchronous),
    			DefinedTags: pulumi.Map{
    				"Operations.CostCenter": pulumi.Any("42"),
    			},
    			DisplayName: pulumi.Any(_var.Job_run_display_name),
    			FreeformTags: pulumi.Map{
    				"Department": pulumi.Any("Finance"),
    			},
    			JobConfigurationOverrideDetails: &datascience.JobRunJobConfigurationOverrideDetailsArgs{
    				JobType:                 pulumi.Any(_var.Job_run_job_configuration_override_details_job_type),
    				CommandLineArguments:    pulumi.Any(_var.Job_run_job_configuration_override_details_command_line_arguments),
    				EnvironmentVariables:    pulumi.Any(_var.Job_run_job_configuration_override_details_environment_variables),
    				MaximumRuntimeInMinutes: pulumi.Any(_var.Job_run_job_configuration_override_details_maximum_runtime_in_minutes),
    			},
    			JobEnvironmentConfigurationOverrideDetails: &datascience.JobRunJobEnvironmentConfigurationOverrideDetailsArgs{
    				Image:              pulumi.Any(_var.Job_run_job_environment_configuration_override_details_image),
    				JobEnvironmentType: pulumi.Any(_var.Job_run_job_environment_configuration_override_details_job_environment_type),
    				Cmds:               pulumi.Any(_var.Job_run_job_environment_configuration_override_details_cmd),
    				Entrypoints:        pulumi.Any(_var.Job_run_job_environment_configuration_override_details_entrypoint),
    				ImageDigest:        pulumi.Any(_var.Job_run_job_environment_configuration_override_details_image_digest),
    				ImageSignatureId:   pulumi.Any(oci_datascience_image_signature.Test_image_signature.Id),
    			},
    			JobLogConfigurationOverrideDetails: &datascience.JobRunJobLogConfigurationOverrideDetailsArgs{
    				EnableAutoLogCreation: pulumi.Any(_var.Job_run_job_log_configuration_override_details_enable_auto_log_creation),
    				EnableLogging:         pulumi.Any(_var.Job_run_job_log_configuration_override_details_enable_logging),
    				LogGroupId:            pulumi.Any(oci_logging_log_group.Test_log_group.Id),
    				LogId:                 pulumi.Any(oci_logging_log.Test_log.Id),
    			},
    		})
    		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 testJobRun = new Oci.DataScience.JobRun("testJobRun", new()
        {
            CompartmentId = @var.Compartment_id,
            JobId = oci_datascience_job.Test_job.Id,
            ProjectId = oci_datascience_project.Test_project.Id,
            Asynchronous = @var.Asynchronous,
            DefinedTags = 
            {
                { "Operations.CostCenter", "42" },
            },
            DisplayName = @var.Job_run_display_name,
            FreeformTags = 
            {
                { "Department", "Finance" },
            },
            JobConfigurationOverrideDetails = new Oci.DataScience.Inputs.JobRunJobConfigurationOverrideDetailsArgs
            {
                JobType = @var.Job_run_job_configuration_override_details_job_type,
                CommandLineArguments = @var.Job_run_job_configuration_override_details_command_line_arguments,
                EnvironmentVariables = @var.Job_run_job_configuration_override_details_environment_variables,
                MaximumRuntimeInMinutes = @var.Job_run_job_configuration_override_details_maximum_runtime_in_minutes,
            },
            JobEnvironmentConfigurationOverrideDetails = new Oci.DataScience.Inputs.JobRunJobEnvironmentConfigurationOverrideDetailsArgs
            {
                Image = @var.Job_run_job_environment_configuration_override_details_image,
                JobEnvironmentType = @var.Job_run_job_environment_configuration_override_details_job_environment_type,
                Cmds = @var.Job_run_job_environment_configuration_override_details_cmd,
                Entrypoints = @var.Job_run_job_environment_configuration_override_details_entrypoint,
                ImageDigest = @var.Job_run_job_environment_configuration_override_details_image_digest,
                ImageSignatureId = oci_datascience_image_signature.Test_image_signature.Id,
            },
            JobLogConfigurationOverrideDetails = new Oci.DataScience.Inputs.JobRunJobLogConfigurationOverrideDetailsArgs
            {
                EnableAutoLogCreation = @var.Job_run_job_log_configuration_override_details_enable_auto_log_creation,
                EnableLogging = @var.Job_run_job_log_configuration_override_details_enable_logging,
                LogGroupId = oci_logging_log_group.Test_log_group.Id,
                LogId = oci_logging_log.Test_log.Id,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.DataScience.JobRun;
    import com.pulumi.oci.DataScience.JobRunArgs;
    import com.pulumi.oci.DataScience.inputs.JobRunJobConfigurationOverrideDetailsArgs;
    import com.pulumi.oci.DataScience.inputs.JobRunJobEnvironmentConfigurationOverrideDetailsArgs;
    import com.pulumi.oci.DataScience.inputs.JobRunJobLogConfigurationOverrideDetailsArgs;
    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 testJobRun = new JobRun("testJobRun", JobRunArgs.builder()        
                .compartmentId(var_.compartment_id())
                .jobId(oci_datascience_job.test_job().id())
                .projectId(oci_datascience_project.test_project().id())
                .asynchronous(var_.asynchronous())
                .definedTags(Map.of("Operations.CostCenter", "42"))
                .displayName(var_.job_run_display_name())
                .freeformTags(Map.of("Department", "Finance"))
                .jobConfigurationOverrideDetails(JobRunJobConfigurationOverrideDetailsArgs.builder()
                    .jobType(var_.job_run_job_configuration_override_details_job_type())
                    .commandLineArguments(var_.job_run_job_configuration_override_details_command_line_arguments())
                    .environmentVariables(var_.job_run_job_configuration_override_details_environment_variables())
                    .maximumRuntimeInMinutes(var_.job_run_job_configuration_override_details_maximum_runtime_in_minutes())
                    .build())
                .jobEnvironmentConfigurationOverrideDetails(JobRunJobEnvironmentConfigurationOverrideDetailsArgs.builder()
                    .image(var_.job_run_job_environment_configuration_override_details_image())
                    .jobEnvironmentType(var_.job_run_job_environment_configuration_override_details_job_environment_type())
                    .cmds(var_.job_run_job_environment_configuration_override_details_cmd())
                    .entrypoints(var_.job_run_job_environment_configuration_override_details_entrypoint())
                    .imageDigest(var_.job_run_job_environment_configuration_override_details_image_digest())
                    .imageSignatureId(oci_datascience_image_signature.test_image_signature().id())
                    .build())
                .jobLogConfigurationOverrideDetails(JobRunJobLogConfigurationOverrideDetailsArgs.builder()
                    .enableAutoLogCreation(var_.job_run_job_log_configuration_override_details_enable_auto_log_creation())
                    .enableLogging(var_.job_run_job_log_configuration_override_details_enable_logging())
                    .logGroupId(oci_logging_log_group.test_log_group().id())
                    .logId(oci_logging_log.test_log().id())
                    .build())
                .build());
    
        }
    }
    
    resources:
      testJobRun:
        type: oci:DataScience:JobRun
        properties:
          #Required
          compartmentId: ${var.compartment_id}
          jobId: ${oci_datascience_job.test_job.id}
          projectId: ${oci_datascience_project.test_project.id}
          #Optional
          asynchronous: ${var.asynchronous}
          definedTags:
            Operations.CostCenter: '42'
          displayName: ${var.job_run_display_name}
          freeformTags:
            Department: Finance
          jobConfigurationOverrideDetails:
            jobType: ${var.job_run_job_configuration_override_details_job_type}
            commandLineArguments: ${var.job_run_job_configuration_override_details_command_line_arguments}
            environmentVariables: ${var.job_run_job_configuration_override_details_environment_variables}
            maximumRuntimeInMinutes: ${var.job_run_job_configuration_override_details_maximum_runtime_in_minutes}
          jobEnvironmentConfigurationOverrideDetails:
            image: ${var.job_run_job_environment_configuration_override_details_image}
            jobEnvironmentType: ${var.job_run_job_environment_configuration_override_details_job_environment_type}
            cmds: ${var.job_run_job_environment_configuration_override_details_cmd}
            entrypoints: ${var.job_run_job_environment_configuration_override_details_entrypoint}
            imageDigest: ${var.job_run_job_environment_configuration_override_details_image_digest}
            imageSignatureId: ${oci_datascience_image_signature.test_image_signature.id}
          jobLogConfigurationOverrideDetails:
            enableAutoLogCreation: ${var.job_run_job_log_configuration_override_details_enable_auto_log_creation}
            enableLogging: ${var.job_run_job_log_configuration_override_details_enable_logging}
            logGroupId: ${oci_logging_log_group.test_log_group.id}
            logId: ${oci_logging_log.test_log.id}
    

    Create JobRun Resource

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

    Constructor syntax

    new JobRun(name: string, args: JobRunArgs, opts?: CustomResourceOptions);
    @overload
    def JobRun(resource_name: str,
               args: JobRunArgs,
               opts: Optional[ResourceOptions] = None)
    
    @overload
    def JobRun(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               compartment_id: Optional[str] = None,
               job_id: Optional[str] = None,
               project_id: Optional[str] = None,
               asynchronous: Optional[bool] = None,
               defined_tags: Optional[Mapping[str, Any]] = None,
               display_name: Optional[str] = None,
               freeform_tags: Optional[Mapping[str, Any]] = None,
               job_configuration_override_details: Optional[_datascience.JobRunJobConfigurationOverrideDetailsArgs] = None,
               job_environment_configuration_override_details: Optional[_datascience.JobRunJobEnvironmentConfigurationOverrideDetailsArgs] = None,
               job_log_configuration_override_details: Optional[_datascience.JobRunJobLogConfigurationOverrideDetailsArgs] = None)
    func NewJobRun(ctx *Context, name string, args JobRunArgs, opts ...ResourceOption) (*JobRun, error)
    public JobRun(string name, JobRunArgs args, CustomResourceOptions? opts = null)
    public JobRun(String name, JobRunArgs args)
    public JobRun(String name, JobRunArgs args, CustomResourceOptions options)
    
    type: oci:DataScience:JobRun
    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 JobRunArgs
    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 JobRunArgs
    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 JobRunArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args JobRunArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args JobRunArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

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

    var jobRunResource = new Oci.DataScience.JobRun("jobRunResource", new()
    {
        CompartmentId = "string",
        JobId = "string",
        ProjectId = "string",
        Asynchronous = false,
        DefinedTags = 
        {
            { "string", "any" },
        },
        DisplayName = "string",
        FreeformTags = 
        {
            { "string", "any" },
        },
        JobConfigurationOverrideDetails = new Oci.DataScience.Inputs.JobRunJobConfigurationOverrideDetailsArgs
        {
            JobType = "string",
            CommandLineArguments = "string",
            EnvironmentVariables = 
            {
                { "string", "any" },
            },
            MaximumRuntimeInMinutes = "string",
        },
        JobEnvironmentConfigurationOverrideDetails = new Oci.DataScience.Inputs.JobRunJobEnvironmentConfigurationOverrideDetailsArgs
        {
            Image = "string",
            JobEnvironmentType = "string",
            Cmds = new[]
            {
                "string",
            },
            Entrypoints = new[]
            {
                "string",
            },
            ImageDigest = "string",
            ImageSignatureId = "string",
        },
        JobLogConfigurationOverrideDetails = new Oci.DataScience.Inputs.JobRunJobLogConfigurationOverrideDetailsArgs
        {
            EnableAutoLogCreation = false,
            EnableLogging = false,
            LogGroupId = "string",
            LogId = "string",
        },
    });
    
    example, err := DataScience.NewJobRun(ctx, "jobRunResource", &DataScience.JobRunArgs{
    	CompartmentId: pulumi.String("string"),
    	JobId:         pulumi.String("string"),
    	ProjectId:     pulumi.String("string"),
    	Asynchronous:  pulumi.Bool(false),
    	DefinedTags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	DisplayName: pulumi.String("string"),
    	FreeformTags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	JobConfigurationOverrideDetails: &datascience.JobRunJobConfigurationOverrideDetailsArgs{
    		JobType:              pulumi.String("string"),
    		CommandLineArguments: pulumi.String("string"),
    		EnvironmentVariables: pulumi.Map{
    			"string": pulumi.Any("any"),
    		},
    		MaximumRuntimeInMinutes: pulumi.String("string"),
    	},
    	JobEnvironmentConfigurationOverrideDetails: &datascience.JobRunJobEnvironmentConfigurationOverrideDetailsArgs{
    		Image:              pulumi.String("string"),
    		JobEnvironmentType: pulumi.String("string"),
    		Cmds: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		Entrypoints: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		ImageDigest:      pulumi.String("string"),
    		ImageSignatureId: pulumi.String("string"),
    	},
    	JobLogConfigurationOverrideDetails: &datascience.JobRunJobLogConfigurationOverrideDetailsArgs{
    		EnableAutoLogCreation: pulumi.Bool(false),
    		EnableLogging:         pulumi.Bool(false),
    		LogGroupId:            pulumi.String("string"),
    		LogId:                 pulumi.String("string"),
    	},
    })
    
    var jobRunResource = new JobRun("jobRunResource", JobRunArgs.builder()        
        .compartmentId("string")
        .jobId("string")
        .projectId("string")
        .asynchronous(false)
        .definedTags(Map.of("string", "any"))
        .displayName("string")
        .freeformTags(Map.of("string", "any"))
        .jobConfigurationOverrideDetails(JobRunJobConfigurationOverrideDetailsArgs.builder()
            .jobType("string")
            .commandLineArguments("string")
            .environmentVariables(Map.of("string", "any"))
            .maximumRuntimeInMinutes("string")
            .build())
        .jobEnvironmentConfigurationOverrideDetails(JobRunJobEnvironmentConfigurationOverrideDetailsArgs.builder()
            .image("string")
            .jobEnvironmentType("string")
            .cmds("string")
            .entrypoints("string")
            .imageDigest("string")
            .imageSignatureId("string")
            .build())
        .jobLogConfigurationOverrideDetails(JobRunJobLogConfigurationOverrideDetailsArgs.builder()
            .enableAutoLogCreation(false)
            .enableLogging(false)
            .logGroupId("string")
            .logId("string")
            .build())
        .build());
    
    job_run_resource = oci.data_science.JobRun("jobRunResource",
        compartment_id="string",
        job_id="string",
        project_id="string",
        asynchronous=False,
        defined_tags={
            "string": "any",
        },
        display_name="string",
        freeform_tags={
            "string": "any",
        },
        job_configuration_override_details=oci.data_science.JobRunJobConfigurationOverrideDetailsArgs(
            job_type="string",
            command_line_arguments="string",
            environment_variables={
                "string": "any",
            },
            maximum_runtime_in_minutes="string",
        ),
        job_environment_configuration_override_details=oci.data_science.JobRunJobEnvironmentConfigurationOverrideDetailsArgs(
            image="string",
            job_environment_type="string",
            cmds=["string"],
            entrypoints=["string"],
            image_digest="string",
            image_signature_id="string",
        ),
        job_log_configuration_override_details=oci.data_science.JobRunJobLogConfigurationOverrideDetailsArgs(
            enable_auto_log_creation=False,
            enable_logging=False,
            log_group_id="string",
            log_id="string",
        ))
    
    const jobRunResource = new oci.datascience.JobRun("jobRunResource", {
        compartmentId: "string",
        jobId: "string",
        projectId: "string",
        asynchronous: false,
        definedTags: {
            string: "any",
        },
        displayName: "string",
        freeformTags: {
            string: "any",
        },
        jobConfigurationOverrideDetails: {
            jobType: "string",
            commandLineArguments: "string",
            environmentVariables: {
                string: "any",
            },
            maximumRuntimeInMinutes: "string",
        },
        jobEnvironmentConfigurationOverrideDetails: {
            image: "string",
            jobEnvironmentType: "string",
            cmds: ["string"],
            entrypoints: ["string"],
            imageDigest: "string",
            imageSignatureId: "string",
        },
        jobLogConfigurationOverrideDetails: {
            enableAutoLogCreation: false,
            enableLogging: false,
            logGroupId: "string",
            logId: "string",
        },
    });
    
    type: oci:DataScience:JobRun
    properties:
        asynchronous: false
        compartmentId: string
        definedTags:
            string: any
        displayName: string
        freeformTags:
            string: any
        jobConfigurationOverrideDetails:
            commandLineArguments: string
            environmentVariables:
                string: any
            jobType: string
            maximumRuntimeInMinutes: string
        jobEnvironmentConfigurationOverrideDetails:
            cmds:
                - string
            entrypoints:
                - string
            image: string
            imageDigest: string
            imageSignatureId: string
            jobEnvironmentType: string
        jobId: string
        jobLogConfigurationOverrideDetails:
            enableAutoLogCreation: false
            enableLogging: false
            logGroupId: string
            logId: string
        projectId: string
    

    JobRun 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 JobRun resource accepts the following input properties:

    CompartmentId string
    (Updatable) The OCID of the compartment where you want to create the job.
    JobId string
    The OCID of the job to create a run for.
    ProjectId string

    The OCID of the project to associate the job 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

    Asynchronous bool
    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.
    DefinedTags Dictionary<string, object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    (Updatable) A user-friendly display name for the resource.
    FreeformTags Dictionary<string, object>
    (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. Example: {"Department": "Finance"}
    JobConfigurationOverrideDetails JobRunJobConfigurationOverrideDetails
    The job configuration details
    JobEnvironmentConfigurationOverrideDetails JobRunJobEnvironmentConfigurationOverrideDetails
    Environment configuration to capture job runtime dependencies.
    JobLogConfigurationOverrideDetails JobRunJobLogConfigurationOverrideDetails
    Logging configuration for resource.
    CompartmentId string
    (Updatable) The OCID of the compartment where you want to create the job.
    JobId string
    The OCID of the job to create a run for.
    ProjectId string

    The OCID of the project to associate the job 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

    Asynchronous bool
    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.
    DefinedTags map[string]interface{}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    (Updatable) A user-friendly display name for the resource.
    FreeformTags map[string]interface{}
    (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. Example: {"Department": "Finance"}
    JobConfigurationOverrideDetails JobRunJobConfigurationOverrideDetailsArgs
    The job configuration details
    JobEnvironmentConfigurationOverrideDetails JobRunJobEnvironmentConfigurationOverrideDetailsArgs
    Environment configuration to capture job runtime dependencies.
    JobLogConfigurationOverrideDetails JobRunJobLogConfigurationOverrideDetailsArgs
    Logging configuration for resource.
    compartmentId String
    (Updatable) The OCID of the compartment where you want to create the job.
    jobId String
    The OCID of the job to create a run for.
    projectId String

    The OCID of the project to associate the job 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

    asynchronous Boolean
    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.
    definedTags Map<String,Object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    (Updatable) A user-friendly display name for the resource.
    freeformTags Map<String,Object>
    (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. Example: {"Department": "Finance"}
    jobConfigurationOverrideDetails JobRunJobConfigurationOverrideDetails
    The job configuration details
    jobEnvironmentConfigurationOverrideDetails JobRunJobEnvironmentConfigurationOverrideDetails
    Environment configuration to capture job runtime dependencies.
    jobLogConfigurationOverrideDetails JobRunJobLogConfigurationOverrideDetails
    Logging configuration for resource.
    compartmentId string
    (Updatable) The OCID of the compartment where you want to create the job.
    jobId string
    The OCID of the job to create a run for.
    projectId string

    The OCID of the project to associate the job 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

    asynchronous boolean
    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.
    definedTags {[key: string]: any}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName string
    (Updatable) A user-friendly display name for the resource.
    freeformTags {[key: string]: any}
    (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. Example: {"Department": "Finance"}
    jobConfigurationOverrideDetails JobRunJobConfigurationOverrideDetails
    The job configuration details
    jobEnvironmentConfigurationOverrideDetails JobRunJobEnvironmentConfigurationOverrideDetails
    Environment configuration to capture job runtime dependencies.
    jobLogConfigurationOverrideDetails JobRunJobLogConfigurationOverrideDetails
    Logging configuration for resource.
    compartment_id str
    (Updatable) The OCID of the compartment where you want to create the job.
    job_id str
    The OCID of the job to create a run for.
    project_id str

    The OCID of the project to associate the job 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

    asynchronous bool
    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.
    defined_tags Mapping[str, Any]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}
    display_name str
    (Updatable) A user-friendly display name for the resource.
    freeform_tags Mapping[str, Any]
    (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. Example: {"Department": "Finance"}
    job_configuration_override_details datascience.JobRunJobConfigurationOverrideDetailsArgs
    The job configuration details
    job_environment_configuration_override_details datascience.JobRunJobEnvironmentConfigurationOverrideDetailsArgs
    Environment configuration to capture job runtime dependencies.
    job_log_configuration_override_details datascience.JobRunJobLogConfigurationOverrideDetailsArgs
    Logging configuration for resource.
    compartmentId String
    (Updatable) The OCID of the compartment where you want to create the job.
    jobId String
    The OCID of the job to create a run for.
    projectId String

    The OCID of the project to associate the job 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

    asynchronous Boolean
    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.
    definedTags Map<Any>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    (Updatable) A user-friendly display name for the resource.
    freeformTags Map<Any>
    (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. Example: {"Department": "Finance"}
    jobConfigurationOverrideDetails Property Map
    The job configuration details
    jobEnvironmentConfigurationOverrideDetails Property Map
    Environment configuration to capture job runtime dependencies.
    jobLogConfigurationOverrideDetails Property Map
    Logging configuration for resource.

    Outputs

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

    CreatedBy string
    The OCID of the user who created the job run.
    Id string
    The provider-assigned unique ID for this managed resource.
    JobInfrastructureConfigurationDetails List<JobRunJobInfrastructureConfigurationDetail>
    The job infrastructure configuration details (shape, block storage, etc.)
    JobStorageMountConfigurationDetailsLists List<JobRunJobStorageMountConfigurationDetailsList>
    Collection of JobStorageMountConfigurationDetails.
    LifecycleDetails string
    Details of the state of the job run.
    LogDetails List<JobRunLogDetail>
    Customer logging details for job run.
    State string
    The state of the job run.
    TimeAccepted string
    The date and time the job run was accepted in the timestamp format defined by RFC3339.
    TimeFinished string
    The date and time the job run request was finished in the timestamp format defined by RFC3339.
    TimeStarted string
    The date and time the job run request was started in the timestamp format defined by RFC3339.
    CreatedBy string
    The OCID of the user who created the job run.
    Id string
    The provider-assigned unique ID for this managed resource.
    JobInfrastructureConfigurationDetails []JobRunJobInfrastructureConfigurationDetail
    The job infrastructure configuration details (shape, block storage, etc.)
    JobStorageMountConfigurationDetailsLists []JobRunJobStorageMountConfigurationDetailsList
    Collection of JobStorageMountConfigurationDetails.
    LifecycleDetails string
    Details of the state of the job run.
    LogDetails []JobRunLogDetail
    Customer logging details for job run.
    State string
    The state of the job run.
    TimeAccepted string
    The date and time the job run was accepted in the timestamp format defined by RFC3339.
    TimeFinished string
    The date and time the job run request was finished in the timestamp format defined by RFC3339.
    TimeStarted string
    The date and time the job run request was started in the timestamp format defined by RFC3339.
    createdBy String
    The OCID of the user who created the job run.
    id String
    The provider-assigned unique ID for this managed resource.
    jobInfrastructureConfigurationDetails List<JobRunJobInfrastructureConfigurationDetail>
    The job infrastructure configuration details (shape, block storage, etc.)
    jobStorageMountConfigurationDetailsLists List<JobRunJobStorageMountConfigurationDetailsList>
    Collection of JobStorageMountConfigurationDetails.
    lifecycleDetails String
    Details of the state of the job run.
    logDetails List<JobRunLogDetail>
    Customer logging details for job run.
    state String
    The state of the job run.
    timeAccepted String
    The date and time the job run was accepted in the timestamp format defined by RFC3339.
    timeFinished String
    The date and time the job run request was finished in the timestamp format defined by RFC3339.
    timeStarted String
    The date and time the job run request was started in the timestamp format defined by RFC3339.
    createdBy string
    The OCID of the user who created the job run.
    id string
    The provider-assigned unique ID for this managed resource.
    jobInfrastructureConfigurationDetails JobRunJobInfrastructureConfigurationDetail[]
    The job infrastructure configuration details (shape, block storage, etc.)
    jobStorageMountConfigurationDetailsLists JobRunJobStorageMountConfigurationDetailsList[]
    Collection of JobStorageMountConfigurationDetails.
    lifecycleDetails string
    Details of the state of the job run.
    logDetails JobRunLogDetail[]
    Customer logging details for job run.
    state string
    The state of the job run.
    timeAccepted string
    The date and time the job run was accepted in the timestamp format defined by RFC3339.
    timeFinished string
    The date and time the job run request was finished in the timestamp format defined by RFC3339.
    timeStarted string
    The date and time the job run request was started in the timestamp format defined by RFC3339.
    created_by str
    The OCID of the user who created the job run.
    id str
    The provider-assigned unique ID for this managed resource.
    job_infrastructure_configuration_details Sequence[datascience.JobRunJobInfrastructureConfigurationDetail]
    The job infrastructure configuration details (shape, block storage, etc.)
    job_storage_mount_configuration_details_lists Sequence[datascience.JobRunJobStorageMountConfigurationDetailsList]
    Collection of JobStorageMountConfigurationDetails.
    lifecycle_details str
    Details of the state of the job run.
    log_details Sequence[datascience.JobRunLogDetail]
    Customer logging details for job run.
    state str
    The state of the job run.
    time_accepted str
    The date and time the job run was accepted in the timestamp format defined by RFC3339.
    time_finished str
    The date and time the job run request was finished in the timestamp format defined by RFC3339.
    time_started str
    The date and time the job run request was started in the timestamp format defined by RFC3339.
    createdBy String
    The OCID of the user who created the job run.
    id String
    The provider-assigned unique ID for this managed resource.
    jobInfrastructureConfigurationDetails List<Property Map>
    The job infrastructure configuration details (shape, block storage, etc.)
    jobStorageMountConfigurationDetailsLists List<Property Map>
    Collection of JobStorageMountConfigurationDetails.
    lifecycleDetails String
    Details of the state of the job run.
    logDetails List<Property Map>
    Customer logging details for job run.
    state String
    The state of the job run.
    timeAccepted String
    The date and time the job run was accepted in the timestamp format defined by RFC3339.
    timeFinished String
    The date and time the job run request was finished in the timestamp format defined by RFC3339.
    timeStarted String
    The date and time the job run request was started in the timestamp format defined by RFC3339.

    Look up Existing JobRun Resource

    Get an existing JobRun 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?: JobRunState, opts?: CustomResourceOptions): JobRun
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            asynchronous: Optional[bool] = None,
            compartment_id: Optional[str] = None,
            created_by: Optional[str] = None,
            defined_tags: Optional[Mapping[str, Any]] = None,
            display_name: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, Any]] = None,
            job_configuration_override_details: Optional[_datascience.JobRunJobConfigurationOverrideDetailsArgs] = None,
            job_environment_configuration_override_details: Optional[_datascience.JobRunJobEnvironmentConfigurationOverrideDetailsArgs] = None,
            job_id: Optional[str] = None,
            job_infrastructure_configuration_details: Optional[Sequence[_datascience.JobRunJobInfrastructureConfigurationDetailArgs]] = None,
            job_log_configuration_override_details: Optional[_datascience.JobRunJobLogConfigurationOverrideDetailsArgs] = None,
            job_storage_mount_configuration_details_lists: Optional[Sequence[_datascience.JobRunJobStorageMountConfigurationDetailsListArgs]] = None,
            lifecycle_details: Optional[str] = None,
            log_details: Optional[Sequence[_datascience.JobRunLogDetailArgs]] = None,
            project_id: Optional[str] = None,
            state: Optional[str] = None,
            time_accepted: Optional[str] = None,
            time_finished: Optional[str] = None,
            time_started: Optional[str] = None) -> JobRun
    func GetJobRun(ctx *Context, name string, id IDInput, state *JobRunState, opts ...ResourceOption) (*JobRun, error)
    public static JobRun Get(string name, Input<string> id, JobRunState? state, CustomResourceOptions? opts = null)
    public static JobRun get(String name, Output<String> id, JobRunState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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:
    Asynchronous bool
    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.
    CompartmentId string
    (Updatable) The OCID of the compartment where you want to create the job.
    CreatedBy string
    The OCID of the user who created the job run.
    DefinedTags Dictionary<string, object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    (Updatable) A user-friendly display name for the resource.
    FreeformTags Dictionary<string, object>
    (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. Example: {"Department": "Finance"}
    JobConfigurationOverrideDetails JobRunJobConfigurationOverrideDetails
    The job configuration details
    JobEnvironmentConfigurationOverrideDetails JobRunJobEnvironmentConfigurationOverrideDetails
    Environment configuration to capture job runtime dependencies.
    JobId string
    The OCID of the job to create a run for.
    JobInfrastructureConfigurationDetails List<JobRunJobInfrastructureConfigurationDetail>
    The job infrastructure configuration details (shape, block storage, etc.)
    JobLogConfigurationOverrideDetails JobRunJobLogConfigurationOverrideDetails
    Logging configuration for resource.
    JobStorageMountConfigurationDetailsLists List<JobRunJobStorageMountConfigurationDetailsList>
    Collection of JobStorageMountConfigurationDetails.
    LifecycleDetails string
    Details of the state of the job run.
    LogDetails List<JobRunLogDetail>
    Customer logging details for job run.
    ProjectId string

    The OCID of the project to associate the job 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

    State string
    The state of the job run.
    TimeAccepted string
    The date and time the job run was accepted in the timestamp format defined by RFC3339.
    TimeFinished string
    The date and time the job run request was finished in the timestamp format defined by RFC3339.
    TimeStarted string
    The date and time the job run request was started in the timestamp format defined by RFC3339.
    Asynchronous bool
    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.
    CompartmentId string
    (Updatable) The OCID of the compartment where you want to create the job.
    CreatedBy string
    The OCID of the user who created the job run.
    DefinedTags map[string]interface{}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    (Updatable) A user-friendly display name for the resource.
    FreeformTags map[string]interface{}
    (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. Example: {"Department": "Finance"}
    JobConfigurationOverrideDetails JobRunJobConfigurationOverrideDetailsArgs
    The job configuration details
    JobEnvironmentConfigurationOverrideDetails JobRunJobEnvironmentConfigurationOverrideDetailsArgs
    Environment configuration to capture job runtime dependencies.
    JobId string
    The OCID of the job to create a run for.
    JobInfrastructureConfigurationDetails []JobRunJobInfrastructureConfigurationDetailArgs
    The job infrastructure configuration details (shape, block storage, etc.)
    JobLogConfigurationOverrideDetails JobRunJobLogConfigurationOverrideDetailsArgs
    Logging configuration for resource.
    JobStorageMountConfigurationDetailsLists []JobRunJobStorageMountConfigurationDetailsListArgs
    Collection of JobStorageMountConfigurationDetails.
    LifecycleDetails string
    Details of the state of the job run.
    LogDetails []JobRunLogDetailArgs
    Customer logging details for job run.
    ProjectId string

    The OCID of the project to associate the job 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

    State string
    The state of the job run.
    TimeAccepted string
    The date and time the job run was accepted in the timestamp format defined by RFC3339.
    TimeFinished string
    The date and time the job run request was finished in the timestamp format defined by RFC3339.
    TimeStarted string
    The date and time the job run request was started in the timestamp format defined by RFC3339.
    asynchronous Boolean
    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.
    compartmentId String
    (Updatable) The OCID of the compartment where you want to create the job.
    createdBy String
    The OCID of the user who created the job run.
    definedTags Map<String,Object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    (Updatable) A user-friendly display name for the resource.
    freeformTags Map<String,Object>
    (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. Example: {"Department": "Finance"}
    jobConfigurationOverrideDetails JobRunJobConfigurationOverrideDetails
    The job configuration details
    jobEnvironmentConfigurationOverrideDetails JobRunJobEnvironmentConfigurationOverrideDetails
    Environment configuration to capture job runtime dependencies.
    jobId String
    The OCID of the job to create a run for.
    jobInfrastructureConfigurationDetails List<JobRunJobInfrastructureConfigurationDetail>
    The job infrastructure configuration details (shape, block storage, etc.)
    jobLogConfigurationOverrideDetails JobRunJobLogConfigurationOverrideDetails
    Logging configuration for resource.
    jobStorageMountConfigurationDetailsLists List<JobRunJobStorageMountConfigurationDetailsList>
    Collection of JobStorageMountConfigurationDetails.
    lifecycleDetails String
    Details of the state of the job run.
    logDetails List<JobRunLogDetail>
    Customer logging details for job run.
    projectId String

    The OCID of the project to associate the job 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

    state String
    The state of the job run.
    timeAccepted String
    The date and time the job run was accepted in the timestamp format defined by RFC3339.
    timeFinished String
    The date and time the job run request was finished in the timestamp format defined by RFC3339.
    timeStarted String
    The date and time the job run request was started in the timestamp format defined by RFC3339.
    asynchronous boolean
    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.
    compartmentId string
    (Updatable) The OCID of the compartment where you want to create the job.
    createdBy string
    The OCID of the user who created the job run.
    definedTags {[key: string]: any}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName string
    (Updatable) A user-friendly display name for the resource.
    freeformTags {[key: string]: any}
    (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. Example: {"Department": "Finance"}
    jobConfigurationOverrideDetails JobRunJobConfigurationOverrideDetails
    The job configuration details
    jobEnvironmentConfigurationOverrideDetails JobRunJobEnvironmentConfigurationOverrideDetails
    Environment configuration to capture job runtime dependencies.
    jobId string
    The OCID of the job to create a run for.
    jobInfrastructureConfigurationDetails JobRunJobInfrastructureConfigurationDetail[]
    The job infrastructure configuration details (shape, block storage, etc.)
    jobLogConfigurationOverrideDetails JobRunJobLogConfigurationOverrideDetails
    Logging configuration for resource.
    jobStorageMountConfigurationDetailsLists JobRunJobStorageMountConfigurationDetailsList[]
    Collection of JobStorageMountConfigurationDetails.
    lifecycleDetails string
    Details of the state of the job run.
    logDetails JobRunLogDetail[]
    Customer logging details for job run.
    projectId string

    The OCID of the project to associate the job 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

    state string
    The state of the job run.
    timeAccepted string
    The date and time the job run was accepted in the timestamp format defined by RFC3339.
    timeFinished string
    The date and time the job run request was finished in the timestamp format defined by RFC3339.
    timeStarted string
    The date and time the job run request was started in the timestamp format defined by RFC3339.
    asynchronous bool
    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.
    compartment_id str
    (Updatable) The OCID of the compartment where you want to create the job.
    created_by str
    The OCID of the user who created the job run.
    defined_tags Mapping[str, Any]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}
    display_name str
    (Updatable) A user-friendly display name for the resource.
    freeform_tags Mapping[str, Any]
    (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. Example: {"Department": "Finance"}
    job_configuration_override_details datascience.JobRunJobConfigurationOverrideDetailsArgs
    The job configuration details
    job_environment_configuration_override_details datascience.JobRunJobEnvironmentConfigurationOverrideDetailsArgs
    Environment configuration to capture job runtime dependencies.
    job_id str
    The OCID of the job to create a run for.
    job_infrastructure_configuration_details Sequence[datascience.JobRunJobInfrastructureConfigurationDetailArgs]
    The job infrastructure configuration details (shape, block storage, etc.)
    job_log_configuration_override_details datascience.JobRunJobLogConfigurationOverrideDetailsArgs
    Logging configuration for resource.
    job_storage_mount_configuration_details_lists Sequence[datascience.JobRunJobStorageMountConfigurationDetailsListArgs]
    Collection of JobStorageMountConfigurationDetails.
    lifecycle_details str
    Details of the state of the job run.
    log_details Sequence[datascience.JobRunLogDetailArgs]
    Customer logging details for job run.
    project_id str

    The OCID of the project to associate the job 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

    state str
    The state of the job run.
    time_accepted str
    The date and time the job run was accepted in the timestamp format defined by RFC3339.
    time_finished str
    The date and time the job run request was finished in the timestamp format defined by RFC3339.
    time_started str
    The date and time the job run request was started in the timestamp format defined by RFC3339.
    asynchronous Boolean
    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.
    compartmentId String
    (Updatable) The OCID of the compartment where you want to create the job.
    createdBy String
    The OCID of the user who created the job run.
    definedTags Map<Any>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    (Updatable) A user-friendly display name for the resource.
    freeformTags Map<Any>
    (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. Example: {"Department": "Finance"}
    jobConfigurationOverrideDetails Property Map
    The job configuration details
    jobEnvironmentConfigurationOverrideDetails Property Map
    Environment configuration to capture job runtime dependencies.
    jobId String
    The OCID of the job to create a run for.
    jobInfrastructureConfigurationDetails List<Property Map>
    The job infrastructure configuration details (shape, block storage, etc.)
    jobLogConfigurationOverrideDetails Property Map
    Logging configuration for resource.
    jobStorageMountConfigurationDetailsLists List<Property Map>
    Collection of JobStorageMountConfigurationDetails.
    lifecycleDetails String
    Details of the state of the job run.
    logDetails List<Property Map>
    Customer logging details for job run.
    projectId String

    The OCID of the project to associate the job 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

    state String
    The state of the job run.
    timeAccepted String
    The date and time the job run was accepted in the timestamp format defined by RFC3339.
    timeFinished String
    The date and time the job run request was finished in the timestamp format defined by RFC3339.
    timeStarted String
    The date and time the job run request was started in the timestamp format defined by RFC3339.

    Supporting Types

    JobRunJobConfigurationOverrideDetails, JobRunJobConfigurationOverrideDetailsArgs

    JobType string
    The type of job.
    CommandLineArguments string
    The arguments to pass to the job.
    EnvironmentVariables Dictionary<string, object>
    Environment variables to set for the job.
    MaximumRuntimeInMinutes string
    A time bound for the execution of the job. Timer starts when the job becomes active.
    JobType string
    The type of job.
    CommandLineArguments string
    The arguments to pass to the job.
    EnvironmentVariables map[string]interface{}
    Environment variables to set for the job.
    MaximumRuntimeInMinutes string
    A time bound for the execution of the job. Timer starts when the job becomes active.
    jobType String
    The type of job.
    commandLineArguments String
    The arguments to pass to the job.
    environmentVariables Map<String,Object>
    Environment variables to set for the job.
    maximumRuntimeInMinutes String
    A time bound for the execution of the job. Timer starts when the job becomes active.
    jobType string
    The type of job.
    commandLineArguments string
    The arguments to pass to the job.
    environmentVariables {[key: string]: any}
    Environment variables to set for the job.
    maximumRuntimeInMinutes string
    A time bound for the execution of the job. Timer starts when the job becomes active.
    job_type str
    The type of job.
    command_line_arguments str
    The arguments to pass to the job.
    environment_variables Mapping[str, Any]
    Environment variables to set for the job.
    maximum_runtime_in_minutes str
    A time bound for the execution of the job. Timer starts when the job becomes active.
    jobType String
    The type of job.
    commandLineArguments String
    The arguments to pass to the job.
    environmentVariables Map<Any>
    Environment variables to set for the job.
    maximumRuntimeInMinutes String
    A time bound for the execution of the job. Timer starts when the job becomes active.

    JobRunJobEnvironmentConfigurationOverrideDetails, JobRunJobEnvironmentConfigurationOverrideDetailsArgs

    Image string
    The full path to the Oracle Container Repository (OCIR) registry, image, and tag in a canonical format. Acceptable format: <region>.ocir.io/<registry>/<image>:<tag> <region>.ocir.io/<registry>/<image>:<tag>@digest
    JobEnvironmentType string
    The environment configuration type used for job runtime.
    Cmds List<string>
    The container image run CMD as a list of strings. Use CMD as arguments to the ENTRYPOINT or the only command to run in the absence of an ENTRYPOINT. The combined size of CMD and ENTRYPOINT must be less than 2048 bytes.
    Entrypoints List<string>
    The container image run ENTRYPOINT as a list of strings. Accept the CMD as extra arguments. The combined size of CMD and ENTRYPOINT must be less than 2048 bytes. More information on how CMD and ENTRYPOINT interact are here.
    ImageDigest string
    The digest of the container image. For example, sha256:881303a6b2738834d795a32b4a98eb0e5e3d1cad590a712d1e04f9b2fa90a030
    ImageSignatureId string
    OCID of the container image signature
    Image string
    The full path to the Oracle Container Repository (OCIR) registry, image, and tag in a canonical format. Acceptable format: <region>.ocir.io/<registry>/<image>:<tag> <region>.ocir.io/<registry>/<image>:<tag>@digest
    JobEnvironmentType string
    The environment configuration type used for job runtime.
    Cmds []string
    The container image run CMD as a list of strings. Use CMD as arguments to the ENTRYPOINT or the only command to run in the absence of an ENTRYPOINT. The combined size of CMD and ENTRYPOINT must be less than 2048 bytes.
    Entrypoints []string
    The container image run ENTRYPOINT as a list of strings. Accept the CMD as extra arguments. The combined size of CMD and ENTRYPOINT must be less than 2048 bytes. More information on how CMD and ENTRYPOINT interact are here.
    ImageDigest string
    The digest of the container image. For example, sha256:881303a6b2738834d795a32b4a98eb0e5e3d1cad590a712d1e04f9b2fa90a030
    ImageSignatureId string
    OCID of the container image signature
    image String
    The full path to the Oracle Container Repository (OCIR) registry, image, and tag in a canonical format. Acceptable format: <region>.ocir.io/<registry>/<image>:<tag> <region>.ocir.io/<registry>/<image>:<tag>@digest
    jobEnvironmentType String
    The environment configuration type used for job runtime.
    cmds List<String>
    The container image run CMD as a list of strings. Use CMD as arguments to the ENTRYPOINT or the only command to run in the absence of an ENTRYPOINT. The combined size of CMD and ENTRYPOINT must be less than 2048 bytes.
    entrypoints List<String>
    The container image run ENTRYPOINT as a list of strings. Accept the CMD as extra arguments. The combined size of CMD and ENTRYPOINT must be less than 2048 bytes. More information on how CMD and ENTRYPOINT interact are here.
    imageDigest String
    The digest of the container image. For example, sha256:881303a6b2738834d795a32b4a98eb0e5e3d1cad590a712d1e04f9b2fa90a030
    imageSignatureId String
    OCID of the container image signature
    image string
    The full path to the Oracle Container Repository (OCIR) registry, image, and tag in a canonical format. Acceptable format: <region>.ocir.io/<registry>/<image>:<tag> <region>.ocir.io/<registry>/<image>:<tag>@digest
    jobEnvironmentType string
    The environment configuration type used for job runtime.
    cmds string[]
    The container image run CMD as a list of strings. Use CMD as arguments to the ENTRYPOINT or the only command to run in the absence of an ENTRYPOINT. The combined size of CMD and ENTRYPOINT must be less than 2048 bytes.
    entrypoints string[]
    The container image run ENTRYPOINT as a list of strings. Accept the CMD as extra arguments. The combined size of CMD and ENTRYPOINT must be less than 2048 bytes. More information on how CMD and ENTRYPOINT interact are here.
    imageDigest string
    The digest of the container image. For example, sha256:881303a6b2738834d795a32b4a98eb0e5e3d1cad590a712d1e04f9b2fa90a030
    imageSignatureId string
    OCID of the container image signature
    image str
    The full path to the Oracle Container Repository (OCIR) registry, image, and tag in a canonical format. Acceptable format: <region>.ocir.io/<registry>/<image>:<tag> <region>.ocir.io/<registry>/<image>:<tag>@digest
    job_environment_type str
    The environment configuration type used for job runtime.
    cmds Sequence[str]
    The container image run CMD as a list of strings. Use CMD as arguments to the ENTRYPOINT or the only command to run in the absence of an ENTRYPOINT. The combined size of CMD and ENTRYPOINT must be less than 2048 bytes.
    entrypoints Sequence[str]
    The container image run ENTRYPOINT as a list of strings. Accept the CMD as extra arguments. The combined size of CMD and ENTRYPOINT must be less than 2048 bytes. More information on how CMD and ENTRYPOINT interact are here.
    image_digest str
    The digest of the container image. For example, sha256:881303a6b2738834d795a32b4a98eb0e5e3d1cad590a712d1e04f9b2fa90a030
    image_signature_id str
    OCID of the container image signature
    image String
    The full path to the Oracle Container Repository (OCIR) registry, image, and tag in a canonical format. Acceptable format: <region>.ocir.io/<registry>/<image>:<tag> <region>.ocir.io/<registry>/<image>:<tag>@digest
    jobEnvironmentType String
    The environment configuration type used for job runtime.
    cmds List<String>
    The container image run CMD as a list of strings. Use CMD as arguments to the ENTRYPOINT or the only command to run in the absence of an ENTRYPOINT. The combined size of CMD and ENTRYPOINT must be less than 2048 bytes.
    entrypoints List<String>
    The container image run ENTRYPOINT as a list of strings. Accept the CMD as extra arguments. The combined size of CMD and ENTRYPOINT must be less than 2048 bytes. More information on how CMD and ENTRYPOINT interact are here.
    imageDigest String
    The digest of the container image. For example, sha256:881303a6b2738834d795a32b4a98eb0e5e3d1cad590a712d1e04f9b2fa90a030
    imageSignatureId String
    OCID of the container image signature

    JobRunJobInfrastructureConfigurationDetail, JobRunJobInfrastructureConfigurationDetailArgs

    BlockStorageSizeInGbs int
    The size of the block storage volume to attach to the instance running the job
    JobInfrastructureType string
    The infrastructure type used for job run.
    JobShapeConfigDetails List<JobRunJobInfrastructureConfigurationDetailJobShapeConfigDetail>
    Details for the job run shape configuration. Specify only when a flex shape is selected.
    ShapeName string
    The shape used to launch the job run instances.
    SubnetId string
    The subnet to create a secondary vnic in to attach to the instance running the job
    BlockStorageSizeInGbs int
    The size of the block storage volume to attach to the instance running the job
    JobInfrastructureType string
    The infrastructure type used for job run.
    JobShapeConfigDetails []JobRunJobInfrastructureConfigurationDetailJobShapeConfigDetail
    Details for the job run shape configuration. Specify only when a flex shape is selected.
    ShapeName string
    The shape used to launch the job run instances.
    SubnetId string
    The subnet to create a secondary vnic in to attach to the instance running the job
    blockStorageSizeInGbs Integer
    The size of the block storage volume to attach to the instance running the job
    jobInfrastructureType String
    The infrastructure type used for job run.
    jobShapeConfigDetails List<JobRunJobInfrastructureConfigurationDetailJobShapeConfigDetail>
    Details for the job run shape configuration. Specify only when a flex shape is selected.
    shapeName String
    The shape used to launch the job run instances.
    subnetId String
    The subnet to create a secondary vnic in to attach to the instance running the job
    blockStorageSizeInGbs number
    The size of the block storage volume to attach to the instance running the job
    jobInfrastructureType string
    The infrastructure type used for job run.
    jobShapeConfigDetails JobRunJobInfrastructureConfigurationDetailJobShapeConfigDetail[]
    Details for the job run shape configuration. Specify only when a flex shape is selected.
    shapeName string
    The shape used to launch the job run instances.
    subnetId string
    The subnet to create a secondary vnic in to attach to the instance running the job
    block_storage_size_in_gbs int
    The size of the block storage volume to attach to the instance running the job
    job_infrastructure_type str
    The infrastructure type used for job run.
    job_shape_config_details Sequence[datascience.JobRunJobInfrastructureConfigurationDetailJobShapeConfigDetail]
    Details for the job run shape configuration. Specify only when a flex shape is selected.
    shape_name str
    The shape used to launch the job run instances.
    subnet_id str
    The subnet to create a secondary vnic in to attach to the instance running the job
    blockStorageSizeInGbs Number
    The size of the block storage volume to attach to the instance running the job
    jobInfrastructureType String
    The infrastructure type used for job run.
    jobShapeConfigDetails List<Property Map>
    Details for the job run shape configuration. Specify only when a flex shape is selected.
    shapeName String
    The shape used to launch the job run instances.
    subnetId String
    The subnet to create a secondary vnic in to attach to the instance running the job

    JobRunJobInfrastructureConfigurationDetailJobShapeConfigDetail, JobRunJobInfrastructureConfigurationDetailJobShapeConfigDetailArgs

    MemoryInGbs double
    The total amount of memory available to the job run instance, in gigabytes.
    Ocpus double
    The total number of OCPUs available to the job run instance.
    MemoryInGbs float64
    The total amount of memory available to the job run instance, in gigabytes.
    Ocpus float64
    The total number of OCPUs available to the job run instance.
    memoryInGbs Double
    The total amount of memory available to the job run instance, in gigabytes.
    ocpus Double
    The total number of OCPUs available to the job run instance.
    memoryInGbs number
    The total amount of memory available to the job run instance, in gigabytes.
    ocpus number
    The total number of OCPUs available to the job run instance.
    memory_in_gbs float
    The total amount of memory available to the job run instance, in gigabytes.
    ocpus float
    The total number of OCPUs available to the job run instance.
    memoryInGbs Number
    The total amount of memory available to the job run instance, in gigabytes.
    ocpus Number
    The total number of OCPUs available to the job run instance.

    JobRunJobLogConfigurationOverrideDetails, JobRunJobLogConfigurationOverrideDetailsArgs

    EnableAutoLogCreation bool
    If automatic on-behalf-of log object creation is enabled for job runs.
    EnableLogging bool
    If customer logging is enabled for job runs.
    LogGroupId string
    The log group id for where log objects are for job runs.
    LogId string
    The log id the job run will push logs too.
    EnableAutoLogCreation bool
    If automatic on-behalf-of log object creation is enabled for job runs.
    EnableLogging bool
    If customer logging is enabled for job runs.
    LogGroupId string
    The log group id for where log objects are for job runs.
    LogId string
    The log id the job run will push logs too.
    enableAutoLogCreation Boolean
    If automatic on-behalf-of log object creation is enabled for job runs.
    enableLogging Boolean
    If customer logging is enabled for job runs.
    logGroupId String
    The log group id for where log objects are for job runs.
    logId String
    The log id the job run will push logs too.
    enableAutoLogCreation boolean
    If automatic on-behalf-of log object creation is enabled for job runs.
    enableLogging boolean
    If customer logging is enabled for job runs.
    logGroupId string
    The log group id for where log objects are for job runs.
    logId string
    The log id the job run will push logs too.
    enable_auto_log_creation bool
    If automatic on-behalf-of log object creation is enabled for job runs.
    enable_logging bool
    If customer logging is enabled for job runs.
    log_group_id str
    The log group id for where log objects are for job runs.
    log_id str
    The log id the job run will push logs too.
    enableAutoLogCreation Boolean
    If automatic on-behalf-of log object creation is enabled for job runs.
    enableLogging Boolean
    If customer logging is enabled for job runs.
    logGroupId String
    The log group id for where log objects are for job runs.
    logId String
    The log id the job run will push logs too.

    JobRunJobStorageMountConfigurationDetailsList, JobRunJobStorageMountConfigurationDetailsListArgs

    Bucket string
    The object storage bucket
    DestinationDirectoryName string
    The local directory name to be mounted
    DestinationPath string
    The local path of the mounted directory, excluding directory name.
    ExportId string
    OCID of the export
    MountTargetId string
    OCID of the mount target
    Namespace string
    The object storage namespace
    Prefix string
    Prefix in the bucket to mount
    StorageType string
    The type of storage.
    Bucket string
    The object storage bucket
    DestinationDirectoryName string
    The local directory name to be mounted
    DestinationPath string
    The local path of the mounted directory, excluding directory name.
    ExportId string
    OCID of the export
    MountTargetId string
    OCID of the mount target
    Namespace string
    The object storage namespace
    Prefix string
    Prefix in the bucket to mount
    StorageType string
    The type of storage.
    bucket String
    The object storage bucket
    destinationDirectoryName String
    The local directory name to be mounted
    destinationPath String
    The local path of the mounted directory, excluding directory name.
    exportId String
    OCID of the export
    mountTargetId String
    OCID of the mount target
    namespace String
    The object storage namespace
    prefix String
    Prefix in the bucket to mount
    storageType String
    The type of storage.
    bucket string
    The object storage bucket
    destinationDirectoryName string
    The local directory name to be mounted
    destinationPath string
    The local path of the mounted directory, excluding directory name.
    exportId string
    OCID of the export
    mountTargetId string
    OCID of the mount target
    namespace string
    The object storage namespace
    prefix string
    Prefix in the bucket to mount
    storageType string
    The type of storage.
    bucket str
    The object storage bucket
    destination_directory_name str
    The local directory name to be mounted
    destination_path str
    The local path of the mounted directory, excluding directory name.
    export_id str
    OCID of the export
    mount_target_id str
    OCID of the mount target
    namespace str
    The object storage namespace
    prefix str
    Prefix in the bucket to mount
    storage_type str
    The type of storage.
    bucket String
    The object storage bucket
    destinationDirectoryName String
    The local directory name to be mounted
    destinationPath String
    The local path of the mounted directory, excluding directory name.
    exportId String
    OCID of the export
    mountTargetId String
    OCID of the mount target
    namespace String
    The object storage namespace
    prefix String
    Prefix in the bucket to mount
    storageType String
    The type of storage.

    JobRunLogDetail, JobRunLogDetailArgs

    LogGroupId string
    The log group id for where log objects are for job runs.
    LogId string
    The log id the job run will push logs too.
    LogGroupId string
    The log group id for where log objects are for job runs.
    LogId string
    The log id the job run will push logs too.
    logGroupId String
    The log group id for where log objects are for job runs.
    logId String
    The log id the job run will push logs too.
    logGroupId string
    The log group id for where log objects are for job runs.
    logId string
    The log id the job run will push logs too.
    log_group_id str
    The log group id for where log objects are for job runs.
    log_id str
    The log id the job run will push logs too.
    logGroupId String
    The log group id for where log objects are for job runs.
    logId String
    The log id the job run will push logs too.

    Import

    JobRuns can be imported using the id, e.g.

    $ pulumi import oci:DataScience/jobRun:JobRun test_job_run "id"
    

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

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi