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});
import pulumi
import pulumi_tencentcloud as tencentcloud
foo = tencentcloud.ClbLogSet("foo", period=7)
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
})
}
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,
});
});
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());
}
}
resources:
foo:
type: tencentcloud:ClbLogSet
properties:
period: 7
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 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 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 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 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 String
- The unique name of the resource.
- args 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:
- Clb
Log stringSet Id - ID of the resource.
- Period double
- Logset retention period in days. Maximun value is
90
.
- Clb
Log stringSet Id - ID of the resource.
- Period float64
- Logset retention period in days. Maximun value is
90
.
- clb
Log StringSet Id - ID of the resource.
- period Double
- Logset retention period in days. Maximun value is
90
.
- clb
Log stringSet Id - ID of the resource.
- period number
- Logset retention period in days. Maximun value is
90
.
- clb_
log_ strset_ id - ID of the resource.
- period float
- Logset retention period in days. Maximun value is
90
.
- clb
Log StringSet Id - 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:
- Create
Time 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. - Topic
Count string - Number of log topics in logset.
- Create
Time 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. - Topic
Count string - Number of log topics in logset.
- create
Time 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. - topic
Count String - Number of log topics in logset.
- create
Time 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. - topic
Count 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.
- create
Time 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. - topic
Count 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
- 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.
- Clb
Log stringSet Id - ID of the resource.
- Create
Time 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
. - Topic
Count string - Number of log topics in logset.
- Clb
Log stringSet Id - ID of the resource.
- Create
Time 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
. - Topic
Count string - Number of log topics in logset.
- clb
Log StringSet Id - ID of the resource.
- create
Time 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
. - topic
Count String - Number of log topics in logset.
- clb
Log stringSet Id - ID of the resource.
- create
Time 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
. - topic
Count string - Number of log topics in logset.
- clb_
log_ strset_ id - 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.
- clb
Log StringSet Id - ID of the resource.
- create
Time 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
. - topic
Count 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
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.