import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Data Source schema for Volcengine::TLS::Topic */ export declare function getTopic(args: GetTopicArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getTopic. */ export interface GetTopicArgs { /** * Uniquely identifies the resource. */ id: string; } /** * A collection of values returned by getTopic. */ export interface GetTopicResult { /** * Indicates whether Kafka protocol consumption is enabled for the log topic. true: enabled. false: not enabled. */ readonly allowConsume: boolean; /** * Archive storage duration. The value range is 60~3650. Archive storage can be enabled if any of the following conditions are met: Standard storage duration is 30 days or longer; standard storage duration is 7 days or longer and infrequent storage duration is 30 days or longer. This parameter is only effective when EnableHotTtl is set to true. */ readonly archiveTtl: number; /** * Enable automatic partition splitting. true: If the amount of data written exceeds the capacity of existing partitions for 5 consecutive minutes, the log service will automatically split partitions based on data volume to meet business needs, but the number of partitions after splitting cannot exceed the maximum split limit. New partitions created within the last 15 minutes will not be automatically split. false: Disable automatic partition splitting. */ readonly autoSplit: boolean; /** * Low-frequency storage duration. Value range: 30–3650. Low-frequency storage is available when standard storage duration is 7 days or longer. This parameter is effective only when EnableHotTtl is true. */ readonly coldTtl: number; /** * Kafka protocol consumption topic ID, formatted as out+log topic ID. When consuming log data from this log topic via the Kafka protocol, set Topic to this ID. */ readonly consumeTopic: string; /** * Log topic creation time. */ readonly createdTime: string; /** * Log topic description. Does not support <>, ', \, \, or any emoji symbols. Length: 0–64 characters. */ readonly description: string; /** * Enable tiered storage. When enabled, the log service supports standard storage, low-frequency storage, and archive storage. After setting HotTtl, ArchiveTtl, and ColdTtl, if data storage duration exceeds the corresponding value, data will automatically move to low-frequency or archive storage for continued retention until the total log retention duration reaches Ttl, after which backend services will automatically clean up the data. */ readonly enableHotTtl: boolean; /** * Enable WebTracking. When enabled, you can quickly collect frontend tracking data using WebTracking. true: Enable WebTracking. false (default): Disable WebTracking. After enabling Web Tracking for the log topic, data written via the WebTracks API does not require authentication, which grants anonymous write access to the public network and may result in dirty data. */ readonly enableTracking: boolean; /** * Standard storage duration. Default is 30 days; value range: 7–3650. This parameter is effective only when EnableHotTtl is true. */ readonly hotTtl: number; /** * Uniquely identifies the resource. */ readonly id: string; /** * Enable external IP recording. Enabled by default. When enabled, the log service automatically adds the following metadata fields to the log content: **tag****client_ip**: Public IP address of the device sending the log. If logs are written using the log service's private domain name, the private IP address is recorded. **tag****receive_time**: Time when the log reaches the server, formatted as a 10-digit Unix timestamp. */ readonly logPublicIp: boolean; /** * Maximum partition split count, which is the maximum number of partitions after splitting. Value range: 1–256, default is 256. Required only when automatic log partition splitting is enabled (AutoSplit is true). MaxSplitShard must be greater than the specified ShardCount; otherwise, the log service cannot automatically split partitions. */ readonly maxSplitShard: number; /** * Log project ID to which the log topic belongs. */ readonly projectId: string; /** * Number of log partitions. By default, 1 partition is created; value range: 1–10. Each partition provides write capacity of 5 MiB/s, 500 ops/s, and read capacity of 20 MiB/s, 100 ops/s. Plan partitions appropriately when creating a log topic; partition count cannot be modified after creation. */ readonly shardCount: number; /** * Tag list. */ readonly tags: outputs.tls.GetTopicTag[]; /** * Time format */ readonly timeFormat: string; /** * Time field name */ readonly timeKey: string; /** * Log topic ID. */ readonly topicId: string; /** * Log topic name. */ readonly topicName: string; /** * Total log retention time in the log service. After the specified log storage duration is exceeded, expired logs in this log topic will be automatically cleared. Unit: days. Default is 30 days. Value range is 1–3650. Setting to 3650 days means permanent storage. */ readonly ttl: number; /** * Log topic modification time. */ readonly updatedTime: string; } /** * Data Source schema for Volcengine::TLS::Topic */ export declare function getTopicOutput(args: GetTopicOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getTopic. */ export interface GetTopicOutputArgs { /** * Uniquely identifies the resource. */ id: pulumi.Input; }