1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. CynosdbClsDelivery
tencentcloud 1.82.50 published on Tuesday, Dec 30, 2025 by tencentcloudstack
tencentcloud logo
tencentcloud 1.82.50 published on Tuesday, Dec 30, 2025 by tencentcloudstack

    Example Usage

    Use topic_name and<span pulumi-lang-nodejs=" groupName

    " pulumi-lang-dotnet=" GroupName " pulumi-lang-go=" groupName " pulumi-lang-python=" group_name " pulumi-lang-yaml=" groupName " pulumi-lang-java=" groupName “> group_name

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.CynosdbClsDelivery("example", {
        instanceId: "cynosdbmysql-ins-m2903cxq",
        clsInfoList: {
            region: "ap-guangzhou",
            topicName: "tf-example",
            groupName: "tf-example",
        },
        runningStatus: true,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.CynosdbClsDelivery("example",
        instance_id="cynosdbmysql-ins-m2903cxq",
        cls_info_list={
            "region": "ap-guangzhou",
            "topic_name": "tf-example",
            "group_name": "tf-example",
        },
        running_status=True)
    
    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.NewCynosdbClsDelivery(ctx, "example", &tencentcloud.CynosdbClsDeliveryArgs{
    			InstanceId: pulumi.String("cynosdbmysql-ins-m2903cxq"),
    			ClsInfoList: &tencentcloud.CynosdbClsDeliveryClsInfoListArgs{
    				Region:    pulumi.String("ap-guangzhou"),
    				TopicName: pulumi.String("tf-example"),
    				GroupName: pulumi.String("tf-example"),
    			},
    			RunningStatus: pulumi.Bool(true),
    		})
    		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.CynosdbClsDelivery("example", new()
        {
            InstanceId = "cynosdbmysql-ins-m2903cxq",
            ClsInfoList = new Tencentcloud.Inputs.CynosdbClsDeliveryClsInfoListArgs
            {
                Region = "ap-guangzhou",
                TopicName = "tf-example",
                GroupName = "tf-example",
            },
            RunningStatus = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.CynosdbClsDelivery;
    import com.pulumi.tencentcloud.CynosdbClsDeliveryArgs;
    import com.pulumi.tencentcloud.inputs.CynosdbClsDeliveryClsInfoListArgs;
    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 CynosdbClsDelivery("example", CynosdbClsDeliveryArgs.builder()
                .instanceId("cynosdbmysql-ins-m2903cxq")
                .clsInfoList(CynosdbClsDeliveryClsInfoListArgs.builder()
                    .region("ap-guangzhou")
                    .topicName("tf-example")
                    .groupName("tf-example")
                    .build())
                .runningStatus(true)
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:CynosdbClsDelivery
        properties:
          instanceId: cynosdbmysql-ins-m2903cxq
          clsInfoList:
            region: ap-guangzhou
            topicName: tf-example
            groupName: tf-example
          runningStatus: true
    

    Use topic_id and<span pulumi-lang-nodejs=” groupId

    " pulumi-lang-dotnet=" GroupId " pulumi-lang-go=" groupId " pulumi-lang-python=" group_id " pulumi-lang-yaml=" groupId " pulumi-lang-java=" groupId “> group_id

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.CynosdbClsDelivery("example", {
        instanceId: "cynosdbmysql-ins-m2903cxq",
        clsInfoList: {
            region: "ap-guangzhou",
            topicId: "a9d582f8-8c14-462c-94b8-bbc579a04f02",
            groupId: "67fca013-379b-4bc6-8e72-390227d869c4",
        },
        runningStatus: false,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.CynosdbClsDelivery("example",
        instance_id="cynosdbmysql-ins-m2903cxq",
        cls_info_list={
            "region": "ap-guangzhou",
            "topic_id": "a9d582f8-8c14-462c-94b8-bbc579a04f02",
            "group_id": "67fca013-379b-4bc6-8e72-390227d869c4",
        },
        running_status=False)
    
    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.NewCynosdbClsDelivery(ctx, "example", &tencentcloud.CynosdbClsDeliveryArgs{
    			InstanceId: pulumi.String("cynosdbmysql-ins-m2903cxq"),
    			ClsInfoList: &tencentcloud.CynosdbClsDeliveryClsInfoListArgs{
    				Region:  pulumi.String("ap-guangzhou"),
    				TopicId: pulumi.String("a9d582f8-8c14-462c-94b8-bbc579a04f02"),
    				GroupId: pulumi.String("67fca013-379b-4bc6-8e72-390227d869c4"),
    			},
    			RunningStatus: pulumi.Bool(false),
    		})
    		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.CynosdbClsDelivery("example", new()
        {
            InstanceId = "cynosdbmysql-ins-m2903cxq",
            ClsInfoList = new Tencentcloud.Inputs.CynosdbClsDeliveryClsInfoListArgs
            {
                Region = "ap-guangzhou",
                TopicId = "a9d582f8-8c14-462c-94b8-bbc579a04f02",
                GroupId = "67fca013-379b-4bc6-8e72-390227d869c4",
            },
            RunningStatus = false,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.CynosdbClsDelivery;
    import com.pulumi.tencentcloud.CynosdbClsDeliveryArgs;
    import com.pulumi.tencentcloud.inputs.CynosdbClsDeliveryClsInfoListArgs;
    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 CynosdbClsDelivery("example", CynosdbClsDeliveryArgs.builder()
                .instanceId("cynosdbmysql-ins-m2903cxq")
                .clsInfoList(CynosdbClsDeliveryClsInfoListArgs.builder()
                    .region("ap-guangzhou")
                    .topicId("a9d582f8-8c14-462c-94b8-bbc579a04f02")
                    .groupId("67fca013-379b-4bc6-8e72-390227d869c4")
                    .build())
                .runningStatus(false)
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:CynosdbClsDelivery
        properties:
          instanceId: cynosdbmysql-ins-m2903cxq
          clsInfoList:
            region: ap-guangzhou
            topicId: a9d582f8-8c14-462c-94b8-bbc579a04f02
            groupId: 67fca013-379b-4bc6-8e72-390227d869c4
          runningStatus: false
    

    Create CynosdbClsDelivery Resource

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

    Constructor syntax

    new CynosdbClsDelivery(name: string, args: CynosdbClsDeliveryArgs, opts?: CustomResourceOptions);
    @overload
    def CynosdbClsDelivery(resource_name: str,
                           args: CynosdbClsDeliveryArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def CynosdbClsDelivery(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           cls_info_list: Optional[CynosdbClsDeliveryClsInfoListArgs] = None,
                           instance_id: Optional[str] = None,
                           cynosdb_cls_delivery_id: Optional[str] = None,
                           log_type: Optional[str] = None,
                           running_status: Optional[bool] = None)
    func NewCynosdbClsDelivery(ctx *Context, name string, args CynosdbClsDeliveryArgs, opts ...ResourceOption) (*CynosdbClsDelivery, error)
    public CynosdbClsDelivery(string name, CynosdbClsDeliveryArgs args, CustomResourceOptions? opts = null)
    public CynosdbClsDelivery(String name, CynosdbClsDeliveryArgs args)
    public CynosdbClsDelivery(String name, CynosdbClsDeliveryArgs args, CustomResourceOptions options)
    
    type: tencentcloud:CynosdbClsDelivery
    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 CynosdbClsDeliveryArgs
    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 CynosdbClsDeliveryArgs
    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 CynosdbClsDeliveryArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CynosdbClsDeliveryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CynosdbClsDeliveryArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    ClsInfoList CynosdbClsDeliveryClsInfoList
    Log shipping configuration.
    InstanceId string
    Intance ID.
    CynosdbClsDeliveryId string
    ID of the resource.
    LogType string
    Log type.
    RunningStatus bool
    Delivery status. true: Enabled; false: Disabled.
    ClsInfoList CynosdbClsDeliveryClsInfoListArgs
    Log shipping configuration.
    InstanceId string
    Intance ID.
    CynosdbClsDeliveryId string
    ID of the resource.
    LogType string
    Log type.
    RunningStatus bool
    Delivery status. true: Enabled; false: Disabled.
    clsInfoList CynosdbClsDeliveryClsInfoList
    Log shipping configuration.
    instanceId String
    Intance ID.
    cynosdbClsDeliveryId String
    ID of the resource.
    logType String
    Log type.
    runningStatus Boolean
    Delivery status. true: Enabled; false: Disabled.
    clsInfoList CynosdbClsDeliveryClsInfoList
    Log shipping configuration.
    instanceId string
    Intance ID.
    cynosdbClsDeliveryId string
    ID of the resource.
    logType string
    Log type.
    runningStatus boolean
    Delivery status. true: Enabled; false: Disabled.
    cls_info_list CynosdbClsDeliveryClsInfoListArgs
    Log shipping configuration.
    instance_id str
    Intance ID.
    cynosdb_cls_delivery_id str
    ID of the resource.
    log_type str
    Log type.
    running_status bool
    Delivery status. true: Enabled; false: Disabled.
    clsInfoList Property Map
    Log shipping configuration.
    instanceId String
    Intance ID.
    cynosdbClsDeliveryId String
    ID of the resource.
    logType String
    Log type.
    runningStatus Boolean
    Delivery status. true: Enabled; false: Disabled.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CynosdbClsDelivery 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 CynosdbClsDelivery Resource

    Get an existing CynosdbClsDelivery 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?: CynosdbClsDeliveryState, opts?: CustomResourceOptions): CynosdbClsDelivery
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cls_info_list: Optional[CynosdbClsDeliveryClsInfoListArgs] = None,
            cynosdb_cls_delivery_id: Optional[str] = None,
            instance_id: Optional[str] = None,
            log_type: Optional[str] = None,
            running_status: Optional[bool] = None) -> CynosdbClsDelivery
    func GetCynosdbClsDelivery(ctx *Context, name string, id IDInput, state *CynosdbClsDeliveryState, opts ...ResourceOption) (*CynosdbClsDelivery, error)
    public static CynosdbClsDelivery Get(string name, Input<string> id, CynosdbClsDeliveryState? state, CustomResourceOptions? opts = null)
    public static CynosdbClsDelivery get(String name, Output<String> id, CynosdbClsDeliveryState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:CynosdbClsDelivery    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:
    ClsInfoList CynosdbClsDeliveryClsInfoList
    Log shipping configuration.
    CynosdbClsDeliveryId string
    ID of the resource.
    InstanceId string
    Intance ID.
    LogType string
    Log type.
    RunningStatus bool
    Delivery status. true: Enabled; false: Disabled.
    ClsInfoList CynosdbClsDeliveryClsInfoListArgs
    Log shipping configuration.
    CynosdbClsDeliveryId string
    ID of the resource.
    InstanceId string
    Intance ID.
    LogType string
    Log type.
    RunningStatus bool
    Delivery status. true: Enabled; false: Disabled.
    clsInfoList CynosdbClsDeliveryClsInfoList
    Log shipping configuration.
    cynosdbClsDeliveryId String
    ID of the resource.
    instanceId String
    Intance ID.
    logType String
    Log type.
    runningStatus Boolean
    Delivery status. true: Enabled; false: Disabled.
    clsInfoList CynosdbClsDeliveryClsInfoList
    Log shipping configuration.
    cynosdbClsDeliveryId string
    ID of the resource.
    instanceId string
    Intance ID.
    logType string
    Log type.
    runningStatus boolean
    Delivery status. true: Enabled; false: Disabled.
    cls_info_list CynosdbClsDeliveryClsInfoListArgs
    Log shipping configuration.
    cynosdb_cls_delivery_id str
    ID of the resource.
    instance_id str
    Intance ID.
    log_type str
    Log type.
    running_status bool
    Delivery status. true: Enabled; false: Disabled.
    clsInfoList Property Map
    Log shipping configuration.
    cynosdbClsDeliveryId String
    ID of the resource.
    instanceId String
    Intance ID.
    logType String
    Log type.
    runningStatus Boolean
    Delivery status. true: Enabled; false: Disabled.

    Supporting Types

    CynosdbClsDeliveryClsInfoList, CynosdbClsDeliveryClsInfoListArgs

    Region string
    Log delivery area.
    GroupId string
    Log set ID.
    GroupName string
    Log set name.
    TopicId string
    Log topic ID.
    TopicName string
    Log topic name.
    Region string
    Log delivery area.
    GroupId string
    Log set ID.
    GroupName string
    Log set name.
    TopicId string
    Log topic ID.
    TopicName string
    Log topic name.
    region String
    Log delivery area.
    groupId String
    Log set ID.
    groupName String
    Log set name.
    topicId String
    Log topic ID.
    topicName String
    Log topic name.
    region string
    Log delivery area.
    groupId string
    Log set ID.
    groupName string
    Log set name.
    topicId string
    Log topic ID.
    topicName string
    Log topic name.
    region str
    Log delivery area.
    group_id str
    Log set ID.
    group_name str
    Log set name.
    topic_id str
    Log topic ID.
    topic_name str
    Log topic name.
    region String
    Log delivery area.
    groupId String
    Log set ID.
    groupName String
    Log set name.
    topicId String
    Log topic ID.
    topicName String
    Log topic name.

    Import

    CynosDB cls delivery can be imported using the instanceId#topicId, e.g.

    $ pulumi import tencentcloud:index/cynosdbClsDelivery:CynosdbClsDelivery example cynosdbmysql-ins-m2903cxq#222932ff-a10a-41f1-8d29-ff0cfe2a2d99
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.82.50 published on Tuesday, Dec 30, 2025 by tencentcloudstack
      Meet Neo: Your AI Platform Teammate