import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface GaapLayer4ListenerConfig extends cdktf.TerraformMetaArguments { /** * UDP origin station health check probe port. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/gaap_layer4_listener#check_port GaapLayer4Listener#check_port} */ readonly checkPort?: number; /** * UDP origin server health type. PORT means check port, and PING means PING. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/gaap_layer4_listener#check_type GaapLayer4Listener#check_type} */ readonly checkType?: string; /** * The way the listener gets the client IP, 0 for TOA, 1 for Proxy Protocol, default value is 0. NOTES: Only supports listeners of `TCP` protocol. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/gaap_layer4_listener#client_ip_method GaapLayer4Listener#client_ip_method} */ readonly clientIpMethod?: number; /** * Timeout of the health check response, should less than interval, default value is 2s. NOTES: Require less than `interval`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/gaap_layer4_listener#connect_timeout GaapLayer4Listener#connect_timeout} */ readonly connectTimeout?: number; /** * UDP source station health check port probe message type: TEXT represents text. Only used when the health check type is PORT. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/gaap_layer4_listener#context_type GaapLayer4Listener#context_type} */ readonly contextType?: string; /** * Indicates whether health check is enable, default value is `false`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/gaap_layer4_listener#health_check GaapLayer4Listener#health_check} */ readonly healthCheck?: boolean | cdktf.IResolvable; /** * Health threshold, which indicates how many consecutive inspections are successful, the source station is determined to be healthy. Range from 1 to 10. Default value is 1. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/gaap_layer4_listener#healthy_threshold GaapLayer4Listener#healthy_threshold} */ readonly healthyThreshold?: number; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/gaap_layer4_listener#id GaapLayer4Listener#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; /** * Interval of the health check, default value is 5s. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/gaap_layer4_listener#interval GaapLayer4Listener#interval} */ readonly interval?: number; /** * Name of the layer4 listener, the maximum length is 30. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/gaap_layer4_listener#name GaapLayer4Listener#name} */ readonly name: string; /** * Port of the layer4 listener. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/gaap_layer4_listener#port GaapLayer4Listener#port} */ readonly port: number; /** * Protocol of the layer4 listener. Valid value: `TCP` and `UDP`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/gaap_layer4_listener#protocol GaapLayer4Listener#protocol} */ readonly protocol: string; /** * ID of the GAAP proxy. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/gaap_layer4_listener#proxy_id GaapLayer4Listener#proxy_id} */ readonly proxyId: string; /** * Type of the realserver. Valid value: `IP` and `DOMAIN`. NOTES: when the `protocol` is specified as `TCP` and the `scheduler` is specified as `wrr`, the item can only be set to `IP`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/gaap_layer4_listener#realserver_type GaapLayer4Listener#realserver_type} */ readonly realserverType: string; /** * UDP source server health check port detects received messages. Only used when the health check type is PORT. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/gaap_layer4_listener#recv_context GaapLayer4Listener#recv_context} */ readonly recvContext?: string; /** * Scheduling policy of the layer4 listener, default value is `rr`. Valid value: `rr`, `wrr` and `lc`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/gaap_layer4_listener#scheduler GaapLayer4Listener#scheduler} */ readonly scheduler?: string; /** * UDP source server health check port detection sends messages. Only used when health check type is PORT. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/gaap_layer4_listener#send_context GaapLayer4Listener#send_context} */ readonly sendContext?: string; /** * Unhealthy threshold, which indicates how many consecutive check failures the source station is considered unhealthy. Range from 1 to 10. Default value is 1. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/gaap_layer4_listener#unhealthy_threshold GaapLayer4Listener#unhealthy_threshold} */ readonly unhealthyThreshold?: number; /** * realserver_bind_set block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/gaap_layer4_listener#realserver_bind_set GaapLayer4Listener#realserver_bind_set} */ readonly realserverBindSet?: GaapLayer4ListenerRealserverBindSet[] | cdktf.IResolvable; } export interface GaapLayer4ListenerRealserverBindSet { /** * ID of the GAAP realserver. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/gaap_layer4_listener#id GaapLayer4Listener#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; /** * IP of the GAAP realserver. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/gaap_layer4_listener#ip GaapLayer4Listener#ip} */ readonly ip: string; /** * Port of the GAAP realserver. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/gaap_layer4_listener#port GaapLayer4Listener#port} */ readonly port: number; /** * Scheduling weight, default value is `1`. The range of values is [1,100]. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/gaap_layer4_listener#weight GaapLayer4Listener#weight} */ readonly weight?: number; } export declare function gaapLayer4ListenerRealserverBindSetToTerraform(struct?: GaapLayer4ListenerRealserverBindSet | cdktf.IResolvable): any; export declare function gaapLayer4ListenerRealserverBindSetToHclTerraform(struct?: GaapLayer4ListenerRealserverBindSet | cdktf.IResolvable): any; export declare class GaapLayer4ListenerRealserverBindSetOutputReference extends cdktf.ComplexObject { private isEmptyObject; private resolvableValue?; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean); get internalValue(): GaapLayer4ListenerRealserverBindSet | cdktf.IResolvable | undefined; set internalValue(value: GaapLayer4ListenerRealserverBindSet | cdktf.IResolvable | undefined); private _id?; get id(): string; set id(value: string); get idInput(): string; private _ip?; get ip(): string; set ip(value: string); get ipInput(): string; private _port?; get port(): number; set port(value: number); get portInput(): number; private _weight?; get weight(): number; set weight(value: number); resetWeight(): void; get weightInput(): number; } export declare class GaapLayer4ListenerRealserverBindSetList extends cdktf.ComplexList { protected terraformResource: cdktf.IInterpolatingParent; protected terraformAttribute: string; protected wrapsSet: boolean; internalValue?: GaapLayer4ListenerRealserverBindSet[] | cdktf.IResolvable; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean); /** * @param index the index of the item to return */ get(index: number): GaapLayer4ListenerRealserverBindSetOutputReference; } /** * Represents a {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/gaap_layer4_listener tencentcloud_gaap_layer4_listener} */ export declare class GaapLayer4Listener extends cdktf.TerraformResource { static readonly tfResourceType = "tencentcloud_gaap_layer4_listener"; /** * Generates CDKTF code for importing a GaapLayer4Listener 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 GaapLayer4Listener to import * @param importFromId The id of the existing GaapLayer4Listener that should be imported. Refer to the {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/gaap_layer4_listener#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the GaapLayer4Listener 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/gaap_layer4_listener tencentcloud_gaap_layer4_listener} 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 GaapLayer4ListenerConfig */ constructor(scope: Construct, id: string, config: GaapLayer4ListenerConfig); private _checkPort?; get checkPort(): number; set checkPort(value: number); resetCheckPort(): void; get checkPortInput(): number; private _checkType?; get checkType(): string; set checkType(value: string); resetCheckType(): void; get checkTypeInput(): string; private _clientIpMethod?; get clientIpMethod(): number; set clientIpMethod(value: number); resetClientIpMethod(): void; get clientIpMethodInput(): number; private _connectTimeout?; get connectTimeout(): number; set connectTimeout(value: number); resetConnectTimeout(): void; get connectTimeoutInput(): number; private _contextType?; get contextType(): string; set contextType(value: string); resetContextType(): void; get contextTypeInput(): string; get createTime(): any; private _healthCheck?; get healthCheck(): boolean | cdktf.IResolvable; set healthCheck(value: boolean | cdktf.IResolvable); resetHealthCheck(): void; get healthCheckInput(): any; private _healthyThreshold?; get healthyThreshold(): number; set healthyThreshold(value: number); resetHealthyThreshold(): void; get healthyThresholdInput(): number; private _id?; get id(): string; set id(value: string); resetId(): void; get idInput(): string; private _interval?; get interval(): number; set interval(value: number); resetInterval(): void; get intervalInput(): number; private _name?; get name(): string; set name(value: string); get nameInput(): string; private _port?; get port(): number; set port(value: number); get portInput(): number; private _protocol?; get protocol(): string; set protocol(value: string); get protocolInput(): string; private _proxyId?; get proxyId(): string; set proxyId(value: string); get proxyIdInput(): string; private _realserverType?; get realserverType(): string; set realserverType(value: string); get realserverTypeInput(): string; private _recvContext?; get recvContext(): string; set recvContext(value: string); resetRecvContext(): void; get recvContextInput(): string; private _scheduler?; get scheduler(): string; set scheduler(value: string); resetScheduler(): void; get schedulerInput(): string; private _sendContext?; get sendContext(): string; set sendContext(value: string); resetSendContext(): void; get sendContextInput(): string; get status(): any; private _unhealthyThreshold?; get unhealthyThreshold(): number; set unhealthyThreshold(value: number); resetUnhealthyThreshold(): void; get unhealthyThresholdInput(): number; private _realserverBindSet; get realserverBindSet(): GaapLayer4ListenerRealserverBindSetList; putRealserverBindSet(value: GaapLayer4ListenerRealserverBindSet[] | cdktf.IResolvable): void; resetRealserverBindSet(): void; get realserverBindSetInput(): any; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }