import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface DayuCcHttpPolicyConfig extends cdktf.TerraformMetaArguments { /** * Action mode, only valid when `smode` is `matching`. Valid values are `alg` and `drop`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/dayu_cc_http_policy#action DayuCcHttpPolicy#action} */ readonly action?: string; /** * Max frequency per minute, only valid when `smode` is `speedlimit`, the valid value ranges from 1 to 10000. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/dayu_cc_http_policy#frequency DayuCcHttpPolicy#frequency} */ readonly frequency?: number; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/dayu_cc_http_policy#id DayuCcHttpPolicy#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 CC self-define http policy, only valid when `resource_type` is `bgp-multip`. The num of list items can only be set one. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/dayu_cc_http_policy#ip DayuCcHttpPolicy#ip} */ readonly ip?: string; /** * Name of the CC self-define http policy. Length should between 1 and 20. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/dayu_cc_http_policy#name DayuCcHttpPolicy#name} */ readonly name: string; /** * ID of the resource that the CC self-define http policy works for. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/dayu_cc_http_policy#resource_id DayuCcHttpPolicy#resource_id} */ readonly resourceId: string; /** * Type of the resource that the CC self-define http policy works for, valid values are `bgpip`, `bgp`, `bgp-multip` and `net`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/dayu_cc_http_policy#resource_type DayuCcHttpPolicy#resource_type} */ readonly resourceType: string; /** * Match mode, and valid values are `matching`, `speedlimit`. Note: the speed limit type CC self-define policy can only set one. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/dayu_cc_http_policy#smode DayuCcHttpPolicy#smode} */ readonly smode?: string; /** * Indicate the CC self-define http policy takes effect or not. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/dayu_cc_http_policy#switch DayuCcHttpPolicy#switch} */ readonly switch?: boolean | cdktf.IResolvable; /** * rule_list block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/dayu_cc_http_policy#rule_list DayuCcHttpPolicy#rule_list} */ readonly ruleList?: DayuCcHttpPolicyRuleListStruct[] | cdktf.IResolvable; } export interface DayuCcHttpPolicyRuleListStruct { /** * Operator of the rule. Valid values: `include`, `not_include`, `equal`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/dayu_cc_http_policy#operator DayuCcHttpPolicy#operator} */ readonly operator?: string; /** * Key of the rule. Valid values: `host`, `cgi`, `ua`, `referer`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/dayu_cc_http_policy#skey DayuCcHttpPolicy#skey} */ readonly skey?: string; /** * Rule value, then length should be less than 31 bytes. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/dayu_cc_http_policy#value DayuCcHttpPolicy#value} */ readonly value?: string; } export declare function dayuCcHttpPolicyRuleListStructToTerraform(struct?: DayuCcHttpPolicyRuleListStruct | cdktf.IResolvable): any; export declare function dayuCcHttpPolicyRuleListStructToHclTerraform(struct?: DayuCcHttpPolicyRuleListStruct | cdktf.IResolvable): any; export declare class DayuCcHttpPolicyRuleListStructOutputReference 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(): DayuCcHttpPolicyRuleListStruct | cdktf.IResolvable | undefined; set internalValue(value: DayuCcHttpPolicyRuleListStruct | cdktf.IResolvable | undefined); private _operator?; get operator(): string; set operator(value: string); resetOperator(): void; get operatorInput(): string; private _skey?; get skey(): string; set skey(value: string); resetSkey(): void; get skeyInput(): string; private _value?; get value(): string; set value(value: string); resetValue(): void; get valueInput(): string; } export declare class DayuCcHttpPolicyRuleListStructList extends cdktf.ComplexList { protected terraformResource: cdktf.IInterpolatingParent; protected terraformAttribute: string; protected wrapsSet: boolean; internalValue?: DayuCcHttpPolicyRuleListStruct[] | 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): DayuCcHttpPolicyRuleListStructOutputReference; } /** * Represents a {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/dayu_cc_http_policy tencentcloud_dayu_cc_http_policy} */ export declare class DayuCcHttpPolicy extends cdktf.TerraformResource { static readonly tfResourceType = "tencentcloud_dayu_cc_http_policy"; /** * Generates CDKTF code for importing a DayuCcHttpPolicy 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 DayuCcHttpPolicy to import * @param importFromId The id of the existing DayuCcHttpPolicy that should be imported. Refer to the {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/dayu_cc_http_policy#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the DayuCcHttpPolicy 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_cc_http_policy tencentcloud_dayu_cc_http_policy} 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 DayuCcHttpPolicyConfig */ constructor(scope: Construct, id: string, config: DayuCcHttpPolicyConfig); private _action?; get action(): string; set action(value: string); resetAction(): void; get actionInput(): string; get createTime(): any; private _frequency?; get frequency(): number; set frequency(value: number); resetFrequency(): void; get frequencyInput(): number; private _id?; get id(): string; set id(value: string); resetId(): void; get idInput(): string; private _ip?; get ip(): string; set ip(value: string); resetIp(): void; get ipInput(): string; private _name?; get name(): string; set name(value: string); get nameInput(): string; get policyId(): any; private _resourceId?; get resourceId(): string; set resourceId(value: string); get resourceIdInput(): string; private _resourceType?; get resourceType(): string; set resourceType(value: string); get resourceTypeInput(): string; private _smode?; get smode(): string; set smode(value: string); resetSmode(): void; get smodeInput(): string; private _switch?; get switch(): boolean | cdktf.IResolvable; set switch(value: boolean | cdktf.IResolvable); resetSwitch(): void; get switchInput(): any; private _ruleList; get ruleList(): DayuCcHttpPolicyRuleListStructList; putRuleList(value: DayuCcHttpPolicyRuleListStruct[] | cdktf.IResolvable): void; resetRuleList(): void; get ruleListInput(): any; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }