import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface ClbAttachmentConfig extends cdktf.TerraformMetaArguments { /** * ID of the CLB. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/clb_attachment#clb_id ClbAttachment#clb_id} */ readonly clbId: string; /** * Domain of the target forwarding rule. Does not take effect when parameter `rule_id` is provided. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/clb_attachment#domain ClbAttachment#domain} */ readonly domain?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/clb_attachment#id ClbAttachment#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; /** * ID of the CLB listener. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/clb_attachment#listener_id ClbAttachment#listener_id} */ readonly listenerId: string; /** * ID of the CLB listener rule. Only supports listeners of `HTTPS` and `HTTP` protocol. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/clb_attachment#rule_id ClbAttachment#rule_id} */ readonly ruleId?: string; /** * URL of the target forwarding rule. Does not take effect when parameter `rule_id` is provided. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/clb_attachment#url ClbAttachment#url} */ readonly url?: string; /** * targets block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/clb_attachment#targets ClbAttachment#targets} */ readonly targets: ClbAttachmentTargets[] | cdktf.IResolvable; } export interface ClbAttachmentTargets { /** * Eni IP address of the backend server, conflict with `instance_id` but must specify one of them. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/clb_attachment#eni_ip ClbAttachment#eni_ip} */ readonly eniIp?: string; /** * CVM Instance Id of the backend server, conflict with `eni_ip` but must specify one of them. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/clb_attachment#instance_id ClbAttachment#instance_id} */ readonly instanceId?: string; /** * Port of the backend server. Valid value ranges: (0~65535). * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/clb_attachment#port ClbAttachment#port} */ readonly port: number; /** * Forwarding weight of the backend service. Valid value ranges: (0~100). defaults to `10`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/clb_attachment#weight ClbAttachment#weight} */ readonly weight?: number; } export declare function clbAttachmentTargetsToTerraform(struct?: ClbAttachmentTargets | cdktf.IResolvable): any; export declare function clbAttachmentTargetsToHclTerraform(struct?: ClbAttachmentTargets | cdktf.IResolvable): any; export declare class ClbAttachmentTargetsOutputReference 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(): ClbAttachmentTargets | cdktf.IResolvable | undefined; set internalValue(value: ClbAttachmentTargets | cdktf.IResolvable | undefined); private _eniIp?; get eniIp(): string; set eniIp(value: string); resetEniIp(): void; get eniIpInput(): string; private _instanceId?; get instanceId(): string; set instanceId(value: string); resetInstanceId(): void; get instanceIdInput(): 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 ClbAttachmentTargetsList extends cdktf.ComplexList { protected terraformResource: cdktf.IInterpolatingParent; protected terraformAttribute: string; protected wrapsSet: boolean; internalValue?: ClbAttachmentTargets[] | 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): ClbAttachmentTargetsOutputReference; } /** * Represents a {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/clb_attachment tencentcloud_clb_attachment} */ export declare class ClbAttachment extends cdktf.TerraformResource { static readonly tfResourceType = "tencentcloud_clb_attachment"; /** * Generates CDKTF code for importing a ClbAttachment 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 ClbAttachment to import * @param importFromId The id of the existing ClbAttachment that should be imported. Refer to the {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/clb_attachment#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the ClbAttachment 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/clb_attachment tencentcloud_clb_attachment} 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 ClbAttachmentConfig */ constructor(scope: Construct, id: string, config: ClbAttachmentConfig); private _clbId?; get clbId(): string; set clbId(value: string); get clbIdInput(): string; private _domain?; get domain(): string; set domain(value: string); resetDomain(): void; get domainInput(): string; private _id?; get id(): string; set id(value: string); resetId(): void; get idInput(): string; private _listenerId?; get listenerId(): string; set listenerId(value: string); get listenerIdInput(): string; get protocolType(): any; private _ruleId?; get ruleId(): string; set ruleId(value: string); resetRuleId(): void; get ruleIdInput(): string; private _url?; get url(): string; set url(value: string); resetUrl(): void; get urlInput(): string; private _targets; get targets(): ClbAttachmentTargetsList; putTargets(value: ClbAttachmentTargets[] | cdktf.IResolvable): void; get targetsInput(): any; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }