1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. ClbLogSet
tencentcloud 1.81.182 published on Monday, Apr 14, 2025 by tencentcloudstack

tencentcloud.ClbLogSet

Explore with Pulumi AI

Provides a resource to create an exclusive CLB Logset.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";

const foo = new tencentcloud.ClbLogSet("foo", {period: 7});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

foo = tencentcloud.ClbLogSet("foo", period=7)
Copy
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.NewClbLogSet(ctx, "foo", &tencentcloud.ClbLogSetArgs{
			Period: pulumi.Float64(7),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

return await Deployment.RunAsync(() => 
{
    var foo = new Tencentcloud.ClbLogSet("foo", new()
    {
        Period = 7,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.ClbLogSet;
import com.pulumi.tencentcloud.ClbLogSetArgs;
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 foo = new ClbLogSet("foo", ClbLogSetArgs.builder()
            .period(7)
            .build());

    }
}
Copy
resources:
  foo:
    type: tencentcloud:ClbLogSet
    properties:
      period: 7
Copy

Create ClbLogSet Resource

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

Constructor syntax

new ClbLogSet(name: string, args?: ClbLogSetArgs, opts?: CustomResourceOptions);
@overload
def ClbLogSet(resource_name: str,
              args: Optional[ClbLogSetArgs] = None,
              opts: Optional[ResourceOptions] = None)

@overload
def ClbLogSet(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              clb_log_set_id: Optional[str] = None,
              period: Optional[float] = None)
func NewClbLogSet(ctx *Context, name string, args *ClbLogSetArgs, opts ...ResourceOption) (*ClbLogSet, error)
public ClbLogSet(string name, ClbLogSetArgs? args = null, CustomResourceOptions? opts = null)
public ClbLogSet(String name, ClbLogSetArgs args)
public ClbLogSet(String name, ClbLogSetArgs args, CustomResourceOptions options)
type: tencentcloud:ClbLogSet
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args ClbLogSetArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args ClbLogSetArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args ClbLogSetArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args ClbLogSetArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ClbLogSetArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

ClbLogSetId string
ID of the resource.
Period double
Logset retention period in days. Maximun value is 90.
ClbLogSetId string
ID of the resource.
Period float64
Logset retention period in days. Maximun value is 90.
clbLogSetId String
ID of the resource.
period Double
Logset retention period in days. Maximun value is 90.
clbLogSetId string
ID of the resource.
period number
Logset retention period in days. Maximun value is 90.
clb_log_set_id str
ID of the resource.
period float
Logset retention period in days. Maximun value is 90.
clbLogSetId String
ID of the resource.
period Number
Logset retention period in days. Maximun value is 90.

Outputs

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

CreateTime string
Logset creation time.
Id string
The provider-assigned unique ID for this managed resource.
Name string
Logset name, which unique and fixed clb_logset among all CLS logsets.
TopicCount string
Number of log topics in logset.
CreateTime string
Logset creation time.
Id string
The provider-assigned unique ID for this managed resource.
Name string
Logset name, which unique and fixed clb_logset among all CLS logsets.
TopicCount string
Number of log topics in logset.
createTime String
Logset creation time.
id String
The provider-assigned unique ID for this managed resource.
name String
Logset name, which unique and fixed clb_logset among all CLS logsets.
topicCount String
Number of log topics in logset.
createTime string
Logset creation time.
id string
The provider-assigned unique ID for this managed resource.
name string
Logset name, which unique and fixed clb_logset among all CLS logsets.
topicCount string
Number of log topics in logset.
create_time str
Logset creation time.
id str
The provider-assigned unique ID for this managed resource.
name str
Logset name, which unique and fixed clb_logset among all CLS logsets.
topic_count str
Number of log topics in logset.
createTime String
Logset creation time.
id String
The provider-assigned unique ID for this managed resource.
name String
Logset name, which unique and fixed clb_logset among all CLS logsets.
topicCount String
Number of log topics in logset.

Look up Existing ClbLogSet Resource

Get an existing ClbLogSet 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?: ClbLogSetState, opts?: CustomResourceOptions): ClbLogSet
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        clb_log_set_id: Optional[str] = None,
        create_time: Optional[str] = None,
        name: Optional[str] = None,
        period: Optional[float] = None,
        topic_count: Optional[str] = None) -> ClbLogSet
func GetClbLogSet(ctx *Context, name string, id IDInput, state *ClbLogSetState, opts ...ResourceOption) (*ClbLogSet, error)
public static ClbLogSet Get(string name, Input<string> id, ClbLogSetState? state, CustomResourceOptions? opts = null)
public static ClbLogSet get(String name, Output<String> id, ClbLogSetState state, CustomResourceOptions options)
resources:  _:    type: tencentcloud:ClbLogSet    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
ClbLogSetId string
ID of the resource.
CreateTime string
Logset creation time.
Name string
Logset name, which unique and fixed clb_logset among all CLS logsets.
Period double
Logset retention period in days. Maximun value is 90.
TopicCount string
Number of log topics in logset.
ClbLogSetId string
ID of the resource.
CreateTime string
Logset creation time.
Name string
Logset name, which unique and fixed clb_logset among all CLS logsets.
Period float64
Logset retention period in days. Maximun value is 90.
TopicCount string
Number of log topics in logset.
clbLogSetId String
ID of the resource.
createTime String
Logset creation time.
name String
Logset name, which unique and fixed clb_logset among all CLS logsets.
period Double
Logset retention period in days. Maximun value is 90.
topicCount String
Number of log topics in logset.
clbLogSetId string
ID of the resource.
createTime string
Logset creation time.
name string
Logset name, which unique and fixed clb_logset among all CLS logsets.
period number
Logset retention period in days. Maximun value is 90.
topicCount string
Number of log topics in logset.
clb_log_set_id str
ID of the resource.
create_time str
Logset creation time.
name str
Logset name, which unique and fixed clb_logset among all CLS logsets.
period float
Logset retention period in days. Maximun value is 90.
topic_count str
Number of log topics in logset.
clbLogSetId String
ID of the resource.
createTime String
Logset creation time.
name String
Logset name, which unique and fixed clb_logset among all CLS logsets.
period Number
Logset retention period in days. Maximun value is 90.
topicCount String
Number of log topics in logset.

Import

CLB log set can be imported using the id, e.g.

$ pulumi import tencentcloud:index/clbLogSet:ClbLogSet foo 4eb9e3a8-9c42-4b32-9ddf-e215e9c92764
Copy

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.