volcengine.tls.Topic
Explore with Pulumi AI
Provides a resource to manage tls topic
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const foo = new volcengine.tls.Topic("foo", {
    autoSplit: true,
    description: "test",
    enableTracking: true,
    maxSplitShard: 10,
    projectId: "e020c978-4f05-40e1-9167-0113d3ef****",
    shardCount: 2,
    tags: [{
        key: "k1",
        value: "v1",
    }],
    timeFormat: "%Y-%m-%dT%H:%M:%S,%f",
    timeKey: "request_time",
    topicName: "tf-test-topic",
    ttl: 10,
});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.tls.Topic("foo",
    auto_split=True,
    description="test",
    enable_tracking=True,
    max_split_shard=10,
    project_id="e020c978-4f05-40e1-9167-0113d3ef****",
    shard_count=2,
    tags=[volcengine.tls.TopicTagArgs(
        key="k1",
        value="v1",
    )],
    time_format="%Y-%m-%dT%H:%M:%S,%f",
    time_key="request_time",
    topic_name="tf-test-topic",
    ttl=10)
package main
import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/tls"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := tls.NewTopic(ctx, "foo", &tls.TopicArgs{
			AutoSplit:      pulumi.Bool(true),
			Description:    pulumi.String("test"),
			EnableTracking: pulumi.Bool(true),
			MaxSplitShard:  pulumi.Int(10),
			ProjectId:      pulumi.String("e020c978-4f05-40e1-9167-0113d3ef****"),
			ShardCount:     pulumi.Int(2),
			Tags: tls.TopicTagArray{
				&tls.TopicTagArgs{
					Key:   pulumi.String("k1"),
					Value: pulumi.String("v1"),
				},
			},
			TimeFormat: pulumi.String("%Y-%m-%dT%H:%M:%S,%f"),
			TimeKey:    pulumi.String("request_time"),
			TopicName:  pulumi.String("tf-test-topic"),
			Ttl:        pulumi.Int(10),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() => 
{
    var foo = new Volcengine.Tls.Topic("foo", new()
    {
        AutoSplit = true,
        Description = "test",
        EnableTracking = true,
        MaxSplitShard = 10,
        ProjectId = "e020c978-4f05-40e1-9167-0113d3ef****",
        ShardCount = 2,
        Tags = new[]
        {
            new Volcengine.Tls.Inputs.TopicTagArgs
            {
                Key = "k1",
                Value = "v1",
            },
        },
        TimeFormat = "%Y-%m-%dT%H:%M:%S,%f",
        TimeKey = "request_time",
        TopicName = "tf-test-topic",
        Ttl = 10,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.tls.Topic;
import com.pulumi.volcengine.tls.TopicArgs;
import com.pulumi.volcengine.tls.inputs.TopicTagArgs;
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 Topic("foo", TopicArgs.builder()        
            .autoSplit(true)
            .description("test")
            .enableTracking(true)
            .maxSplitShard(10)
            .projectId("e020c978-4f05-40e1-9167-0113d3ef****")
            .shardCount(2)
            .tags(TopicTagArgs.builder()
                .key("k1")
                .value("v1")
                .build())
            .timeFormat("%Y-%m-%dT%H:%M:%S,%f")
            .timeKey("request_time")
            .topicName("tf-test-topic")
            .ttl(10)
            .build());
    }
}
resources:
  foo:
    type: volcengine:tls:Topic
    properties:
      autoSplit: true
      description: test
      enableTracking: true
      maxSplitShard: 10
      projectId: e020c978-4f05-40e1-9167-0113d3ef****
      shardCount: 2
      tags:
        - key: k1
          value: v1
      timeFormat: '%Y-%m-%dT%H:%M:%S,%f'
      timeKey: request_time
      topicName: tf-test-topic
      ttl: 10
Create Topic Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Topic(name: string, args: TopicArgs, opts?: CustomResourceOptions);@overload
def Topic(resource_name: str,
          args: TopicArgs,
          opts: Optional[ResourceOptions] = None)
@overload
def Topic(resource_name: str,
          opts: Optional[ResourceOptions] = None,
          project_id: Optional[str] = None,
          ttl: Optional[int] = None,
          topic_name: Optional[str] = None,
          shard_count: Optional[int] = None,
          manual_split_shard_id: Optional[int] = None,
          max_split_shard: Optional[int] = None,
          manual_split_shard_number: Optional[int] = None,
          auto_split: Optional[bool] = None,
          tags: Optional[Sequence[TopicTagArgs]] = None,
          time_format: Optional[str] = None,
          time_key: Optional[str] = None,
          enable_tracking: Optional[bool] = None,
          description: Optional[str] = None)func NewTopic(ctx *Context, name string, args TopicArgs, opts ...ResourceOption) (*Topic, error)public Topic(string name, TopicArgs args, CustomResourceOptions? opts = null)type: volcengine:tls:Topic
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 TopicArgs
- 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 TopicArgs
- 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 TopicArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TopicArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TopicArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var volcengineTopicResource = new Volcengine.Tls.Topic("volcengineTopicResource", new()
{
    ProjectId = "string",
    Ttl = 0,
    TopicName = "string",
    ShardCount = 0,
    ManualSplitShardId = 0,
    MaxSplitShard = 0,
    ManualSplitShardNumber = 0,
    AutoSplit = false,
    Tags = new[]
    {
        new Volcengine.Tls.Inputs.TopicTagArgs
        {
            Key = "string",
            Value = "string",
        },
    },
    TimeFormat = "string",
    TimeKey = "string",
    EnableTracking = false,
    Description = "string",
});
example, err := tls.NewTopic(ctx, "volcengineTopicResource", &tls.TopicArgs{
	ProjectId:              pulumi.String("string"),
	Ttl:                    pulumi.Int(0),
	TopicName:              pulumi.String("string"),
	ShardCount:             pulumi.Int(0),
	ManualSplitShardId:     pulumi.Int(0),
	MaxSplitShard:          pulumi.Int(0),
	ManualSplitShardNumber: pulumi.Int(0),
	AutoSplit:              pulumi.Bool(false),
	Tags: tls.TopicTagArray{
		&tls.TopicTagArgs{
			Key:   pulumi.String("string"),
			Value: pulumi.String("string"),
		},
	},
	TimeFormat:     pulumi.String("string"),
	TimeKey:        pulumi.String("string"),
	EnableTracking: pulumi.Bool(false),
	Description:    pulumi.String("string"),
})
var volcengineTopicResource = new Topic("volcengineTopicResource", TopicArgs.builder()
    .projectId("string")
    .ttl(0)
    .topicName("string")
    .shardCount(0)
    .manualSplitShardId(0)
    .maxSplitShard(0)
    .manualSplitShardNumber(0)
    .autoSplit(false)
    .tags(TopicTagArgs.builder()
        .key("string")
        .value("string")
        .build())
    .timeFormat("string")
    .timeKey("string")
    .enableTracking(false)
    .description("string")
    .build());
volcengine_topic_resource = volcengine.tls.Topic("volcengineTopicResource",
    project_id="string",
    ttl=0,
    topic_name="string",
    shard_count=0,
    manual_split_shard_id=0,
    max_split_shard=0,
    manual_split_shard_number=0,
    auto_split=False,
    tags=[{
        "key": "string",
        "value": "string",
    }],
    time_format="string",
    time_key="string",
    enable_tracking=False,
    description="string")
const volcengineTopicResource = new volcengine.tls.Topic("volcengineTopicResource", {
    projectId: "string",
    ttl: 0,
    topicName: "string",
    shardCount: 0,
    manualSplitShardId: 0,
    maxSplitShard: 0,
    manualSplitShardNumber: 0,
    autoSplit: false,
    tags: [{
        key: "string",
        value: "string",
    }],
    timeFormat: "string",
    timeKey: "string",
    enableTracking: false,
    description: "string",
});
type: volcengine:tls:Topic
properties:
    autoSplit: false
    description: string
    enableTracking: false
    manualSplitShardId: 0
    manualSplitShardNumber: 0
    maxSplitShard: 0
    projectId: string
    shardCount: 0
    tags:
        - key: string
          value: string
    timeFormat: string
    timeKey: string
    topicName: string
    ttl: 0
Topic 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 Topic resource accepts the following input properties:
- ProjectId string
- The project id of the tls topic.
- int
- The count of shards in the tls topic. Valid value range: 1-10. This field is only valid when creating tls topic.
- TopicName string
- The name of the tls topic.
- Ttl int
- The data storage time of the tls topic. Unit: Day. Valid value range: 1-3650.
- AutoSplit bool
- Whether to enable automatic partition splitting function of the tls topic. true: (default) When the amount of data written exceeds the capacity of existing partitions for 5 consecutive minutes, Log Service will automatically split partitions based on the data volume to meet business needs. However, the number of partitions after splitting cannot exceed the maximum number of partitions. Newly split partitions within the last 15 minutes will not be automatically split again. false: Disables automatic partition splitting.
- Description string
- The description of the tls project.
- EnableTracking bool
- Whether to enable WebTracking function of the tls topic.
- ManualSplit intShard Id 
- The id of shard to be manually split. This field is valid only when modifying the topic. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- ManualSplit intShard Number 
- The split number of shard. The valid number should be a non-zero even number, such as 2, 4, 8, or 16. The total number of read-write status shards after splitting cannot exceed 50. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- MaxSplit intShard 
- The maximum number of partitions, which is the maximum number of partitions after partition splitting. The value range is 1 to 10, with a default of 10.
- 
List<TopicTag> 
- Tags.
- TimeFormat string
- The format of the time field.
- TimeKey string
- The name of the time field.
- ProjectId string
- The project id of the tls topic.
- int
- The count of shards in the tls topic. Valid value range: 1-10. This field is only valid when creating tls topic.
- TopicName string
- The name of the tls topic.
- Ttl int
- The data storage time of the tls topic. Unit: Day. Valid value range: 1-3650.
- AutoSplit bool
- Whether to enable automatic partition splitting function of the tls topic. true: (default) When the amount of data written exceeds the capacity of existing partitions for 5 consecutive minutes, Log Service will automatically split partitions based on the data volume to meet business needs. However, the number of partitions after splitting cannot exceed the maximum number of partitions. Newly split partitions within the last 15 minutes will not be automatically split again. false: Disables automatic partition splitting.
- Description string
- The description of the tls project.
- EnableTracking bool
- Whether to enable WebTracking function of the tls topic.
- ManualSplit intShard Id 
- The id of shard to be manually split. This field is valid only when modifying the topic. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- ManualSplit intShard Number 
- The split number of shard. The valid number should be a non-zero even number, such as 2, 4, 8, or 16. The total number of read-write status shards after splitting cannot exceed 50. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- MaxSplit intShard 
- The maximum number of partitions, which is the maximum number of partitions after partition splitting. The value range is 1 to 10, with a default of 10.
- 
[]TopicTag Args 
- Tags.
- TimeFormat string
- The format of the time field.
- TimeKey string
- The name of the time field.
- projectId String
- The project id of the tls topic.
- Integer
- The count of shards in the tls topic. Valid value range: 1-10. This field is only valid when creating tls topic.
- topicName String
- The name of the tls topic.
- ttl Integer
- The data storage time of the tls topic. Unit: Day. Valid value range: 1-3650.
- autoSplit Boolean
- Whether to enable automatic partition splitting function of the tls topic. true: (default) When the amount of data written exceeds the capacity of existing partitions for 5 consecutive minutes, Log Service will automatically split partitions based on the data volume to meet business needs. However, the number of partitions after splitting cannot exceed the maximum number of partitions. Newly split partitions within the last 15 minutes will not be automatically split again. false: Disables automatic partition splitting.
- description String
- The description of the tls project.
- enableTracking Boolean
- Whether to enable WebTracking function of the tls topic.
- manualSplit IntegerShard Id 
- The id of shard to be manually split. This field is valid only when modifying the topic. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- manualSplit IntegerShard Number 
- The split number of shard. The valid number should be a non-zero even number, such as 2, 4, 8, or 16. The total number of read-write status shards after splitting cannot exceed 50. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- maxSplit IntegerShard 
- The maximum number of partitions, which is the maximum number of partitions after partition splitting. The value range is 1 to 10, with a default of 10.
- 
List<TopicTag> 
- Tags.
- timeFormat String
- The format of the time field.
- timeKey String
- The name of the time field.
- projectId string
- The project id of the tls topic.
- number
- The count of shards in the tls topic. Valid value range: 1-10. This field is only valid when creating tls topic.
- topicName string
- The name of the tls topic.
- ttl number
- The data storage time of the tls topic. Unit: Day. Valid value range: 1-3650.
- autoSplit boolean
- Whether to enable automatic partition splitting function of the tls topic. true: (default) When the amount of data written exceeds the capacity of existing partitions for 5 consecutive minutes, Log Service will automatically split partitions based on the data volume to meet business needs. However, the number of partitions after splitting cannot exceed the maximum number of partitions. Newly split partitions within the last 15 minutes will not be automatically split again. false: Disables automatic partition splitting.
- description string
- The description of the tls project.
- enableTracking boolean
- Whether to enable WebTracking function of the tls topic.
- manualSplit numberShard Id 
- The id of shard to be manually split. This field is valid only when modifying the topic. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- manualSplit numberShard Number 
- The split number of shard. The valid number should be a non-zero even number, such as 2, 4, 8, or 16. The total number of read-write status shards after splitting cannot exceed 50. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- maxSplit numberShard 
- The maximum number of partitions, which is the maximum number of partitions after partition splitting. The value range is 1 to 10, with a default of 10.
- 
TopicTag[] 
- Tags.
- timeFormat string
- The format of the time field.
- timeKey string
- The name of the time field.
- project_id str
- The project id of the tls topic.
- int
- The count of shards in the tls topic. Valid value range: 1-10. This field is only valid when creating tls topic.
- topic_name str
- The name of the tls topic.
- ttl int
- The data storage time of the tls topic. Unit: Day. Valid value range: 1-3650.
- auto_split bool
- Whether to enable automatic partition splitting function of the tls topic. true: (default) When the amount of data written exceeds the capacity of existing partitions for 5 consecutive minutes, Log Service will automatically split partitions based on the data volume to meet business needs. However, the number of partitions after splitting cannot exceed the maximum number of partitions. Newly split partitions within the last 15 minutes will not be automatically split again. false: Disables automatic partition splitting.
- description str
- The description of the tls project.
- enable_tracking bool
- Whether to enable WebTracking function of the tls topic.
- manual_split_ intshard_ id 
- The id of shard to be manually split. This field is valid only when modifying the topic. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- manual_split_ intshard_ number 
- The split number of shard. The valid number should be a non-zero even number, such as 2, 4, 8, or 16. The total number of read-write status shards after splitting cannot exceed 50. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- max_split_ intshard 
- The maximum number of partitions, which is the maximum number of partitions after partition splitting. The value range is 1 to 10, with a default of 10.
- 
Sequence[TopicTag Args] 
- Tags.
- time_format str
- The format of the time field.
- time_key str
- The name of the time field.
- projectId String
- The project id of the tls topic.
- Number
- The count of shards in the tls topic. Valid value range: 1-10. This field is only valid when creating tls topic.
- topicName String
- The name of the tls topic.
- ttl Number
- The data storage time of the tls topic. Unit: Day. Valid value range: 1-3650.
- autoSplit Boolean
- Whether to enable automatic partition splitting function of the tls topic. true: (default) When the amount of data written exceeds the capacity of existing partitions for 5 consecutive minutes, Log Service will automatically split partitions based on the data volume to meet business needs. However, the number of partitions after splitting cannot exceed the maximum number of partitions. Newly split partitions within the last 15 minutes will not be automatically split again. false: Disables automatic partition splitting.
- description String
- The description of the tls project.
- enableTracking Boolean
- Whether to enable WebTracking function of the tls topic.
- manualSplit NumberShard Id 
- The id of shard to be manually split. This field is valid only when modifying the topic. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- manualSplit NumberShard Number 
- The split number of shard. The valid number should be a non-zero even number, such as 2, 4, 8, or 16. The total number of read-write status shards after splitting cannot exceed 50. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- maxSplit NumberShard 
- The maximum number of partitions, which is the maximum number of partitions after partition splitting. The value range is 1 to 10, with a default of 10.
- List<Property Map>
- Tags.
- timeFormat String
- The format of the time field.
- timeKey String
- The name of the time field.
Outputs
All input properties are implicitly available as output properties. Additionally, the Topic resource produces the following output properties:
- CreateTime string
- The create time of the tls topic.
- Id string
- The provider-assigned unique ID for this managed resource.
- ModifyTime string
- The modify time of the tls topic.
- CreateTime string
- The create time of the tls topic.
- Id string
- The provider-assigned unique ID for this managed resource.
- ModifyTime string
- The modify time of the tls topic.
- createTime String
- The create time of the tls topic.
- id String
- The provider-assigned unique ID for this managed resource.
- modifyTime String
- The modify time of the tls topic.
- createTime string
- The create time of the tls topic.
- id string
- The provider-assigned unique ID for this managed resource.
- modifyTime string
- The modify time of the tls topic.
- create_time str
- The create time of the tls topic.
- id str
- The provider-assigned unique ID for this managed resource.
- modify_time str
- The modify time of the tls topic.
- createTime String
- The create time of the tls topic.
- id String
- The provider-assigned unique ID for this managed resource.
- modifyTime String
- The modify time of the tls topic.
Look up Existing Topic Resource
Get an existing Topic 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?: TopicState, opts?: CustomResourceOptions): Topic@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        auto_split: Optional[bool] = None,
        create_time: Optional[str] = None,
        description: Optional[str] = None,
        enable_tracking: Optional[bool] = None,
        manual_split_shard_id: Optional[int] = None,
        manual_split_shard_number: Optional[int] = None,
        max_split_shard: Optional[int] = None,
        modify_time: Optional[str] = None,
        project_id: Optional[str] = None,
        shard_count: Optional[int] = None,
        tags: Optional[Sequence[TopicTagArgs]] = None,
        time_format: Optional[str] = None,
        time_key: Optional[str] = None,
        topic_name: Optional[str] = None,
        ttl: Optional[int] = None) -> Topicfunc GetTopic(ctx *Context, name string, id IDInput, state *TopicState, opts ...ResourceOption) (*Topic, error)public static Topic Get(string name, Input<string> id, TopicState? state, CustomResourceOptions? opts = null)public static Topic get(String name, Output<String> id, TopicState state, CustomResourceOptions options)resources:  _:    type: volcengine:tls:Topic    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.
