1. Registry
  2. Packages
  3. Opentelekomcloud Provider
  4. API Docs
  5. LtsStructuringTemplateV3
Viewing docs for opentelekomcloud 1.37.8
published on Thursday, Sep 10, 2026 by opentelekomcloud
Viewing docs for opentelekomcloud 1.37.8
published on Thursday, Sep 10, 2026 by opentelekomcloud

    Up-to-date reference of API arguments for LTS log Structuring templates you can get at documentation portal

    Manages an LTS structuring configuration resource within T-Cloud Public.

    Example Usage

    Creating with system template

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const logGroupId = config.requireObject<any>("logGroupId");
    const logStreamId = config.requireObject<any>("logStreamId");
    const test = new opentelekomcloud.LtsStructuringTemplateV3("test", {
        logGroupId: logGroupId,
        logStreamId: logStreamId,
        templateName: "CTS",
        templateType: "built_in",
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    log_group_id = config.require_object("logGroupId")
    log_stream_id = config.require_object("logStreamId")
    test = opentelekomcloud.LtsStructuringTemplateV3("test",
        log_group_id=log_group_id,
        log_stream_id=log_stream_id,
        template_name="CTS",
        template_type="built_in")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		logGroupId := cfg.RequireObject("logGroupId")
    		logStreamId := cfg.RequireObject("logStreamId")
    		_, err := opentelekomcloud.NewLtsStructuringTemplateV3(ctx, "test", &opentelekomcloud.LtsStructuringTemplateV3Args{
    			LogGroupId:   pulumi.Any(logGroupId),
    			LogStreamId:  pulumi.Any(logStreamId),
    			TemplateName: pulumi.String("CTS"),
    			TemplateType: pulumi.String("built_in"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var logGroupId = config.RequireObject<dynamic>("logGroupId");
        var logStreamId = config.RequireObject<dynamic>("logStreamId");
        var test = new Opentelekomcloud.LtsStructuringTemplateV3("test", new()
        {
            LogGroupId = logGroupId,
            LogStreamId = logStreamId,
            TemplateName = "CTS",
            TemplateType = "built_in",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.LtsStructuringTemplateV3;
    import com.pulumi.opentelekomcloud.LtsStructuringTemplateV3Args;
    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) {
            final var config = ctx.config();
            final var logGroupId = config.get("logGroupId");
            final var logStreamId = config.get("logStreamId");
            var test = new LtsStructuringTemplateV3("test", LtsStructuringTemplateV3Args.builder()
                .logGroupId(logGroupId)
                .logStreamId(logStreamId)
                .templateName("CTS")
                .templateType("built_in")
                .build());
    
        }
    }
    
    configuration:
      logGroupId:
        type: dynamic
      logStreamId:
        type: dynamic
    resources:
      test:
        type: opentelekomcloud:LtsStructuringTemplateV3
        properties:
          logGroupId: ${logGroupId}
          logStreamId: ${logStreamId}
          templateName: CTS
          templateType: built_in
    
    Example coming soon!
    

    Creating with custom template

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const logGroupId = config.requireObject<any>("logGroupId");
    const logStreamId = config.requireObject<any>("logStreamId");
    const templateName = config.requireObject<any>("templateName");
    const templateId = config.requireObject<any>("templateId");
    const test = new opentelekomcloud.LtsStructuringTemplateV3("test", {
        logGroupId: logGroupId,
        logStreamId: logStreamId,
        templateName: templateName,
        templateId: templateId,
        templateType: "custom",
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    log_group_id = config.require_object("logGroupId")
    log_stream_id = config.require_object("logStreamId")
    template_name = config.require_object("templateName")
    template_id = config.require_object("templateId")
    test = opentelekomcloud.LtsStructuringTemplateV3("test",
        log_group_id=log_group_id,
        log_stream_id=log_stream_id,
        template_name=template_name,
        template_id=template_id,
        template_type="custom")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		logGroupId := cfg.RequireObject("logGroupId")
    		logStreamId := cfg.RequireObject("logStreamId")
    		templateName := cfg.RequireObject("templateName")
    		templateId := cfg.RequireObject("templateId")
    		_, err := opentelekomcloud.NewLtsStructuringTemplateV3(ctx, "test", &opentelekomcloud.LtsStructuringTemplateV3Args{
    			LogGroupId:   pulumi.Any(logGroupId),
    			LogStreamId:  pulumi.Any(logStreamId),
    			TemplateName: pulumi.Any(templateName),
    			TemplateId:   pulumi.Any(templateId),
    			TemplateType: pulumi.String("custom"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var logGroupId = config.RequireObject<dynamic>("logGroupId");
        var logStreamId = config.RequireObject<dynamic>("logStreamId");
        var templateName = config.RequireObject<dynamic>("templateName");
        var templateId = config.RequireObject<dynamic>("templateId");
        var test = new Opentelekomcloud.LtsStructuringTemplateV3("test", new()
        {
            LogGroupId = logGroupId,
            LogStreamId = logStreamId,
            TemplateName = templateName,
            TemplateId = templateId,
            TemplateType = "custom",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.LtsStructuringTemplateV3;
    import com.pulumi.opentelekomcloud.LtsStructuringTemplateV3Args;
    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) {
            final var config = ctx.config();
            final var logGroupId = config.get("logGroupId");
            final var logStreamId = config.get("logStreamId");
            final var templateName = config.get("templateName");
            final var templateId = config.get("templateId");
            var test = new LtsStructuringTemplateV3("test", LtsStructuringTemplateV3Args.builder()
                .logGroupId(logGroupId)
                .logStreamId(logStreamId)
                .templateName(templateName)
                .templateId(templateId)
                .templateType("custom")
                .build());
    
        }
    }
    
    configuration:
      logGroupId:
        type: dynamic
      logStreamId:
        type: dynamic
      templateName:
        type: dynamic
      templateId:
        type: dynamic
    resources:
      test:
        type: opentelekomcloud:LtsStructuringTemplateV3
        properties:
          logGroupId: ${logGroupId}
          logStreamId: ${logStreamId}
          templateName: ${templateName}
          templateId: ${templateId}
          templateType: custom
    
    Example coming soon!
    

    Create LtsStructuringTemplateV3 Resource

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

    Constructor syntax

    new LtsStructuringTemplateV3(name: string, args: LtsStructuringTemplateV3Args, opts?: CustomResourceOptions);
    @overload
    def LtsStructuringTemplateV3(resource_name: str,
                                 args: LtsStructuringTemplateV3Args,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def LtsStructuringTemplateV3(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 log_group_id: Optional[str] = None,
                                 log_stream_id: Optional[str] = None,
                                 template_name: Optional[str] = None,
                                 template_type: Optional[str] = None,
                                 demo_fields: Optional[Sequence[LtsStructuringTemplateV3DemoFieldArgs]] = None,
                                 lts_structuring_template_v3_id: Optional[str] = None,
                                 quick_analysis: Optional[bool] = None,
                                 tag_fields: Optional[Sequence[LtsStructuringTemplateV3TagFieldArgs]] = None,
                                 template_id: Optional[str] = None)
    func NewLtsStructuringTemplateV3(ctx *Context, name string, args LtsStructuringTemplateV3Args, opts ...ResourceOption) (*LtsStructuringTemplateV3, error)
    public LtsStructuringTemplateV3(string name, LtsStructuringTemplateV3Args args, CustomResourceOptions? opts = null)
    public LtsStructuringTemplateV3(String name, LtsStructuringTemplateV3Args args)
    public LtsStructuringTemplateV3(String name, LtsStructuringTemplateV3Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:LtsStructuringTemplateV3
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "opentelekomcloud_lts_structuring_template_v3" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args LtsStructuringTemplateV3Args
    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 LtsStructuringTemplateV3Args
    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 LtsStructuringTemplateV3Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LtsStructuringTemplateV3Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LtsStructuringTemplateV3Args
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var ltsStructuringTemplateV3Resource = new Opentelekomcloud.LtsStructuringTemplateV3("ltsStructuringTemplateV3Resource", new()
    {
        LogGroupId = "string",
        LogStreamId = "string",
        TemplateName = "string",
        TemplateType = "string",
        DemoFields = new[]
        {
            new Opentelekomcloud.Inputs.LtsStructuringTemplateV3DemoFieldArgs
            {
                FieldName = "string",
                IsAnalysis = false,
            },
        },
        LtsStructuringTemplateV3Id = "string",
        QuickAnalysis = false,
        TagFields = new[]
        {
            new Opentelekomcloud.Inputs.LtsStructuringTemplateV3TagFieldArgs
            {
                FieldName = "string",
                IsAnalysis = false,
            },
        },
        TemplateId = "string",
    });
    
    example, err := opentelekomcloud.NewLtsStructuringTemplateV3(ctx, "ltsStructuringTemplateV3Resource", &opentelekomcloud.LtsStructuringTemplateV3Args{
    	LogGroupId:   pulumi.String("string"),
    	LogStreamId:  pulumi.String("string"),
    	TemplateName: pulumi.String("string"),
    	TemplateType: pulumi.String("string"),
    	DemoFields: opentelekomcloud.LtsStructuringTemplateV3DemoFieldArray{
    		&opentelekomcloud.LtsStructuringTemplateV3DemoFieldArgs{
    			FieldName:  pulumi.String("string"),
    			IsAnalysis: pulumi.Bool(false),
    		},
    	},
    	LtsStructuringTemplateV3Id: pulumi.String("string"),
    	QuickAnalysis:              pulumi.Bool(false),
    	TagFields: opentelekomcloud.LtsStructuringTemplateV3TagFieldArray{
    		&opentelekomcloud.LtsStructuringTemplateV3TagFieldArgs{
    			FieldName:  pulumi.String("string"),
    			IsAnalysis: pulumi.Bool(false),
    		},
    	},
    	TemplateId: pulumi.String("string"),
    })
    
    resource "opentelekomcloud_lts_structuring_template_v3" "ltsStructuringTemplateV3Resource" {
      lifecycle {
        create_before_destroy = true
      }
      log_group_id  = "string"
      log_stream_id = "string"
      template_name = "string"
      template_type = "string"
      demo_fields {
        field_name  = "string"
        is_analysis = false
      }
      lts_structuring_template_v3_id = "string"
      quick_analysis                 = false
      tag_fields {
        field_name  = "string"
        is_analysis = false
      }
      template_id = "string"
    }
    
    var ltsStructuringTemplateV3Resource = new LtsStructuringTemplateV3("ltsStructuringTemplateV3Resource", LtsStructuringTemplateV3Args.builder()
        .logGroupId("string")
        .logStreamId("string")
        .templateName("string")
        .templateType("string")
        .demoFields(LtsStructuringTemplateV3DemoFieldArgs.builder()
            .fieldName("string")
            .isAnalysis(false)
            .build())
        .ltsStructuringTemplateV3Id("string")
        .quickAnalysis(false)
        .tagFields(LtsStructuringTemplateV3TagFieldArgs.builder()
            .fieldName("string")
            .isAnalysis(false)
            .build())
        .templateId("string")
        .build());
    
    lts_structuring_template_v3_resource = opentelekomcloud.LtsStructuringTemplateV3("ltsStructuringTemplateV3Resource",
        log_group_id="string",
        log_stream_id="string",
        template_name="string",
        template_type="string",
        demo_fields=[{
            "field_name": "string",
            "is_analysis": False,
        }],
        lts_structuring_template_v3_id="string",
        quick_analysis=False,
        tag_fields=[{
            "field_name": "string",
            "is_analysis": False,
        }],
        template_id="string")
    
    const ltsStructuringTemplateV3Resource = new opentelekomcloud.LtsStructuringTemplateV3("ltsStructuringTemplateV3Resource", {
        logGroupId: "string",
        logStreamId: "string",
        templateName: "string",
        templateType: "string",
        demoFields: [{
            fieldName: "string",
            isAnalysis: false,
        }],
        ltsStructuringTemplateV3Id: "string",
        quickAnalysis: false,
        tagFields: [{
            fieldName: "string",
            isAnalysis: false,
        }],
        templateId: "string",
    });
    
    type: opentelekomcloud:LtsStructuringTemplateV3
    properties:
        demoFields:
            - fieldName: string
              isAnalysis: false
        logGroupId: string
        logStreamId: string
        ltsStructuringTemplateV3Id: string
        quickAnalysis: false
        tagFields:
            - fieldName: string
              isAnalysis: false
        templateId: string
        templateName: string
        templateType: string
    

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

    LogGroupId string
    Specifies the log group ID. Changing this parameter will create a new resource.
    LogStreamId string
    Specifies the log stream ID. Changing this parameter will create a new resource.
    TemplateName string
    Specifies the template name. When template_type is set to built_in, valid values are:

    • ELB
    • VPC
    • CTS
    • APIG
    • DCS_AUDIT: DCS audit log.
    • TOMCAT
    • NGINX
    • GAUSSDB_OPENGAUSS_AUDIT: GAUSSV5 audit log.
    • DDS_AUDIT: DDS audit log.
    • MONGODB_ERROR: DDS error log.
    • MONGODB_SLOW: DDS slow log.
    • CFW_ACCESS: CFW access control log.
    • CFW_ATTACK: CFW attack log.
    • CFW_FLOW: CFW traffic log.
    • MYSQL_ERROR: MYSQL error log.
    • MYSQL_SLOW: MYSQL slow log:
    • POSTGRESQL_SLOW: POSTGRESQL slow log.
    • POSTGRESQL_ERROR: POSTGRESQL error log.
    • SQLSERVER_ERROR: SQLSERVER error log.
    • GAUSSDB_REDIS_SLOW: GAUSSDB_REDIS slow log.
    • CDN
    • SMN
    • GAUSSDB_MYSQL_ERROR: GAUSSDB_MYSQL error log.
    • GAUSSDB_MYSQL_SLOW: GAUSSDB_MYSQL slow log.
    • ER: ER Enterprise Router.
    • MYSQL_AUDIT: MYSQL audit log.
    • GAUSSDB_CASSANDRA_SLOW: GaussDBforCassandra slow log.
    • GAUSSDB_MONGO_SLOW: GaussDBforMongo slow log.
    • GAUSSDB_MONGO_ERROR: GaussDBforMongo error log.
    • WAF_ACCESS: WAF access log.
    • WAF_ATTACK: WAF attack log.
    • DMS_REBALANCED:DMS rebalancing log.
    • CCE_AUDIT: CCE audit log.
    • CCE_EVENT: CCE event log.
    • GAUSSDB_REDIS_AUDIT: GaussDBforRedis audit log.
    TemplateType string
    Specifies the type of the template. The valid values are as follows:

    • built_in: System templates.
    • custom: Custom templates.
    DemoFields List<LtsStructuringTemplateV3DemoField>
    Specifies the example fields. Use to set quick analysis configurations for fields. Only need to enter the fields whose status is different from that of is_analysis in the template. The demo_fields structure is documented below.
    LtsStructuringTemplateV3Id string
    The resource ID.
    QuickAnalysis bool

    Specifies whether to enable demo_fields and tag_fields quick analysis.

    • If this parameter is set to true, quick analysis is enabled for all demo_fields and tag_fields.
    • If this parameter is set to false, is_analysis in demo_fields and tag_fields in the template determines whether to enable quick analysis.

    Defaults to false.

    The demo_fields and tag_fields block supports:

    TagFields List<LtsStructuringTemplateV3TagField>
    Specifies the tag fields. Use to set quick analysis configurations for fields. Only need to enter the fields whose status is different from that of is_analysis in the template. The tag_fields structure is documented below.
    TemplateId string
    Specifies the template ID. The field is valid and required only when template_type is set to custom.
    LogGroupId string
    Specifies the log group ID. Changing this parameter will create a new resource.
    LogStreamId string
    Specifies the log stream ID. Changing this parameter will create a new resource.
    TemplateName string
    Specifies the template name. When template_type is set to built_in, valid values are:

    • ELB
    • VPC
    • CTS
    • APIG
    • DCS_AUDIT: DCS audit log.
    • TOMCAT
    • NGINX
    • GAUSSDB_OPENGAUSS_AUDIT: GAUSSV5 audit log.
    • DDS_AUDIT: DDS audit log.
    • MONGODB_ERROR: DDS error log.
    • MONGODB_SLOW: DDS slow log.
    • CFW_ACCESS: CFW access control log.
    • CFW_ATTACK: CFW attack log.
    • CFW_FLOW: CFW traffic log.
    • MYSQL_ERROR: MYSQL error log.
    • MYSQL_SLOW: MYSQL slow log:
    • POSTGRESQL_SLOW: POSTGRESQL slow log.
    • POSTGRESQL_ERROR: POSTGRESQL error log.
    • SQLSERVER_ERROR: SQLSERVER error log.
    • GAUSSDB_REDIS_SLOW: GAUSSDB_REDIS slow log.
    • CDN
    • SMN
    • GAUSSDB_MYSQL_ERROR: GAUSSDB_MYSQL error log.
    • GAUSSDB_MYSQL_SLOW: GAUSSDB_MYSQL slow log.
    • ER: ER Enterprise Router.
    • MYSQL_AUDIT: MYSQL audit log.
    • GAUSSDB_CASSANDRA_SLOW: GaussDBforCassandra slow log.
    • GAUSSDB_MONGO_SLOW: GaussDBforMongo slow log.
    • GAUSSDB_MONGO_ERROR: GaussDBforMongo error log.
    • WAF_ACCESS: WAF access log.
    • WAF_ATTACK: WAF attack log.
    • DMS_REBALANCED:DMS rebalancing log.
    • CCE_AUDIT: CCE audit log.
    • CCE_EVENT: CCE event log.
    • GAUSSDB_REDIS_AUDIT: GaussDBforRedis audit log.
    TemplateType string
    Specifies the type of the template. The valid values are as follows:

    • built_in: System templates.
    • custom: Custom templates.
    DemoFields []LtsStructuringTemplateV3DemoFieldArgs
    Specifies the example fields. Use to set quick analysis configurations for fields. Only need to enter the fields whose status is different from that of is_analysis in the template. The demo_fields structure is documented below.
    LtsStructuringTemplateV3Id string
    The resource ID.
    QuickAnalysis bool

    Specifies whether to enable demo_fields and tag_fields quick analysis.

    • If this parameter is set to true, quick analysis is enabled for all demo_fields and tag_fields.
    • If this parameter is set to false, is_analysis in demo_fields and tag_fields in the template determines whether to enable quick analysis.

    Defaults to false.

    The demo_fields and tag_fields block supports:

    TagFields []LtsStructuringTemplateV3TagFieldArgs
    Specifies the tag fields. Use to set quick analysis configurations for fields. Only need to enter the fields whose status is different from that of is_analysis in the template. The tag_fields structure is documented below.
    TemplateId string
    Specifies the template ID. The field is valid and required only when template_type is set to custom.
    log_group_id string
    Specifies the log group ID. Changing this parameter will create a new resource.
    log_stream_id string
    Specifies the log stream ID. Changing this parameter will create a new resource.
    template_name string
    Specifies the template name. When template_type is set to built_in, valid values are:

    • ELB
    • VPC
    • CTS
    • APIG
    • DCS_AUDIT: DCS audit log.
    • TOMCAT
    • NGINX
    • GAUSSDB_OPENGAUSS_AUDIT: GAUSSV5 audit log.
    • DDS_AUDIT: DDS audit log.
    • MONGODB_ERROR: DDS error log.
    • MONGODB_SLOW: DDS slow log.
    • CFW_ACCESS: CFW access control log.
    • CFW_ATTACK: CFW attack log.
    • CFW_FLOW: CFW traffic log.
    • MYSQL_ERROR: MYSQL error log.
    • MYSQL_SLOW: MYSQL slow log:
    • POSTGRESQL_SLOW: POSTGRESQL slow log.
    • POSTGRESQL_ERROR: POSTGRESQL error log.
    • SQLSERVER_ERROR: SQLSERVER error log.
    • GAUSSDB_REDIS_SLOW: GAUSSDB_REDIS slow log.
    • CDN
    • SMN
    • GAUSSDB_MYSQL_ERROR: GAUSSDB_MYSQL error log.
    • GAUSSDB_MYSQL_SLOW: GAUSSDB_MYSQL slow log.
    • ER: ER Enterprise Router.
    • MYSQL_AUDIT: MYSQL audit log.
    • GAUSSDB_CASSANDRA_SLOW: GaussDBforCassandra slow log.
    • GAUSSDB_MONGO_SLOW: GaussDBforMongo slow log.
    • GAUSSDB_MONGO_ERROR: GaussDBforMongo error log.
    • WAF_ACCESS: WAF access log.
    • WAF_ATTACK: WAF attack log.
    • DMS_REBALANCED:DMS rebalancing log.
    • CCE_AUDIT: CCE audit log.
    • CCE_EVENT: CCE event log.
    • GAUSSDB_REDIS_AUDIT: GaussDBforRedis audit log.
    template_type string
    Specifies the type of the template. The valid values are as follows:

    • built_in: System templates.
    • custom: Custom templates.
    demo_fields list(object)
    Specifies the example fields. Use to set quick analysis configurations for fields. Only need to enter the fields whose status is different from that of is_analysis in the template. The demo_fields structure is documented below.
    lts_structuring_template_v3_id string
    The resource ID.
    quick_analysis bool

    Specifies whether to enable demo_fields and tag_fields quick analysis.

    • If this parameter is set to true, quick analysis is enabled for all demo_fields and tag_fields.
    • If this parameter is set to false, is_analysis in demo_fields and tag_fields in the template determines whether to enable quick analysis.

    Defaults to false.

    The demo_fields and tag_fields block supports:

    tag_fields list(object)
    Specifies the tag fields. Use to set quick analysis configurations for fields. Only need to enter the fields whose status is different from that of is_analysis in the template. The tag_fields structure is documented below.
    template_id string
    Specifies the template ID. The field is valid and required only when template_type is set to custom.
    logGroupId String
    Specifies the log group ID. Changing this parameter will create a new resource.
    logStreamId String
    Specifies the log stream ID. Changing this parameter will create a new resource.
    templateName String
    Specifies the template name. When template_type is set to built_in, valid values are:

    • ELB
    • VPC
    • CTS
    • APIG
    • DCS_AUDIT: DCS audit log.
    • TOMCAT
    • NGINX
    • GAUSSDB_OPENGAUSS_AUDIT: GAUSSV5 audit log.
    • DDS_AUDIT: DDS audit log.
    • MONGODB_ERROR: DDS error log.
    • MONGODB_SLOW: DDS slow log.
    • CFW_ACCESS: CFW access control log.
    • CFW_ATTACK: CFW attack log.
    • CFW_FLOW: CFW traffic log.
    • MYSQL_ERROR: MYSQL error log.
    • MYSQL_SLOW: MYSQL slow log:
    • POSTGRESQL_SLOW: POSTGRESQL slow log.
    • POSTGRESQL_ERROR: POSTGRESQL error log.
    • SQLSERVER_ERROR: SQLSERVER error log.
    • GAUSSDB_REDIS_SLOW: GAUSSDB_REDIS slow log.
    • CDN
    • SMN
    • GAUSSDB_MYSQL_ERROR: GAUSSDB_MYSQL error log.
    • GAUSSDB_MYSQL_SLOW: GAUSSDB_MYSQL slow log.
    • ER: ER Enterprise Router.
    • MYSQL_AUDIT: MYSQL audit log.
    • GAUSSDB_CASSANDRA_SLOW: GaussDBforCassandra slow log.
    • GAUSSDB_MONGO_SLOW: GaussDBforMongo slow log.
    • GAUSSDB_MONGO_ERROR: GaussDBforMongo error log.
    • WAF_ACCESS: WAF access log.
    • WAF_ATTACK: WAF attack log.
    • DMS_REBALANCED:DMS rebalancing log.
    • CCE_AUDIT: CCE audit log.
    • CCE_EVENT: CCE event log.
    • GAUSSDB_REDIS_AUDIT: GaussDBforRedis audit log.
    templateType String
    Specifies the type of the template. The valid values are as follows:

    • built_in: System templates.
    • custom: Custom templates.
    demoFields List<LtsStructuringTemplateV3DemoField>
    Specifies the example fields. Use to set quick analysis configurations for fields. Only need to enter the fields whose status is different from that of is_analysis in the template. The demo_fields structure is documented below.
    ltsStructuringTemplateV3Id String
    The resource ID.
    quickAnalysis Boolean

    Specifies whether to enable demo_fields and tag_fields quick analysis.

    • If this parameter is set to true, quick analysis is enabled for all demo_fields and tag_fields.
    • If this parameter is set to false, is_analysis in demo_fields and tag_fields in the template determines whether to enable quick analysis.

    Defaults to false.

    The demo_fields and tag_fields block supports:

    tagFields List<LtsStructuringTemplateV3TagField>
    Specifies the tag fields. Use to set quick analysis configurations for fields. Only need to enter the fields whose status is different from that of is_analysis in the template. The tag_fields structure is documented below.
    templateId String
    Specifies the template ID. The field is valid and required only when template_type is set to custom.
    logGroupId string
    Specifies the log group ID. Changing this parameter will create a new resource.
    logStreamId string
    Specifies the log stream ID. Changing this parameter will create a new resource.
    templateName string
    Specifies the template name. When template_type is set to built_in, valid values are:

    • ELB
    • VPC
    • CTS
    • APIG
    • DCS_AUDIT: DCS audit log.
    • TOMCAT
    • NGINX
    • GAUSSDB_OPENGAUSS_AUDIT: GAUSSV5 audit log.
    • DDS_AUDIT: DDS audit log.
    • MONGODB_ERROR: DDS error log.
    • MONGODB_SLOW: DDS slow log.
    • CFW_ACCESS: CFW access control log.
    • CFW_ATTACK: CFW attack log.
    • CFW_FLOW: CFW traffic log.
    • MYSQL_ERROR: MYSQL error log.
    • MYSQL_SLOW: MYSQL slow log:
    • POSTGRESQL_SLOW: POSTGRESQL slow log.
    • POSTGRESQL_ERROR: POSTGRESQL error log.
    • SQLSERVER_ERROR: SQLSERVER error log.
    • GAUSSDB_REDIS_SLOW: GAUSSDB_REDIS slow log.
    • CDN
    • SMN
    • GAUSSDB_MYSQL_ERROR: GAUSSDB_MYSQL error log.
    • GAUSSDB_MYSQL_SLOW: GAUSSDB_MYSQL slow log.
    • ER: ER Enterprise Router.
    • MYSQL_AUDIT: MYSQL audit log.
    • GAUSSDB_CASSANDRA_SLOW: GaussDBforCassandra slow log.
    • GAUSSDB_MONGO_SLOW: GaussDBforMongo slow log.
    • GAUSSDB_MONGO_ERROR: GaussDBforMongo error log.
    • WAF_ACCESS: WAF access log.
    • WAF_ATTACK: WAF attack log.
    • DMS_REBALANCED:DMS rebalancing log.
    • CCE_AUDIT: CCE audit log.
    • CCE_EVENT: CCE event log.
    • GAUSSDB_REDIS_AUDIT: GaussDBforRedis audit log.
    templateType string
    Specifies the type of the template. The valid values are as follows:

    • built_in: System templates.
    • custom: Custom templates.
    demoFields LtsStructuringTemplateV3DemoField[]
    Specifies the example fields. Use to set quick analysis configurations for fields. Only need to enter the fields whose status is different from that of is_analysis in the template. The demo_fields structure is documented below.
    ltsStructuringTemplateV3Id string
    The resource ID.
    quickAnalysis boolean

    Specifies whether to enable demo_fields and tag_fields quick analysis.

    • If this parameter is set to true, quick analysis is enabled for all demo_fields and tag_fields.
    • If this parameter is set to false, is_analysis in demo_fields and tag_fields in the template determines whether to enable quick analysis.

    Defaults to false.

    The demo_fields and tag_fields block supports:

    tagFields LtsStructuringTemplateV3TagField[]
    Specifies the tag fields. Use to set quick analysis configurations for fields. Only need to enter the fields whose status is different from that of is_analysis in the template. The tag_fields structure is documented below.
    templateId string
    Specifies the template ID. The field is valid and required only when template_type is set to custom.
    log_group_id str
    Specifies the log group ID. Changing this parameter will create a new resource.
    log_stream_id str
    Specifies the log stream ID. Changing this parameter will create a new resource.
    template_name str
    Specifies the template name. When template_type is set to built_in, valid values are:

    • ELB
    • VPC
    • CTS
    • APIG
    • DCS_AUDIT: DCS audit log.
    • TOMCAT
    • NGINX
    • GAUSSDB_OPENGAUSS_AUDIT: GAUSSV5 audit log.
    • DDS_AUDIT: DDS audit log.
    • MONGODB_ERROR: DDS error log.
    • MONGODB_SLOW: DDS slow log.
    • CFW_ACCESS: CFW access control log.
    • CFW_ATTACK: CFW attack log.
    • CFW_FLOW: CFW traffic log.
    • MYSQL_ERROR: MYSQL error log.
    • MYSQL_SLOW: MYSQL slow log:
    • POSTGRESQL_SLOW: POSTGRESQL slow log.
    • POSTGRESQL_ERROR: POSTGRESQL error log.
    • SQLSERVER_ERROR: SQLSERVER error log.
    • GAUSSDB_REDIS_SLOW: GAUSSDB_REDIS slow log.
    • CDN
    • SMN
    • GAUSSDB_MYSQL_ERROR: GAUSSDB_MYSQL error log.
    • GAUSSDB_MYSQL_SLOW: GAUSSDB_MYSQL slow log.
    • ER: ER Enterprise Router.
    • MYSQL_AUDIT: MYSQL audit log.
    • GAUSSDB_CASSANDRA_SLOW: GaussDBforCassandra slow log.
    • GAUSSDB_MONGO_SLOW: GaussDBforMongo slow log.
    • GAUSSDB_MONGO_ERROR: GaussDBforMongo error log.
    • WAF_ACCESS: WAF access log.
    • WAF_ATTACK: WAF attack log.
    • DMS_REBALANCED:DMS rebalancing log.
    • CCE_AUDIT: CCE audit log.
    • CCE_EVENT: CCE event log.
    • GAUSSDB_REDIS_AUDIT: GaussDBforRedis audit log.
    template_type str
    Specifies the type of the template. The valid values are as follows:

    • built_in: System templates.
    • custom: Custom templates.
    demo_fields Sequence[LtsStructuringTemplateV3DemoFieldArgs]
    Specifies the example fields. Use to set quick analysis configurations for fields. Only need to enter the fields whose status is different from that of is_analysis in the template. The demo_fields structure is documented below.
    lts_structuring_template_v3_id str
    The resource ID.
    quick_analysis bool

    Specifies whether to enable demo_fields and tag_fields quick analysis.

    • If this parameter is set to true, quick analysis is enabled for all demo_fields and tag_fields.
    • If this parameter is set to false, is_analysis in demo_fields and tag_fields in the template determines whether to enable quick analysis.

    Defaults to false.

    The demo_fields and tag_fields block supports:

    tag_fields Sequence[LtsStructuringTemplateV3TagFieldArgs]
    Specifies the tag fields. Use to set quick analysis configurations for fields. Only need to enter the fields whose status is different from that of is_analysis in the template. The tag_fields structure is documented below.
    template_id str
    Specifies the template ID. The field is valid and required only when template_type is set to custom.
    logGroupId String
    Specifies the log group ID. Changing this parameter will create a new resource.
    logStreamId String
    Specifies the log stream ID. Changing this parameter will create a new resource.
    templateName String
    Specifies the template name. When template_type is set to built_in, valid values are:

    • ELB
    • VPC
    • CTS
    • APIG
    • DCS_AUDIT: DCS audit log.
    • TOMCAT
    • NGINX
    • GAUSSDB_OPENGAUSS_AUDIT: GAUSSV5 audit log.
    • DDS_AUDIT: DDS audit log.
    • MONGODB_ERROR: DDS error log.
    • MONGODB_SLOW: DDS slow log.
    • CFW_ACCESS: CFW access control log.
    • CFW_ATTACK: CFW attack log.
    • CFW_FLOW: CFW traffic log.
    • MYSQL_ERROR: MYSQL error log.
    • MYSQL_SLOW: MYSQL slow log:
    • POSTGRESQL_SLOW: POSTGRESQL slow log.
    • POSTGRESQL_ERROR: POSTGRESQL error log.
    • SQLSERVER_ERROR: SQLSERVER error log.
    • GAUSSDB_REDIS_SLOW: GAUSSDB_REDIS slow log.
    • CDN
    • SMN
    • GAUSSDB_MYSQL_ERROR: GAUSSDB_MYSQL error log.
    • GAUSSDB_MYSQL_SLOW: GAUSSDB_MYSQL slow log.
    • ER: ER Enterprise Router.
    • MYSQL_AUDIT: MYSQL audit log.
    • GAUSSDB_CASSANDRA_SLOW: GaussDBforCassandra slow log.
    • GAUSSDB_MONGO_SLOW: GaussDBforMongo slow log.
    • GAUSSDB_MONGO_ERROR: GaussDBforMongo error log.
    • WAF_ACCESS: WAF access log.
    • WAF_ATTACK: WAF attack log.
    • DMS_REBALANCED:DMS rebalancing log.
    • CCE_AUDIT: CCE audit log.
    • CCE_EVENT: CCE event log.
    • GAUSSDB_REDIS_AUDIT: GaussDBforRedis audit log.
    templateType String
    Specifies the type of the template. The valid values are as follows:

    • built_in: System templates.
    • custom: Custom templates.
    demoFields List<Property Map>
    Specifies the example fields. Use to set quick analysis configurations for fields. Only need to enter the fields whose status is different from that of is_analysis in the template. The demo_fields structure is documented below.
    ltsStructuringTemplateV3Id String
    The resource ID.
    quickAnalysis Boolean

    Specifies whether to enable demo_fields and tag_fields quick analysis.

    • If this parameter is set to true, quick analysis is enabled for all demo_fields and tag_fields.
    • If this parameter is set to false, is_analysis in demo_fields and tag_fields in the template determines whether to enable quick analysis.

    Defaults to false.

    The demo_fields and tag_fields block supports:

    tagFields List<Property Map>
    Specifies the tag fields. Use to set quick analysis configurations for fields. Only need to enter the fields whose status is different from that of is_analysis in the template. The tag_fields structure is documented below.
    templateId String
    Specifies the template ID. The field is valid and required only when template_type is set to custom.

    Outputs

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

    DemoLog string
    The sample log event.
    Id string
    The provider-assigned unique ID for this managed resource.
    Region string
    DemoLog string
    The sample log event.
    Id string
    The provider-assigned unique ID for this managed resource.
    Region string
    demo_log string
    The sample log event.
    id string
    The provider-assigned unique ID for this managed resource.
    region string
    demoLog String
    The sample log event.
    id String
    The provider-assigned unique ID for this managed resource.
    region String
    demoLog string
    The sample log event.
    id string
    The provider-assigned unique ID for this managed resource.
    region string
    demo_log str
    The sample log event.
    id str
    The provider-assigned unique ID for this managed resource.
    region str
    demoLog String
    The sample log event.
    id String
    The provider-assigned unique ID for this managed resource.
    region String

    Look up Existing LtsStructuringTemplateV3 Resource

    Get an existing LtsStructuringTemplateV3 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?: LtsStructuringTemplateV3State, opts?: CustomResourceOptions): LtsStructuringTemplateV3
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            demo_fields: Optional[Sequence[LtsStructuringTemplateV3DemoFieldArgs]] = None,
            demo_log: Optional[str] = None,
            log_group_id: Optional[str] = None,
            log_stream_id: Optional[str] = None,
            lts_structuring_template_v3_id: Optional[str] = None,
            quick_analysis: Optional[bool] = None,
            region: Optional[str] = None,
            tag_fields: Optional[Sequence[LtsStructuringTemplateV3TagFieldArgs]] = None,
            template_id: Optional[str] = None,
            template_name: Optional[str] = None,
            template_type: Optional[str] = None) -> LtsStructuringTemplateV3
    func GetLtsStructuringTemplateV3(ctx *Context, name string, id IDInput, state *LtsStructuringTemplateV3State, opts ...ResourceOption) (*LtsStructuringTemplateV3, error)
    public static LtsStructuringTemplateV3 Get(string name, Input<string> id, LtsStructuringTemplateV3State? state, CustomResourceOptions? opts = null)
    public static LtsStructuringTemplateV3 get(String name, Output<String> id, LtsStructuringTemplateV3State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:LtsStructuringTemplateV3    get:      id: ${id}
    import {
      to = opentelekomcloud_lts_structuring_template_v3.example
      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:
    DemoFields List<LtsStructuringTemplateV3DemoField>
    Specifies the example fields. Use to set quick analysis configurations for fields. Only need to enter the fields whose status is different from that of is_analysis in the template. The demo_fields structure is documented below.
    DemoLog string
    The sample log event.
    LogGroupId string
    Specifies the log group ID. Changing this parameter will create a new resource.
    LogStreamId string
    Specifies the log stream ID. Changing this parameter will create a new resource.
    LtsStructuringTemplateV3Id string
    The resource ID.
    QuickAnalysis bool

    Specifies whether to enable demo_fields and tag_fields quick analysis.

    • If this parameter is set to true, quick analysis is enabled for all demo_fields and tag_fields.
    • If this parameter is set to false, is_analysis in demo_fields and tag_fields in the template determines whether to enable quick analysis.

    Defaults to false.

    The demo_fields and tag_fields block supports:

    Region string
    TagFields List<LtsStructuringTemplateV3TagField>
    Specifies the tag fields. Use to set quick analysis configurations for fields. Only need to enter the fields whose status is different from that of is_analysis in the template. The tag_fields structure is documented below.
    TemplateId string
    Specifies the template ID. The field is valid and required only when template_type is set to custom.
    TemplateName string
    Specifies the template name. When template_type is set to built_in, valid values are:

    • ELB
    • VPC
    • CTS
    • APIG
    • DCS_AUDIT: DCS audit log.
    • TOMCAT
    • NGINX
    • GAUSSDB_OPENGAUSS_AUDIT: GAUSSV5 audit log.
    • DDS_AUDIT: DDS audit log.
    • MONGODB_ERROR: DDS error log.
    • MONGODB_SLOW: DDS slow log.
    • CFW_ACCESS: CFW access control log.
    • CFW_ATTACK: CFW attack log.
    • CFW_FLOW: CFW traffic log.
    • MYSQL_ERROR: MYSQL error log.
    • MYSQL_SLOW: MYSQL slow log:
    • POSTGRESQL_SLOW: POSTGRESQL slow log.
    • POSTGRESQL_ERROR: POSTGRESQL error log.
    • SQLSERVER_ERROR: SQLSERVER error log.
    • GAUSSDB_REDIS_SLOW: GAUSSDB_REDIS slow log.
    • CDN
    • SMN
    • GAUSSDB_MYSQL_ERROR: GAUSSDB_MYSQL error log.
    • GAUSSDB_MYSQL_SLOW: GAUSSDB_MYSQL slow log.
    • ER: ER Enterprise Router.
    • MYSQL_AUDIT: MYSQL audit log.
    • GAUSSDB_CASSANDRA_SLOW: GaussDBforCassandra slow log.
    • GAUSSDB_MONGO_SLOW: GaussDBforMongo slow log.
    • GAUSSDB_MONGO_ERROR: GaussDBforMongo error log.
    • WAF_ACCESS: WAF access log.
    • WAF_ATTACK: WAF attack log.
    • DMS_REBALANCED:DMS rebalancing log.
    • CCE_AUDIT: CCE audit log.
    • CCE_EVENT: CCE event log.
    • GAUSSDB_REDIS_AUDIT: GaussDBforRedis audit log.
    TemplateType string
    Specifies the type of the template. The valid values are as follows:

    • built_in: System templates.
    • custom: Custom templates.
    DemoFields []LtsStructuringTemplateV3DemoFieldArgs
    Specifies the example fields. Use to set quick analysis configurations for fields. Only need to enter the fields whose status is different from that of is_analysis in the template. The demo_fields structure is documented below.
    DemoLog string
    The sample log event.
    LogGroupId string
    Specifies the log group ID. Changing this parameter will create a new resource.
    LogStreamId string
    Specifies the log stream ID. Changing this parameter will create a new resource.
    LtsStructuringTemplateV3Id string
    The resource ID.
    QuickAnalysis bool

    Specifies whether to enable demo_fields and tag_fields quick analysis.

    • If this parameter is set to true, quick analysis is enabled for all demo_fields and tag_fields.
    • If this parameter is set to false, is_analysis in demo_fields and tag_fields in the template determines whether to enable quick analysis.

    Defaults to false.

    The demo_fields and tag_fields block supports:

    Region string
    TagFields []LtsStructuringTemplateV3TagFieldArgs
    Specifies the tag fields. Use to set quick analysis configurations for fields. Only need to enter the fields whose status is different from that of is_analysis in the template. The tag_fields structure is documented below.
    TemplateId string
    Specifies the template ID. The field is valid and required only when template_type is set to custom.
    TemplateName string
    Specifies the template name. When template_type is set to built_in, valid values are:

    • ELB
    • VPC
    • CTS
    • APIG
    • DCS_AUDIT: DCS audit log.
    • TOMCAT
    • NGINX
    • GAUSSDB_OPENGAUSS_AUDIT: GAUSSV5 audit log.
    • DDS_AUDIT: DDS audit log.
    • MONGODB_ERROR: DDS error log.
    • MONGODB_SLOW: DDS slow log.
    • CFW_ACCESS: CFW access control log.
    • CFW_ATTACK: CFW attack log.
    • CFW_FLOW: CFW traffic log.
    • MYSQL_ERROR: MYSQL error log.
    • MYSQL_SLOW: MYSQL slow log:
    • POSTGRESQL_SLOW: POSTGRESQL slow log.
    • POSTGRESQL_ERROR: POSTGRESQL error log.
    • SQLSERVER_ERROR: SQLSERVER error log.
    • GAUSSDB_REDIS_SLOW: GAUSSDB_REDIS slow log.
    • CDN
    • SMN
    • GAUSSDB_MYSQL_ERROR: GAUSSDB_MYSQL error log.
    • GAUSSDB_MYSQL_SLOW: GAUSSDB_MYSQL slow log.
    • ER: ER Enterprise Router.
    • MYSQL_AUDIT: MYSQL audit log.
    • GAUSSDB_CASSANDRA_SLOW: GaussDBforCassandra slow log.
    • GAUSSDB_MONGO_SLOW: GaussDBforMongo slow log.
    • GAUSSDB_MONGO_ERROR: GaussDBforMongo error log.
    • WAF_ACCESS: WAF access log.
    • WAF_ATTACK: WAF attack log.
    • DMS_REBALANCED:DMS rebalancing log.
    • CCE_AUDIT: CCE audit log.
    • CCE_EVENT: CCE event log.
    • GAUSSDB_REDIS_AUDIT: GaussDBforRedis audit log.
    TemplateType string
    Specifies the type of the template. The valid values are as follows:

    • built_in: System templates.
    • custom: Custom templates.
    demo_fields list(object)
    Specifies the example fields. Use to set quick analysis configurations for fields. Only need to enter the fields whose status is different from that of is_analysis in the template. The demo_fields structure is documented below.
    demo_log string
    The sample log event.
    log_group_id string
    Specifies the log group ID. Changing this parameter will create a new resource.
    log_stream_id string
    Specifies the log stream ID. Changing this parameter will create a new resource.
    lts_structuring_template_v3_id string
    The resource ID.
    quick_analysis bool

    Specifies whether to enable demo_fields and tag_fields quick analysis.

    • If this parameter is set to true, quick analysis is enabled for all demo_fields and tag_fields.
    • If this parameter is set to false, is_analysis in demo_fields and tag_fields in the template determines whether to enable quick analysis.

    Defaults to false.

    The demo_fields and tag_fields block supports:

    region string
    tag_fields list(object)
    Specifies the tag fields. Use to set quick analysis configurations for fields. Only need to enter the fields whose status is different from that of is_analysis in the template. The tag_fields structure is documented below.
    template_id string
    Specifies the template ID. The field is valid and required only when template_type is set to custom.
    template_name string
    Specifies the template name. When template_type is set to built_in, valid values are:

    • ELB
    • VPC
    • CTS
    • APIG
    • DCS_AUDIT: DCS audit log.
    • TOMCAT
    • NGINX
    • GAUSSDB_OPENGAUSS_AUDIT: GAUSSV5 audit log.
    • DDS_AUDIT: DDS audit log.
    • MONGODB_ERROR: DDS error log.
    • MONGODB_SLOW: DDS slow log.
    • CFW_ACCESS: CFW access control log.
    • CFW_ATTACK: CFW attack log.
    • CFW_FLOW: CFW traffic log.
    • MYSQL_ERROR: MYSQL error log.
    • MYSQL_SLOW: MYSQL slow log:
    • POSTGRESQL_SLOW: POSTGRESQL slow log.
    • POSTGRESQL_ERROR: POSTGRESQL error log.
    • SQLSERVER_ERROR: SQLSERVER error log.
    • GAUSSDB_REDIS_SLOW: GAUSSDB_REDIS slow log.
    • CDN
    • SMN
    • GAUSSDB_MYSQL_ERROR: GAUSSDB_MYSQL error log.
    • GAUSSDB_MYSQL_SLOW: GAUSSDB_MYSQL slow log.
    • ER: ER Enterprise Router.
    • MYSQL_AUDIT: MYSQL audit log.
    • GAUSSDB_CASSANDRA_SLOW: GaussDBforCassandra slow log.
    • GAUSSDB_MONGO_SLOW: GaussDBforMongo slow log.
    • GAUSSDB_MONGO_ERROR: GaussDBforMongo error log.
    • WAF_ACCESS: WAF access log.
    • WAF_ATTACK: WAF attack log.
    • DMS_REBALANCED:DMS rebalancing log.
    • CCE_AUDIT: CCE audit log.
    • CCE_EVENT: CCE event log.
    • GAUSSDB_REDIS_AUDIT: GaussDBforRedis audit log.
    template_type string
    Specifies the type of the template. The valid values are as follows:

    • built_in: System templates.
    • custom: Custom templates.
    demoFields List<LtsStructuringTemplateV3DemoField>
    Specifies the example fields. Use to set quick analysis configurations for fields. Only need to enter the fields whose status is different from that of is_analysis in the template. The demo_fields structure is documented below.
    demoLog String
    The sample log event.
    logGroupId String
    Specifies the log group ID. Changing this parameter will create a new resource.
    logStreamId String
    Specifies the log stream ID. Changing this parameter will create a new resource.
    ltsStructuringTemplateV3Id String
    The resource ID.
    quickAnalysis Boolean

    Specifies whether to enable demo_fields and tag_fields quick analysis.

    • If this parameter is set to true, quick analysis is enabled for all demo_fields and tag_fields.
    • If this parameter is set to false, is_analysis in demo_fields and tag_fields in the template determines whether to enable quick analysis.

    Defaults to false.

    The demo_fields and tag_fields block supports:

    region String
    tagFields List<LtsStructuringTemplateV3TagField>
    Specifies the tag fields. Use to set quick analysis configurations for fields. Only need to enter the fields whose status is different from that of is_analysis in the template. The tag_fields structure is documented below.
    templateId String
    Specifies the template ID. The field is valid and required only when template_type is set to custom.
    templateName String
    Specifies the template name. When template_type is set to built_in, valid values are:

    • ELB
    • VPC
    • CTS
    • APIG
    • DCS_AUDIT: DCS audit log.
    • TOMCAT
    • NGINX
    • GAUSSDB_OPENGAUSS_AUDIT: GAUSSV5 audit log.
    • DDS_AUDIT: DDS audit log.
    • MONGODB_ERROR: DDS error log.
    • MONGODB_SLOW: DDS slow log.
    • CFW_ACCESS: CFW access control log.
    • CFW_ATTACK: CFW attack log.
    • CFW_FLOW: CFW traffic log.
    • MYSQL_ERROR: MYSQL error log.
    • MYSQL_SLOW: MYSQL slow log:
    • POSTGRESQL_SLOW: POSTGRESQL slow log.
    • POSTGRESQL_ERROR: POSTGRESQL error log.
    • SQLSERVER_ERROR: SQLSERVER error log.
    • GAUSSDB_REDIS_SLOW: GAUSSDB_REDIS slow log.
    • CDN
    • SMN
    • GAUSSDB_MYSQL_ERROR: GAUSSDB_MYSQL error log.
    • GAUSSDB_MYSQL_SLOW: GAUSSDB_MYSQL slow log.
    • ER: ER Enterprise Router.
    • MYSQL_AUDIT: MYSQL audit log.
    • GAUSSDB_CASSANDRA_SLOW: GaussDBforCassandra slow log.
    • GAUSSDB_MONGO_SLOW: GaussDBforMongo slow log.
    • GAUSSDB_MONGO_ERROR: GaussDBforMongo error log.
    • WAF_ACCESS: WAF access log.
    • WAF_ATTACK: WAF attack log.
    • DMS_REBALANCED:DMS rebalancing log.
    • CCE_AUDIT: CCE audit log.
    • CCE_EVENT: CCE event log.
    • GAUSSDB_REDIS_AUDIT: GaussDBforRedis audit log.
    templateType String
    Specifies the type of the template. The valid values are as follows:

    • built_in: System templates.
    • custom: Custom templates.
    demoFields LtsStructuringTemplateV3DemoField[]
    Specifies the example fields. Use to set quick analysis configurations for fields. Only need to enter the fields whose status is different from that of is_analysis in the template. The demo_fields structure is documented below.
    demoLog string
    The sample log event.
    logGroupId string
    Specifies the log group ID. Changing this parameter will create a new resource.
    logStreamId string
    Specifies the log stream ID. Changing this parameter will create a new resource.
    ltsStructuringTemplateV3Id string
    The resource ID.
    quickAnalysis boolean

    Specifies whether to enable demo_fields and tag_fields quick analysis.

    • If this parameter is set to true, quick analysis is enabled for all demo_fields and tag_fields.
    • If this parameter is set to false, is_analysis in demo_fields and tag_fields in the template determines whether to enable quick analysis.

    Defaults to false.

    The demo_fields and tag_fields block supports:

    region string
    tagFields LtsStructuringTemplateV3TagField[]
    Specifies the tag fields. Use to set quick analysis configurations for fields. Only need to enter the fields whose status is different from that of is_analysis in the template. The tag_fields structure is documented below.
    templateId string
    Specifies the template ID. The field is valid and required only when template_type is set to custom.
    templateName string
    Specifies the template name. When template_type is set to built_in, valid values are:

    • ELB
    • VPC
    • CTS
    • APIG
    • DCS_AUDIT: DCS audit log.
    • TOMCAT
    • NGINX
    • GAUSSDB_OPENGAUSS_AUDIT: GAUSSV5 audit log.
    • DDS_AUDIT: DDS audit log.
    • MONGODB_ERROR: DDS error log.
    • MONGODB_SLOW: DDS slow log.
    • CFW_ACCESS: CFW access control log.
    • CFW_ATTACK: CFW attack log.
    • CFW_FLOW: CFW traffic log.
    • MYSQL_ERROR: MYSQL error log.
    • MYSQL_SLOW: MYSQL slow log:
    • POSTGRESQL_SLOW: POSTGRESQL slow log.
    • POSTGRESQL_ERROR: POSTGRESQL error log.
    • SQLSERVER_ERROR: SQLSERVER error log.
    • GAUSSDB_REDIS_SLOW: GAUSSDB_REDIS slow log.
    • CDN
    • SMN
    • GAUSSDB_MYSQL_ERROR: GAUSSDB_MYSQL error log.
    • GAUSSDB_MYSQL_SLOW: GAUSSDB_MYSQL slow log.
    • ER: ER Enterprise Router.
    • MYSQL_AUDIT: MYSQL audit log.
    • GAUSSDB_CASSANDRA_SLOW: GaussDBforCassandra slow log.
    • GAUSSDB_MONGO_SLOW: GaussDBforMongo slow log.
    • GAUSSDB_MONGO_ERROR: GaussDBforMongo error log.
    • WAF_ACCESS: WAF access log.
    • WAF_ATTACK: WAF attack log.
    • DMS_REBALANCED:DMS rebalancing log.
    • CCE_AUDIT: CCE audit log.
    • CCE_EVENT: CCE event log.
    • GAUSSDB_REDIS_AUDIT: GaussDBforRedis audit log.
    templateType string
    Specifies the type of the template. The valid values are as follows:

    • built_in: System templates.
    • custom: Custom templates.
    demo_fields Sequence[LtsStructuringTemplateV3DemoFieldArgs]
    Specifies the example fields. Use to set quick analysis configurations for fields. Only need to enter the fields whose status is different from that of is_analysis in the template. The demo_fields structure is documented below.
    demo_log str
    The sample log event.
    log_group_id str
    Specifies the log group ID. Changing this parameter will create a new resource.
    log_stream_id str
    Specifies the log stream ID. Changing this parameter will create a new resource.
    lts_structuring_template_v3_id str
    The resource ID.
    quick_analysis bool

    Specifies whether to enable demo_fields and tag_fields quick analysis.

    • If this parameter is set to true, quick analysis is enabled for all demo_fields and tag_fields.
    • If this parameter is set to false, is_analysis in demo_fields and tag_fields in the template determines whether to enable quick analysis.

    Defaults to false.

    The demo_fields and tag_fields block supports:

    region str
    tag_fields Sequence[LtsStructuringTemplateV3TagFieldArgs]
    Specifies the tag fields. Use to set quick analysis configurations for fields. Only need to enter the fields whose status is different from that of is_analysis in the template. The tag_fields structure is documented below.
    template_id str
    Specifies the template ID. The field is valid and required only when template_type is set to custom.
    template_name str
    Specifies the template name. When template_type is set to built_in, valid values are:

    • ELB
    • VPC
    • CTS
    • APIG
    • DCS_AUDIT: DCS audit log.
    • TOMCAT
    • NGINX
    • GAUSSDB_OPENGAUSS_AUDIT: GAUSSV5 audit log.
    • DDS_AUDIT: DDS audit log.
    • MONGODB_ERROR: DDS error log.
    • MONGODB_SLOW: DDS slow log.
    • CFW_ACCESS: CFW access control log.
    • CFW_ATTACK: CFW attack log.
    • CFW_FLOW: CFW traffic log.
    • MYSQL_ERROR: MYSQL error log.
    • MYSQL_SLOW: MYSQL slow log:
    • POSTGRESQL_SLOW: POSTGRESQL slow log.
    • POSTGRESQL_ERROR: POSTGRESQL error log.
    • SQLSERVER_ERROR: SQLSERVER error log.
    • GAUSSDB_REDIS_SLOW: GAUSSDB_REDIS slow log.
    • CDN
    • SMN
    • GAUSSDB_MYSQL_ERROR: GAUSSDB_MYSQL error log.
    • GAUSSDB_MYSQL_SLOW: GAUSSDB_MYSQL slow log.
    • ER: ER Enterprise Router.
    • MYSQL_AUDIT: MYSQL audit log.
    • GAUSSDB_CASSANDRA_SLOW: GaussDBforCassandra slow log.
    • GAUSSDB_MONGO_SLOW: GaussDBforMongo slow log.
    • GAUSSDB_MONGO_ERROR: GaussDBforMongo error log.
    • WAF_ACCESS: WAF access log.
    • WAF_ATTACK: WAF attack log.
    • DMS_REBALANCED:DMS rebalancing log.
    • CCE_AUDIT: CCE audit log.
    • CCE_EVENT: CCE event log.
    • GAUSSDB_REDIS_AUDIT: GaussDBforRedis audit log.
    template_type str
    Specifies the type of the template. The valid values are as follows:

    • built_in: System templates.
    • custom: Custom templates.
    demoFields List<Property Map>
    Specifies the example fields. Use to set quick analysis configurations for fields. Only need to enter the fields whose status is different from that of is_analysis in the template. The demo_fields structure is documented below.
    demoLog String
    The sample log event.
    logGroupId String
    Specifies the log group ID. Changing this parameter will create a new resource.
    logStreamId String
    Specifies the log stream ID. Changing this parameter will create a new resource.
    ltsStructuringTemplateV3Id String
    The resource ID.
    quickAnalysis Boolean

    Specifies whether to enable demo_fields and tag_fields quick analysis.

    • If this parameter is set to true, quick analysis is enabled for all demo_fields and tag_fields.
    • If this parameter is set to false, is_analysis in demo_fields and tag_fields in the template determines whether to enable quick analysis.

    Defaults to false.

    The demo_fields and tag_fields block supports:

    region String
    tagFields List<Property Map>
    Specifies the tag fields. Use to set quick analysis configurations for fields. Only need to enter the fields whose status is different from that of is_analysis in the template. The tag_fields structure is documented below.
    templateId String
    Specifies the template ID. The field is valid and required only when template_type is set to custom.
    templateName String
    Specifies the template name. When template_type is set to built_in, valid values are:

    • ELB
    • VPC
    • CTS
    • APIG
    • DCS_AUDIT: DCS audit log.
    • TOMCAT
    • NGINX
    • GAUSSDB_OPENGAUSS_AUDIT: GAUSSV5 audit log.
    • DDS_AUDIT: DDS audit log.
    • MONGODB_ERROR: DDS error log.
    • MONGODB_SLOW: DDS slow log.
    • CFW_ACCESS: CFW access control log.
    • CFW_ATTACK: CFW attack log.
    • CFW_FLOW: CFW traffic log.
    • MYSQL_ERROR: MYSQL error log.
    • MYSQL_SLOW: MYSQL slow log:
    • POSTGRESQL_SLOW: POSTGRESQL slow log.
    • POSTGRESQL_ERROR: POSTGRESQL error log.
    • SQLSERVER_ERROR: SQLSERVER error log.
    • GAUSSDB_REDIS_SLOW: GAUSSDB_REDIS slow log.
    • CDN
    • SMN
    • GAUSSDB_MYSQL_ERROR: GAUSSDB_MYSQL error log.
    • GAUSSDB_MYSQL_SLOW: GAUSSDB_MYSQL slow log.
    • ER: ER Enterprise Router.
    • MYSQL_AUDIT: MYSQL audit log.
    • GAUSSDB_CASSANDRA_SLOW: GaussDBforCassandra slow log.
    • GAUSSDB_MONGO_SLOW: GaussDBforMongo slow log.
    • GAUSSDB_MONGO_ERROR: GaussDBforMongo error log.
    • WAF_ACCESS: WAF access log.
    • WAF_ATTACK: WAF attack log.
    • DMS_REBALANCED:DMS rebalancing log.
    • CCE_AUDIT: CCE audit log.
    • CCE_EVENT: CCE event log.
    • GAUSSDB_REDIS_AUDIT: GaussDBforRedis audit log.
    templateType String
    Specifies the type of the template. The valid values are as follows:

    • built_in: System templates.
    • custom: Custom templates.

    Supporting Types

    LtsStructuringTemplateV3DemoField, LtsStructuringTemplateV3DemoFieldArgs

    FieldName string
    Specifies the field name. The valid length is limited from 1 to 64.
    IsAnalysis bool
    Specifies whether quick analysis is enabled. Defaults to false.
    FieldName string
    Specifies the field name. The valid length is limited from 1 to 64.
    IsAnalysis bool
    Specifies whether quick analysis is enabled. Defaults to false.
    field_name string
    Specifies the field name. The valid length is limited from 1 to 64.
    is_analysis bool
    Specifies whether quick analysis is enabled. Defaults to false.
    fieldName String
    Specifies the field name. The valid length is limited from 1 to 64.
    isAnalysis Boolean
    Specifies whether quick analysis is enabled. Defaults to false.
    fieldName string
    Specifies the field name. The valid length is limited from 1 to 64.
    isAnalysis boolean
    Specifies whether quick analysis is enabled. Defaults to false.
    field_name str
    Specifies the field name. The valid length is limited from 1 to 64.
    is_analysis bool
    Specifies whether quick analysis is enabled. Defaults to false.
    fieldName String
    Specifies the field name. The valid length is limited from 1 to 64.
    isAnalysis Boolean
    Specifies whether quick analysis is enabled. Defaults to false.

    LtsStructuringTemplateV3TagField, LtsStructuringTemplateV3TagFieldArgs

    FieldName string
    Specifies the field name. The valid length is limited from 1 to 64.
    IsAnalysis bool
    Specifies whether quick analysis is enabled. Defaults to false.
    FieldName string
    Specifies the field name. The valid length is limited from 1 to 64.
    IsAnalysis bool
    Specifies whether quick analysis is enabled. Defaults to false.
    field_name string
    Specifies the field name. The valid length is limited from 1 to 64.
    is_analysis bool
    Specifies whether quick analysis is enabled. Defaults to false.
    fieldName String
    Specifies the field name. The valid length is limited from 1 to 64.
    isAnalysis Boolean
    Specifies whether quick analysis is enabled. Defaults to false.
    fieldName string
    Specifies the field name. The valid length is limited from 1 to 64.
    isAnalysis boolean
    Specifies whether quick analysis is enabled. Defaults to false.
    field_name str
    Specifies the field name. The valid length is limited from 1 to 64.
    is_analysis bool
    Specifies whether quick analysis is enabled. Defaults to false.
    fieldName String
    Specifies the field name. The valid length is limited from 1 to 64.
    isAnalysis Boolean
    Specifies whether quick analysis is enabled. Defaults to false.

    Import

    The LTS structuring configuration can be imported using log_group_id and log_stream_id, separated by a slash, e.g.

    bash

    $ pulumi import opentelekomcloud:index/ltsStructuringTemplateV3:LtsStructuringTemplateV3 test <log_group_id>/<log_stream_id>
    

    Note that the imported state may not be identical to your resource definition, due to some attributes missing from the

    API response, security or some other reason. The missing attributes include: template_type, template_id,

    demo_fields, tag_fields, quick_analysis.

    It is generally recommended running pulumi preview after importing a resource.

    You can then decide if changes should be applied to the resource, or the resource definition should be updated to align

    with the resource. Also, you can ignore changes as below.

    hcl

    resource “opentelekomcloud_lts_structuring_template_v3” “test” {

    lifecycle {

    ignore_changes = [
    
      template_type,
    
      template_id,
    
      demo_fields,
    
      tag_fields,
    
      quick_analysis,
    
    ]
    

    }

    }

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

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    Viewing docs for opentelekomcloud 1.37.8
    published on Thursday, Sep 10, 2026 by opentelekomcloud

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial