import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Data Source schema for Volcengine::RocketMQ::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 { /** * Permissions for each RocketMQ key on the current Topic, supports batch permission settings. If not set, each key retains its default permissions for the current Topic. */ readonly accessPolicies: outputs.rocketmq.GetTopicAccessPolicy[]; /** * Topic creation time. */ readonly createdTime: string; /** * Topic description, length: 0–128 characters. */ readonly description: string; /** * Consumer group information list. */ readonly groupsInfos: outputs.rocketmq.GetTopicGroupsInfo[]; /** * Uniquely identifies the resource. */ readonly id: string; /** * Instance ID. */ readonly instanceId: string; /** * Instance name. */ readonly instanceName: string; /** * Message type. Set this parameter to filter the Topic list by the specified message type. Value description: 0: Normal message. 1: Transaction message. 2: Partitioned ordered message. 3: Globally ordered message. 4: Delayed message. */ readonly messageType: number; /** * Set the number of queues for the current Topic. The maximum cannot exceed the remaining available queues for the current instance. For queue limits per instance specification, refer to the product specifications. When creating a Topic in a 4.x version instance, set the number of queues as follows: For globally ordered Topics, the default queue number is 1. For other Topic types, the queue number depends on the compute specification. For n3 and below, the default is 6; for above n3, the default is twice the number of broker groups. It is recommended to set the queue number as a multiple of the number of compute nodes to avoid data imbalance across Brokers. For example, for the rocketmq.n3.x2.medium specification with 3 compute nodes, set the queue number to a multiple of 3, such as 3, 6, or 9. When creating a Topic in a 5.x version instance, set the number of queues as follows: For globally ordered Topics, the default queue number is 1. For other Topic types, the default is twice the number of broker groups. In non-ordered scenarios, performance is not affected by the number of queues; more queues only improve concurrent performance for ordered consumption. */ readonly queueNumber: number; /** * Queue information list. */ readonly queuesInfos: outputs.rocketmq.GetTopicQueuesInfo[]; /** * Permissions for each RocketMQ key on the current Topic, permission field */ readonly readAccessPolicies: outputs.rocketmq.GetTopicReadAccessPolicy[]; /** * Service status. Creating: being created, Running: running, Deleting: being deleted, Abnormal: abnormal, Updating: being updated. */ readonly serviceStatus: string; /** * Topic name. Naming rules: Length must be 3–100 characters. Only English letters, numbers, hyphens (-), and underscores (*) are allowed. Topic names cannot contain the following reserved characters or special prefixes. Reserved characters: RMQ*SYS*TRANS*OP*HALF*TOPIC, BenchmarkTest, TBW102, OFFSET*MOVED*EVENT, SELF*TEST*TOPIC, RMQ*SYS*TRANS*HALF*TOPIC, SCHEDULE*TOPIC*XXXX, RMQ*SYS*TRACE*TOPIC. Special prefixes: rocketmq-broker-, %RETRY%, rmq*sys_, %DLQ%. */ readonly topicName: string; } /** * Data Source schema for Volcengine::RocketMQ::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; }