- AutoSplit bool
- Whether to enable automatic partition splitting function of the tls topic. true: (default) When the amount of data written exceeds the capacity of existing partitions for 5 consecutive minutes, Log Service will automatically split partitions based on the data volume to meet business needs. However, the number of partitions after splitting cannot exceed the maximum number of partitions. Newly split partitions within the last 15 minutes will not be automatically split again. false: Disables automatic partition splitting.
- CreateTime string
- The create time of the tls topic.
- Description string
- The description of the tls project.
- EnableTracking bool
- Whether to enable WebTracking function of the tls topic.
- ManualSplit intShard Id 
- The id of shard to be manually split. This field is valid only when modifying the topic. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- ManualSplit intShard Number 
- The split number of shard. The valid number should be a non-zero even number, such as 2, 4, 8, or 16. The total number of read-write status shards after splitting cannot exceed 50. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- MaxSplit intShard 
- The maximum number of partitions, which is the maximum number of partitions after partition splitting. The value range is 1 to 10, with a default of 10.
- ModifyTime string
- The modify time of the tls topic.
- ProjectId string
- The project id of the tls topic.
- ShardCount int
- The count of shards in the tls topic. Valid value range: 1-10. This field is only valid when creating tls topic.
- 
List<TopicTag> 
- Tags.
- TimeFormat string
- The format of the time field.
- TimeKey string
- The name of the time field.
- TopicName string
- The name of the tls topic.
- Ttl int
- The data storage time of the tls topic. Unit: Day. Valid value range: 1-3650.
- AutoSplit bool
- Whether to enable automatic partition splitting function of the tls topic. true: (default) When the amount of data written exceeds the capacity of existing partitions for 5 consecutive minutes, Log Service will automatically split partitions based on the data volume to meet business needs. However, the number of partitions after splitting cannot exceed the maximum number of partitions. Newly split partitions within the last 15 minutes will not be automatically split again. false: Disables automatic partition splitting.
- CreateTime string
- The create time of the tls topic.
- Description string
- The description of the tls project.
- EnableTracking bool
- Whether to enable WebTracking function of the tls topic.
- ManualSplit intShard Id 
- The id of shard to be manually split. This field is valid only when modifying the topic. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- ManualSplit intShard Number 
- The split number of shard. The valid number should be a non-zero even number, such as 2, 4, 8, or 16. The total number of read-write status shards after splitting cannot exceed 50. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- MaxSplit intShard 
- The maximum number of partitions, which is the maximum number of partitions after partition splitting. The value range is 1 to 10, with a default of 10.
- ModifyTime string
- The modify time of the tls topic.
- ProjectId string
- The project id of the tls topic.
- ShardCount int
- The count of shards in the tls topic. Valid value range: 1-10. This field is only valid when creating tls topic.
- 
[]TopicTag Args 
- Tags.
- TimeFormat string
- The format of the time field.
- TimeKey string
- The name of the time field.
- TopicName string
- The name of the tls topic.
- Ttl int
- The data storage time of the tls topic. Unit: Day. Valid value range: 1-3650.
- autoSplit Boolean
- Whether to enable automatic partition splitting function of the tls topic. true: (default) When the amount of data written exceeds the capacity of existing partitions for 5 consecutive minutes, Log Service will automatically split partitions based on the data volume to meet business needs. However, the number of partitions after splitting cannot exceed the maximum number of partitions. Newly split partitions within the last 15 minutes will not be automatically split again. false: Disables automatic partition splitting.
- createTime String
- The create time of the tls topic.
- description String
- The description of the tls project.
- enableTracking Boolean
- Whether to enable WebTracking function of the tls topic.
- manualSplit IntegerShard Id 
- The id of shard to be manually split. This field is valid only when modifying the topic. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- manualSplit IntegerShard Number 
- The split number of shard. The valid number should be a non-zero even number, such as 2, 4, 8, or 16. The total number of read-write status shards after splitting cannot exceed 50. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- maxSplit IntegerShard 
- The maximum number of partitions, which is the maximum number of partitions after partition splitting. The value range is 1 to 10, with a default of 10.
- modifyTime String
- The modify time of the tls topic.
- projectId String
- The project id of the tls topic.
- shardCount Integer
- The count of shards in the tls topic. Valid value range: 1-10. This field is only valid when creating tls topic.
- 
List<TopicTag> 
- Tags.
- timeFormat String
- The format of the time field.
- timeKey String
- The name of the time field.
- topicName String
- The name of the tls topic.
- ttl Integer
- The data storage time of the tls topic. Unit: Day. Valid value range: 1-3650.
- autoSplit boolean
- Whether to enable automatic partition splitting function of the tls topic. true: (default) When the amount of data written exceeds the capacity of existing partitions for 5 consecutive minutes, Log Service will automatically split partitions based on the data volume to meet business needs. However, the number of partitions after splitting cannot exceed the maximum number of partitions. Newly split partitions within the last 15 minutes will not be automatically split again. false: Disables automatic partition splitting.
- createTime string
- The create time of the tls topic.
- description string
- The description of the tls project.
- enableTracking boolean
- Whether to enable WebTracking function of the tls topic.
- manualSplit numberShard Id 
- The id of shard to be manually split. This field is valid only when modifying the topic. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- manualSplit numberShard Number 
- The split number of shard. The valid number should be a non-zero even number, such as 2, 4, 8, or 16. The total number of read-write status shards after splitting cannot exceed 50. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- maxSplit numberShard 
- The maximum number of partitions, which is the maximum number of partitions after partition splitting. The value range is 1 to 10, with a default of 10.
- modifyTime string
- The modify time of the tls topic.
- projectId string
- The project id of the tls topic.
- shardCount number
- The count of shards in the tls topic. Valid value range: 1-10. This field is only valid when creating tls topic.
- 
TopicTag[] 
- Tags.
- timeFormat string
- The format of the time field.
- timeKey string
- The name of the time field.
- topicName string
- The name of the tls topic.
- ttl number
- The data storage time of the tls topic. Unit: Day. Valid value range: 1-3650.
- auto_split bool
- Whether to enable automatic partition splitting function of the tls topic. true: (default) When the amount of data written exceeds the capacity of existing partitions for 5 consecutive minutes, Log Service will automatically split partitions based on the data volume to meet business needs. However, the number of partitions after splitting cannot exceed the maximum number of partitions. Newly split partitions within the last 15 minutes will not be automatically split again. false: Disables automatic partition splitting.
- create_time str
- The create time of the tls topic.
- description str
- The description of the tls project.
- enable_tracking bool
- Whether to enable WebTracking function of the tls topic.
- manual_split_ intshard_ id 
- The id of shard to be manually split. This field is valid only when modifying the topic. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- manual_split_ intshard_ number 
- The split number of shard. The valid number should be a non-zero even number, such as 2, 4, 8, or 16. The total number of read-write status shards after splitting cannot exceed 50. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- max_split_ intshard 
- The maximum number of partitions, which is the maximum number of partitions after partition splitting. The value range is 1 to 10, with a default of 10.
- modify_time str
- The modify time of the tls topic.
- project_id str
- The project id of the tls topic.
- shard_count int
- The count of shards in the tls topic. Valid value range: 1-10. This field is only valid when creating tls topic.
- 
Sequence[TopicTag Args] 
- Tags.
- time_format str
- The format of the time field.
- time_key str
- The name of the time field.
- topic_name str
- The name of the tls topic.
- ttl int
- The data storage time of the tls topic. Unit: Day. Valid value range: 1-3650.
- autoSplit Boolean
- Whether to enable automatic partition splitting function of the tls topic. true: (default) When the amount of data written exceeds the capacity of existing partitions for 5 consecutive minutes, Log Service will automatically split partitions based on the data volume to meet business needs. However, the number of partitions after splitting cannot exceed the maximum number of partitions. Newly split partitions within the last 15 minutes will not be automatically split again. false: Disables automatic partition splitting.
- createTime String
- The create time of the tls topic.
- description String
- The description of the tls project.
- enableTracking Boolean
- Whether to enable WebTracking function of the tls topic.
- manualSplit NumberShard Id 
- The id of shard to be manually split. This field is valid only when modifying the topic. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- manualSplit NumberShard Number 
- The split number of shard. The valid number should be a non-zero even number, such as 2, 4, 8, or 16. The total number of read-write status shards after splitting cannot exceed 50. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
- maxSplit NumberShard 
- The maximum number of partitions, which is the maximum number of partitions after partition splitting. The value range is 1 to 10, with a default of 10.
- modifyTime String
- The modify time of the tls topic.
- projectId String
- The project id of the tls topic.
- shardCount Number
- The count of shards in the tls topic. Valid value range: 1-10. This field is only valid when creating tls topic.
- List<Property Map>
- Tags.
- timeFormat String
- The format of the time field.
- timeKey String
- The name of the time field.
- topicName String
- The name of the tls topic.
- ttl Number
- The data storage time of the tls topic. Unit: Day. Valid value range: 1-3650.
Supporting Types
TopicTag, TopicTagArgs    
Import
Tls Topic can be imported using the id, e.g.
$ pulumi import volcengine:tls/topic:Topic default edf051ed-3c46-49ba-9339-bea628fe****
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the volcengineTerraform Provider.