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

tencentcloud.OceanusJob

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 job

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.OceanusJob("example", {
        clusterId: "cluster-1kcd524h",
        clusterType: 2,
        cuMem: 4,
        flinkVersion: "Flink-1.16",
        folderId: "folder-7ctl246z",
        jobType: 1,
        remark: "remark.",
        workSpaceId: "space-2idq8wbr",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.OceanusJob("example",
        cluster_id="cluster-1kcd524h",
        cluster_type=2,
        cu_mem=4,
        flink_version="Flink-1.16",
        folder_id="folder-7ctl246z",
        job_type=1,
        remark="remark.",
        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.NewOceanusJob(ctx, "example", &tencentcloud.OceanusJobArgs{
    			ClusterId:    pulumi.String("cluster-1kcd524h"),
    			ClusterType:  pulumi.Float64(2),
    			CuMem:        pulumi.Float64(4),
    			FlinkVersion: pulumi.String("Flink-1.16"),
    			FolderId:     pulumi.String("folder-7ctl246z"),
    			JobType:      pulumi.Float64(1),
    			Remark:       pulumi.String("remark."),
    			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.OceanusJob("example", new()
        {
            ClusterId = "cluster-1kcd524h",
            ClusterType = 2,
            CuMem = 4,
            FlinkVersion = "Flink-1.16",
            FolderId = "folder-7ctl246z",
            JobType = 1,
            Remark = "remark.",
            WorkSpaceId = "space-2idq8wbr",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.OceanusJob;
    import com.pulumi.tencentcloud.OceanusJobArgs;
    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 OceanusJob("example", OceanusJobArgs.builder()
                .clusterId("cluster-1kcd524h")
                .clusterType(2)
                .cuMem(4)
                .flinkVersion("Flink-1.16")
                .folderId("folder-7ctl246z")
                .jobType(1)
                .remark("remark.")
                .workSpaceId("space-2idq8wbr")
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:OceanusJob
        properties:
          clusterId: cluster-1kcd524h
          clusterType: 2
          cuMem: 4
          flinkVersion: Flink-1.16
          folderId: folder-7ctl246z
          jobType: 1
          remark: remark.
          workSpaceId: space-2idq8wbr
    

    Create OceanusJob Resource

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

    Constructor syntax

    new OceanusJob(name: string, args: OceanusJobArgs, opts?: CustomResourceOptions);
    @overload
    def OceanusJob(resource_name: str,
                   args: OceanusJobArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def OceanusJob(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   cluster_type: Optional[float] = None,
                   job_type: Optional[float] = None,
                   cluster_id: Optional[str] = None,
                   cu_mem: Optional[float] = None,
                   flink_version: Optional[str] = None,
                   folder_id: Optional[str] = None,
                   name: Optional[str] = None,
                   oceanus_job_id: Optional[str] = None,
                   remark: Optional[str] = None,
                   work_space_id: Optional[str] = None)
    func NewOceanusJob(ctx *Context, name string, args OceanusJobArgs, opts ...ResourceOption) (*OceanusJob, error)
    public OceanusJob(string name, OceanusJobArgs args, CustomResourceOptions? opts = null)
    public OceanusJob(String name, OceanusJobArgs args)
    public OceanusJob(String name, OceanusJobArgs args, CustomResourceOptions options)
    
    type: tencentcloud:OceanusJob
    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 OceanusJobArgs
    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 OceanusJobArgs
    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 OceanusJobArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OceanusJobArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OceanusJobArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    ClusterType double
    The type of the cluster. 1 indicates shared cluster, and 2 indicates exclusive cluster.
    JobType double
    The type of the job. 1 indicates SQL job, and 2 indicates JAR job.
    ClusterId string
    When ClusterType=2, it is required to specify the ID of the exclusive cluster to which the job is submitted.
    CuMem double
    Set the memory specification of each CU, in GB. It supports 2, 4, 8, and 16 (which needs to apply for the whitelist before use). The default is 4, that is, 1 CU corresponds to 4 GB of running memory.
    FlinkVersion string
    The Flink version that the job runs.
    FolderId string
    The folder ID to which the job name belongs. The root directory is root.
    Name string
    The name of the job. It can be composed of Chinese, English, numbers, hyphens (-), underscores (_), and periods (.), and the length cannot exceed 50 characters. Note that the job name cannot be the same as an existing job.
    OceanusJobId string
    ID of the resource.
    Remark string
    The remark information of the job. It can be set arbitrarily.
    WorkSpaceId string
    The workspace SerialId.
    ClusterType float64
    The type of the cluster. 1 indicates shared cluster, and 2 indicates exclusive cluster.
    JobType float64
    The type of the job. 1 indicates SQL job, and 2 indicates JAR job.
    ClusterId string
    When ClusterType=2, it is required to specify the ID of the exclusive cluster to which the job is submitted.
    CuMem float64
    Set the memory specification of each CU, in GB. It supports 2, 4, 8, and 16 (which needs to apply for the whitelist before use). The default is 4, that is, 1 CU corresponds to 4 GB of running memory.
    FlinkVersion string
    The Flink version that the job runs.
    FolderId string
    The folder ID to which the job name belongs. The root directory is root.
    Name string
    The name of the job. It can be composed of Chinese, English, numbers, hyphens (-), underscores (_), and periods (.), and the length cannot exceed 50 characters. Note that the job name cannot be the same as an existing job.
    OceanusJobId string
    ID of the resource.
    Remark string
    The remark information of the job. It can be set arbitrarily.
    WorkSpaceId string
    The workspace SerialId.
    clusterType Double
    The type of the cluster. 1 indicates shared cluster, and 2 indicates exclusive cluster.
    jobType Double
    The type of the job. 1 indicates SQL job, and 2 indicates JAR job.
    clusterId String
    When ClusterType=2, it is required to specify the ID of the exclusive cluster to which the job is submitted.
    cuMem Double
    Set the memory specification of each CU, in GB. It supports 2, 4, 8, and 16 (which needs to apply for the whitelist before use). The default is 4, that is, 1 CU corresponds to 4 GB of running memory.
    flinkVersion String
    The Flink version that the job runs.
    folderId String
    The folder ID to which the job name belongs. The root directory is root.
    name String
    The name of the job. It can be composed of Chinese, English, numbers, hyphens (-), underscores (_), and periods (.), and the length cannot exceed 50 characters. Note that the job name cannot be the same as an existing job.
    oceanusJobId String
    ID of the resource.
    remark String
    The remark information of the job. It can be set arbitrarily.
    workSpaceId String
    The workspace SerialId.
    clusterType number
    The type of the cluster. 1 indicates shared cluster, and 2 indicates exclusive cluster.
    jobType number
    The type of the job. 1 indicates SQL job, and 2 indicates JAR job.
    clusterId string
    When ClusterType=2, it is required to specify the ID of the exclusive cluster to which the job is submitted.
    cuMem number
    Set the memory specification of each CU, in GB. It supports 2, 4, 8, and 16 (which needs to apply for the whitelist before use). The default is 4, that is, 1 CU corresponds to 4 GB of running memory.
    flinkVersion string
    The Flink version that the job runs.
    folderId string
    The folder ID to which the job name belongs. The root directory is root.
    name string
    The name of the job. It can be composed of Chinese, English, numbers, hyphens (-), underscores (_), and periods (.), and the length cannot exceed 50 characters. Note that the job name cannot be the same as an existing job.
    oceanusJobId string
    ID of the resource.
    remark string
    The remark information of the job. It can be set arbitrarily.
    workSpaceId string
    The workspace SerialId.
    cluster_type float
    The type of the cluster. 1 indicates shared cluster, and 2 indicates exclusive cluster.
    job_type float
    The type of the job. 1 indicates SQL job, and 2 indicates JAR job.
    cluster_id str
    When ClusterType=2, it is required to specify the ID of the exclusive cluster to which the job is submitted.
    cu_mem float
    Set the memory specification of each CU, in GB. It supports 2, 4, 8, and 16 (which needs to apply for the whitelist before use). The default is 4, that is, 1 CU corresponds to 4 GB of running memory.
    flink_version str
    The Flink version that the job runs.
    folder_id str
    The folder ID to which the job name belongs. The root directory is root.
    name str
    The name of the job. It can be composed of Chinese, English, numbers, hyphens (-), underscores (_), and periods (.), and the length cannot exceed 50 characters. Note that the job name cannot be the same as an existing job.
    oceanus_job_id str
    ID of the resource.
    remark str
    The remark information of the job. It can be set arbitrarily.
    work_space_id str
    The workspace SerialId.
    clusterType Number
    The type of the cluster. 1 indicates shared cluster, and 2 indicates exclusive cluster.
    jobType Number
    The type of the job. 1 indicates SQL job, and 2 indicates JAR job.
    clusterId String
    When ClusterType=2, it is required to specify the ID of the exclusive cluster to which the job is submitted.
    cuMem Number
    Set the memory specification of each CU, in GB. It supports 2, 4, 8, and 16 (which needs to apply for the whitelist before use). The default is 4, that is, 1 CU corresponds to 4 GB of running memory.
    flinkVersion String
    The Flink version that the job runs.
    folderId String
    The folder ID to which the job name belongs. The root directory is root.
    name String
    The name of the job. It can be composed of Chinese, English, numbers, hyphens (-), underscores (_), and periods (.), and the length cannot exceed 50 characters. Note that the job name cannot be the same as an existing job.
    oceanusJobId String
    ID of the resource.
    remark String
    The remark information of the job. It can be set arbitrarily.
    workSpaceId String
    The workspace SerialId.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the OceanusJob 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 OceanusJob Resource

    Get an existing OceanusJob 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?: OceanusJobState, opts?: CustomResourceOptions): OceanusJob
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cluster_id: Optional[str] = None,
            cluster_type: Optional[float] = None,
            cu_mem: Optional[float] = None,
            flink_version: Optional[str] = None,
            folder_id: Optional[str] = None,
            job_type: Optional[float] = None,
            name: Optional[str] = None,
            oceanus_job_id: Optional[str] = None,
            remark: Optional[str] = None,
            work_space_id: Optional[str] = None) -> OceanusJob
    func GetOceanusJob(ctx *Context, name string, id IDInput, state *OceanusJobState, opts ...ResourceOption) (*OceanusJob, error)
    public static OceanusJob Get(string name, Input<string> id, OceanusJobState? state, CustomResourceOptions? opts = null)
    public static OceanusJob get(String name, Output<String> id, OceanusJobState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:OceanusJob    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:
    ClusterId string
    When ClusterType=2, it is required to specify the ID of the exclusive cluster to which the job is submitted.
    ClusterType double
    The type of the cluster. 1 indicates shared cluster, and 2 indicates exclusive cluster.
    CuMem double
    Set the memory specification of each CU, in GB. It supports 2, 4, 8, and 16 (which needs to apply for the whitelist before use). The default is 4, that is, 1 CU corresponds to 4 GB of running memory.
    FlinkVersion string
    The Flink version that the job runs.
    FolderId string
    The folder ID to which the job name belongs. The root directory is root.
    JobType double
    The type of the job. 1 indicates SQL job, and 2 indicates JAR job.
    Name string
    The name of the job. It can be composed of Chinese, English, numbers, hyphens (-), underscores (_), and periods (.), and the length cannot exceed 50 characters. Note that the job name cannot be the same as an existing job.
    OceanusJobId string
    ID of the resource.
    Remark string
    The remark information of the job. It can be set arbitrarily.
    WorkSpaceId string
    The workspace SerialId.
    ClusterId string
    When ClusterType=2, it is required to specify the ID of the exclusive cluster to which the job is submitted.
    ClusterType float64
    The type of the cluster. 1 indicates shared cluster, and 2 indicates exclusive cluster.
    CuMem float64
    Set the memory specification of each CU, in GB. It supports 2, 4, 8, and 16 (which needs to apply for the whitelist before use). The default is 4, that is, 1 CU corresponds to 4 GB of running memory.
    FlinkVersion string
    The Flink version that the job runs.
    FolderId string
    The folder ID to which the job name belongs. The root directory is root.
    JobType float64
    The type of the job. 1 indicates SQL job, and 2 indicates JAR job.
    Name string
    The name of the job. It can be composed of Chinese, English, numbers, hyphens (-), underscores (_), and periods (.), and the length cannot exceed 50 characters. Note that the job name cannot be the same as an existing job.
    OceanusJobId string
    ID of the resource.
    Remark string
    The remark information of the job. It can be set arbitrarily.
    WorkSpaceId string
    The workspace SerialId.
    clusterId String
    When ClusterType=2, it is required to specify the ID of the exclusive cluster to which the job is submitted.
    clusterType Double
    The type of the cluster. 1 indicates shared cluster, and 2 indicates exclusive cluster.
    cuMem Double
    Set the memory specification of each CU, in GB. It supports 2, 4, 8, and 16 (which needs to apply for the whitelist before use). The default is 4, that is, 1 CU corresponds to 4 GB of running memory.
    flinkVersion String
    The Flink version that the job runs.
    folderId String
    The folder ID to which the job name belongs. The root directory is root.
    jobType Double
    The type of the job. 1 indicates SQL job, and 2 indicates JAR job.
    name String
    The name of the job. It can be composed of Chinese, English, numbers, hyphens (-), underscores (_), and periods (.), and the length cannot exceed 50 characters. Note that the job name cannot be the same as an existing job.
    oceanusJobId String
    ID of the resource.
    remark String
    The remark information of the job. It can be set arbitrarily.
    workSpaceId String
    The workspace SerialId.
    clusterId string
    When ClusterType=2, it is required to specify the ID of the exclusive cluster to which the job is submitted.
    clusterType number
    The type of the cluster. 1 indicates shared cluster, and 2 indicates exclusive cluster.
    cuMem number
    Set the memory specification of each CU, in GB. It supports 2, 4, 8, and 16 (which needs to apply for the whitelist before use). The default is 4, that is, 1 CU corresponds to 4 GB of running memory.
    flinkVersion string
    The Flink version that the job runs.
    folderId string
    The folder ID to which the job name belongs. The root directory is root.
    jobType number
    The type of the job. 1 indicates SQL job, and 2 indicates JAR job.
    name string
    The name of the job. It can be composed of Chinese, English, numbers, hyphens (-), underscores (_), and periods (.), and the length cannot exceed 50 characters. Note that the job name cannot be the same as an existing job.
    oceanusJobId string
    ID of the resource.
    remark string
    The remark information of the job. It can be set arbitrarily.
    workSpaceId string
    The workspace SerialId.
    cluster_id str
    When ClusterType=2, it is required to specify the ID of the exclusive cluster to which the job is submitted.
    cluster_type float
    The type of the cluster. 1 indicates shared cluster, and 2 indicates exclusive cluster.
    cu_mem float
    Set the memory specification of each CU, in GB. It supports 2, 4, 8, and 16 (which needs to apply for the whitelist before use). The default is 4, that is, 1 CU corresponds to 4 GB of running memory.
    flink_version str
    The Flink version that the job runs.
    folder_id str
    The folder ID to which the job name belongs. The root directory is root.
    job_type float
    The type of the job. 1 indicates SQL job, and 2 indicates JAR job.
    name str
    The name of the job. It can be composed of Chinese, English, numbers, hyphens (-), underscores (_), and periods (.), and the length cannot exceed 50 characters. Note that the job name cannot be the same as an existing job.
    oceanus_job_id str
    ID of the resource.
    remark str
    The remark information of the job. It can be set arbitrarily.
    work_space_id str
    The workspace SerialId.
    clusterId String
    When ClusterType=2, it is required to specify the ID of the exclusive cluster to which the job is submitted.
    clusterType Number
    The type of the cluster. 1 indicates shared cluster, and 2 indicates exclusive cluster.
    cuMem Number
    Set the memory specification of each CU, in GB. It supports 2, 4, 8, and 16 (which needs to apply for the whitelist before use). The default is 4, that is, 1 CU corresponds to 4 GB of running memory.
    flinkVersion String
    The Flink version that the job runs.
    folderId String
    The folder ID to which the job name belongs. The root directory is root.
    jobType Number
    The type of the job. 1 indicates SQL job, and 2 indicates JAR job.
    name String
    The name of the job. It can be composed of Chinese, English, numbers, hyphens (-), underscores (_), and periods (.), and the length cannot exceed 50 characters. Note that the job name cannot be the same as an existing job.
    oceanusJobId String
    ID of the resource.
    remark String
    The remark information of the job. It can be set arbitrarily.
    workSpaceId String
    The workspace SerialId.

    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