tencentcloud.TemLogConfig
Explore with Pulumi AI
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:
- Application
Id string - application ID.
- Environment
Id string - environment ID.
- Input
Type string - container_stdout or container_file.
- Log
Type string - minimalist_log or multiline_log.
- Logset
Id string - logset.
- Topic
Id string - topic.
- Workload
Id string - application ID, which is combined by environment ID and application ID, like
en-o5edaepv#app-3j29aa2p
. - Beginning
Regex string - regex pattern.
- File
Pattern string - file name pattern if container_file.
- Log
Path string - directory if container_file.
- Name string
- appConfig name.
- Tem
Log stringConfig Id - ID of the resource.
- Application
Id string - application ID.
- Environment
Id string - environment ID.
- Input
Type string - container_stdout or container_file.
- Log
Type string - minimalist_log or multiline_log.
- Logset
Id string - logset.
- Topic
Id string - topic.
- Workload
Id string - application ID, which is combined by environment ID and application ID, like
en-o5edaepv#app-3j29aa2p
. - Beginning
Regex string - regex pattern.
- File
Pattern string - file name pattern if container_file.
- Log
Path string - directory if container_file.
- Name string
- appConfig name.
- Tem
Log stringConfig Id - ID of the resource.
- application
Id String - application ID.
- environment
Id String - environment ID.
- input
Type String - container_stdout or container_file.
- log
Type String - minimalist_log or multiline_log.
- logset
Id String - logset.
- topic
Id String - topic.
- workload
Id String - application ID, which is combined by environment ID and application ID, like
en-o5edaepv#app-3j29aa2p
. - beginning
Regex String - regex pattern.
- file
Pattern String - file name pattern if container_file.
- log
Path String - directory if container_file.
- name String
- appConfig name.
- tem
Log StringConfig Id - ID of the resource.
- application
Id string - application ID.
- environment
Id string - environment ID.
- input
Type string - container_stdout or container_file.
- log
Type string - minimalist_log or multiline_log.
- logset
Id string - logset.
- topic
Id string - topic.
- workload
Id string - application ID, which is combined by environment ID and application ID, like
en-o5edaepv#app-3j29aa2p
. - beginning
Regex string - regex pattern.
- file
Pattern string - file name pattern if container_file.
- log
Path string - directory if container_file.
- name string
- appConfig name.
- tem
Log stringConfig Id - 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_ strconfig_ id - ID of the resource.
- application
Id String - application ID.
- environment
Id String - environment ID.
- input
Type String - container_stdout or container_file.
- log
Type String - minimalist_log or multiline_log.
- logset
Id String - logset.
- topic
Id String - topic.
- workload
Id String - application ID, which is combined by environment ID and application ID, like
en-o5edaepv#app-3j29aa2p
. - beginning
Regex String - regex pattern.
- file
Pattern String - file name pattern if container_file.
- log
Path String - directory if container_file.
- name String
- appConfig name.
- tem
Log StringConfig Id - 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.
- Application
Id string - application ID.
- Beginning
Regex string - regex pattern.
- Environment
Id string - environment ID.
- File
Pattern string - file name pattern if container_file.
- Input
Type string - container_stdout or container_file.
- Log
Path string - directory if container_file.
- Log
Type string - minimalist_log or multiline_log.
- Logset
Id string - logset.
- Name string
- appConfig name.
- Tem
Log stringConfig Id - ID of the resource.
- Topic
Id string - topic.
- Workload
Id string - application ID, which is combined by environment ID and application ID, like
en-o5edaepv#app-3j29aa2p
.
- Application
Id string - application ID.
- Beginning
Regex string - regex pattern.
- Environment
Id string - environment ID.
- File
Pattern string - file name pattern if container_file.
- Input
Type string - container_stdout or container_file.
- Log
Path string - directory if container_file.
- Log
Type string - minimalist_log or multiline_log.
- Logset
Id string - logset.
- Name string
- appConfig name.
- Tem
Log stringConfig Id - ID of the resource.
- Topic
Id string - topic.
- Workload
Id string - application ID, which is combined by environment ID and application ID, like
en-o5edaepv#app-3j29aa2p
.
- application
Id String - application ID.
- beginning
Regex String - regex pattern.
- environment
Id String - environment ID.
- file
Pattern String - file name pattern if container_file.
- input
Type String - container_stdout or container_file.
- log
Path String - directory if container_file.
- log
Type String - minimalist_log or multiline_log.
- logset
Id String - logset.
- name String
- appConfig name.
- tem
Log StringConfig Id - ID of the resource.
- topic
Id String - topic.
- workload
Id String - application ID, which is combined by environment ID and application ID, like
en-o5edaepv#app-3j29aa2p
.
- application
Id string - application ID.
- beginning
Regex string - regex pattern.
- environment
Id string - environment ID.
- file
Pattern string - file name pattern if container_file.
- input
Type string - container_stdout or container_file.
- log
Path string - directory if container_file.
- log
Type string - minimalist_log or multiline_log.
- logset
Id string - logset.
- name string
- appConfig name.
- tem
Log stringConfig Id - ID of the resource.
- topic
Id string - topic.
- workload
Id 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_ strconfig_ id - 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
.
- application
Id String - application ID.
- beginning
Regex String - regex pattern.
- environment
Id String - environment ID.
- file
Pattern String - file name pattern if container_file.
- input
Type String - container_stdout or container_file.
- log
Path String - directory if container_file.
- log
Type String - minimalist_log or multiline_log.
- logset
Id String - logset.
- name String
- appConfig name.
- tem
Log StringConfig Id - ID of the resource.
- topic
Id String - topic.
- workload
Id 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.