import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface AntiddosPacketFilterConfigConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/antiddos_packet_filter_config#id AntiddosPacketFilterConfig#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; /** * resource id. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/antiddos_packet_filter_config#instance_id AntiddosPacketFilterConfig#instance_id} */ readonly instanceId: string; /** * packet_filter_config block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/antiddos_packet_filter_config#packet_filter_config AntiddosPacketFilterConfig#packet_filter_config} */ readonly packetFilterConfig: AntiddosPacketFilterConfigPacketFilterConfig; } export interface AntiddosPacketFilterConfigPacketFilterConfig { /** * Action, value [drop (discard) transmit (release) drop_black (discard and pull black) drop_rst (intercept) drop_black_rst (intercept and pull black) forward (continue protection)]. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/antiddos_packet_filter_config#action AntiddosPacketFilterConfig#action} */ readonly action: string; /** * The detection depth starting from the detection position, with a value of [0-1500]. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/antiddos_packet_filter_config#depth AntiddosPacketFilterConfig#depth} */ readonly depth?: number; /** * The second detection depth starting from the second detection position, with a value of [01500]. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/antiddos_packet_filter_config#depth2 AntiddosPacketFilterConfig#depth2} */ readonly depth2?: number; /** * end destination port, ranging from 0 to 65535. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/antiddos_packet_filter_config#dport_end AntiddosPacketFilterConfig#dport_end} */ readonly dportEnd: number; /** * Starting destination port, ranging from 0 to 65535. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/antiddos_packet_filter_config#dport_start AntiddosPacketFilterConfig#dport_start} */ readonly dportStart: number; /** * Whether to include detection values, with a value of [0 (inclusive) and 1 (exclusive)]. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/antiddos_packet_filter_config#is_not AntiddosPacketFilterConfig#is_not} */ readonly isNot?: number; /** * Whether the second detection includes detection values, with a value of [0 (inclusive) and 1 (exclusive)]. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/antiddos_packet_filter_config#is_not2 AntiddosPacketFilterConfig#is_not2} */ readonly isNot2?: number; /** * Detection position, value [begin_l3 (IP header) begin_l4 (TCP/UDP header) begin_l5 (T payload) no_match (mismatch)]. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/antiddos_packet_filter_config#match_begin AntiddosPacketFilterConfig#match_begin} */ readonly matchBegin?: string; /** * Second detection position, value [begin_l5 (load) no_match (mismatch)]. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/antiddos_packet_filter_config#match_begin2 AntiddosPacketFilterConfig#match_begin2} */ readonly matchBegin2?: string; /** * When there is a second detection condition, the AND or relationship with the first detection condition, with the value [and (and relationship) none (fill in this value when there is no second detection condition)]. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/antiddos_packet_filter_config#match_logic AntiddosPacketFilterConfig#match_logic} */ readonly matchLogic?: string; /** * Detection type, value [Sunday (keyword) pcre (regular expression)]. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/antiddos_packet_filter_config#match_type AntiddosPacketFilterConfig#match_type} */ readonly matchType?: string; /** * The second detection type, with a value of [Sunday (keyword) pcre (regular expression)]. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/antiddos_packet_filter_config#match_type2 AntiddosPacketFilterConfig#match_type2} */ readonly matchType2?: string; /** * The offset from the detection position, with a value range of [0, Depth]. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/antiddos_packet_filter_config#offset AntiddosPacketFilterConfig#offset} */ readonly offset?: number; /** * The offset from the second detection position, with a value range of [0, Depth2]. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/antiddos_packet_filter_config#offset2 AntiddosPacketFilterConfig#offset2} */ readonly offset2?: number; /** * Greater than message length, value 1+. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/antiddos_packet_filter_config#pkt_len_gt AntiddosPacketFilterConfig#pkt_len_gt} */ readonly pktLenGt?: number; /** * The maximum message length, ranging from 1 to 1500, must be greater than or equal to the minimum message length. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/antiddos_packet_filter_config#pktlen_max AntiddosPacketFilterConfig#pktlen_max} */ readonly pktlenMax: number; /** * Minimum message length, ranging from 1 to 1500. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/antiddos_packet_filter_config#pktlen_min AntiddosPacketFilterConfig#pktlen_min} */ readonly pktlenMin: number; /** * Protocol, value [TCP udp icmp all]. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/antiddos_packet_filter_config#protocol AntiddosPacketFilterConfig#protocol} */ readonly protocol: string; /** * End source port, values range from 1 to 65535, must be greater than or equal to the start source port. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/antiddos_packet_filter_config#sport_end AntiddosPacketFilterConfig#sport_end} */ readonly sportEnd: number; /** * Starting source port, ranging from 0 to 65535. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/antiddos_packet_filter_config#sport_start AntiddosPacketFilterConfig#sport_start} */ readonly sportStart: number; /** * Detection value, key string or regular expression, value [When the detection type is Sunday, please fill in the string or hexadecimal bytecode, for example, x313233 corresponds to the hexadecimal word>section code of the string '123'; when the detection type is pcre, please fill in the regular expression character string;]. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/antiddos_packet_filter_config#str AntiddosPacketFilterConfig#str} */ readonly str?: string; /** * key string or regular expression, value [When the detection type is Sunday, please fill in the string or hexadecimal bytecode, for example, x313233 corresponds to the hexadecimal word>section code of the string '123'; when the detection type is pcre, please fill in the regular expression character string;]. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/antiddos_packet_filter_config#str2 AntiddosPacketFilterConfig#str2} */ readonly str2?: string; } export declare function antiddosPacketFilterConfigPacketFilterConfigToTerraform(struct?: AntiddosPacketFilterConfigPacketFilterConfigOutputReference | AntiddosPacketFilterConfigPacketFilterConfig): any; export declare function antiddosPacketFilterConfigPacketFilterConfigToHclTerraform(struct?: AntiddosPacketFilterConfigPacketFilterConfigOutputReference | AntiddosPacketFilterConfigPacketFilterConfig): any; export declare class AntiddosPacketFilterConfigPacketFilterConfigOutputReference 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(): AntiddosPacketFilterConfigPacketFilterConfig | undefined; set internalValue(value: AntiddosPacketFilterConfigPacketFilterConfig | undefined); private _action?; get action(): string; set action(value: string); get actionInput(): string; private _depth?; get depth(): number; set depth(value: number); resetDepth(): void; get depthInput(): number; private _depth2?; get depth2(): number; set depth2(value: number); resetDepth2(): void; get depth2Input(): number; private _dportEnd?; get dportEnd(): number; set dportEnd(value: number); get dportEndInput(): number; private _dportStart?; get dportStart(): number; set dportStart(value: number); get dportStartInput(): number; private _isNot?; get isNot(): number; set isNot(value: number); resetIsNot(): void; get isNotInput(): number; private _isNot2?; get isNot2(): number; set isNot2(value: number); resetIsNot2(): void; get isNot2Input(): number; private _matchBegin?; get matchBegin(): string; set matchBegin(value: string); resetMatchBegin(): void; get matchBeginInput(): string; private _matchBegin2?; get matchBegin2(): string; set matchBegin2(value: string); resetMatchBegin2(): void; get matchBegin2Input(): string; private _matchLogic?; get matchLogic(): string; set matchLogic(value: string); resetMatchLogic(): void; get matchLogicInput(): string; private _matchType?; get matchType(): string; set matchType(value: string); resetMatchType(): void; get matchTypeInput(): string; private _matchType2?; get matchType2(): string; set matchType2(value: string); resetMatchType2(): void; get matchType2Input(): string; private _offset?; get offset(): number; set offset(value: number); resetOffset(): void; get offsetInput(): number; private _offset2?; get offset2(): number; set offset2(value: number); resetOffset2(): void; get offset2Input(): number; private _pktLenGt?; get pktLenGt(): number; set pktLenGt(value: number); resetPktLenGt(): void; get pktLenGtInput(): number; private _pktlenMax?; get pktlenMax(): number; set pktlenMax(value: number); get pktlenMaxInput(): number; private _pktlenMin?; get pktlenMin(): number; set pktlenMin(value: number); get pktlenMinInput(): number; private _protocol?; get protocol(): string; set protocol(value: string); get protocolInput(): string; private _sportEnd?; get sportEnd(): number; set sportEnd(value: number); get sportEndInput(): number; private _sportStart?; get sportStart(): number; set sportStart(value: number); get sportStartInput(): number; private _str?; get str(): string; set str(value: string); resetStr(): void; get strInput(): string; private _str2?; get str2(): string; set str2(value: string); resetStr2(): void; get str2Input(): string; } /** * Represents a {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/antiddos_packet_filter_config tencentcloud_antiddos_packet_filter_config} */ export declare class AntiddosPacketFilterConfig extends cdktf.TerraformResource { static readonly tfResourceType = "tencentcloud_antiddos_packet_filter_config"; /** * Generates CDKTF code for importing a AntiddosPacketFilterConfig 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 AntiddosPacketFilterConfig to import * @param importFromId The id of the existing AntiddosPacketFilterConfig that should be imported. Refer to the {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/antiddos_packet_filter_config#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the AntiddosPacketFilterConfig 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/antiddos_packet_filter_config tencentcloud_antiddos_packet_filter_config} 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 AntiddosPacketFilterConfigConfig */ constructor(scope: Construct, id: string, config: AntiddosPacketFilterConfigConfig); private _id?; get id(): string; set id(value: string); resetId(): void; get idInput(): string; private _instanceId?; get instanceId(): string; set instanceId(value: string); get instanceIdInput(): string; private _packetFilterConfig; get packetFilterConfig(): AntiddosPacketFilterConfigPacketFilterConfigOutputReference; putPacketFilterConfig(value: AntiddosPacketFilterConfigPacketFilterConfig): void; get packetFilterConfigInput(): AntiddosPacketFilterConfigPacketFilterConfig; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }