1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. ClsCloudProductLogTask
tencentcloud 1.81.186 published on Thursday, Apr 24, 2025 by tencentcloudstack

tencentcloud.ClsCloudProductLogTask

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.186 published on Thursday, Apr 24, 2025 by tencentcloudstack

    Provides a resource to create a cls cloud product log task

    NOTE: Using this resource will create new logset and topic

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.ClsCloudProductLogTask("example", {
        assumerName: "PostgreSQL",
        cloudProductRegion: "gz",
        clsRegion: "ap-guangzhou",
        instanceId: "postgres-1p7xvpc1",
        logType: "PostgreSQL-SLOW",
        logsetName: "tf-example",
        topicName: "tf-example",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.ClsCloudProductLogTask("example",
        assumer_name="PostgreSQL",
        cloud_product_region="gz",
        cls_region="ap-guangzhou",
        instance_id="postgres-1p7xvpc1",
        log_type="PostgreSQL-SLOW",
        logset_name="tf-example",
        topic_name="tf-example")
    
    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.NewClsCloudProductLogTask(ctx, "example", &tencentcloud.ClsCloudProductLogTaskArgs{
    			AssumerName:        pulumi.String("PostgreSQL"),
    			CloudProductRegion: pulumi.String("gz"),
    			ClsRegion:          pulumi.String("ap-guangzhou"),
    			InstanceId:         pulumi.String("postgres-1p7xvpc1"),
    			LogType:            pulumi.String("PostgreSQL-SLOW"),
    			LogsetName:         pulumi.String("tf-example"),
    			TopicName:          pulumi.String("tf-example"),
    		})
    		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.ClsCloudProductLogTask("example", new()
        {
            AssumerName = "PostgreSQL",
            CloudProductRegion = "gz",
            ClsRegion = "ap-guangzhou",
            InstanceId = "postgres-1p7xvpc1",
            LogType = "PostgreSQL-SLOW",
            LogsetName = "tf-example",
            TopicName = "tf-example",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.ClsCloudProductLogTask;
    import com.pulumi.tencentcloud.ClsCloudProductLogTaskArgs;
    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 ClsCloudProductLogTask("example", ClsCloudProductLogTaskArgs.builder()
                .assumerName("PostgreSQL")
                .cloudProductRegion("gz")
                .clsRegion("ap-guangzhou")
                .instanceId("postgres-1p7xvpc1")
                .logType("PostgreSQL-SLOW")
                .logsetName("tf-example")
                .topicName("tf-example")
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:ClsCloudProductLogTask
        properties:
          assumerName: PostgreSQL
          cloudProductRegion: gz
          clsRegion: ap-guangzhou
          instanceId: postgres-1p7xvpc1
          logType: PostgreSQL-SLOW
          logsetName: tf-example
          topicName: tf-example
    

    Create ClsCloudProductLogTask Resource

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

    Constructor syntax

    new ClsCloudProductLogTask(name: string, args: ClsCloudProductLogTaskArgs, opts?: CustomResourceOptions);
    @overload
    def ClsCloudProductLogTask(resource_name: str,
                               args: ClsCloudProductLogTaskArgs,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def ClsCloudProductLogTask(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               assumer_name: Optional[str] = None,
                               cloud_product_region: Optional[str] = None,
                               cls_region: Optional[str] = None,
                               instance_id: Optional[str] = None,
                               log_type: Optional[str] = None,
                               cls_cloud_product_log_task_id: Optional[str] = None,
                               extend: Optional[str] = None,
                               logset_name: Optional[str] = None,
                               topic_name: Optional[str] = None)
    func NewClsCloudProductLogTask(ctx *Context, name string, args ClsCloudProductLogTaskArgs, opts ...ResourceOption) (*ClsCloudProductLogTask, error)
    public ClsCloudProductLogTask(string name, ClsCloudProductLogTaskArgs args, CustomResourceOptions? opts = null)
    public ClsCloudProductLogTask(String name, ClsCloudProductLogTaskArgs args)
    public ClsCloudProductLogTask(String name, ClsCloudProductLogTaskArgs args, CustomResourceOptions options)
    
    type: tencentcloud:ClsCloudProductLogTask
    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 ClsCloudProductLogTaskArgs
    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 ClsCloudProductLogTaskArgs
    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 ClsCloudProductLogTaskArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ClsCloudProductLogTaskArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ClsCloudProductLogTaskArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    AssumerName string
    Cloud product identification, Values: CDS, CWP, CDB, TDSQL-C, MongoDB, TDStore, DCDB, MariaDB, PostgreSQL, BH, APIS.
    CloudProductRegion string
    Cloud product region. There are differences in the input format of different log types in different regions. Please refer to the following example:

    • CDS(all log type): ap-guangzhou
    • CDB-AUDIT: gz
    • TDSQL-C-AUDIT: gz
    • MongoDB-AUDIT: gz
    • MongoDB-SlowLog: ap-guangzhou
    • MongoDB-ErrorLog: ap-guangzhou
    • TDMYSQL-SLOW: gz
    • DCDB(all log type): gz
    • MariaDB(all log type): gz
    • PostgreSQL(all log type): gz
    • BH(all log type): overseas-polaris(Domestic sites overseas)/fsi-polaris(Domestic sites finance)/general-polaris(Domestic sites)/intl-sg-prod(International sites)
    • APIS(all log type): gz.
    ClsRegion string
    CLS target region.
    InstanceId string
    Instance ID.
    LogType string
    Log type, Values: CDS-AUDIT, CDS-RISK, CDB-AUDIT, TDSQL-C-AUDIT, MongoDB-AUDIT, MongoDB-SlowLog, MongoDB-ErrorLog, TDMYSQL-SLOW, DCDB-AUDIT, DCDB-SLOW, DCDB-ERROR, MariaDB-AUDIT, MariaDB-SLOW, MariaDB-ERROR, PostgreSQL-SLOW, PostgreSQL-ERROR, PostgreSQL-AUDIT, BH-FILELOG, BH-COMMANDLOG, APIS-ACCESS.
    ClsCloudProductLogTaskId string
    ID of the resource.
    Extend string
    Log configuration extension information, generally used to store additional log delivery configurations.
    LogsetName string
    Log set name, it will be automatically created.
    TopicName string
    The name of the log topic, it will be automatically created.
    AssumerName string
    Cloud product identification, Values: CDS, CWP, CDB, TDSQL-C, MongoDB, TDStore, DCDB, MariaDB, PostgreSQL, BH, APIS.
    CloudProductRegion string
    Cloud product region. There are differences in the input format of different log types in different regions. Please refer to the following example:

    • CDS(all log type): ap-guangzhou
    • CDB-AUDIT: gz
    • TDSQL-C-AUDIT: gz
    • MongoDB-AUDIT: gz
    • MongoDB-SlowLog: ap-guangzhou
    • MongoDB-ErrorLog: ap-guangzhou
    • TDMYSQL-SLOW: gz
    • DCDB(all log type): gz
    • MariaDB(all log type): gz
    • PostgreSQL(all log type): gz
    • BH(all log type): overseas-polaris(Domestic sites overseas)/fsi-polaris(Domestic sites finance)/general-polaris(Domestic sites)/intl-sg-prod(International sites)
    • APIS(all log type): gz.
    ClsRegion string
    CLS target region.
    InstanceId string
    Instance ID.
    LogType string
    Log type, Values: CDS-AUDIT, CDS-RISK, CDB-AUDIT, TDSQL-C-AUDIT, MongoDB-AUDIT, MongoDB-SlowLog, MongoDB-ErrorLog, TDMYSQL-SLOW, DCDB-AUDIT, DCDB-SLOW, DCDB-ERROR, MariaDB-AUDIT, MariaDB-SLOW, MariaDB-ERROR, PostgreSQL-SLOW, PostgreSQL-ERROR, PostgreSQL-AUDIT, BH-FILELOG, BH-COMMANDLOG, APIS-ACCESS.
    ClsCloudProductLogTaskId string
    ID of the resource.
    Extend string
    Log configuration extension information, generally used to store additional log delivery configurations.
    LogsetName string
    Log set name, it will be automatically created.
    TopicName string
    The name of the log topic, it will be automatically created.
    assumerName String
    Cloud product identification, Values: CDS, CWP, CDB, TDSQL-C, MongoDB, TDStore, DCDB, MariaDB, PostgreSQL, BH, APIS.
    cloudProductRegion String
    Cloud product region. There are differences in the input format of different log types in different regions. Please refer to the following example:

    • CDS(all log type): ap-guangzhou
    • CDB-AUDIT: gz
    • TDSQL-C-AUDIT: gz
    • MongoDB-AUDIT: gz
    • MongoDB-SlowLog: ap-guangzhou
    • MongoDB-ErrorLog: ap-guangzhou
    • TDMYSQL-SLOW: gz
    • DCDB(all log type): gz
    • MariaDB(all log type): gz
    • PostgreSQL(all log type): gz
    • BH(all log type): overseas-polaris(Domestic sites overseas)/fsi-polaris(Domestic sites finance)/general-polaris(Domestic sites)/intl-sg-prod(International sites)
    • APIS(all log type): gz.
    clsRegion String
    CLS target region.
    instanceId String
    Instance ID.
    logType String
    Log type, Values: CDS-AUDIT, CDS-RISK, CDB-AUDIT, TDSQL-C-AUDIT, MongoDB-AUDIT, MongoDB-SlowLog, MongoDB-ErrorLog, TDMYSQL-SLOW, DCDB-AUDIT, DCDB-SLOW, DCDB-ERROR, MariaDB-AUDIT, MariaDB-SLOW, MariaDB-ERROR, PostgreSQL-SLOW, PostgreSQL-ERROR, PostgreSQL-AUDIT, BH-FILELOG, BH-COMMANDLOG, APIS-ACCESS.
    clsCloudProductLogTaskId String
    ID of the resource.
    extend String
    Log configuration extension information, generally used to store additional log delivery configurations.
    logsetName String
    Log set name, it will be automatically created.
    topicName String
    The name of the log topic, it will be automatically created.
    assumerName string
    Cloud product identification, Values: CDS, CWP, CDB, TDSQL-C, MongoDB, TDStore, DCDB, MariaDB, PostgreSQL, BH, APIS.
    cloudProductRegion string
    Cloud product region. There are differences in the input format of different log types in different regions. Please refer to the following example:

    • CDS(all log type): ap-guangzhou
    • CDB-AUDIT: gz
    • TDSQL-C-AUDIT: gz
    • MongoDB-AUDIT: gz
    • MongoDB-SlowLog: ap-guangzhou
    • MongoDB-ErrorLog: ap-guangzhou
    • TDMYSQL-SLOW: gz
    • DCDB(all log type): gz
    • MariaDB(all log type): gz
    • PostgreSQL(all log type): gz
    • BH(all log type): overseas-polaris(Domestic sites overseas)/fsi-polaris(Domestic sites finance)/general-polaris(Domestic sites)/intl-sg-prod(International sites)
    • APIS(all log type): gz.
    clsRegion string
    CLS target region.
    instanceId string
    Instance ID.
    logType string
    Log type, Values: CDS-AUDIT, CDS-RISK, CDB-AUDIT, TDSQL-C-AUDIT, MongoDB-AUDIT, MongoDB-SlowLog, MongoDB-ErrorLog, TDMYSQL-SLOW, DCDB-AUDIT, DCDB-SLOW, DCDB-ERROR, MariaDB-AUDIT, MariaDB-SLOW, MariaDB-ERROR, PostgreSQL-SLOW, PostgreSQL-ERROR, PostgreSQL-AUDIT, BH-FILELOG, BH-COMMANDLOG, APIS-ACCESS.
    clsCloudProductLogTaskId string
    ID of the resource.
    extend string
    Log configuration extension information, generally used to store additional log delivery configurations.
    logsetName string
    Log set name, it will be automatically created.
    topicName string
    The name of the log topic, it will be automatically created.
    assumer_name str
    Cloud product identification, Values: CDS, CWP, CDB, TDSQL-C, MongoDB, TDStore, DCDB, MariaDB, PostgreSQL, BH, APIS.
    cloud_product_region str
    Cloud product region. There are differences in the input format of different log types in different regions. Please refer to the following example:

    • CDS(all log type): ap-guangzhou
    • CDB-AUDIT: gz
    • TDSQL-C-AUDIT: gz
    • MongoDB-AUDIT: gz
    • MongoDB-SlowLog: ap-guangzhou
    • MongoDB-ErrorLog: ap-guangzhou
    • TDMYSQL-SLOW: gz
    • DCDB(all log type): gz
    • MariaDB(all log type): gz
    • PostgreSQL(all log type): gz
    • BH(all log type): overseas-polaris(Domestic sites overseas)/fsi-polaris(Domestic sites finance)/general-polaris(Domestic sites)/intl-sg-prod(International sites)
    • APIS(all log type): gz.
    cls_region str
    CLS target region.
    instance_id str
    Instance ID.
    log_type str
    Log type, Values: CDS-AUDIT, CDS-RISK, CDB-AUDIT, TDSQL-C-AUDIT, MongoDB-AUDIT, MongoDB-SlowLog, MongoDB-ErrorLog, TDMYSQL-SLOW, DCDB-AUDIT, DCDB-SLOW, DCDB-ERROR, MariaDB-AUDIT, MariaDB-SLOW, MariaDB-ERROR, PostgreSQL-SLOW, PostgreSQL-ERROR, PostgreSQL-AUDIT, BH-FILELOG, BH-COMMANDLOG, APIS-ACCESS.
    cls_cloud_product_log_task_id str
    ID of the resource.
    extend str
    Log configuration extension information, generally used to store additional log delivery configurations.
    logset_name str
    Log set name, it will be automatically created.
    topic_name str
    The name of the log topic, it will be automatically created.
    assumerName String
    Cloud product identification, Values: CDS, CWP, CDB, TDSQL-C, MongoDB, TDStore, DCDB, MariaDB, PostgreSQL, BH, APIS.
    cloudProductRegion String
    Cloud product region. There are differences in the input format of different log types in different regions. Please refer to the following example:

    • CDS(all log type): ap-guangzhou
    • CDB-AUDIT: gz
    • TDSQL-C-AUDIT: gz
    • MongoDB-AUDIT: gz
    • MongoDB-SlowLog: ap-guangzhou
    • MongoDB-ErrorLog: ap-guangzhou
    • TDMYSQL-SLOW: gz
    • DCDB(all log type): gz
    • MariaDB(all log type): gz
    • PostgreSQL(all log type): gz
    • BH(all log type): overseas-polaris(Domestic sites overseas)/fsi-polaris(Domestic sites finance)/general-polaris(Domestic sites)/intl-sg-prod(International sites)
    • APIS(all log type): gz.
    clsRegion String
    CLS target region.
    instanceId String
    Instance ID.
    logType String
    Log type, Values: CDS-AUDIT, CDS-RISK, CDB-AUDIT, TDSQL-C-AUDIT, MongoDB-AUDIT, MongoDB-SlowLog, MongoDB-ErrorLog, TDMYSQL-SLOW, DCDB-AUDIT, DCDB-SLOW, DCDB-ERROR, MariaDB-AUDIT, MariaDB-SLOW, MariaDB-ERROR, PostgreSQL-SLOW, PostgreSQL-ERROR, PostgreSQL-AUDIT, BH-FILELOG, BH-COMMANDLOG, APIS-ACCESS.
    clsCloudProductLogTaskId String
    ID of the resource.
    extend String
    Log configuration extension information, generally used to store additional log delivery configurations.
    logsetName String
    Log set name, it will be automatically created.
    topicName String
    The name of the log topic, it will be automatically created.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    LogsetId string
    Log set ID.
    TopicId string
    Log theme ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    LogsetId string
    Log set ID.
    TopicId string
    Log theme ID.
    id String
    The provider-assigned unique ID for this managed resource.
    logsetId String
    Log set ID.
    topicId String
    Log theme ID.
    id string
    The provider-assigned unique ID for this managed resource.
    logsetId string
    Log set ID.
    topicId string
    Log theme ID.
    id str
    The provider-assigned unique ID for this managed resource.
    logset_id str
    Log set ID.
    topic_id str
    Log theme ID.
    id String
    The provider-assigned unique ID for this managed resource.
    logsetId String
    Log set ID.
    topicId String
    Log theme ID.

    Look up Existing ClsCloudProductLogTask Resource

    Get an existing ClsCloudProductLogTask 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?: ClsCloudProductLogTaskState, opts?: CustomResourceOptions): ClsCloudProductLogTask
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            assumer_name: Optional[str] = None,
            cloud_product_region: Optional[str] = None,
            cls_cloud_product_log_task_id: Optional[str] = None,
            cls_region: Optional[str] = None,
            extend: Optional[str] = None,
            instance_id: Optional[str] = None,
            log_type: Optional[str] = None,
            logset_id: Optional[str] = None,
            logset_name: Optional[str] = None,
            topic_id: Optional[str] = None,
            topic_name: Optional[str] = None) -> ClsCloudProductLogTask
    func GetClsCloudProductLogTask(ctx *Context, name string, id IDInput, state *ClsCloudProductLogTaskState, opts ...ResourceOption) (*ClsCloudProductLogTask, error)
    public static ClsCloudProductLogTask Get(string name, Input<string> id, ClsCloudProductLogTaskState? state, CustomResourceOptions? opts = null)
    public static ClsCloudProductLogTask get(String name, Output<String> id, ClsCloudProductLogTaskState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:ClsCloudProductLogTask    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:
    AssumerName string
    Cloud product identification, Values: CDS, CWP, CDB, TDSQL-C, MongoDB, TDStore, DCDB, MariaDB, PostgreSQL, BH, APIS.
    CloudProductRegion string
    Cloud product region. There are differences in the input format of different log types in different regions. Please refer to the following example:

    • CDS(all log type): ap-guangzhou
    • CDB-AUDIT: gz
    • TDSQL-C-AUDIT: gz
    • MongoDB-AUDIT: gz
    • MongoDB-SlowLog: ap-guangzhou
    • MongoDB-ErrorLog: ap-guangzhou
    • TDMYSQL-SLOW: gz
    • DCDB(all log type): gz
    • MariaDB(all log type): gz
    • PostgreSQL(all log type): gz
    • BH(all log type): overseas-polaris(Domestic sites overseas)/fsi-polaris(Domestic sites finance)/general-polaris(Domestic sites)/intl-sg-prod(International sites)
    • APIS(all log type): gz.
    ClsCloudProductLogTaskId string
    ID of the resource.
    ClsRegion string
    CLS target region.
    Extend string
    Log configuration extension information, generally used to store additional log delivery configurations.
    InstanceId string
    Instance ID.
    LogType string
    Log type, Values: CDS-AUDIT, CDS-RISK, CDB-AUDIT, TDSQL-C-AUDIT, MongoDB-AUDIT, MongoDB-SlowLog, MongoDB-ErrorLog, TDMYSQL-SLOW, DCDB-AUDIT, DCDB-SLOW, DCDB-ERROR, MariaDB-AUDIT, MariaDB-SLOW, MariaDB-ERROR, PostgreSQL-SLOW, PostgreSQL-ERROR, PostgreSQL-AUDIT, BH-FILELOG, BH-COMMANDLOG, APIS-ACCESS.
    LogsetId string
    Log set ID.
    LogsetName string
    Log set name, it will be automatically created.
    TopicId string
    Log theme ID.
    TopicName string
    The name of the log topic, it will be automatically created.
    AssumerName string
    Cloud product identification, Values: CDS, CWP, CDB, TDSQL-C, MongoDB, TDStore, DCDB, MariaDB, PostgreSQL, BH, APIS.
    CloudProductRegion string
    Cloud product region. There are differences in the input format of different log types in different regions. Please refer to the following example:

    • CDS(all log type): ap-guangzhou
    • CDB-AUDIT: gz
    • TDSQL-C-AUDIT: gz
    • MongoDB-AUDIT: gz
    • MongoDB-SlowLog: ap-guangzhou
    • MongoDB-ErrorLog: ap-guangzhou
    • TDMYSQL-SLOW: gz
    • DCDB(all log type): gz
    • MariaDB(all log type): gz
    • PostgreSQL(all log type): gz
    • BH(all log type): overseas-polaris(Domestic sites overseas)/fsi-polaris(Domestic sites finance)/general-polaris(Domestic sites)/intl-sg-prod(International sites)
    • APIS(all log type): gz.
    ClsCloudProductLogTaskId string
    ID of the resource.
    ClsRegion string
    CLS target region.
    Extend string
    Log configuration extension information, generally used to store additional log delivery configurations.
    InstanceId string
    Instance ID.
    LogType string
    Log type, Values: CDS-AUDIT, CDS-RISK, CDB-AUDIT, TDSQL-C-AUDIT, MongoDB-AUDIT, MongoDB-SlowLog, MongoDB-ErrorLog, TDMYSQL-SLOW, DCDB-AUDIT, DCDB-SLOW, DCDB-ERROR, MariaDB-AUDIT, MariaDB-SLOW, MariaDB-ERROR, PostgreSQL-SLOW, PostgreSQL-ERROR, PostgreSQL-AUDIT, BH-FILELOG, BH-COMMANDLOG, APIS-ACCESS.
    LogsetId string
    Log set ID.
    LogsetName string
    Log set name, it will be automatically created.
    TopicId string
    Log theme ID.
    TopicName string
    The name of the log topic, it will be automatically created.
    assumerName String
    Cloud product identification, Values: CDS, CWP, CDB, TDSQL-C, MongoDB, TDStore, DCDB, MariaDB, PostgreSQL, BH, APIS.
    cloudProductRegion String
    Cloud product region. There are differences in the input format of different log types in different regions. Please refer to the following example:

    • CDS(all log type): ap-guangzhou
    • CDB-AUDIT: gz
    • TDSQL-C-AUDIT: gz
    • MongoDB-AUDIT: gz
    • MongoDB-SlowLog: ap-guangzhou
    • MongoDB-ErrorLog: ap-guangzhou
    • TDMYSQL-SLOW: gz
    • DCDB(all log type): gz
    • MariaDB(all log type): gz
    • PostgreSQL(all log type): gz
    • BH(all log type): overseas-polaris(Domestic sites overseas)/fsi-polaris(Domestic sites finance)/general-polaris(Domestic sites)/intl-sg-prod(International sites)
    • APIS(all log type): gz.
    clsCloudProductLogTaskId String
    ID of the resource.
    clsRegion String
    CLS target region.
    extend String
    Log configuration extension information, generally used to store additional log delivery configurations.
    instanceId String
    Instance ID.
    logType String
    Log type, Values: CDS-AUDIT, CDS-RISK, CDB-AUDIT, TDSQL-C-AUDIT, MongoDB-AUDIT, MongoDB-SlowLog, MongoDB-ErrorLog, TDMYSQL-SLOW, DCDB-AUDIT, DCDB-SLOW, DCDB-ERROR, MariaDB-AUDIT, MariaDB-SLOW, MariaDB-ERROR, PostgreSQL-SLOW, PostgreSQL-ERROR, PostgreSQL-AUDIT, BH-FILELOG, BH-COMMANDLOG, APIS-ACCESS.
    logsetId String
    Log set ID.
    logsetName String
    Log set name, it will be automatically created.
    topicId String
    Log theme ID.
    topicName String
    The name of the log topic, it will be automatically created.
    assumerName string
    Cloud product identification, Values: CDS, CWP, CDB, TDSQL-C, MongoDB, TDStore, DCDB, MariaDB, PostgreSQL, BH, APIS.
    cloudProductRegion string
    Cloud product region. There are differences in the input format of different log types in different regions. Please refer to the following example:

    • CDS(all log type): ap-guangzhou
    • CDB-AUDIT: gz
    • TDSQL-C-AUDIT: gz
    • MongoDB-AUDIT: gz
    • MongoDB-SlowLog: ap-guangzhou
    • MongoDB-ErrorLog: ap-guangzhou
    • TDMYSQL-SLOW: gz
    • DCDB(all log type): gz
    • MariaDB(all log type): gz
    • PostgreSQL(all log type): gz
    • BH(all log type): overseas-polaris(Domestic sites overseas)/fsi-polaris(Domestic sites finance)/general-polaris(Domestic sites)/intl-sg-prod(International sites)
    • APIS(all log type): gz.
    clsCloudProductLogTaskId string
    ID of the resource.
    clsRegion string
    CLS target region.
    extend string
    Log configuration extension information, generally used to store additional log delivery configurations.
    instanceId string
    Instance ID.
    logType string
    Log type, Values: CDS-AUDIT, CDS-RISK, CDB-AUDIT, TDSQL-C-AUDIT, MongoDB-AUDIT, MongoDB-SlowLog, MongoDB-ErrorLog, TDMYSQL-SLOW, DCDB-AUDIT, DCDB-SLOW, DCDB-ERROR, MariaDB-AUDIT, MariaDB-SLOW, MariaDB-ERROR, PostgreSQL-SLOW, PostgreSQL-ERROR, PostgreSQL-AUDIT, BH-FILELOG, BH-COMMANDLOG, APIS-ACCESS.
    logsetId string
    Log set ID.
    logsetName string
    Log set name, it will be automatically created.
    topicId string
    Log theme ID.
    topicName string
    The name of the log topic, it will be automatically created.
    assumer_name str
    Cloud product identification, Values: CDS, CWP, CDB, TDSQL-C, MongoDB, TDStore, DCDB, MariaDB, PostgreSQL, BH, APIS.
    cloud_product_region str
    Cloud product region. There are differences in the input format of different log types in different regions. Please refer to the following example:

    • CDS(all log type): ap-guangzhou
    • CDB-AUDIT: gz
    • TDSQL-C-AUDIT: gz
    • MongoDB-AUDIT: gz
    • MongoDB-SlowLog: ap-guangzhou
    • MongoDB-ErrorLog: ap-guangzhou
    • TDMYSQL-SLOW: gz
    • DCDB(all log type): gz
    • MariaDB(all log type): gz
    • PostgreSQL(all log type): gz
    • BH(all log type): overseas-polaris(Domestic sites overseas)/fsi-polaris(Domestic sites finance)/general-polaris(Domestic sites)/intl-sg-prod(International sites)
    • APIS(all log type): gz.
    cls_cloud_product_log_task_id str
    ID of the resource.
    cls_region str
    CLS target region.
    extend str
    Log configuration extension information, generally used to store additional log delivery configurations.
    instance_id str
    Instance ID.
    log_type str
    Log type, Values: CDS-AUDIT, CDS-RISK, CDB-AUDIT, TDSQL-C-AUDIT, MongoDB-AUDIT, MongoDB-SlowLog, MongoDB-ErrorLog, TDMYSQL-SLOW, DCDB-AUDIT, DCDB-SLOW, DCDB-ERROR, MariaDB-AUDIT, MariaDB-SLOW, MariaDB-ERROR, PostgreSQL-SLOW, PostgreSQL-ERROR, PostgreSQL-AUDIT, BH-FILELOG, BH-COMMANDLOG, APIS-ACCESS.
    logset_id str
    Log set ID.
    logset_name str
    Log set name, it will be automatically created.
    topic_id str
    Log theme ID.
    topic_name str
    The name of the log topic, it will be automatically created.
    assumerName String
    Cloud product identification, Values: CDS, CWP, CDB, TDSQL-C, MongoDB, TDStore, DCDB, MariaDB, PostgreSQL, BH, APIS.
    cloudProductRegion String
    Cloud product region. There are differences in the input format of different log types in different regions. Please refer to the following example:

    • CDS(all log type): ap-guangzhou
    • CDB-AUDIT: gz
    • TDSQL-C-AUDIT: gz
    • MongoDB-AUDIT: gz
    • MongoDB-SlowLog: ap-guangzhou
    • MongoDB-ErrorLog: ap-guangzhou
    • TDMYSQL-SLOW: gz
    • DCDB(all log type): gz
    • MariaDB(all log type): gz
    • PostgreSQL(all log type): gz
    • BH(all log type): overseas-polaris(Domestic sites overseas)/fsi-polaris(Domestic sites finance)/general-polaris(Domestic sites)/intl-sg-prod(International sites)
    • APIS(all log type): gz.
    clsCloudProductLogTaskId String
    ID of the resource.
    clsRegion String
    CLS target region.
    extend String
    Log configuration extension information, generally used to store additional log delivery configurations.
    instanceId String
    Instance ID.
    logType String
    Log type, Values: CDS-AUDIT, CDS-RISK, CDB-AUDIT, TDSQL-C-AUDIT, MongoDB-AUDIT, MongoDB-SlowLog, MongoDB-ErrorLog, TDMYSQL-SLOW, DCDB-AUDIT, DCDB-SLOW, DCDB-ERROR, MariaDB-AUDIT, MariaDB-SLOW, MariaDB-ERROR, PostgreSQL-SLOW, PostgreSQL-ERROR, PostgreSQL-AUDIT, BH-FILELOG, BH-COMMANDLOG, APIS-ACCESS.
    logsetId String
    Log set ID.
    logsetName String
    Log set name, it will be automatically created.
    topicId String
    Log theme ID.
    topicName String
    The name of the log topic, it will be automatically created.

    Import

    cls cloud product log task can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/clsCloudProductLogTask:ClsCloudProductLogTask example postgres-1p7xvpc1#PostgreSQL#PostgreSQL-SLOW#gz
    

    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.81.186 published on Thursday, Apr 24, 2025 by tencentcloudstack