tencentcloud.OceanusJobCopy
Explore with Pulumi AI
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:
- Source
Id string - The serial ID of the job to be copied.
- Target
Cluster stringId - The cluster serial ID of the target cluster.
- Job
Type double - The type of the source job.
- Oceanus
Job stringCopy Id - ID of the resource.
- Source
Name string - The name of the job to be copied.
- Target
Folder stringId - The directory ID of the new job.
- Target
Name string - The name of the new job.
- Work
Space stringId - Workspace SerialId.
- Source
Id string - The serial ID of the job to be copied.
- Target
Cluster stringId - The cluster serial ID of the target cluster.
- Job
Type float64 - The type of the source job.
- Oceanus
Job stringCopy Id - ID of the resource.
- Source
Name string - The name of the job to be copied.
- Target
Folder stringId - The directory ID of the new job.
- Target
Name string - The name of the new job.
- Work
Space stringId - Workspace SerialId.
- source
Id String - The serial ID of the job to be copied.
- target
Cluster StringId - The cluster serial ID of the target cluster.
- job
Type Double - The type of the source job.
- oceanus
Job StringCopy Id - ID of the resource.
- source
Name String - The name of the job to be copied.
- target
Folder StringId - The directory ID of the new job.
- target
Name String - The name of the new job.
- work
Space StringId - Workspace SerialId.
- source
Id string - The serial ID of the job to be copied.
- target
Cluster stringId - The cluster serial ID of the target cluster.
- job
Type number - The type of the source job.
- oceanus
Job stringCopy Id - ID of the resource.
- source
Name string - The name of the job to be copied.
- target
Folder stringId - The directory ID of the new job.
- target
Name string - The name of the new job.
- work
Space stringId - Workspace SerialId.
- source_
id str - The serial ID of the job to be copied.
- target_
cluster_ strid - The cluster serial ID of the target cluster.
- job_
type float - The type of the source job.
- oceanus_
job_ strcopy_ id - ID of the resource.
- source_
name str - The name of the job to be copied.
- target_
folder_ strid - The directory ID of the new job.
- target_
name str - The name of the new job.
- work_
space_ strid - Workspace SerialId.
- source
Id String - The serial ID of the job to be copied.
- target
Cluster StringId - The cluster serial ID of the target cluster.
- job
Type Number - The type of the source job.
- oceanus
Job StringCopy Id - ID of the resource.
- source
Name String - The name of the job to be copied.
- target
Folder StringId - The directory ID of the new job.
- target
Name String - The name of the new job.
- work
Space StringId - Workspace SerialId.
Outputs
All input properties are implicitly available as output properties. Additionally, the OceanusJobCopy resource produces the following output properties:
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.
- Job
Id string - Copy Job ID.
- Job
Type double - The type of the source job.
- Oceanus
Job stringCopy Id - ID of the resource.
- Source
Id string - The serial ID of the job to be copied.
- Source
Name string - The name of the job to be copied.
- Target
Cluster stringId - The cluster serial ID of the target cluster.
- Target
Folder stringId - The directory ID of the new job.
- Target
Name string - The name of the new job.
- Work
Space stringId - Workspace SerialId.
- Job
Id string - Copy Job ID.
- Job
Type float64 - The type of the source job.
- Oceanus
Job stringCopy Id - ID of the resource.
- Source
Id string - The serial ID of the job to be copied.
- Source
Name string - The name of the job to be copied.
- Target
Cluster stringId - The cluster serial ID of the target cluster.
- Target
Folder stringId - The directory ID of the new job.
- Target
Name string - The name of the new job.
- Work
Space stringId - Workspace SerialId.
- job
Id String - Copy Job ID.
- job
Type Double - The type of the source job.
- oceanus
Job StringCopy Id - ID of the resource.
- source
Id String - The serial ID of the job to be copied.
- source
Name String - The name of the job to be copied.
- target
Cluster StringId - The cluster serial ID of the target cluster.
- target
Folder StringId - The directory ID of the new job.
- target
Name String - The name of the new job.
- work
Space StringId - Workspace SerialId.
- job
Id string - Copy Job ID.
- job
Type number - The type of the source job.
- oceanus
Job stringCopy Id - ID of the resource.
- source
Id string - The serial ID of the job to be copied.
- source
Name string - The name of the job to be copied.
- target
Cluster stringId - The cluster serial ID of the target cluster.
- target
Folder stringId - The directory ID of the new job.
- target
Name string - The name of the new job.
- work
Space stringId - Workspace SerialId.
- job_
id str - Copy Job ID.
- job_
type float - The type of the source job.
- oceanus_
job_ strcopy_ id - 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_ strid - The cluster serial ID of the target cluster.
- target_
folder_ strid - The directory ID of the new job.
- target_
name str - The name of the new job.
- work_
space_ strid - Workspace SerialId.
- job
Id String - Copy Job ID.
- job
Type Number - The type of the source job.
- oceanus
Job StringCopy Id - ID of the resource.
- source
Id String - The serial ID of the job to be copied.
- source
Name String - The name of the job to be copied.
- target
Cluster StringId - The cluster serial ID of the target cluster.
- target
Folder StringId - The directory ID of the new job.
- target
Name String - The name of the new job.
- work
Space StringId - Workspace SerialId.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.