import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface GaapHttpRuleConfig extends cdktf.TerraformMetaArguments { /** * Timeout of the health check response, default value is 2s. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/gaap_http_rule#connect_timeout GaapHttpRule#connect_timeout} */ readonly connectTimeout?: number; /** * Forward domain of the forward rule. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/gaap_http_rule#domain GaapHttpRule#domain} */ readonly domain: string; /** * The default value of requested host which is forwarded to the realserver by the listener is `default`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/gaap_http_rule#forward_host GaapHttpRule#forward_host} */ readonly forwardHost?: string; /** * Indicates whether health check is enable. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/gaap_http_rule#health_check GaapHttpRule#health_check} */ readonly healthCheck: boolean | cdktf.IResolvable; /** * Method of the health check. Valid value: `GET` and `HEAD`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/gaap_http_rule#health_check_method GaapHttpRule#health_check_method} */ readonly healthCheckMethod?: string; /** * Path of health check. Maximum length is 80. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/gaap_http_rule#health_check_path GaapHttpRule#health_check_path} */ readonly healthCheckPath?: string; /** * Return code of confirmed normal. Valid value: `100`, `200`, `300`, `400` and `500`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/gaap_http_rule#health_check_status_codes GaapHttpRule#health_check_status_codes} */ readonly healthCheckStatusCodes?: number[]; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/gaap_http_rule#id GaapHttpRule#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_http_rule#interval GaapHttpRule#interval} */ readonly interval?: number; /** * ID of the layer7 listener. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/gaap_http_rule#listener_id GaapHttpRule#listener_id} */ readonly listenerId: string; /** * Path of the forward rule. Maximum length is 80. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/gaap_http_rule#path GaapHttpRule#path} */ readonly path: string; /** * Type of the realserver. Valid value: `IP` and `DOMAIN`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/gaap_http_rule#realserver_type GaapHttpRule#realserver_type} */ readonly realserverType: string; /** * Scheduling policy of the forward rule, 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_http_rule#scheduler GaapHttpRule#scheduler} */ readonly scheduler?: string; /** * ServerNameIndication (SNI) is required when the SNI switch is turned on. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/gaap_http_rule#sni GaapHttpRule#sni} */ readonly sni?: string; /** * ServerNameIndication (SNI) switch. ON means on and OFF means off. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/gaap_http_rule#sni_switch GaapHttpRule#sni_switch} */ readonly sniSwitch?: string; /** * realservers block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/gaap_http_rule#realservers GaapHttpRule#realservers} */ readonly realservers?: GaapHttpRuleRealservers[] | cdktf.IResolvable; } export interface GaapHttpRuleRealservers { /** * ID of the GAAP realserver. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/gaap_http_rule#id GaapHttpRule#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_http_rule#ip GaapHttpRule#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_http_rule#port GaapHttpRule#port} */ readonly port: number; /** * Scheduling weight, default value is `1`. Valid value ranges: (1~100). * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/gaap_http_rule#weight GaapHttpRule#weight} */ readonly weight?: number; } export declare function gaapHttpRuleRealserversToTerraform(struct?: GaapHttpRuleRealservers | cdktf.IResolvable): any; export declare function gaapHttpRuleRealserversToHclTerraform(struct?: GaapHttpRuleRealservers | cdktf.IResolvable): any; export declare class GaapHttpRuleRealserversOutputReference 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(): GaapHttpRuleRealservers | cdktf.IResolvable | undefined; set internalValue(value: GaapHttpRuleRealservers | 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 GaapHttpRuleRealserversList extends cdktf.ComplexList { protected terraformResource: cdktf.IInterpolatingParent; protected terraformAttribute: string; protected wrapsSet: boolean; internalValue?: GaapHttpRuleRealservers[] | 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): GaapHttpRuleRealserversOutputReference; } /** * Represents a {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/gaap_http_rule tencentcloud_gaap_http_rule} */ export declare class GaapHttpRule extends cdktf.TerraformResource { static readonly tfResourceType = "tencentcloud_gaap_http_rule"; /** * Generates CDKTF code for importing a GaapHttpRule 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 GaapHttpRule to import * @param importFromId The id of the existing GaapHttpRule that should be imported. Refer to the {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/gaap_http_rule#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the GaapHttpRule 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_http_rule tencentcloud_gaap_http_rule} 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 GaapHttpRuleConfig */ constructor(scope: Construct, id: string, config: GaapHttpRuleConfig); private _connectTimeout?; get connectTimeout(): number; set connectTimeout(value: number); resetConnectTimeout(): void; get connectTimeoutInput(): number; private _domain?; get domain(): string; set domain(value: string); get domainInput(): string; private _forwardHost?; get forwardHost(): string; set forwardHost(value: string); resetForwardHost(): void; get forwardHostInput(): string; private _healthCheck?; get healthCheck(): boolean | cdktf.IResolvable; set healthCheck(value: boolean | cdktf.IResolvable); get healthCheckInput(): any; private _healthCheckMethod?; get healthCheckMethod(): string; set healthCheckMethod(value: string); resetHealthCheckMethod(): void; get healthCheckMethodInput(): string; private _healthCheckPath?; get healthCheckPath(): string; set healthCheckPath(value: string); resetHealthCheckPath(): void; get healthCheckPathInput(): string; private _healthCheckStatusCodes?; get healthCheckStatusCodes(): number[]; set healthCheckStatusCodes(value: number[]); resetHealthCheckStatusCodes(): void; get healthCheckStatusCodesInput(): 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 _listenerId?; get listenerId(): string; set listenerId(value: string); get listenerIdInput(): string; private _path?; get path(): string; set path(value: string); get pathInput(): string; private _realserverType?; get realserverType(): string; set realserverType(value: string); get realserverTypeInput(): string; private _scheduler?; get scheduler(): string; set scheduler(value: string); resetScheduler(): void; get schedulerInput(): string; private _sni?; get sni(): string; set sni(value: string); resetSni(): void; get sniInput(): string; private _sniSwitch?; get sniSwitch(): string; set sniSwitch(value: string); resetSniSwitch(): void; get sniSwitchInput(): string; private _realservers; get realservers(): GaapHttpRuleRealserversList; putRealservers(value: GaapHttpRuleRealservers[] | cdktf.IResolvable): void; resetRealservers(): void; get realserversInput(): any; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }