import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface DayuL7RuleV2Config extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/dayu_l7_rule_v2#id DayuL7RuleV2#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 resource that the layer 7 rule works for. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/dayu_l7_rule_v2#resource_id DayuL7RuleV2#resource_id} */ readonly resourceId: string; /** * Ip of the resource that the layer 7 rule works for. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/dayu_l7_rule_v2#resource_ip DayuL7RuleV2#resource_ip} */ readonly resourceIp: string; /** * Type of the resource that the layer 7 rule works for, valid value is `bgpip`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/dayu_l7_rule_v2#resource_type DayuL7RuleV2#resource_type} */ readonly resourceType: string; /** * rule block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/dayu_l7_rule_v2#rule DayuL7RuleV2#rule} */ readonly rule: DayuL7RuleV2Rule; } export interface DayuL7RuleV2RuleSourceListStruct { /** * Source IP or domain. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/dayu_l7_rule_v2#source DayuL7RuleV2#source} */ readonly source: string; /** * Weight of the source. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/dayu_l7_rule_v2#weight DayuL7RuleV2#weight} */ readonly weight: number; } export declare function dayuL7RuleV2RuleSourceListStructToTerraform(struct?: DayuL7RuleV2RuleSourceListStruct | cdktf.IResolvable): any; export declare function dayuL7RuleV2RuleSourceListStructToHclTerraform(struct?: DayuL7RuleV2RuleSourceListStruct | cdktf.IResolvable): any; export declare class DayuL7RuleV2RuleSourceListStructOutputReference 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(): DayuL7RuleV2RuleSourceListStruct | cdktf.IResolvable | undefined; set internalValue(value: DayuL7RuleV2RuleSourceListStruct | cdktf.IResolvable | undefined); private _source?; get source(): string; set source(value: string); get sourceInput(): string; private _weight?; get weight(): number; set weight(value: number); get weightInput(): number; } export declare class DayuL7RuleV2RuleSourceListStructList extends cdktf.ComplexList { protected terraformResource: cdktf.IInterpolatingParent; protected terraformAttribute: string; protected wrapsSet: boolean; internalValue?: DayuL7RuleV2RuleSourceListStruct[] | 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): DayuL7RuleV2RuleSourceListStructOutputReference; } export interface DayuL7RuleV2Rule { /** * HTTPS protocol CC protection status, value [0 (off), 1 (on)], defaule is 0. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/dayu_l7_rule_v2#cc_enable DayuL7RuleV2#cc_enable} */ readonly ccEnable?: number; /** * The source of the certificate must be filled in when the forwarding protocol is https, the value [2 (Tencent Cloud Hosting Certificate)], and 0 when the forwarding protocol is http. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/dayu_l7_rule_v2#cert_type DayuL7RuleV2#cert_type} */ readonly certType?: number; /** * Domain of the rule. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/dayu_l7_rule_v2#domain DayuL7RuleV2#domain} */ readonly domain: string; /** * Whether to enable the Https protocol to use Http back-to-source, take the value [0 (off), 1 (on)], do not fill in the default is off, defaule is 0. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/dayu_l7_rule_v2#https_to_http_enable DayuL7RuleV2#https_to_http_enable} */ readonly httpsToHttpEnable?: number; /** * session hold switch. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/dayu_l7_rule_v2#keep_enable DayuL7RuleV2#keep_enable} */ readonly keepEnable: number; /** * The keeptime of the layer 4 rule. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/dayu_l7_rule_v2#keeptime DayuL7RuleV2#keeptime} */ readonly keeptime: number; /** * LB type of the rule, `1` for weight cycling and `2` for IP hash. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/dayu_l7_rule_v2#lb_type DayuL7RuleV2#lb_type} */ readonly lbType: number; /** * Protocol of the rule. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/dayu_l7_rule_v2#protocol DayuL7RuleV2#protocol} */ readonly protocol: string; /** * Source type, `1` for source of host, `2` for source of IP. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/dayu_l7_rule_v2#source_type DayuL7RuleV2#source_type} */ readonly sourceType: number; /** * When the certificate source is a Tencent Cloud managed certificate, this field must be filled in with the managed certificate ID. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/dayu_l7_rule_v2#ssl_id DayuL7RuleV2#ssl_id} */ readonly sslId?: string; /** * source_list block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/dayu_l7_rule_v2#source_list DayuL7RuleV2#source_list} */ readonly sourceList: DayuL7RuleV2RuleSourceListStruct[] | cdktf.IResolvable; } export declare function dayuL7RuleV2RuleToTerraform(struct?: DayuL7RuleV2RuleOutputReference | DayuL7RuleV2Rule): any; export declare function dayuL7RuleV2RuleToHclTerraform(struct?: DayuL7RuleV2RuleOutputReference | DayuL7RuleV2Rule): any; export declare class DayuL7RuleV2RuleOutputReference extends cdktf.ComplexObject { private isEmptyObject; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string); get internalValue(): DayuL7RuleV2Rule | undefined; set internalValue(value: DayuL7RuleV2Rule | undefined); private _ccEnable?; get ccEnable(): number; set ccEnable(value: number); resetCcEnable(): void; get ccEnableInput(): number; private _certType?; get certType(): number; set certType(value: number); resetCertType(): void; get certTypeInput(): number; private _domain?; get domain(): string; set domain(value: string); get domainInput(): string; private _httpsToHttpEnable?; get httpsToHttpEnable(): number; set httpsToHttpEnable(value: number); resetHttpsToHttpEnable(): void; get httpsToHttpEnableInput(): number; private _keepEnable?; get keepEnable(): number; set keepEnable(value: number); get keepEnableInput(): number; private _keeptime?; get keeptime(): number; set keeptime(value: number); get keeptimeInput(): number; private _lbType?; get lbType(): number; set lbType(value: number); get lbTypeInput(): number; private _protocol?; get protocol(): string; set protocol(value: string); get protocolInput(): string; private _sourceType?; get sourceType(): number; set sourceType(value: number); get sourceTypeInput(): number; private _sslId?; get sslId(): string; set sslId(value: string); resetSslId(): void; get sslIdInput(): string; private _sourceList; get sourceList(): DayuL7RuleV2RuleSourceListStructList; putSourceList(value: DayuL7RuleV2RuleSourceListStruct[] | cdktf.IResolvable): void; get sourceListInput(): any; } /** * Represents a {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/dayu_l7_rule_v2 tencentcloud_dayu_l7_rule_v2} */ export declare class DayuL7RuleV2 extends cdktf.TerraformResource { static readonly tfResourceType = "tencentcloud_dayu_l7_rule_v2"; /** * Generates CDKTF code for importing a DayuL7RuleV2 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 DayuL7RuleV2 to import * @param importFromId The id of the existing DayuL7RuleV2 that should be imported. Refer to the {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/dayu_l7_rule_v2#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the DayuL7RuleV2 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/dayu_l7_rule_v2 tencentcloud_dayu_l7_rule_v2} 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 DayuL7RuleV2Config */ constructor(scope: Construct, id: string, config: DayuL7RuleV2Config); private _id?; get id(): string; set id(value: string); resetId(): void; get idInput(): string; private _resourceId?; get resourceId(): string; set resourceId(value: string); get resourceIdInput(): string; private _resourceIp?; get resourceIp(): string; set resourceIp(value: string); get resourceIpInput(): string; private _resourceType?; get resourceType(): string; set resourceType(value: string); get resourceTypeInput(): string; private _rule; get rule(): DayuL7RuleV2RuleOutputReference; putRule(value: DayuL7RuleV2Rule): void; get ruleInput(): DayuL7RuleV2Rule; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }