import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Data Source schema for Volcengine::Kafka::Instance */ export declare function getInstance(args: GetInstanceArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getInstance. */ export interface GetInstanceArgs { /** * Uniquely identifies the resource. */ id: string; } /** * A collection of values returned by getInstance. */ export interface GetInstanceResult { /** * Main account ID for creating the instance. */ readonly accountId: string; /** * Billing type and related billing information for the Kafka instance. */ readonly chargeInfo: outputs.kafka.GetInstanceChargeInfo; /** * Instance compute specification. */ readonly computeSpec: string; /** * Connection information for the Kafka instance. */ readonly connectionInfos: outputs.kafka.GetInstanceConnectionInfo[]; /** * Instance creation time. Time format: YYYY-MM-DD'T'HH:MM:SS'Z'. */ readonly createdTime: string; /** * EIP ID. */ readonly eipId: string; /** * Uniquely identifies the resource. */ readonly id: string; /** * Brief description of the Kafka instance. Length must be between 1 and 128 characters. */ readonly instanceDescription: string; /** * Kafka instance ID. */ readonly instanceId: string; /** * Name of the Kafka instance. Only Chinese characters, letters, numbers, underscores (_), and hyphens (-) are allowed. Cannot start with a number or hyphen (-). Length must be between 1 and 128 characters. */ readonly instanceName: string; /** * Status of the Kafka instance. Error: error, Deleting: deleting, Creating: deploying, Upgrading: upgrading, Updating: updating, Running: running, Scaling: scaling, Rebuilding: rebuilding, Destroying: destroying, Restarting: restarting, Migrating: migrating, Restoring: restoring, Importing: importing, NetCreating: applying for public network, NetReleasing: releasing public network, Rollingback: rolling back, CreateFailed: creation failed, UpgradeFailed: upgrade failed, ScaleFailed: scaling failed, RestartFailed: restart failed */ readonly instanceStatus: string; /** * List of allowlist IDs bound to the instance. After binding an allowlist, only IP addresses and ranges configured in the allowlist can access this instance. If this parameter is not set, the new Kafka instance will bind the allowlist 'default', with IP address 0.0.0.0, allowing all addresses to access the Kafka instance. */ readonly ipWhiteLists: string[]; /** * Whether to enable rebalancing. */ readonly needRebalance: boolean; /** * Initial parameter configuration for Kafka instances, formatted as JSON. Parameter list: Maximum message size (MessageMaxByte) 1–12 MB, default 10; message retention time (LogRetentionHours) 0–2160 hours, default 72; offset retention duration (OffsetRetentionMinutes) 1–10080 minutes, default 4320; message timestamp type (MessageTimestampType) LogAppendTime/CreateTime—time when the message is written to the server or when the producer creates the message. */ readonly parameters: string; /** * Number of partitions. */ readonly partitionNumber: number; /** * Whether to enable public network domain resolution. */ readonly privateDomainOnPublic: boolean; /** * IAM project to which the currently created Kafka instance belongs. */ readonly projectName: string; /** * Instance storage space, measured in GiB, must be specified as a multiple of 100. */ readonly storageSpace: number; /** * Cloud disk type for Kafka instance data storage. Can be set to ESSD*FlexPL or ESSD*PL0; default is ESSD_FlexPL. */ readonly storageType: string; /** * VPC subnet ID where the instance is located. */ readonly subnetId: string; /** * Cloud resource tags. You can categorize instances by tags for easier search and resource aggregation. */ readonly tags: outputs.kafka.GetInstanceTag[]; /** * List of topics under a Kafka instance */ readonly topics: string[]; /** * The remaining number of available consumer groups for the current instance. */ readonly usableGroupNumber: number; /** * Number of available partitions remaining for the current instance. */ readonly usablePartitionNumber: number; /** * Number of consumer groups (Group) currently created in the instance. */ readonly usedGroupNumber: number; /** * Number of partitions currently used by the instance. */ readonly usedPartitionNumber: number; /** * Used storage space of the instance, measured in GiB. */ readonly usedStorageSpace: number; /** * Number of topics created in the current instance. */ readonly usedTopicNumber: number; /** * SASL/PLAIN username. Requirements: 1. Consists of lowercase letters, numbers, hyphens (-), or underscores. 2. Length: 3–64 characters. 3. Username cannot be set to admin or monitor, and must be unique within the instance. */ readonly userName: string; /** * Password for SASL/PLAIN users. Must meet the following requirements: 1. Length between 8 and 32 characters 2. Must contain any three of the following: uppercase letters, lowercase letters, numbers, special characters 3. Supported special characters: !@#$%^&*()_+-= */ readonly userPassword: string; /** * Supported Kafka versions. Currently supported versions include 2.2.2 and 2.8.2. */ readonly version: string; /** * Private network (VPC) ID where the instance is located. */ readonly vpcId: string; /** * Availability zone ID where the instance is located. Message Queue for Kafka instances support cross-AZ deployment; separate multiple availability zone IDs with commas. */ readonly zoneId: string; } /** * Data Source schema for Volcengine::Kafka::Instance */ export declare function getInstanceOutput(args: GetInstanceOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getInstance. */ export interface GetInstanceOutputArgs { /** * Uniquely identifies the resource. */ id: pulumi.Input; }