import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface CkafkaTopicConfig extends cdktf.TerraformMetaArguments { /** * Clear log policy, log clear mode, default is `delete`. `delete`: logs are deleted according to the storage time. `compact`: logs are compressed according to the key. `compact, delete`: logs are compressed according to the key and will be deleted according to the storage time. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/ckafka_topic#clean_up_policy CkafkaTopic#clean_up_policy} */ readonly cleanUpPolicy?: string; /** * Whether to open the ip whitelist, `true`: open, `false`: close. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/ckafka_topic#enable_white_list CkafkaTopic#enable_white_list} */ readonly enableWhiteList?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/ckafka_topic#id CkafkaTopic#id} * * Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. * If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable. */ readonly id?: string; /** * Ckafka instance ID. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/ckafka_topic#instance_id CkafkaTopic#instance_id} */ readonly instanceId: string; /** * Ip whitelist, quota limit, required when enableWhileList=true. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/ckafka_topic#ip_white_list CkafkaTopic#ip_white_list} */ readonly ipWhiteList?: string[]; /** * Max message bytes. min: 1024 Byte(1KB), max: 8388608 Byte(8MB). * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/ckafka_topic#max_message_bytes CkafkaTopic#max_message_bytes} */ readonly maxMessageBytes?: number; /** * The subject note. It must start with a letter, and the remaining part can contain letters, numbers and dashes (-). * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/ckafka_topic#note CkafkaTopic#note} */ readonly note?: string; /** * The number of partition. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/ckafka_topic#partition_num CkafkaTopic#partition_num} */ readonly partitionNum: number; /** * The number of replica. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/ckafka_topic#replica_num CkafkaTopic#replica_num} */ readonly replicaNum: number; /** * Message can be selected. Retention time, unit is ms, the current minimum value is 60000ms. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/ckafka_topic#retention CkafkaTopic#retention} */ readonly retention?: number; /** * Segment scrolling time, in ms, the current minimum is 3600000ms. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/ckafka_topic#segment CkafkaTopic#segment} */ readonly segment?: number; /** * Min number of sync replicas, Default is `1`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/ckafka_topic#sync_replica_min_num CkafkaTopic#sync_replica_min_num} */ readonly syncReplicaMinNum?: number; /** * Name of the CKafka topic. It must start with a letter, the rest can contain letters, numbers and dashes(-). * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/ckafka_topic#topic_name CkafkaTopic#topic_name} */ readonly topicName: string; /** * Whether to allow unsynchronized replicas to be selected as leader, default is `false`, `true: `allowed, `false`: not allowed. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/ckafka_topic#unclean_leader_election_enable CkafkaTopic#unclean_leader_election_enable} */ readonly uncleanLeaderElectionEnable?: boolean | cdktf.IResolvable; } /** * Represents a {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/ckafka_topic tencentcloud_ckafka_topic} */ export declare class CkafkaTopic extends cdktf.TerraformResource { static readonly tfResourceType = "tencentcloud_ckafka_topic"; /** * Generates CDKTF code for importing a CkafkaTopic resource upon running "cdktf plan " * @param scope The scope in which to define this construct * @param importToId The construct id used in the generated config for the CkafkaTopic to import * @param importFromId The id of the existing CkafkaTopic that should be imported. Refer to the {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/ckafka_topic#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the CkafkaTopic to import is found */ static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any; /** * Create a new {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/ckafka_topic tencentcloud_ckafka_topic} Resource * * @param scope The scope in which to define this construct * @param id The scoped construct ID. Must be unique amongst siblings in the same scope * @param options CkafkaTopicConfig */ constructor(scope: Construct, id: string, config: CkafkaTopicConfig); private _cleanUpPolicy?; get cleanUpPolicy(): string; set cleanUpPolicy(value: string); resetCleanUpPolicy(): void; get cleanUpPolicyInput(): string; get createTime(): any; private _enableWhiteList?; get enableWhiteList(): boolean | cdktf.IResolvable; set enableWhiteList(value: boolean | cdktf.IResolvable); resetEnableWhiteList(): void; get enableWhiteListInput(): any; get forwardCosBucket(): any; get forwardInterval(): any; get forwardStatus(): any; private _id?; get id(): string; set id(value: string); resetId(): void; get idInput(): string; private _instanceId?; get instanceId(): string; set instanceId(value: string); get instanceIdInput(): string; private _ipWhiteList?; get ipWhiteList(): string[]; set ipWhiteList(value: string[]); resetIpWhiteList(): void; get ipWhiteListInput(): string[]; private _maxMessageBytes?; get maxMessageBytes(): number; set maxMessageBytes(value: number); resetMaxMessageBytes(): void; get maxMessageBytesInput(): number; get messageStorageLocation(): any; private _note?; get note(): string; set note(value: string); resetNote(): void; get noteInput(): string; private _partitionNum?; get partitionNum(): number; set partitionNum(value: number); get partitionNumInput(): number; private _replicaNum?; get replicaNum(): number; set replicaNum(value: number); get replicaNumInput(): number; private _retention?; get retention(): number; set retention(value: number); resetRetention(): void; get retentionInput(): number; private _segment?; get segment(): number; set segment(value: number); resetSegment(): void; get segmentInput(): number; get segmentBytes(): any; private _syncReplicaMinNum?; get syncReplicaMinNum(): number; set syncReplicaMinNum(value: number); resetSyncReplicaMinNum(): void; get syncReplicaMinNumInput(): number; private _topicName?; get topicName(): string; set topicName(value: string); get topicNameInput(): string; private _uncleanLeaderElectionEnable?; get uncleanLeaderElectionEnable(): boolean | cdktf.IResolvable; set uncleanLeaderElectionEnable(value: boolean | cdktf.IResolvable); resetUncleanLeaderElectionEnable(): void; get uncleanLeaderElectionEnableInput(): any; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }