1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. OceanusRunJob
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.OceanusRunJob

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a oceanus run_job

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.OceanusRunJob("example", {
        runJobDescriptions: [{
            jobConfigVersion: 10,
            jobId: "cql-4xwincyn",
            runType: 1,
            startMode: "LATEST",
            useOldSystemConnector: false,
        }],
        workSpaceId: "space-2idq8wbr",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.OceanusRunJob("example",
        run_job_descriptions=[{
            "job_config_version": 10,
            "job_id": "cql-4xwincyn",
            "run_type": 1,
            "start_mode": "LATEST",
            "use_old_system_connector": False,
        }],
        work_space_id="space-2idq8wbr")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewOceanusRunJob(ctx, "example", &tencentcloud.OceanusRunJobArgs{
    			RunJobDescriptions: tencentcloud.OceanusRunJobRunJobDescriptionArray{
    				&tencentcloud.OceanusRunJobRunJobDescriptionArgs{
    					JobConfigVersion:      pulumi.Float64(10),
    					JobId:                 pulumi.String("cql-4xwincyn"),
    					RunType:               pulumi.Float64(1),
    					StartMode:             pulumi.String("LATEST"),
    					UseOldSystemConnector: pulumi.Bool(false),
    				},
    			},
    			WorkSpaceId: pulumi.String("space-2idq8wbr"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Tencentcloud.OceanusRunJob("example", new()
        {
            RunJobDescriptions = new[]
            {
                new Tencentcloud.Inputs.OceanusRunJobRunJobDescriptionArgs
                {
                    JobConfigVersion = 10,
                    JobId = "cql-4xwincyn",
                    RunType = 1,
                    StartMode = "LATEST",
                    UseOldSystemConnector = false,
                },
            },
            WorkSpaceId = "space-2idq8wbr",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.OceanusRunJob;
    import com.pulumi.tencentcloud.OceanusRunJobArgs;
    import com.pulumi.tencentcloud.inputs.OceanusRunJobRunJobDescriptionArgs;
    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 example = new OceanusRunJob("example", OceanusRunJobArgs.builder()
                .runJobDescriptions(OceanusRunJobRunJobDescriptionArgs.builder()
                    .jobConfigVersion(10)
                    .jobId("cql-4xwincyn")
                    .runType(1)
                    .startMode("LATEST")
                    .useOldSystemConnector(false)
                    .build())
                .workSpaceId("space-2idq8wbr")
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:OceanusRunJob
        properties:
          runJobDescriptions:
            - jobConfigVersion: 10
              jobId: cql-4xwincyn
              runType: 1
              startMode: LATEST
              useOldSystemConnector: false
          workSpaceId: space-2idq8wbr
    

    Create OceanusRunJob Resource

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

    Constructor syntax

    new OceanusRunJob(name: string, args: OceanusRunJobArgs, opts?: CustomResourceOptions);
    @overload
    def OceanusRunJob(resource_name: str,
                      args: OceanusRunJobArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def OceanusRunJob(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      run_job_descriptions: Optional[Sequence[OceanusRunJobRunJobDescriptionArgs]] = None,
                      oceanus_run_job_id: Optional[str] = None,
                      work_space_id: Optional[str] = None)
    func NewOceanusRunJob(ctx *Context, name string, args OceanusRunJobArgs, opts ...ResourceOption) (*OceanusRunJob, error)
    public OceanusRunJob(string name, OceanusRunJobArgs args, CustomResourceOptions? opts = null)
    public OceanusRunJob(String name, OceanusRunJobArgs args)
    public OceanusRunJob(String name, OceanusRunJobArgs args, CustomResourceOptions options)
    
    type: tencentcloud:OceanusRunJob
    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 OceanusRunJobArgs
    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 OceanusRunJobArgs
    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 OceanusRunJobArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OceanusRunJobArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OceanusRunJobArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    OceanusRunJob Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The OceanusRunJob resource accepts the following input properties:

    RunJobDescriptions List<OceanusRunJobRunJobDescription>
    The description information for batch job startup.
    OceanusRunJobId string
    ID of the resource.
    WorkSpaceId string
    Workspace SerialId.
    RunJobDescriptions []OceanusRunJobRunJobDescriptionArgs
    The description information for batch job startup.
    OceanusRunJobId string
    ID of the resource.
    WorkSpaceId string
    Workspace SerialId.
    runJobDescriptions List<OceanusRunJobRunJobDescription>
    The description information for batch job startup.
    oceanusRunJobId String
    ID of the resource.
    workSpaceId String
    Workspace SerialId.
    runJobDescriptions OceanusRunJobRunJobDescription[]
    The description information for batch job startup.
    oceanusRunJobId string
    ID of the resource.
    workSpaceId string
    Workspace SerialId.
    run_job_descriptions Sequence[OceanusRunJobRunJobDescriptionArgs]
    The description information for batch job startup.
    oceanus_run_job_id str
    ID of the resource.
    work_space_id str
    Workspace SerialId.
    runJobDescriptions List<Property Map>
    The description information for batch job startup.
    oceanusRunJobId String
    ID of the resource.
    workSpaceId String
    Workspace SerialId.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing OceanusRunJob Resource

    Get an existing OceanusRunJob 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?: OceanusRunJobState, opts?: CustomResourceOptions): OceanusRunJob
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            oceanus_run_job_id: Optional[str] = None,
            run_job_descriptions: Optional[Sequence[OceanusRunJobRunJobDescriptionArgs]] = None,
            work_space_id: Optional[str] = None) -> OceanusRunJob
    func GetOceanusRunJob(ctx *Context, name string, id IDInput, state *OceanusRunJobState, opts ...ResourceOption) (*OceanusRunJob, error)
    public static OceanusRunJob Get(string name, Input<string> id, OceanusRunJobState? state, CustomResourceOptions? opts = null)
    public static OceanusRunJob get(String name, Output<String> id, OceanusRunJobState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:OceanusRunJob    get:      id: ${id}
    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:
    OceanusRunJobId string
    ID of the resource.
    RunJobDescriptions List<OceanusRunJobRunJobDescription>
    The description information for batch job startup.
    WorkSpaceId string
    Workspace SerialId.
    OceanusRunJobId string
    ID of the resource.
    RunJobDescriptions []OceanusRunJobRunJobDescriptionArgs
    The description information for batch job startup.
    WorkSpaceId string
    Workspace SerialId.
    oceanusRunJobId String
    ID of the resource.
    runJobDescriptions List<OceanusRunJobRunJobDescription>
    The description information for batch job startup.
    workSpaceId String
    Workspace SerialId.
    oceanusRunJobId string
    ID of the resource.
    runJobDescriptions OceanusRunJobRunJobDescription[]
    The description information for batch job startup.
    workSpaceId string
    Workspace SerialId.
    oceanus_run_job_id str
    ID of the resource.
    run_job_descriptions Sequence[OceanusRunJobRunJobDescriptionArgs]
    The description information for batch job startup.
    work_space_id str
    Workspace SerialId.
    oceanusRunJobId String
    ID of the resource.
    runJobDescriptions List<Property Map>
    The description information for batch job startup.
    workSpaceId String
    Workspace SerialId.

    Supporting Types

    OceanusRunJobRunJobDescription, OceanusRunJobRunJobDescriptionArgs

    JobId string
    Job ID.
    RunType double
    The type of the run. 1 indicates start, and 2 indicates resume.
    CustomTimestamp double
    Custom timestamp.
    JobConfigVersion double
    A certain version of the current job(Not passed by default as a non-draft job version).
    SavepointId string
    Savepoint ID.
    SavepointPath string
    Savepoint path.
    StartMode string
    Compatible with the startup parameters of the old SQL type job: specify the start time point of data source consumption (recommended to pass the value)Ensure that the parameter is LATEST, EARLIEST, T+Timestamp (example: T1557394288000).
    UseOldSystemConnector bool
    Use the historical version of the system dependency.
    JobId string
    Job ID.
    RunType float64
    The type of the run. 1 indicates start, and 2 indicates resume.
    CustomTimestamp float64
    Custom timestamp.
    JobConfigVersion float64
    A certain version of the current job(Not passed by default as a non-draft job version).
    SavepointId string
    Savepoint ID.
    SavepointPath string
    Savepoint path.
    StartMode string
    Compatible with the startup parameters of the old SQL type job: specify the start time point of data source consumption (recommended to pass the value)Ensure that the parameter is LATEST, EARLIEST, T+Timestamp (example: T1557394288000).
    UseOldSystemConnector bool
    Use the historical version of the system dependency.
    jobId String
    Job ID.
    runType Double
    The type of the run. 1 indicates start, and 2 indicates resume.
    customTimestamp Double
    Custom timestamp.
    jobConfigVersion Double
    A certain version of the current job(Not passed by default as a non-draft job version).
    savepointId String
    Savepoint ID.
    savepointPath String
    Savepoint path.
    startMode String
    Compatible with the startup parameters of the old SQL type job: specify the start time point of data source consumption (recommended to pass the value)Ensure that the parameter is LATEST, EARLIEST, T+Timestamp (example: T1557394288000).
    useOldSystemConnector Boolean
    Use the historical version of the system dependency.
    jobId string
    Job ID.
    runType number
    The type of the run. 1 indicates start, and 2 indicates resume.
    customTimestamp number
    Custom timestamp.
    jobConfigVersion number
    A certain version of the current job(Not passed by default as a non-draft job version).
    savepointId string
    Savepoint ID.
    savepointPath string
    Savepoint path.
    startMode string
    Compatible with the startup parameters of the old SQL type job: specify the start time point of data source consumption (recommended to pass the value)Ensure that the parameter is LATEST, EARLIEST, T+Timestamp (example: T1557394288000).
    useOldSystemConnector boolean
    Use the historical version of the system dependency.
    job_id str
    Job ID.
    run_type float
    The type of the run. 1 indicates start, and 2 indicates resume.
    custom_timestamp float
    Custom timestamp.
    job_config_version float
    A certain version of the current job(Not passed by default as a non-draft job version).
    savepoint_id str
    Savepoint ID.
    savepoint_path str
    Savepoint path.
    start_mode str
    Compatible with the startup parameters of the old SQL type job: specify the start time point of data source consumption (recommended to pass the value)Ensure that the parameter is LATEST, EARLIEST, T+Timestamp (example: T1557394288000).
    use_old_system_connector bool
    Use the historical version of the system dependency.
    jobId String
    Job ID.
    runType Number
    The type of the run. 1 indicates start, and 2 indicates resume.
    customTimestamp Number
    Custom timestamp.
    jobConfigVersion Number
    A certain version of the current job(Not passed by default as a non-draft job version).
    savepointId String
    Savepoint ID.
    savepointPath String
    Savepoint path.
    startMode String
    Compatible with the startup parameters of the old SQL type job: specify the start time point of data source consumption (recommended to pass the value)Ensure that the parameter is LATEST, EARLIEST, T+Timestamp (example: T1557394288000).
    useOldSystemConnector Boolean
    Use the historical version of the system dependency.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack