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

tencentcloud.ClsExport

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 export

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const _export = new tencentcloud.ClsExport("export", {
        format: "json",
        from: 1607499107000,
        logCount: 2,
        order: "desc",
        query: "select count(*) as count",
        to: 1607499108000,
        topicId: "7e34a3a7-635e-4da8-9005-88106c1fde69",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    export = tencentcloud.ClsExport("export",
        format="json",
        from_=1607499107000,
        log_count=2,
        order="desc",
        query="select count(*) as count",
        to=1607499108000,
        topic_id="7e34a3a7-635e-4da8-9005-88106c1fde69")
    
    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.NewClsExport(ctx, "export", &tencentcloud.ClsExportArgs{
    			Format:   pulumi.String("json"),
    			From:     pulumi.Float64(1607499107000),
    			LogCount: pulumi.Float64(2),
    			Order:    pulumi.String("desc"),
    			Query:    pulumi.String("select count(*) as count"),
    			To:       pulumi.Float64(1607499108000),
    			TopicId:  pulumi.String("7e34a3a7-635e-4da8-9005-88106c1fde69"),
    		})
    		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 export = new Tencentcloud.ClsExport("export", new()
        {
            Format = "json",
            From = 1607499107000,
            LogCount = 2,
            Order = "desc",
            Query = "select count(*) as count",
            To = 1607499108000,
            TopicId = "7e34a3a7-635e-4da8-9005-88106c1fde69",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.ClsExport;
    import com.pulumi.tencentcloud.ClsExportArgs;
    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 export = new ClsExport("export", ClsExportArgs.builder()
                .format("json")
                .from(1607499107000)
                .logCount(2)
                .order("desc")
                .query("select count(*) as count")
                .to(1607499108000)
                .topicId("7e34a3a7-635e-4da8-9005-88106c1fde69")
                .build());
    
        }
    }
    
    resources:
      export:
        type: tencentcloud:ClsExport
        properties:
          format: json
          from: 1.607499107e+12
          logCount: 2
          order: desc
          query: select count(*) as count
          to: 1.607499108e+12
          topicId: 7e34a3a7-635e-4da8-9005-88106c1fde69
    

    Create ClsExport Resource

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

    Constructor syntax

    new ClsExport(name: string, args: ClsExportArgs, opts?: CustomResourceOptions);
    @overload
    def ClsExport(resource_name: str,
                  args: ClsExportArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def ClsExport(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  from_: Optional[float] = None,
                  log_count: Optional[float] = None,
                  query: Optional[str] = None,
                  to: Optional[float] = None,
                  topic_id: Optional[str] = None,
                  cls_export_id: Optional[str] = None,
                  format: Optional[str] = None,
                  order: Optional[str] = None)
    func NewClsExport(ctx *Context, name string, args ClsExportArgs, opts ...ResourceOption) (*ClsExport, error)
    public ClsExport(string name, ClsExportArgs args, CustomResourceOptions? opts = null)
    public ClsExport(String name, ClsExportArgs args)
    public ClsExport(String name, ClsExportArgs args, CustomResourceOptions options)
    
    type: tencentcloud:ClsExport
    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 ClsExportArgs
    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 ClsExportArgs
    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 ClsExportArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ClsExportArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ClsExportArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    From double
    export start time.
    LogCount double
    export amount of log.
    Query string
    export query rules.
    To double
    export end time.
    TopicId string
    topic id.
    ClsExportId string
    ID of the resource.
    Format string
    log export format.
    Order string
    log export time sorting. desc or asc.
    From float64
    export start time.
    LogCount float64
    export amount of log.
    Query string
    export query rules.
    To float64
    export end time.
    TopicId string
    topic id.
    ClsExportId string
    ID of the resource.
    Format string
    log export format.
    Order string
    log export time sorting. desc or asc.
    from Double
    export start time.
    logCount Double
    export amount of log.
    query String
    export query rules.
    to Double
    export end time.
    topicId String
    topic id.
    clsExportId String
    ID of the resource.
    format String
    log export format.
    order String
    log export time sorting. desc or asc.
    from number
    export start time.
    logCount number
    export amount of log.
    query string
    export query rules.
    to number
    export end time.
    topicId string
    topic id.
    clsExportId string
    ID of the resource.
    format string
    log export format.
    order string
    log export time sorting. desc or asc.
    from_ float
    export start time.
    log_count float
    export amount of log.
    query str
    export query rules.
    to float
    export end time.
    topic_id str
    topic id.
    cls_export_id str
    ID of the resource.
    format str
    log export format.
    order str
    log export time sorting. desc or asc.
    from Number
    export start time.
    logCount Number
    export amount of log.
    query String
    export query rules.
    to Number
    export end time.
    topicId String
    topic id.
    clsExportId String
    ID of the resource.
    format String
    log export format.
    order String
    log export time sorting. desc or asc.

    Outputs

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

    Get an existing ClsExport 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?: ClsExportState, opts?: CustomResourceOptions): ClsExport
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cls_export_id: Optional[str] = None,
            format: Optional[str] = None,
            from_: Optional[float] = None,
            log_count: Optional[float] = None,
            order: Optional[str] = None,
            query: Optional[str] = None,
            to: Optional[float] = None,
            topic_id: Optional[str] = None) -> ClsExport
    func GetClsExport(ctx *Context, name string, id IDInput, state *ClsExportState, opts ...ResourceOption) (*ClsExport, error)
    public static ClsExport Get(string name, Input<string> id, ClsExportState? state, CustomResourceOptions? opts = null)
    public static ClsExport get(String name, Output<String> id, ClsExportState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:ClsExport    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:
    ClsExportId string
    ID of the resource.
    Format string
    log export format.
    From double
    export start time.
    LogCount double
    export amount of log.
    Order string
    log export time sorting. desc or asc.
    Query string
    export query rules.
    To double
    export end time.
    TopicId string
    topic id.
    ClsExportId string
    ID of the resource.
    Format string
    log export format.
    From float64
    export start time.
    LogCount float64
    export amount of log.
    Order string
    log export time sorting. desc or asc.
    Query string
    export query rules.
    To float64
    export end time.
    TopicId string
    topic id.
    clsExportId String
    ID of the resource.
    format String
    log export format.
    from Double
    export start time.
    logCount Double
    export amount of log.
    order String
    log export time sorting. desc or asc.
    query String
    export query rules.
    to Double
    export end time.
    topicId String
    topic id.
    clsExportId string
    ID of the resource.
    format string
    log export format.
    from number
    export start time.
    logCount number
    export amount of log.
    order string
    log export time sorting. desc or asc.
    query string
    export query rules.
    to number
    export end time.
    topicId string
    topic id.
    cls_export_id str
    ID of the resource.
    format str
    log export format.
    from_ float
    export start time.
    log_count float
    export amount of log.
    order str
    log export time sorting. desc or asc.
    query str
    export query rules.
    to float
    export end time.
    topic_id str
    topic id.
    clsExportId String
    ID of the resource.
    format String
    log export format.
    from Number
    export start time.
    logCount Number
    export amount of log.
    order String
    log export time sorting. desc or asc.
    query String
    export query rules.
    to Number
    export end time.
    topicId String
    topic id.

    Import

    cls export can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/clsExport:ClsExport export topic_id#export_id
    

    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