tencentcloud.OceanusRunJob
Explore with Pulumi AI
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:
- Run
Job List<OceanusDescriptions Run Job Run Job Description> - The description information for batch job startup.
- Oceanus
Run stringJob Id - ID of the resource.
- Work
Space stringId - Workspace SerialId.
- Run
Job []OceanusDescriptions Run Job Run Job Description Args - The description information for batch job startup.
- Oceanus
Run stringJob Id - ID of the resource.
- Work
Space stringId - Workspace SerialId.
- run
Job List<OceanusDescriptions Run Job Run Job Description> - The description information for batch job startup.
- oceanus
Run StringJob Id - ID of the resource.
- work
Space StringId - Workspace SerialId.
- run
Job OceanusDescriptions Run Job Run Job Description[] - The description information for batch job startup.
- oceanus
Run stringJob Id - ID of the resource.
- work
Space stringId - Workspace SerialId.
- run_
job_ Sequence[Oceanusdescriptions Run Job Run Job Description Args] - The description information for batch job startup.
- oceanus_
run_ strjob_ id - ID of the resource.
- work_
space_ strid - Workspace SerialId.
- run
Job List<Property Map>Descriptions - The description information for batch job startup.
- oceanus
Run StringJob Id - ID of the resource.
- work
Space StringId - 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.
- Oceanus
Run stringJob Id - ID of the resource.
- Run
Job List<OceanusDescriptions Run Job Run Job Description> - The description information for batch job startup.
- Work
Space stringId - Workspace SerialId.
- Oceanus
Run stringJob Id - ID of the resource.
- Run
Job []OceanusDescriptions Run Job Run Job Description Args - The description information for batch job startup.
- Work
Space stringId - Workspace SerialId.
- oceanus
Run StringJob Id - ID of the resource.
- run
Job List<OceanusDescriptions Run Job Run Job Description> - The description information for batch job startup.
- work
Space StringId - Workspace SerialId.
- oceanus
Run stringJob Id - ID of the resource.
- run
Job OceanusDescriptions Run Job Run Job Description[] - The description information for batch job startup.
- work
Space stringId - Workspace SerialId.
- oceanus_
run_ strjob_ id - ID of the resource.
- run_
job_ Sequence[Oceanusdescriptions Run Job Run Job Description Args] - The description information for batch job startup.
- work_
space_ strid - Workspace SerialId.
- oceanus
Run StringJob Id - ID of the resource.
- run
Job List<Property Map>Descriptions - The description information for batch job startup.
- work
Space StringId - Workspace SerialId.
Supporting Types
OceanusRunJobRunJobDescription, OceanusRunJobRunJobDescriptionArgs
- Job
Id string - Job ID.
- Run
Type double - The type of the run. 1 indicates start, and 2 indicates resume.
- Custom
Timestamp double - Custom timestamp.
- Job
Config doubleVersion - A certain version of the current job(Not passed by default as a non-draft job version).
- Savepoint
Id string - Savepoint ID.
- Savepoint
Path string - Savepoint path.
- Start
Mode 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).
- Use
Old boolSystem Connector - Use the historical version of the system dependency.
- Job
Id string - Job ID.
- Run
Type float64 - The type of the run. 1 indicates start, and 2 indicates resume.
- Custom
Timestamp float64 - Custom timestamp.
- Job
Config float64Version - A certain version of the current job(Not passed by default as a non-draft job version).
- Savepoint
Id string - Savepoint ID.
- Savepoint
Path string - Savepoint path.
- Start
Mode 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).
- Use
Old boolSystem Connector - Use the historical version of the system dependency.
- job
Id String - Job ID.
- run
Type Double - The type of the run. 1 indicates start, and 2 indicates resume.
- custom
Timestamp Double - Custom timestamp.
- job
Config DoubleVersion - A certain version of the current job(Not passed by default as a non-draft job version).
- savepoint
Id String - Savepoint ID.
- savepoint
Path String - Savepoint path.
- start
Mode 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).
- use
Old BooleanSystem Connector - Use the historical version of the system dependency.
- job
Id string - Job ID.
- run
Type number - The type of the run. 1 indicates start, and 2 indicates resume.
- custom
Timestamp number - Custom timestamp.
- job
Config numberVersion - A certain version of the current job(Not passed by default as a non-draft job version).
- savepoint
Id string - Savepoint ID.
- savepoint
Path string - Savepoint path.
- start
Mode 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).
- use
Old booleanSystem Connector - 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_ floatversion - 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_ boolsystem_ connector - Use the historical version of the system dependency.
- job
Id String - Job ID.
- run
Type Number - The type of the run. 1 indicates start, and 2 indicates resume.
- custom
Timestamp Number - Custom timestamp.
- job
Config NumberVersion - A certain version of the current job(Not passed by default as a non-draft job version).
- savepoint
Id String - Savepoint ID.
- savepoint
Path String - Savepoint path.
- start
Mode 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).
- use
Old BooleanSystem Connector - 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.