tencentcloud.OceanusJob
Explore with Pulumi AI
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:
- Cluster
Type double - The type of the cluster. 1 indicates shared cluster, and 2 indicates exclusive cluster.
- Job
Type double - The type of the job. 1 indicates SQL job, and 2 indicates JAR job.
- Cluster
Id string - When ClusterType=2, it is required to specify the ID of the exclusive cluster to which the job is submitted.
- Cu
Mem 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.
- Flink
Version string - The Flink version that the job runs.
- Folder
Id 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.
- Oceanus
Job stringId - ID of the resource.
- Remark string
- The remark information of the job. It can be set arbitrarily.
- Work
Space stringId - The workspace SerialId.
- Cluster
Type float64 - The type of the cluster. 1 indicates shared cluster, and 2 indicates exclusive cluster.
- Job
Type float64 - The type of the job. 1 indicates SQL job, and 2 indicates JAR job.
- Cluster
Id string - When ClusterType=2, it is required to specify the ID of the exclusive cluster to which the job is submitted.
- Cu
Mem 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.
- Flink
Version string - The Flink version that the job runs.
- Folder
Id 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.
- Oceanus
Job stringId - ID of the resource.
- Remark string
- The remark information of the job. It can be set arbitrarily.
- Work
Space stringId - The workspace SerialId.
- cluster
Type Double - The type of the cluster. 1 indicates shared cluster, and 2 indicates exclusive cluster.
- job
Type Double - The type of the job. 1 indicates SQL job, and 2 indicates JAR job.
- cluster
Id String - When ClusterType=2, it is required to specify the ID of the exclusive cluster to which the job is submitted.
- cu
Mem 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.
- flink
Version String - The Flink version that the job runs.
- folder
Id 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.
- oceanus
Job StringId - ID of the resource.
- remark String
- The remark information of the job. It can be set arbitrarily.
- work
Space StringId - The workspace SerialId.
- cluster
Type number - The type of the cluster. 1 indicates shared cluster, and 2 indicates exclusive cluster.
- job
Type number - The type of the job. 1 indicates SQL job, and 2 indicates JAR job.
- cluster
Id string - When ClusterType=2, it is required to specify the ID of the exclusive cluster to which the job is submitted.
- cu
Mem 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.
- flink
Version string - The Flink version that the job runs.
- folder
Id 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.
- oceanus
Job stringId - ID of the resource.
- remark string
- The remark information of the job. It can be set arbitrarily.
- work
Space stringId - 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_ strid - ID of the resource.
- remark str
- The remark information of the job. It can be set arbitrarily.
- work_
space_ strid - The workspace SerialId.
- cluster
Type Number - The type of the cluster. 1 indicates shared cluster, and 2 indicates exclusive cluster.
- job
Type Number - The type of the job. 1 indicates SQL job, and 2 indicates JAR job.
- cluster
Id String - When ClusterType=2, it is required to specify the ID of the exclusive cluster to which the job is submitted.
- cu
Mem 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.
- flink
Version String - The Flink version that the job runs.
- folder
Id 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.
- oceanus
Job StringId - ID of the resource.
- remark String
- The remark information of the job. It can be set arbitrarily.
- work
Space StringId - 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.
- Cluster
Id string - When ClusterType=2, it is required to specify the ID of the exclusive cluster to which the job is submitted.
- Cluster
Type double - The type of the cluster. 1 indicates shared cluster, and 2 indicates exclusive cluster.
- Cu
Mem 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.
- Flink
Version string - The Flink version that the job runs.
- Folder
Id string - The folder ID to which the job name belongs. The root directory is root.
- Job
Type 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.
- Oceanus
Job stringId - ID of the resource.
- Remark string
- The remark information of the job. It can be set arbitrarily.
- Work
Space stringId - The workspace SerialId.
- Cluster
Id string - When ClusterType=2, it is required to specify the ID of the exclusive cluster to which the job is submitted.
- Cluster
Type float64 - The type of the cluster. 1 indicates shared cluster, and 2 indicates exclusive cluster.
- Cu
Mem 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.
- Flink
Version string - The Flink version that the job runs.
- Folder
Id string - The folder ID to which the job name belongs. The root directory is root.
- Job
Type 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.
- Oceanus
Job stringId - ID of the resource.
- Remark string
- The remark information of the job. It can be set arbitrarily.
- Work
Space stringId - The workspace SerialId.
- cluster
Id String - When ClusterType=2, it is required to specify the ID of the exclusive cluster to which the job is submitted.
- cluster
Type Double - The type of the cluster. 1 indicates shared cluster, and 2 indicates exclusive cluster.
- cu
Mem 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.
- flink
Version String - The Flink version that the job runs.
- folder
Id String - The folder ID to which the job name belongs. The root directory is root.
- job
Type 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.
- oceanus
Job StringId - ID of the resource.
- remark String
- The remark information of the job. It can be set arbitrarily.
- work
Space StringId - The workspace SerialId.
- cluster
Id string - When ClusterType=2, it is required to specify the ID of the exclusive cluster to which the job is submitted.
- cluster
Type number - The type of the cluster. 1 indicates shared cluster, and 2 indicates exclusive cluster.
- cu
Mem 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.
- flink
Version string - The Flink version that the job runs.
- folder
Id string - The folder ID to which the job name belongs. The root directory is root.
- job
Type 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.
- oceanus
Job stringId - ID of the resource.
- remark string
- The remark information of the job. It can be set arbitrarily.
- work
Space stringId - 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_ strid - ID of the resource.
- remark str
- The remark information of the job. It can be set arbitrarily.
- work_
space_ strid - The workspace SerialId.
- cluster
Id String - When ClusterType=2, it is required to specify the ID of the exclusive cluster to which the job is submitted.
- cluster
Type Number - The type of the cluster. 1 indicates shared cluster, and 2 indicates exclusive cluster.
- cu
Mem 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.
- flink
Version String - The Flink version that the job runs.
- folder
Id String - The folder ID to which the job name belongs. The root directory is root.
- job
Type 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.
- oceanus
Job StringId - ID of the resource.
- remark String
- The remark information of the job. It can be set arbitrarily.
- work
Space StringId - The workspace SerialId.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.