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

tencentcloud.OceanusJobCopy

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_copy

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.OceanusJobCopy("example", {
        jobType: 2,
        sourceId: "cql-0nob2hx8",
        sourceName: "keep_jar",
        targetClusterId: "cluster-1kcd524h",
        targetFolderId: "folder-7ctl246z",
        targetName: "tf_copy_example",
        workSpaceId: "space-2idq8wbr",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.OceanusJobCopy("example",
        job_type=2,
        source_id="cql-0nob2hx8",
        source_name="keep_jar",
        target_cluster_id="cluster-1kcd524h",
        target_folder_id="folder-7ctl246z",
        target_name="tf_copy_example",
        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.NewOceanusJobCopy(ctx, "example", &tencentcloud.OceanusJobCopyArgs{
    			JobType:         pulumi.Float64(2),
    			SourceId:        pulumi.String("cql-0nob2hx8"),
    			SourceName:      pulumi.String("keep_jar"),
    			TargetClusterId: pulumi.String("cluster-1kcd524h"),
    			TargetFolderId:  pulumi.String("folder-7ctl246z"),
    			TargetName:      pulumi.String("tf_copy_example"),
    			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.OceanusJobCopy("example", new()
        {
            JobType = 2,
            SourceId = "cql-0nob2hx8",
            SourceName = "keep_jar",
            TargetClusterId = "cluster-1kcd524h",
            TargetFolderId = "folder-7ctl246z",
            TargetName = "tf_copy_example",
            WorkSpaceId = "space-2idq8wbr",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.OceanusJobCopy;
    import com.pulumi.tencentcloud.OceanusJobCopyArgs;
    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 OceanusJobCopy("example", OceanusJobCopyArgs.builder()
                .jobType(2)
                .sourceId("cql-0nob2hx8")
                .sourceName("keep_jar")
                .targetClusterId("cluster-1kcd524h")
                .targetFolderId("folder-7ctl246z")
                .targetName("tf_copy_example")
                .workSpaceId("space-2idq8wbr")
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:OceanusJobCopy
        properties:
          jobType: 2
          sourceId: cql-0nob2hx8
          sourceName: keep_jar
          targetClusterId: cluster-1kcd524h
          targetFolderId: folder-7ctl246z
          targetName: tf_copy_example
          workSpaceId: space-2idq8wbr
    

    Create OceanusJobCopy Resource

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

    Constructor syntax

    new OceanusJobCopy(name: string, args: OceanusJobCopyArgs, opts?: CustomResourceOptions);
    @overload
    def OceanusJobCopy(resource_name: str,
                       args: OceanusJobCopyArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def OceanusJobCopy(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       source_id: Optional[str] = None,
                       target_cluster_id: Optional[str] = None,
                       job_type: Optional[float] = None,
                       oceanus_job_copy_id: Optional[str] = None,
                       source_name: Optional[str] = None,
                       target_folder_id: Optional[str] = None,
                       target_name: Optional[str] = None,
                       work_space_id: Optional[str] = None)
    func NewOceanusJobCopy(ctx *Context, name string, args OceanusJobCopyArgs, opts ...ResourceOption) (*OceanusJobCopy, error)
    public OceanusJobCopy(string name, OceanusJobCopyArgs args, CustomResourceOptions? opts = null)
    public OceanusJobCopy(String name, OceanusJobCopyArgs args)
    public OceanusJobCopy(String name, OceanusJobCopyArgs args, CustomResourceOptions options)
    
    type: tencentcloud:OceanusJobCopy
    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 OceanusJobCopyArgs
    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 OceanusJobCopyArgs
    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 OceanusJobCopyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OceanusJobCopyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OceanusJobCopyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    SourceId string
    The serial ID of the job to be copied.
    TargetClusterId string
    The cluster serial ID of the target cluster.
    JobType double
    The type of the source job.
    OceanusJobCopyId string
    ID of the resource.
    SourceName string
    The name of the job to be copied.
    TargetFolderId string
    The directory ID of the new job.
    TargetName string
    The name of the new job.
    WorkSpaceId string
    Workspace SerialId.
    SourceId string
    The serial ID of the job to be copied.
    TargetClusterId string
    The cluster serial ID of the target cluster.
    JobType float64
    The type of the source job.
    OceanusJobCopyId string
    ID of the resource.
    SourceName string
    The name of the job to be copied.
    TargetFolderId string
    The directory ID of the new job.
    TargetName string
    The name of the new job.
    WorkSpaceId string
    Workspace SerialId.
    sourceId String
    The serial ID of the job to be copied.
    targetClusterId String
    The cluster serial ID of the target cluster.
    jobType Double
    The type of the source job.
    oceanusJobCopyId String
    ID of the resource.
    sourceName String
    The name of the job to be copied.
    targetFolderId String
    The directory ID of the new job.
    targetName String
    The name of the new job.
    workSpaceId String
    Workspace SerialId.
    sourceId string
    The serial ID of the job to be copied.
    targetClusterId string
    The cluster serial ID of the target cluster.
    jobType number
    The type of the source job.
    oceanusJobCopyId string
    ID of the resource.
    sourceName string
    The name of the job to be copied.
    targetFolderId string
    The directory ID of the new job.
    targetName string
    The name of the new job.
    workSpaceId string
    Workspace SerialId.
    source_id str
    The serial ID of the job to be copied.
    target_cluster_id str
    The cluster serial ID of the target cluster.
    job_type float
    The type of the source job.
    oceanus_job_copy_id str
    ID of the resource.
    source_name str
    The name of the job to be copied.
    target_folder_id str
    The directory ID of the new job.
    target_name str
    The name of the new job.
    work_space_id str
    Workspace SerialId.
    sourceId String
    The serial ID of the job to be copied.
    targetClusterId String
    The cluster serial ID of the target cluster.
    jobType Number
    The type of the source job.
    oceanusJobCopyId String
    ID of the resource.
    sourceName String
    The name of the job to be copied.
    targetFolderId String
    The directory ID of the new job.
    targetName String
    The name of the new job.
    workSpaceId String
    Workspace SerialId.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    JobId string
    Copy Job ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    JobId string
    Copy Job ID.
    id String
    The provider-assigned unique ID for this managed resource.
    jobId String
    Copy Job ID.
    id string
    The provider-assigned unique ID for this managed resource.
    jobId string
    Copy Job ID.
    id str
    The provider-assigned unique ID for this managed resource.
    job_id str
    Copy Job ID.
    id String
    The provider-assigned unique ID for this managed resource.
    jobId String
    Copy Job ID.

    Look up Existing OceanusJobCopy Resource

    Get an existing OceanusJobCopy 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?: OceanusJobCopyState, opts?: CustomResourceOptions): OceanusJobCopy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            job_id: Optional[str] = None,
            job_type: Optional[float] = None,
            oceanus_job_copy_id: Optional[str] = None,
            source_id: Optional[str] = None,
            source_name: Optional[str] = None,
            target_cluster_id: Optional[str] = None,
            target_folder_id: Optional[str] = None,
            target_name: Optional[str] = None,
            work_space_id: Optional[str] = None) -> OceanusJobCopy
    func GetOceanusJobCopy(ctx *Context, name string, id IDInput, state *OceanusJobCopyState, opts ...ResourceOption) (*OceanusJobCopy, error)
    public static OceanusJobCopy Get(string name, Input<string> id, OceanusJobCopyState? state, CustomResourceOptions? opts = null)
    public static OceanusJobCopy get(String name, Output<String> id, OceanusJobCopyState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:OceanusJobCopy    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:
    JobId string
    Copy Job ID.
    JobType double
    The type of the source job.
    OceanusJobCopyId string
    ID of the resource.
    SourceId string
    The serial ID of the job to be copied.
    SourceName string
    The name of the job to be copied.
    TargetClusterId string
    The cluster serial ID of the target cluster.
    TargetFolderId string
    The directory ID of the new job.
    TargetName string
    The name of the new job.
    WorkSpaceId string
    Workspace SerialId.
    JobId string
    Copy Job ID.
    JobType float64
    The type of the source job.
    OceanusJobCopyId string
    ID of the resource.
    SourceId string
    The serial ID of the job to be copied.
    SourceName string
    The name of the job to be copied.
    TargetClusterId string
    The cluster serial ID of the target cluster.
    TargetFolderId string
    The directory ID of the new job.
    TargetName string
    The name of the new job.
    WorkSpaceId string
    Workspace SerialId.
    jobId String
    Copy Job ID.
    jobType Double
    The type of the source job.
    oceanusJobCopyId String
    ID of the resource.
    sourceId String
    The serial ID of the job to be copied.
    sourceName String
    The name of the job to be copied.
    targetClusterId String
    The cluster serial ID of the target cluster.
    targetFolderId String
    The directory ID of the new job.
    targetName String
    The name of the new job.
    workSpaceId String
    Workspace SerialId.
    jobId string
    Copy Job ID.
    jobType number
    The type of the source job.
    oceanusJobCopyId string
    ID of the resource.
    sourceId string
    The serial ID of the job to be copied.
    sourceName string
    The name of the job to be copied.
    targetClusterId string
    The cluster serial ID of the target cluster.
    targetFolderId string
    The directory ID of the new job.
    targetName string
    The name of the new job.
    workSpaceId string
    Workspace SerialId.
    job_id str
    Copy Job ID.
    job_type float
    The type of the source job.
    oceanus_job_copy_id str
    ID of the resource.
    source_id str
    The serial ID of the job to be copied.
    source_name str
    The name of the job to be copied.
    target_cluster_id str
    The cluster serial ID of the target cluster.
    target_folder_id str
    The directory ID of the new job.
    target_name str
    The name of the new job.
    work_space_id str
    Workspace SerialId.
    jobId String
    Copy Job ID.
    jobType Number
    The type of the source job.
    oceanusJobCopyId String
    ID of the resource.
    sourceId String
    The serial ID of the job to be copied.
    sourceName String
    The name of the job to be copied.
    targetClusterId String
    The cluster serial ID of the target cluster.
    targetFolderId String
    The directory ID of the new job.
    targetName String
    The name of the new job.
    workSpaceId String
    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