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

tencentcloud.DtsCompareTask

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a dts compare_task

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const compareTask = new tencentcloud.DtsCompareTask("compareTask", {
        jobId: "",
        objectMode: "",
        objects: {
            objectItems: [{
                dbMode: "",
                dbName: "",
                schemaName: "",
                tableMode: "",
                tables: [{
                    tableName: "",
                }],
                viewMode: "",
                views: [{
                    viewName: "",
                }],
            }],
            objectMode: "",
        },
        taskName: "",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    compare_task = tencentcloud.DtsCompareTask("compareTask",
        job_id="",
        object_mode="",
        objects={
            "object_items": [{
                "db_mode": "",
                "db_name": "",
                "schema_name": "",
                "table_mode": "",
                "tables": [{
                    "table_name": "",
                }],
                "view_mode": "",
                "views": [{
                    "view_name": "",
                }],
            }],
            "object_mode": "",
        },
        task_name="")
    
    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.NewDtsCompareTask(ctx, "compareTask", &tencentcloud.DtsCompareTaskArgs{
    			JobId:      pulumi.String(""),
    			ObjectMode: pulumi.String(""),
    			Objects: &tencentcloud.DtsCompareTaskObjectsArgs{
    				ObjectItems: tencentcloud.DtsCompareTaskObjectsObjectItemArray{
    					&tencentcloud.DtsCompareTaskObjectsObjectItemArgs{
    						DbMode:     pulumi.String(""),
    						DbName:     pulumi.String(""),
    						SchemaName: pulumi.String(""),
    						TableMode:  pulumi.String(""),
    						Tables: tencentcloud.DtsCompareTaskObjectsObjectItemTableArray{
    							&tencentcloud.DtsCompareTaskObjectsObjectItemTableArgs{
    								TableName: pulumi.String(""),
    							},
    						},
    						ViewMode: pulumi.String(""),
    						Views: tencentcloud.DtsCompareTaskObjectsObjectItemViewArray{
    							&tencentcloud.DtsCompareTaskObjectsObjectItemViewArgs{
    								ViewName: pulumi.String(""),
    							},
    						},
    					},
    				},
    				ObjectMode: pulumi.String(""),
    			},
    			TaskName: pulumi.String(""),
    		})
    		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 compareTask = new Tencentcloud.DtsCompareTask("compareTask", new()
        {
            JobId = "",
            ObjectMode = "",
            Objects = new Tencentcloud.Inputs.DtsCompareTaskObjectsArgs
            {
                ObjectItems = new[]
                {
                    new Tencentcloud.Inputs.DtsCompareTaskObjectsObjectItemArgs
                    {
                        DbMode = "",
                        DbName = "",
                        SchemaName = "",
                        TableMode = "",
                        Tables = new[]
                        {
                            new Tencentcloud.Inputs.DtsCompareTaskObjectsObjectItemTableArgs
                            {
                                TableName = "",
                            },
                        },
                        ViewMode = "",
                        Views = new[]
                        {
                            new Tencentcloud.Inputs.DtsCompareTaskObjectsObjectItemViewArgs
                            {
                                ViewName = "",
                            },
                        },
                    },
                },
                ObjectMode = "",
            },
            TaskName = "",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.DtsCompareTask;
    import com.pulumi.tencentcloud.DtsCompareTaskArgs;
    import com.pulumi.tencentcloud.inputs.DtsCompareTaskObjectsArgs;
    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 compareTask = new DtsCompareTask("compareTask", DtsCompareTaskArgs.builder()
                .jobId("")
                .objectMode("")
                .objects(DtsCompareTaskObjectsArgs.builder()
                    .objectItems(DtsCompareTaskObjectsObjectItemArgs.builder()
                        .dbMode("")
                        .dbName("")
                        .schemaName("")
                        .tableMode("")
                        .tables(DtsCompareTaskObjectsObjectItemTableArgs.builder()
                            .tableName("")
                            .build())
                        .viewMode("")
                        .views(DtsCompareTaskObjectsObjectItemViewArgs.builder()
                            .viewName("")
                            .build())
                        .build())
                    .objectMode("")
                    .build())
                .taskName("")
                .build());
    
        }
    }
    
    resources:
      compareTask:
        type: tencentcloud:DtsCompareTask
        properties:
          jobId: ""
          objectMode: ""
          objects:
            objectItems:
              - dbMode: ""
                dbName: ""
                schemaName: ""
                tableMode: ""
                tables:
                  - tableName: ""
                viewMode: ""
                views:
                  - viewName: ""
            objectMode: ""
          taskName: ""
    

    Create DtsCompareTask Resource

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

    Constructor syntax

    new DtsCompareTask(name: string, args: DtsCompareTaskArgs, opts?: CustomResourceOptions);
    @overload
    def DtsCompareTask(resource_name: str,
                       args: DtsCompareTaskArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def DtsCompareTask(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       job_id: Optional[str] = None,
                       dts_compare_task_id: Optional[str] = None,
                       object_mode: Optional[str] = None,
                       objects: Optional[DtsCompareTaskObjectsArgs] = None,
                       task_name: Optional[str] = None)
    func NewDtsCompareTask(ctx *Context, name string, args DtsCompareTaskArgs, opts ...ResourceOption) (*DtsCompareTask, error)
    public DtsCompareTask(string name, DtsCompareTaskArgs args, CustomResourceOptions? opts = null)
    public DtsCompareTask(String name, DtsCompareTaskArgs args)
    public DtsCompareTask(String name, DtsCompareTaskArgs args, CustomResourceOptions options)
    
    type: tencentcloud:DtsCompareTask
    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 DtsCompareTaskArgs
    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 DtsCompareTaskArgs
    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 DtsCompareTaskArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DtsCompareTaskArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DtsCompareTaskArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    JobId string
    job id.
    DtsCompareTaskId string
    ID of the resource.
    ObjectMode string
    object mode.
    Objects DtsCompareTaskObjects
    objects.
    TaskName string
    task name.
    JobId string
    job id.
    DtsCompareTaskId string
    ID of the resource.
    ObjectMode string
    object mode.
    Objects DtsCompareTaskObjectsArgs
    objects.
    TaskName string
    task name.
    jobId String
    job id.
    dtsCompareTaskId String
    ID of the resource.
    objectMode String
    object mode.
    objects DtsCompareTaskObjects
    objects.
    taskName String
    task name.
    jobId string
    job id.
    dtsCompareTaskId string
    ID of the resource.
    objectMode string
    object mode.
    objects DtsCompareTaskObjects
    objects.
    taskName string
    task name.
    job_id str
    job id.
    dts_compare_task_id str
    ID of the resource.
    object_mode str
    object mode.
    objects DtsCompareTaskObjectsArgs
    objects.
    task_name str
    task name.
    jobId String
    job id.
    dtsCompareTaskId String
    ID of the resource.
    objectMode String
    object mode.
    objects Property Map
    objects.
    taskName String
    task name.

    Outputs

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

    CompareTaskId string
    compare task id.
    Id string
    The provider-assigned unique ID for this managed resource.
    CompareTaskId string
    compare task id.
    Id string
    The provider-assigned unique ID for this managed resource.
    compareTaskId String
    compare task id.
    id String
    The provider-assigned unique ID for this managed resource.
    compareTaskId string
    compare task id.
    id string
    The provider-assigned unique ID for this managed resource.
    compare_task_id str
    compare task id.
    id str
    The provider-assigned unique ID for this managed resource.
    compareTaskId String
    compare task id.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing DtsCompareTask Resource

    Get an existing DtsCompareTask 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?: DtsCompareTaskState, opts?: CustomResourceOptions): DtsCompareTask
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            compare_task_id: Optional[str] = None,
            dts_compare_task_id: Optional[str] = None,
            job_id: Optional[str] = None,
            object_mode: Optional[str] = None,
            objects: Optional[DtsCompareTaskObjectsArgs] = None,
            task_name: Optional[str] = None) -> DtsCompareTask
    func GetDtsCompareTask(ctx *Context, name string, id IDInput, state *DtsCompareTaskState, opts ...ResourceOption) (*DtsCompareTask, error)
    public static DtsCompareTask Get(string name, Input<string> id, DtsCompareTaskState? state, CustomResourceOptions? opts = null)
    public static DtsCompareTask get(String name, Output<String> id, DtsCompareTaskState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:DtsCompareTask    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:
    CompareTaskId string
    compare task id.
    DtsCompareTaskId string
    ID of the resource.
    JobId string
    job id.
    ObjectMode string
    object mode.
    Objects DtsCompareTaskObjects
    objects.
    TaskName string
    task name.
    CompareTaskId string
    compare task id.
    DtsCompareTaskId string
    ID of the resource.
    JobId string
    job id.
    ObjectMode string
    object mode.
    Objects DtsCompareTaskObjectsArgs
    objects.
    TaskName string
    task name.
    compareTaskId String
    compare task id.
    dtsCompareTaskId String
    ID of the resource.
    jobId String
    job id.
    objectMode String
    object mode.
    objects DtsCompareTaskObjects
    objects.
    taskName String
    task name.
    compareTaskId string
    compare task id.
    dtsCompareTaskId string
    ID of the resource.
    jobId string
    job id.
    objectMode string
    object mode.
    objects DtsCompareTaskObjects
    objects.
    taskName string
    task name.
    compare_task_id str
    compare task id.
    dts_compare_task_id str
    ID of the resource.
    job_id str
    job id.
    object_mode str
    object mode.
    objects DtsCompareTaskObjectsArgs
    objects.
    task_name str
    task name.
    compareTaskId String
    compare task id.
    dtsCompareTaskId String
    ID of the resource.
    jobId String
    job id.
    objectMode String
    object mode.
    objects Property Map
    objects.
    taskName String
    task name.

    Supporting Types

    DtsCompareTaskObjects, DtsCompareTaskObjectsArgs

    objectMode String
    object mode.
    objectItems List<Property Map>
    object items.

    DtsCompareTaskObjectsObjectItem, DtsCompareTaskObjectsObjectItemArgs

    DbMode string
    database mode.
    DbName string
    database name.
    SchemaName string
    schema name.
    TableMode string
    table mode.
    Tables List<DtsCompareTaskObjectsObjectItemTable>
    table list.
    ViewMode string
    view mode.
    Views List<DtsCompareTaskObjectsObjectItemView>
    view list.
    DbMode string
    database mode.
    DbName string
    database name.
    SchemaName string
    schema name.
    TableMode string
    table mode.
    Tables []DtsCompareTaskObjectsObjectItemTable
    table list.
    ViewMode string
    view mode.
    Views []DtsCompareTaskObjectsObjectItemView
    view list.
    dbMode String
    database mode.
    dbName String
    database name.
    schemaName String
    schema name.
    tableMode String
    table mode.
    tables List<DtsCompareTaskObjectsObjectItemTable>
    table list.
    viewMode String
    view mode.
    views List<DtsCompareTaskObjectsObjectItemView>
    view list.
    dbMode string
    database mode.
    dbName string
    database name.
    schemaName string
    schema name.
    tableMode string
    table mode.
    tables DtsCompareTaskObjectsObjectItemTable[]
    table list.
    viewMode string
    view mode.
    views DtsCompareTaskObjectsObjectItemView[]
    view list.
    db_mode str
    database mode.
    db_name str
    database name.
    schema_name str
    schema name.
    table_mode str
    table mode.
    tables Sequence[DtsCompareTaskObjectsObjectItemTable]
    table list.
    view_mode str
    view mode.
    views Sequence[DtsCompareTaskObjectsObjectItemView]
    view list.
    dbMode String
    database mode.
    dbName String
    database name.
    schemaName String
    schema name.
    tableMode String
    table mode.
    tables List<Property Map>
    table list.
    viewMode String
    view mode.
    views List<Property Map>
    view list.

    DtsCompareTaskObjectsObjectItemTable, DtsCompareTaskObjectsObjectItemTableArgs

    TableName string
    table name.
    TableName string
    table name.
    tableName String
    table name.
    tableName string
    table name.
    table_name str
    table name.
    tableName String
    table name.

    DtsCompareTaskObjectsObjectItemView, DtsCompareTaskObjectsObjectItemViewArgs

    ViewName string
    view name.
    ViewName string
    view name.
    viewName String
    view name.
    viewName string
    view name.
    view_name str
    view name.
    viewName String
    view name.

    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