tencentcloud.ClsTopic
Explore with Pulumi AI
Provides a resource to create a cls topic.
Example Usage
Create a standard cls topic
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const exampleClsLogset = new tencentcloud.ClsLogset("exampleClsLogset", {
logsetName: "tf_example",
tags: {
tagKey: "tagValue",
},
});
const exampleClsTopic = new tencentcloud.ClsTopic("exampleClsTopic", {
topicName: "tf_example",
logsetId: exampleClsLogset.clsLogsetId,
autoSplit: false,
maxSplitPartitions: 20,
partitionCount: 1,
period: 30,
storageType: "hot",
describes: "Test Demo.",
hotPeriod: 10,
tags: {
tagKey: "tagValue",
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example_cls_logset = tencentcloud.ClsLogset("exampleClsLogset",
logset_name="tf_example",
tags={
"tagKey": "tagValue",
})
example_cls_topic = tencentcloud.ClsTopic("exampleClsTopic",
topic_name="tf_example",
logset_id=example_cls_logset.cls_logset_id,
auto_split=False,
max_split_partitions=20,
partition_count=1,
period=30,
storage_type="hot",
describes="Test Demo.",
hot_period=10,
tags={
"tagKey": "tagValue",
})
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 {
exampleClsLogset, err := tencentcloud.NewClsLogset(ctx, "exampleClsLogset", &tencentcloud.ClsLogsetArgs{
LogsetName: pulumi.String("tf_example"),
Tags: pulumi.StringMap{
"tagKey": pulumi.String("tagValue"),
},
})
if err != nil {
return err
}
_, err = tencentcloud.NewClsTopic(ctx, "exampleClsTopic", &tencentcloud.ClsTopicArgs{
TopicName: pulumi.String("tf_example"),
LogsetId: exampleClsLogset.ClsLogsetId,
AutoSplit: pulumi.Bool(false),
MaxSplitPartitions: pulumi.Float64(20),
PartitionCount: pulumi.Float64(1),
Period: pulumi.Float64(30),
StorageType: pulumi.String("hot"),
Describes: pulumi.String("Test Demo."),
HotPeriod: pulumi.Float64(10),
Tags: pulumi.StringMap{
"tagKey": pulumi.String("tagValue"),
},
})
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 exampleClsLogset = new Tencentcloud.ClsLogset("exampleClsLogset", new()
{
LogsetName = "tf_example",
Tags =
{
{ "tagKey", "tagValue" },
},
});
var exampleClsTopic = new Tencentcloud.ClsTopic("exampleClsTopic", new()
{
TopicName = "tf_example",
LogsetId = exampleClsLogset.ClsLogsetId,
AutoSplit = false,
MaxSplitPartitions = 20,
PartitionCount = 1,
Period = 30,
StorageType = "hot",
Describes = "Test Demo.",
HotPeriod = 10,
Tags =
{
{ "tagKey", "tagValue" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.ClsLogset;
import com.pulumi.tencentcloud.ClsLogsetArgs;
import com.pulumi.tencentcloud.ClsTopic;
import com.pulumi.tencentcloud.ClsTopicArgs;
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 exampleClsLogset = new ClsLogset("exampleClsLogset", ClsLogsetArgs.builder()
.logsetName("tf_example")
.tags(Map.of("tagKey", "tagValue"))
.build());
var exampleClsTopic = new ClsTopic("exampleClsTopic", ClsTopicArgs.builder()
.topicName("tf_example")
.logsetId(exampleClsLogset.clsLogsetId())
.autoSplit(false)
.maxSplitPartitions(20)
.partitionCount(1)
.period(30)
.storageType("hot")
.describes("Test Demo.")
.hotPeriod(10)
.tags(Map.of("tagKey", "tagValue"))
.build());
}
}
resources:
exampleClsLogset:
type: tencentcloud:ClsLogset
properties:
logsetName: tf_example
tags:
tagKey: tagValue
exampleClsTopic:
type: tencentcloud:ClsTopic
properties:
topicName: tf_example
logsetId: ${exampleClsLogset.clsLogsetId}
autoSplit: false
maxSplitPartitions: 20
partitionCount: 1
period: 30
storageType: hot
describes: Test Demo.
hotPeriod: 10
tags:
tagKey: tagValue
Create a cls topic with web tracking
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const exampleClsLogset = new tencentcloud.ClsLogset("exampleClsLogset", {
logsetName: "tf_example",
tags: {
tagKey: "tagValue",
},
});
const exampleClsTopic = new tencentcloud.ClsTopic("exampleClsTopic", {
topicName: "tf_example",
logsetId: exampleClsLogset.clsLogsetId,
autoSplit: false,
maxSplitPartitions: 20,
partitionCount: 1,
period: 30,
storageType: "hot",
describes: "Test Demo.",
hotPeriod: 10,
isWebTracking: true,
"extends": {
anonymousAccess: {
operations: [
"trackLog",
"realtimeProducer",
],
conditions: [{
attributes: "VpcID",
rule: 1,
conditionValue: "vpc-ahr3xajx",
}],
},
},
tags: {
tagKey: "tagValue",
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example_cls_logset = tencentcloud.ClsLogset("exampleClsLogset",
logset_name="tf_example",
tags={
"tagKey": "tagValue",
})
example_cls_topic = tencentcloud.ClsTopic("exampleClsTopic",
topic_name="tf_example",
logset_id=example_cls_logset.cls_logset_id,
auto_split=False,
max_split_partitions=20,
partition_count=1,
period=30,
storage_type="hot",
describes="Test Demo.",
hot_period=10,
is_web_tracking=True,
extends={
"anonymous_access": {
"operations": [
"trackLog",
"realtimeProducer",
],
"conditions": [{
"attributes": "VpcID",
"rule": 1,
"condition_value": "vpc-ahr3xajx",
}],
},
},
tags={
"tagKey": "tagValue",
})
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 {
exampleClsLogset, err := tencentcloud.NewClsLogset(ctx, "exampleClsLogset", &tencentcloud.ClsLogsetArgs{
LogsetName: pulumi.String("tf_example"),
Tags: pulumi.StringMap{
"tagKey": pulumi.String("tagValue"),
},
})
if err != nil {
return err
}
_, err = tencentcloud.NewClsTopic(ctx, "exampleClsTopic", &tencentcloud.ClsTopicArgs{
TopicName: pulumi.String("tf_example"),
LogsetId: exampleClsLogset.ClsLogsetId,
AutoSplit: pulumi.Bool(false),
MaxSplitPartitions: pulumi.Float64(20),
PartitionCount: pulumi.Float64(1),
Period: pulumi.Float64(30),
StorageType: pulumi.String("hot"),
Describes: pulumi.String("Test Demo."),
HotPeriod: pulumi.Float64(10),
IsWebTracking: pulumi.Bool(true),
Extends: &tencentcloud.ClsTopicExtendsArgs{
AnonymousAccess: &tencentcloud.ClsTopicExtendsAnonymousAccessArgs{
Operations: pulumi.StringArray{
pulumi.String("trackLog"),
pulumi.String("realtimeProducer"),
},
Conditions: tencentcloud.ClsTopicExtendsAnonymousAccessConditionArray{
&tencentcloud.ClsTopicExtendsAnonymousAccessConditionArgs{
Attributes: pulumi.String("VpcID"),
Rule: pulumi.Float64(1),
ConditionValue: pulumi.String("vpc-ahr3xajx"),
},
},
},
},
Tags: pulumi.StringMap{
"tagKey": pulumi.String("tagValue"),
},
})
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 exampleClsLogset = new Tencentcloud.ClsLogset("exampleClsLogset", new()
{
LogsetName = "tf_example",
Tags =
{
{ "tagKey", "tagValue" },
},
});
var exampleClsTopic = new Tencentcloud.ClsTopic("exampleClsTopic", new()
{
TopicName = "tf_example",
LogsetId = exampleClsLogset.ClsLogsetId,
AutoSplit = false,
MaxSplitPartitions = 20,
PartitionCount = 1,
Period = 30,
StorageType = "hot",
Describes = "Test Demo.",
HotPeriod = 10,
IsWebTracking = true,
Extends = new Tencentcloud.Inputs.ClsTopicExtendsArgs
{
AnonymousAccess = new Tencentcloud.Inputs.ClsTopicExtendsAnonymousAccessArgs
{
Operations = new[]
{
"trackLog",
"realtimeProducer",
},
Conditions = new[]
{
new Tencentcloud.Inputs.ClsTopicExtendsAnonymousAccessConditionArgs
{
Attributes = "VpcID",
Rule = 1,
ConditionValue = "vpc-ahr3xajx",
},
},
},
},
Tags =
{
{ "tagKey", "tagValue" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.ClsLogset;
import com.pulumi.tencentcloud.ClsLogsetArgs;
import com.pulumi.tencentcloud.ClsTopic;
import com.pulumi.tencentcloud.ClsTopicArgs;
import com.pulumi.tencentcloud.inputs.ClsTopicExtendsArgs;
import com.pulumi.tencentcloud.inputs.ClsTopicExtendsAnonymousAccessArgs;
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 exampleClsLogset = new ClsLogset("exampleClsLogset", ClsLogsetArgs.builder()
.logsetName("tf_example")
.tags(Map.of("tagKey", "tagValue"))
.build());
var exampleClsTopic = new ClsTopic("exampleClsTopic", ClsTopicArgs.builder()
.topicName("tf_example")
.logsetId(exampleClsLogset.clsLogsetId())
.autoSplit(false)
.maxSplitPartitions(20)
.partitionCount(1)
.period(30)
.storageType("hot")
.describes("Test Demo.")
.hotPeriod(10)
.isWebTracking(true)
.extends_(ClsTopicExtendsArgs.builder()
.anonymousAccess(ClsTopicExtendsAnonymousAccessArgs.builder()
.operations(
"trackLog",
"realtimeProducer")
.conditions(ClsTopicExtendsAnonymousAccessConditionArgs.builder()
.attributes("VpcID")
.rule(1)
.conditionValue("vpc-ahr3xajx")
.build())
.build())
.build())
.tags(Map.of("tagKey", "tagValue"))
.build());
}
}
resources:
exampleClsLogset:
type: tencentcloud:ClsLogset
properties:
logsetName: tf_example
tags:
tagKey: tagValue
exampleClsTopic:
type: tencentcloud:ClsTopic
properties:
topicName: tf_example
logsetId: ${exampleClsLogset.clsLogsetId}
autoSplit: false
maxSplitPartitions: 20
partitionCount: 1
period: 30
storageType: hot
describes: Test Demo.
hotPeriod: 10
isWebTracking: true
extends:
anonymousAccess:
operations:
- trackLog
- realtimeProducer
conditions:
- attributes: VpcID
rule: 1
conditionValue: vpc-ahr3xajx
tags:
tagKey: tagValue
Create ClsTopic Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ClsTopic(name: string, args: ClsTopicArgs, opts?: CustomResourceOptions);
@overload
def ClsTopic(resource_name: str,
args: ClsTopicArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ClsTopic(resource_name: str,
opts: Optional[ResourceOptions] = None,
logset_id: Optional[str] = None,
topic_name: Optional[str] = None,
extends: Optional[ClsTopicExtendsArgs] = None,
auto_split: Optional[bool] = None,
hot_period: Optional[float] = None,
is_web_tracking: Optional[bool] = None,
describes: Optional[str] = None,
max_split_partitions: Optional[float] = None,
partition_count: Optional[float] = None,
period: Optional[float] = None,
storage_type: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
cls_topic_id: Optional[str] = None)
func NewClsTopic(ctx *Context, name string, args ClsTopicArgs, opts ...ResourceOption) (*ClsTopic, error)
public ClsTopic(string name, ClsTopicArgs args, CustomResourceOptions? opts = null)
public ClsTopic(String name, ClsTopicArgs args)
public ClsTopic(String name, ClsTopicArgs args, CustomResourceOptions options)
type: tencentcloud:ClsTopic
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 ClsTopicArgs
- 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 ClsTopicArgs
- 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 ClsTopicArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ClsTopicArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ClsTopicArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ClsTopic 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 ClsTopic resource accepts the following input properties:
- Logset
Id string - Logset ID.
- Topic
Name string - Log topic name.
- Auto
Split bool - Whether to enable automatic split. Default value: true.
- Cls
Topic stringId - ID of the resource.
- Describes string
- Log Topic Description.
- Extends
Cls
Topic Extends - Log Subject Extension Information.
- Hot
Period double - 0: Turn off log sinking. Non 0: The number of days of standard storage after enabling log settling. HotPeriod needs to be greater than or equal to 7 and less than Period. Only effective when StorageType is hot.
- Is
Web boolTracking - No authentication switch. False: closed; True: Enable. The default is false. After activation, anonymous access to the log topic will be supported for specified operations.
- Max
Split doublePartitions - Maximum number of partitions to split into for this topic if automatic split is enabled. Default value: 50.
- Partition
Count double - Number of log topic partitions. Default value: 1. Maximum value: 10.
- Period double
- Lifecycle in days. Value range: 1~366. Default value: 30.
- Storage
Type string - Log topic storage class. Valid values: hot: real-time storage; cold: offline storage. Default value: hot. If cold is passed in, please contact the customer service to add the log topic to the allowlist first.
- Dictionary<string, string>
- Tag description list. Up to 10 tag key-value pairs are supported and must be unique.
- Logset
Id string - Logset ID.
- Topic
Name string - Log topic name.
- Auto
Split bool - Whether to enable automatic split. Default value: true.
- Cls
Topic stringId - ID of the resource.
- Describes string
- Log Topic Description.
- Extends
Cls
Topic Extends Args - Log Subject Extension Information.
- Hot
Period float64 - 0: Turn off log sinking. Non 0: The number of days of standard storage after enabling log settling. HotPeriod needs to be greater than or equal to 7 and less than Period. Only effective when StorageType is hot.
- Is
Web boolTracking - No authentication switch. False: closed; True: Enable. The default is false. After activation, anonymous access to the log topic will be supported for specified operations.
- Max
Split float64Partitions - Maximum number of partitions to split into for this topic if automatic split is enabled. Default value: 50.
- Partition
Count float64 - Number of log topic partitions. Default value: 1. Maximum value: 10.
- Period float64
- Lifecycle in days. Value range: 1~366. Default value: 30.
- Storage
Type string - Log topic storage class. Valid values: hot: real-time storage; cold: offline storage. Default value: hot. If cold is passed in, please contact the customer service to add the log topic to the allowlist first.
- map[string]string
- Tag description list. Up to 10 tag key-value pairs are supported and must be unique.
- logset
Id String - Logset ID.
- topic
Name String - Log topic name.
- auto
Split Boolean - Whether to enable automatic split. Default value: true.
- cls
Topic StringId - ID of the resource.
- describes String
- Log Topic Description.
- extends_
Cls
Topic Extends - Log Subject Extension Information.
- hot
Period Double - 0: Turn off log sinking. Non 0: The number of days of standard storage after enabling log settling. HotPeriod needs to be greater than or equal to 7 and less than Period. Only effective when StorageType is hot.
- is
Web BooleanTracking - No authentication switch. False: closed; True: Enable. The default is false. After activation, anonymous access to the log topic will be supported for specified operations.
- max
Split DoublePartitions - Maximum number of partitions to split into for this topic if automatic split is enabled. Default value: 50.
- partition
Count Double - Number of log topic partitions. Default value: 1. Maximum value: 10.
- period Double
- Lifecycle in days. Value range: 1~366. Default value: 30.
- storage
Type String - Log topic storage class. Valid values: hot: real-time storage; cold: offline storage. Default value: hot. If cold is passed in, please contact the customer service to add the log topic to the allowlist first.
- Map<String,String>
- Tag description list. Up to 10 tag key-value pairs are supported and must be unique.
- logset
Id string - Logset ID.
- topic
Name string - Log topic name.
- auto
Split boolean - Whether to enable automatic split. Default value: true.
- cls
Topic stringId - ID of the resource.
- describes string
- Log Topic Description.
- extends
Cls
Topic Extends - Log Subject Extension Information.
- hot
Period number - 0: Turn off log sinking. Non 0: The number of days of standard storage after enabling log settling. HotPeriod needs to be greater than or equal to 7 and less than Period. Only effective when StorageType is hot.
- is
Web booleanTracking - No authentication switch. False: closed; True: Enable. The default is false. After activation, anonymous access to the log topic will be supported for specified operations.
- max
Split numberPartitions - Maximum number of partitions to split into for this topic if automatic split is enabled. Default value: 50.
- partition
Count number - Number of log topic partitions. Default value: 1. Maximum value: 10.
- period number
- Lifecycle in days. Value range: 1~366. Default value: 30.
- storage
Type string - Log topic storage class. Valid values: hot: real-time storage; cold: offline storage. Default value: hot. If cold is passed in, please contact the customer service to add the log topic to the allowlist first.
- {[key: string]: string}
- Tag description list. Up to 10 tag key-value pairs are supported and must be unique.
- logset_
id str - Logset ID.
- topic_
name str - Log topic name.
- auto_
split bool - Whether to enable automatic split. Default value: true.
- cls_
topic_ strid - ID of the resource.
- describes str
- Log Topic Description.
- extends
Cls
Topic Extends Args - Log Subject Extension Information.
- hot_
period float - 0: Turn off log sinking. Non 0: The number of days of standard storage after enabling log settling. HotPeriod needs to be greater than or equal to 7 and less than Period. Only effective when StorageType is hot.
- is_
web_ booltracking - No authentication switch. False: closed; True: Enable. The default is false. After activation, anonymous access to the log topic will be supported for specified operations.
- max_
split_ floatpartitions - Maximum number of partitions to split into for this topic if automatic split is enabled. Default value: 50.
- partition_
count float - Number of log topic partitions. Default value: 1. Maximum value: 10.
- period float
- Lifecycle in days. Value range: 1~366. Default value: 30.
- storage_
type str - Log topic storage class. Valid values: hot: real-time storage; cold: offline storage. Default value: hot. If cold is passed in, please contact the customer service to add the log topic to the allowlist first.
- Mapping[str, str]
- Tag description list. Up to 10 tag key-value pairs are supported and must be unique.
- logset
Id String - Logset ID.
- topic
Name String - Log topic name.
- auto
Split Boolean - Whether to enable automatic split. Default value: true.
- cls
Topic StringId - ID of the resource.
- describes String
- Log Topic Description.
- extends Property Map
- Log Subject Extension Information.
- hot
Period Number - 0: Turn off log sinking. Non 0: The number of days of standard storage after enabling log settling. HotPeriod needs to be greater than or equal to 7 and less than Period. Only effective when StorageType is hot.
- is
Web BooleanTracking - No authentication switch. False: closed; True: Enable. The default is false. After activation, anonymous access to the log topic will be supported for specified operations.
- max
Split NumberPartitions - Maximum number of partitions to split into for this topic if automatic split is enabled. Default value: 50.
- partition
Count Number - Number of log topic partitions. Default value: 1. Maximum value: 10.
- period Number
- Lifecycle in days. Value range: 1~366. Default value: 30.
- storage
Type String - Log topic storage class. Valid values: hot: real-time storage; cold: offline storage. Default value: hot. If cold is passed in, please contact the customer service to add the log topic to the allowlist first.
- Map<String>
- Tag description list. Up to 10 tag key-value pairs are supported and must be unique.
Outputs
All input properties are implicitly available as output properties. Additionally, the ClsTopic 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 ClsTopic Resource
Get an existing ClsTopic 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?: ClsTopicState, opts?: CustomResourceOptions): ClsTopic
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auto_split: Optional[bool] = None,
cls_topic_id: Optional[str] = None,
describes: Optional[str] = None,
extends: Optional[ClsTopicExtendsArgs] = None,
hot_period: Optional[float] = None,
is_web_tracking: Optional[bool] = None,
logset_id: Optional[str] = None,
max_split_partitions: Optional[float] = None,
partition_count: Optional[float] = None,
period: Optional[float] = None,
storage_type: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
topic_name: Optional[str] = None) -> ClsTopic
func GetClsTopic(ctx *Context, name string, id IDInput, state *ClsTopicState, opts ...ResourceOption) (*ClsTopic, error)
public static ClsTopic Get(string name, Input<string> id, ClsTopicState? state, CustomResourceOptions? opts = null)
public static ClsTopic get(String name, Output<String> id, ClsTopicState state, CustomResourceOptions options)
resources: _: type: tencentcloud:ClsTopic 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.
- Auto
Split bool - Whether to enable automatic split. Default value: true.
- Cls
Topic stringId - ID of the resource.
- Describes string
- Log Topic Description.
- Extends
Cls
Topic Extends - Log Subject Extension Information.
- Hot
Period double - 0: Turn off log sinking. Non 0: The number of days of standard storage after enabling log settling. HotPeriod needs to be greater than or equal to 7 and less than Period. Only effective when StorageType is hot.
- Is
Web boolTracking - No authentication switch. False: closed; True: Enable. The default is false. After activation, anonymous access to the log topic will be supported for specified operations.
- Logset
Id string - Logset ID.
- Max
Split doublePartitions - Maximum number of partitions to split into for this topic if automatic split is enabled. Default value: 50.
- Partition
Count double - Number of log topic partitions. Default value: 1. Maximum value: 10.
- Period double
- Lifecycle in days. Value range: 1~366. Default value: 30.
- Storage
Type string - Log topic storage class. Valid values: hot: real-time storage; cold: offline storage. Default value: hot. If cold is passed in, please contact the customer service to add the log topic to the allowlist first.
- Dictionary<string, string>
- Tag description list. Up to 10 tag key-value pairs are supported and must be unique.
- Topic
Name string - Log topic name.
- Auto
Split bool - Whether to enable automatic split. Default value: true.
- Cls
Topic stringId - ID of the resource.
- Describes string
- Log Topic Description.
- Extends
Cls
Topic Extends Args - Log Subject Extension Information.
- Hot
Period float64 - 0: Turn off log sinking. Non 0: The number of days of standard storage after enabling log settling. HotPeriod needs to be greater than or equal to 7 and less than Period. Only effective when StorageType is hot.
- Is
Web boolTracking - No authentication switch. False: closed; True: Enable. The default is false. After activation, anonymous access to the log topic will be supported for specified operations.
- Logset
Id string - Logset ID.
- Max
Split float64Partitions - Maximum number of partitions to split into for this topic if automatic split is enabled. Default value: 50.
- Partition
Count float64 - Number of log topic partitions. Default value: 1. Maximum value: 10.
- Period float64
- Lifecycle in days. Value range: 1~366. Default value: 30.
- Storage
Type string - Log topic storage class. Valid values: hot: real-time storage; cold: offline storage. Default value: hot. If cold is passed in, please contact the customer service to add the log topic to the allowlist first.
- map[string]string
- Tag description list. Up to 10 tag key-value pairs are supported and must be unique.
- Topic
Name string - Log topic name.
- auto
Split Boolean - Whether to enable automatic split. Default value: true.
- cls
Topic StringId - ID of the resource.
- describes String
- Log Topic Description.
- extends_
Cls
Topic Extends - Log Subject Extension Information.
- hot
Period Double - 0: Turn off log sinking. Non 0: The number of days of standard storage after enabling log settling. HotPeriod needs to be greater than or equal to 7 and less than Period. Only effective when StorageType is hot.
- is
Web BooleanTracking - No authentication switch. False: closed; True: Enable. The default is false. After activation, anonymous access to the log topic will be supported for specified operations.
- logset
Id String - Logset ID.
- max
Split DoublePartitions - Maximum number of partitions to split into for this topic if automatic split is enabled. Default value: 50.
- partition
Count Double - Number of log topic partitions. Default value: 1. Maximum value: 10.
- period Double
- Lifecycle in days. Value range: 1~366. Default value: 30.
- storage
Type String - Log topic storage class. Valid values: hot: real-time storage; cold: offline storage. Default value: hot. If cold is passed in, please contact the customer service to add the log topic to the allowlist first.
- Map<String,String>
- Tag description list. Up to 10 tag key-value pairs are supported and must be unique.
- topic
Name String - Log topic name.
- auto
Split boolean - Whether to enable automatic split. Default value: true.
- cls
Topic stringId - ID of the resource.
- describes string
- Log Topic Description.
- extends
Cls
Topic Extends - Log Subject Extension Information.
- hot
Period number - 0: Turn off log sinking. Non 0: The number of days of standard storage after enabling log settling. HotPeriod needs to be greater than or equal to 7 and less than Period. Only effective when StorageType is hot.
- is
Web booleanTracking - No authentication switch. False: closed; True: Enable. The default is false. After activation, anonymous access to the log topic will be supported for specified operations.
- logset
Id string - Logset ID.
- max
Split numberPartitions - Maximum number of partitions to split into for this topic if automatic split is enabled. Default value: 50.
- partition
Count number - Number of log topic partitions. Default value: 1. Maximum value: 10.
- period number
- Lifecycle in days. Value range: 1~366. Default value: 30.
- storage
Type string - Log topic storage class. Valid values: hot: real-time storage; cold: offline storage. Default value: hot. If cold is passed in, please contact the customer service to add the log topic to the allowlist first.
- {[key: string]: string}
- Tag description list. Up to 10 tag key-value pairs are supported and must be unique.
- topic
Name string - Log topic name.
- auto_
split bool - Whether to enable automatic split. Default value: true.
- cls_
topic_ strid - ID of the resource.
- describes str
- Log Topic Description.
- extends
Cls
Topic Extends Args - Log Subject Extension Information.
- hot_
period float - 0: Turn off log sinking. Non 0: The number of days of standard storage after enabling log settling. HotPeriod needs to be greater than or equal to 7 and less than Period. Only effective when StorageType is hot.
- is_
web_ booltracking - No authentication switch. False: closed; True: Enable. The default is false. After activation, anonymous access to the log topic will be supported for specified operations.
- logset_
id str - Logset ID.
- max_
split_ floatpartitions - Maximum number of partitions to split into for this topic if automatic split is enabled. Default value: 50.
- partition_
count float - Number of log topic partitions. Default value: 1. Maximum value: 10.
- period float
- Lifecycle in days. Value range: 1~366. Default value: 30.
- storage_
type str - Log topic storage class. Valid values: hot: real-time storage; cold: offline storage. Default value: hot. If cold is passed in, please contact the customer service to add the log topic to the allowlist first.
- Mapping[str, str]
- Tag description list. Up to 10 tag key-value pairs are supported and must be unique.
- topic_
name str - Log topic name.
- auto
Split Boolean - Whether to enable automatic split. Default value: true.
- cls
Topic StringId - ID of the resource.
- describes String
- Log Topic Description.
- extends Property Map
- Log Subject Extension Information.
- hot
Period Number - 0: Turn off log sinking. Non 0: The number of days of standard storage after enabling log settling. HotPeriod needs to be greater than or equal to 7 and less than Period. Only effective when StorageType is hot.
- is
Web BooleanTracking - No authentication switch. False: closed; True: Enable. The default is false. After activation, anonymous access to the log topic will be supported for specified operations.
- logset
Id String - Logset ID.
- max
Split NumberPartitions - Maximum number of partitions to split into for this topic if automatic split is enabled. Default value: 50.
- partition
Count Number - Number of log topic partitions. Default value: 1. Maximum value: 10.
- period Number
- Lifecycle in days. Value range: 1~366. Default value: 30.
- storage
Type String - Log topic storage class. Valid values: hot: real-time storage; cold: offline storage. Default value: hot. If cold is passed in, please contact the customer service to add the log topic to the allowlist first.
- Map<String>
- Tag description list. Up to 10 tag key-value pairs are supported and must be unique.
- topic
Name String - Log topic name.
Supporting Types
ClsTopicExtends, ClsTopicExtendsArgs
- Anonymous
Access ClsTopic Extends Anonymous Access - Log topic authentication free configuration information.
- Anonymous
Access ClsTopic Extends Anonymous Access - Log topic authentication free configuration information.
- anonymous
Access ClsTopic Extends Anonymous Access - Log topic authentication free configuration information.
- anonymous
Access ClsTopic Extends Anonymous Access - Log topic authentication free configuration information.
- anonymous_
access ClsTopic Extends Anonymous Access - Log topic authentication free configuration information.
- anonymous
Access Property Map - Log topic authentication free configuration information.
ClsTopicExtendsAnonymousAccess, ClsTopicExtendsAnonymousAccessArgs
- Conditions
List<Cls
Topic Extends Anonymous Access Condition> - Operation list, supporting trackLog (JS/HTTP upload log) and realtimeProducer (kafka protocol upload log).
- Operations List<string>
- Operation list, supporting trackLog (JS/HTTP upload log) and realtimeProducer (kafka protocol upload log).
- Conditions
[]Cls
Topic Extends Anonymous Access Condition - Operation list, supporting trackLog (JS/HTTP upload log) and realtimeProducer (kafka protocol upload log).
- Operations []string
- Operation list, supporting trackLog (JS/HTTP upload log) and realtimeProducer (kafka protocol upload log).
- conditions
List<Cls
Topic Extends Anonymous Access Condition> - Operation list, supporting trackLog (JS/HTTP upload log) and realtimeProducer (kafka protocol upload log).
- operations List<String>
- Operation list, supporting trackLog (JS/HTTP upload log) and realtimeProducer (kafka protocol upload log).
- conditions
Cls
Topic Extends Anonymous Access Condition[] - Operation list, supporting trackLog (JS/HTTP upload log) and realtimeProducer (kafka protocol upload log).
- operations string[]
- Operation list, supporting trackLog (JS/HTTP upload log) and realtimeProducer (kafka protocol upload log).
- conditions
Sequence[Cls
Topic Extends Anonymous Access Condition] - Operation list, supporting trackLog (JS/HTTP upload log) and realtimeProducer (kafka protocol upload log).
- operations Sequence[str]
- Operation list, supporting trackLog (JS/HTTP upload log) and realtimeProducer (kafka protocol upload log).
- conditions List<Property Map>
- Operation list, supporting trackLog (JS/HTTP upload log) and realtimeProducer (kafka protocol upload log).
- operations List<String>
- Operation list, supporting trackLog (JS/HTTP upload log) and realtimeProducer (kafka protocol upload log).
ClsTopicExtendsAnonymousAccessCondition, ClsTopicExtendsAnonymousAccessConditionArgs
- Attributes string
- Condition attribute, currently only VpcID is supported.
- Condition
Value string - The value of the corresponding conditional attribute.
- Rule double
- Conditional rule, 1: equal, 2: not equal.
- Attributes string
- Condition attribute, currently only VpcID is supported.
- Condition
Value string - The value of the corresponding conditional attribute.
- Rule float64
- Conditional rule, 1: equal, 2: not equal.
- attributes String
- Condition attribute, currently only VpcID is supported.
- condition
Value String - The value of the corresponding conditional attribute.
- rule Double
- Conditional rule, 1: equal, 2: not equal.
- attributes string
- Condition attribute, currently only VpcID is supported.
- condition
Value string - The value of the corresponding conditional attribute.
- rule number
- Conditional rule, 1: equal, 2: not equal.
- attributes str
- Condition attribute, currently only VpcID is supported.
- condition_
value str - The value of the corresponding conditional attribute.
- rule float
- Conditional rule, 1: equal, 2: not equal.
- attributes String
- Condition attribute, currently only VpcID is supported.
- condition
Value String - The value of the corresponding conditional attribute.
- rule Number
- Conditional rule, 1: equal, 2: not equal.
Import
cls topic can be imported using the id, e.g.
$ pulumi import tencentcloud:index/clsTopic:ClsTopic example 2f5764c1-c833-44c5-84c7-950979b2a278
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.