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

tencentcloud.TemLogConfig

Explore with Pulumi AI

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

    Provides a resource to create a tem logConfig

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const logConfig = new tencentcloud.TemLogConfig("logConfig", {
        environmentId: "en-o5edaepv",
        applicationId: "app-3j29aa2p",
        workloadId: resource.tencentcloud_tem_workload.workload.id,
        logsetId: "b5824781-8d5b-4029-a2f7-d03c37f72bdf",
        topicId: "5a85bb6d-8e41-4e04-b7bd-c05e04782f94",
        inputType: "container_stdout",
        logType: "minimalist_log",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    log_config = tencentcloud.TemLogConfig("logConfig",
        environment_id="en-o5edaepv",
        application_id="app-3j29aa2p",
        workload_id=resource["tencentcloud_tem_workload"]["workload"]["id"],
        logset_id="b5824781-8d5b-4029-a2f7-d03c37f72bdf",
        topic_id="5a85bb6d-8e41-4e04-b7bd-c05e04782f94",
        input_type="container_stdout",
        log_type="minimalist_log")
    
    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.NewTemLogConfig(ctx, "logConfig", &tencentcloud.TemLogConfigArgs{
    			EnvironmentId: pulumi.String("en-o5edaepv"),
    			ApplicationId: pulumi.String("app-3j29aa2p"),
    			WorkloadId:    pulumi.Any(resource.Tencentcloud_tem_workload.Workload.Id),
    			LogsetId:      pulumi.String("b5824781-8d5b-4029-a2f7-d03c37f72bdf"),
    			TopicId:       pulumi.String("5a85bb6d-8e41-4e04-b7bd-c05e04782f94"),
    			InputType:     pulumi.String("container_stdout"),
    			LogType:       pulumi.String("minimalist_log"),
    		})
    		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 logConfig = new Tencentcloud.TemLogConfig("logConfig", new()
        {
            EnvironmentId = "en-o5edaepv",
            ApplicationId = "app-3j29aa2p",
            WorkloadId = resource.Tencentcloud_tem_workload.Workload.Id,
            LogsetId = "b5824781-8d5b-4029-a2f7-d03c37f72bdf",
            TopicId = "5a85bb6d-8e41-4e04-b7bd-c05e04782f94",
            InputType = "container_stdout",
            LogType = "minimalist_log",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TemLogConfig;
    import com.pulumi.tencentcloud.TemLogConfigArgs;
    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 logConfig = new TemLogConfig("logConfig", TemLogConfigArgs.builder()
                .environmentId("en-o5edaepv")
                .applicationId("app-3j29aa2p")
                .workloadId(resource.tencentcloud_tem_workload().workload().id())
                .logsetId("b5824781-8d5b-4029-a2f7-d03c37f72bdf")
                .topicId("5a85bb6d-8e41-4e04-b7bd-c05e04782f94")
                .inputType("container_stdout")
                .logType("minimalist_log")
                .build());
    
        }
    }
    
    resources:
      logConfig:
        type: tencentcloud:TemLogConfig
        properties:
          environmentId: en-o5edaepv
          applicationId: app-3j29aa2p
          workloadId: ${resource.tencentcloud_tem_workload.workload.id}
          logsetId: b5824781-8d5b-4029-a2f7-d03c37f72bdf
          topicId: 5a85bb6d-8e41-4e04-b7bd-c05e04782f94
          inputType: container_stdout
          logType: minimalist_log
    

    Create TemLogConfig Resource

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

    Constructor syntax

    new TemLogConfig(name: string, args: TemLogConfigArgs, opts?: CustomResourceOptions);
    @overload
    def TemLogConfig(resource_name: str,
                     args: TemLogConfigArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def TemLogConfig(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     application_id: Optional[str] = None,
                     environment_id: Optional[str] = None,
                     input_type: Optional[str] = None,
                     log_type: Optional[str] = None,
                     logset_id: Optional[str] = None,
                     topic_id: Optional[str] = None,
                     workload_id: Optional[str] = None,
                     beginning_regex: Optional[str] = None,
                     file_pattern: Optional[str] = None,
                     log_path: Optional[str] = None,
                     name: Optional[str] = None,
                     tem_log_config_id: Optional[str] = None)
    func NewTemLogConfig(ctx *Context, name string, args TemLogConfigArgs, opts ...ResourceOption) (*TemLogConfig, error)
    public TemLogConfig(string name, TemLogConfigArgs args, CustomResourceOptions? opts = null)
    public TemLogConfig(String name, TemLogConfigArgs args)
    public TemLogConfig(String name, TemLogConfigArgs args, CustomResourceOptions options)
    
    type: tencentcloud:TemLogConfig
    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 TemLogConfigArgs
    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 TemLogConfigArgs
    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 TemLogConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TemLogConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TemLogConfigArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    ApplicationId string
    application ID.
    EnvironmentId string
    environment ID.
    InputType string
    container_stdout or container_file.
    LogType string
    minimalist_log or multiline_log.
    LogsetId string
    logset.
    TopicId string
    topic.
    WorkloadId string
    application ID, which is combined by environment ID and application ID, like en-o5edaepv#app-3j29aa2p.
    BeginningRegex string
    regex pattern.
    FilePattern string
    file name pattern if container_file.
    LogPath string
    directory if container_file.
    Name string
    appConfig name.
    TemLogConfigId string
    ID of the resource.
    ApplicationId string
    application ID.
    EnvironmentId string
    environment ID.
    InputType string
    container_stdout or container_file.
    LogType string
    minimalist_log or multiline_log.
    LogsetId string
    logset.
    TopicId string
    topic.
    WorkloadId string
    application ID, which is combined by environment ID and application ID, like en-o5edaepv#app-3j29aa2p.
    BeginningRegex string
    regex pattern.
    FilePattern string
    file name pattern if container_file.
    LogPath string
    directory if container_file.
    Name string
    appConfig name.
    TemLogConfigId string
    ID of the resource.
    applicationId String
    application ID.
    environmentId String
    environment ID.
    inputType String
    container_stdout or container_file.
    logType String
    minimalist_log or multiline_log.
    logsetId String
    logset.
    topicId String
    topic.
    workloadId String
    application ID, which is combined by environment ID and application ID, like en-o5edaepv#app-3j29aa2p.
    beginningRegex String
    regex pattern.
    filePattern String
    file name pattern if container_file.
    logPath String
    directory if container_file.
    name String
    appConfig name.
    temLogConfigId String
    ID of the resource.
    applicationId string
    application ID.
    environmentId string
    environment ID.
    inputType string
    container_stdout or container_file.
    logType string
    minimalist_log or multiline_log.
    logsetId string
    logset.
    topicId string
    topic.
    workloadId string
    application ID, which is combined by environment ID and application ID, like en-o5edaepv#app-3j29aa2p.
    beginningRegex string
    regex pattern.
    filePattern string
    file name pattern if container_file.
    logPath string
    directory if container_file.
    name string
    appConfig name.
    temLogConfigId string
    ID of the resource.
    application_id str
    application ID.
    environment_id str
    environment ID.
    input_type str
    container_stdout or container_file.
    log_type str
    minimalist_log or multiline_log.
    logset_id str
    logset.
    topic_id str
    topic.
    workload_id str
    application ID, which is combined by environment ID and application ID, like en-o5edaepv#app-3j29aa2p.
    beginning_regex str
    regex pattern.
    file_pattern str
    file name pattern if container_file.
    log_path str
    directory if container_file.
    name str
    appConfig name.
    tem_log_config_id str
    ID of the resource.
    applicationId String
    application ID.
    environmentId String
    environment ID.
    inputType String
    container_stdout or container_file.
    logType String
    minimalist_log or multiline_log.
    logsetId String
    logset.
    topicId String
    topic.
    workloadId String
    application ID, which is combined by environment ID and application ID, like en-o5edaepv#app-3j29aa2p.
    beginningRegex String
    regex pattern.
    filePattern String
    file name pattern if container_file.
    logPath String
    directory if container_file.
    name String
    appConfig name.
    temLogConfigId String
    ID of the resource.

    Outputs

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

    Get an existing TemLogConfig 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?: TemLogConfigState, opts?: CustomResourceOptions): TemLogConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            application_id: Optional[str] = None,
            beginning_regex: Optional[str] = None,
            environment_id: Optional[str] = None,
            file_pattern: Optional[str] = None,
            input_type: Optional[str] = None,
            log_path: Optional[str] = None,
            log_type: Optional[str] = None,
            logset_id: Optional[str] = None,
            name: Optional[str] = None,
            tem_log_config_id: Optional[str] = None,
            topic_id: Optional[str] = None,
            workload_id: Optional[str] = None) -> TemLogConfig
    func GetTemLogConfig(ctx *Context, name string, id IDInput, state *TemLogConfigState, opts ...ResourceOption) (*TemLogConfig, error)
    public static TemLogConfig Get(string name, Input<string> id, TemLogConfigState? state, CustomResourceOptions? opts = null)
    public static TemLogConfig get(String name, Output<String> id, TemLogConfigState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:TemLogConfig    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:
    ApplicationId string
    application ID.
    BeginningRegex string
    regex pattern.
    EnvironmentId string
    environment ID.
    FilePattern string
    file name pattern if container_file.
    InputType string
    container_stdout or container_file.
    LogPath string
    directory if container_file.
    LogType string
    minimalist_log or multiline_log.
    LogsetId string
    logset.
    Name string
    appConfig name.
    TemLogConfigId string
    ID of the resource.
    TopicId string
    topic.
    WorkloadId string
    application ID, which is combined by environment ID and application ID, like en-o5edaepv#app-3j29aa2p.
    ApplicationId string
    application ID.
    BeginningRegex string
    regex pattern.
    EnvironmentId string
    environment ID.
    FilePattern string
    file name pattern if container_file.
    InputType string
    container_stdout or container_file.
    LogPath string
    directory if container_file.
    LogType string
    minimalist_log or multiline_log.
    LogsetId string
    logset.
    Name string
    appConfig name.
    TemLogConfigId string
    ID of the resource.
    TopicId string
    topic.
    WorkloadId string
    application ID, which is combined by environment ID and application ID, like en-o5edaepv#app-3j29aa2p.
    applicationId String
    application ID.
    beginningRegex String
    regex pattern.
    environmentId String
    environment ID.
    filePattern String
    file name pattern if container_file.
    inputType String
    container_stdout or container_file.
    logPath String
    directory if container_file.
    logType String
    minimalist_log or multiline_log.
    logsetId String
    logset.
    name String
    appConfig name.
    temLogConfigId String
    ID of the resource.
    topicId String
    topic.
    workloadId String
    application ID, which is combined by environment ID and application ID, like en-o5edaepv#app-3j29aa2p.
    applicationId string
    application ID.
    beginningRegex string
    regex pattern.
    environmentId string
    environment ID.
    filePattern string
    file name pattern if container_file.
    inputType string
    container_stdout or container_file.
    logPath string
    directory if container_file.
    logType string
    minimalist_log or multiline_log.
    logsetId string
    logset.
    name string
    appConfig name.
    temLogConfigId string
    ID of the resource.
    topicId string
    topic.
    workloadId string
    application ID, which is combined by environment ID and application ID, like en-o5edaepv#app-3j29aa2p.
    application_id str
    application ID.
    beginning_regex str
    regex pattern.
    environment_id str
    environment ID.
    file_pattern str
    file name pattern if container_file.
    input_type str
    container_stdout or container_file.
    log_path str
    directory if container_file.
    log_type str
    minimalist_log or multiline_log.
    logset_id str
    logset.
    name str
    appConfig name.
    tem_log_config_id str
    ID of the resource.
    topic_id str
    topic.
    workload_id str
    application ID, which is combined by environment ID and application ID, like en-o5edaepv#app-3j29aa2p.
    applicationId String
    application ID.
    beginningRegex String
    regex pattern.
    environmentId String
    environment ID.
    filePattern String
    file name pattern if container_file.
    inputType String
    container_stdout or container_file.
    logPath String
    directory if container_file.
    logType String
    minimalist_log or multiline_log.
    logsetId String
    logset.
    name String
    appConfig name.
    temLogConfigId String
    ID of the resource.
    topicId String
    topic.
    workloadId String
    application ID, which is combined by environment ID and application ID, like en-o5edaepv#app-3j29aa2p.

    Import

    tem logConfig can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/temLogConfig:TemLogConfig logConfig environmentId#applicationId#name
    

    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.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack