@alicloud/ddosbgp20180720 3.1.0 → 3.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/client.d.ts +18 -14
  2. package/dist/client.js +18 -18
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AttachToPolicyRequest.d.ts +3 -2
  5. package/dist/models/AttachToPolicyRequest.js.map +1 -1
  6. package/dist/models/AttachToPolicyResponseBody.d.ts +1 -1
  7. package/dist/models/AttachToPolicyShrinkRequest.d.ts +2 -2
  8. package/dist/models/CheckAccessLogAuthRequest.d.ts +2 -2
  9. package/dist/models/CheckAccessLogAuthResponseBody.d.ts +4 -5
  10. package/dist/models/CheckAccessLogAuthResponseBody.js.map +1 -1
  11. package/dist/models/DescribeInstanceListRequest.d.ts +30 -33
  12. package/dist/models/DescribeInstanceListRequest.js.map +1 -1
  13. package/dist/models/DescribeInstanceListResponseBody.d.ts +51 -50
  14. package/dist/models/DescribeInstanceListResponseBody.js +2 -0
  15. package/dist/models/DescribeInstanceListResponseBody.js.map +1 -1
  16. package/dist/models/GetSlsOpenStatusRequest.d.ts +1 -1
  17. package/dist/models/GetSlsOpenStatusResponseBody.d.ts +4 -4
  18. package/dist/models/ListOpenedAccessLogInstancesRequest.d.ts +3 -3
  19. package/dist/models/ListOpenedAccessLogInstancesResponseBody.d.ts +7 -7
  20. package/dist/models/ListPolicyRequest.d.ts +17 -2
  21. package/dist/models/ListPolicyRequest.js.map +1 -1
  22. package/dist/models/ListPolicyResponseBody.d.ts +133 -27
  23. package/dist/models/ListPolicyResponseBody.js +8 -0
  24. package/dist/models/ListPolicyResponseBody.js.map +1 -1
  25. package/dist/models/ModifyPolicyContentRequest.d.ts +112 -26
  26. package/dist/models/ModifyPolicyContentRequest.js +8 -0
  27. package/dist/models/ModifyPolicyContentRequest.js.map +1 -1
  28. package/dist/models/ModifyPolicyContentShrinkRequest.d.ts +4 -0
  29. package/dist/models/ModifyPolicyContentShrinkRequest.js.map +1 -1
  30. package/dist/models/ModifyPolicyRequest.d.ts +155 -32
  31. package/dist/models/ModifyPolicyRequest.js +8 -0
  32. package/dist/models/ModifyPolicyRequest.js.map +1 -1
  33. package/dist/models/ModifyPolicyShrinkRequest.d.ts +29 -2
  34. package/dist/models/ModifyPolicyShrinkRequest.js.map +1 -1
  35. package/package.json +1 -1
  36. package/src/client.ts +18 -18
  37. package/src/models/AttachToPolicyRequest.ts +3 -2
  38. package/src/models/AttachToPolicyResponseBody.ts +1 -1
  39. package/src/models/AttachToPolicyShrinkRequest.ts +2 -2
  40. package/src/models/CheckAccessLogAuthRequest.ts +2 -2
  41. package/src/models/CheckAccessLogAuthResponseBody.ts +4 -5
  42. package/src/models/DescribeInstanceListRequest.ts +30 -33
  43. package/src/models/DescribeInstanceListResponseBody.ts +53 -50
  44. package/src/models/GetSlsOpenStatusRequest.ts +1 -1
  45. package/src/models/GetSlsOpenStatusResponseBody.ts +4 -4
  46. package/src/models/ListOpenedAccessLogInstancesRequest.ts +3 -3
  47. package/src/models/ListOpenedAccessLogInstancesResponseBody.ts +7 -7
  48. package/src/models/ListPolicyRequest.ts +17 -2
  49. package/src/models/ListPolicyResponseBody.ts +141 -27
  50. package/src/models/ModifyPolicyContentRequest.ts +120 -26
  51. package/src/models/ModifyPolicyContentShrinkRequest.ts +4 -0
  52. package/src/models/ModifyPolicyRequest.ts +163 -32
  53. package/src/models/ModifyPolicyShrinkRequest.ts +29 -2
@@ -5,9 +5,15 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class ModifyPolicyContentRequestContentFingerPrintRuleList extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The end value of the destination port range. Valid values: **0** to **65535**.
8
+ * The rule comment.
9
9
  *
10
- * This parameter is required.
10
+ * @example
11
+ * comment
12
+ */
13
+ comment?: string;
14
+ /**
15
+ * @remarks
16
+ * The end value of the destination port range. Valid values: **0** to **65535**.
11
17
  *
12
18
  * @example
13
19
  * 65535
@@ -17,8 +23,6 @@ export class ModifyPolicyContentRequestContentFingerPrintRuleList extends $dara.
17
23
  * @remarks
18
24
  * The start value of the destination port range. Valid values: **0** to **65535**.
19
25
  *
20
- * This parameter is required.
21
- *
22
26
  * @example
23
27
  * 0
24
28
  */
@@ -33,7 +37,12 @@ export class ModifyPolicyContentRequestContentFingerPrintRuleList extends $dara.
33
37
  id?: string;
34
38
  /**
35
39
  * @remarks
36
- * The action to take when a fingerprint match is found. Valid values:
40
+ * The action to take after a fingerprint match. Valid values:
41
+ *
42
+ * - **permit**: Permits traffic that matches the fingerprint.
43
+ * - **drop**: Drops traffic that matches the fingerprint.
44
+ * - **ip_rate**: Rate-limits the source IP address of traffic that matches the fingerprint. Set the rate limit by using the **RateValue** parameter.
45
+ * - **session_rate**: Rate-limits the source session of traffic that matches the fingerprint. Set the rate limit by using the **RateValue** parameter.
37
46
  *
38
47
  * This parameter is required.
39
48
  *
@@ -45,8 +54,6 @@ export class ModifyPolicyContentRequestContentFingerPrintRuleList extends $dara.
45
54
  * @remarks
46
55
  * The maximum packet length. Valid values: **1** to **1500**.
47
56
  *
48
- * This parameter is required.
49
- *
50
57
  * @example
51
58
  * 1500
52
59
  */
@@ -55,12 +62,18 @@ export class ModifyPolicyContentRequestContentFingerPrintRuleList extends $dara.
55
62
  * @remarks
56
63
  * The minimum packet length. Valid values: **1** to **1500**.
57
64
  *
58
- * This parameter is required.
59
- *
60
65
  * @example
61
66
  * 1
62
67
  */
63
68
  minPktLen?: number;
69
+ /**
70
+ * @remarks
71
+ * The rule mode.
72
+ *
73
+ * @example
74
+ * 1
75
+ */
76
+ mode?: number;
64
77
  /**
65
78
  * @remarks
66
79
  * The offset. Valid values: **0** to **1500**.
@@ -71,7 +84,7 @@ export class ModifyPolicyContentRequestContentFingerPrintRuleList extends $dara.
71
84
  offset?: number;
72
85
  /**
73
86
  * @remarks
74
- * The detection payload, expressed in hexadecimal string format.
87
+ * The detection payload, represented in hexadecimal string format.
75
88
  *
76
89
  * @example
77
90
  * abcd
@@ -81,7 +94,8 @@ export class ModifyPolicyContentRequestContentFingerPrintRuleList extends $dara.
81
94
  * @remarks
82
95
  * The protocol type. Valid values:
83
96
  *
84
- * This parameter is required.
97
+ * - **tcp**: Transmission Control Protocol.
98
+ * - **udp**: User Datagram Protocol.
85
99
  *
86
100
  * @example
87
101
  * tcp
@@ -91,13 +105,24 @@ export class ModifyPolicyContentRequestContentFingerPrintRuleList extends $dara.
91
105
  * @remarks
92
106
  * The rate limit value. Valid values: **1** to **100000**.
93
107
  *
108
+ * > This parameter is required when the match action is source IP rate limiting or source session rate limiting (**MatchAction** is **ip_rate** or **session_rate**).
109
+ *
94
110
  * @example
95
111
  * 100
96
112
  */
97
113
  rateValue?: number;
114
+ /**
115
+ * @remarks
116
+ * The rule.
117
+ *
118
+ * @example
119
+ * (ip.version == 4)
120
+ */
121
+ rule?: string;
98
122
  /**
99
123
  * @remarks
100
124
  * The priority number, expressed as an integer.
125
+ * >A smaller number indicates a higher priority.
101
126
  *
102
127
  * This parameter is required.
103
128
  *
@@ -109,8 +134,6 @@ export class ModifyPolicyContentRequestContentFingerPrintRuleList extends $dara.
109
134
  * @remarks
110
135
  * The end value of the source port range. Valid values: **0** to **65535**.
111
136
  *
112
- * This parameter is required.
113
- *
114
137
  * @example
115
138
  * 65535
116
139
  */
@@ -119,45 +142,59 @@ export class ModifyPolicyContentRequestContentFingerPrintRuleList extends $dara.
119
142
  * @remarks
120
143
  * The start value of the source port range. Valid values: **0** to **65535**.
121
144
  *
122
- * This parameter is required.
123
- *
124
145
  * @example
125
146
  * 0
126
147
  */
127
148
  srcPortStart?: number;
149
+ /**
150
+ * @remarks
151
+ * The type.
152
+ *
153
+ * @example
154
+ * 1
155
+ */
156
+ type?: number;
128
157
  static names(): { [key: string]: string } {
129
158
  return {
159
+ comment: 'Comment',
130
160
  dstPortEnd: 'DstPortEnd',
131
161
  dstPortStart: 'DstPortStart',
132
162
  id: 'Id',
133
163
  matchAction: 'MatchAction',
134
164
  maxPktLen: 'MaxPktLen',
135
165
  minPktLen: 'MinPktLen',
166
+ mode: 'Mode',
136
167
  offset: 'Offset',
137
168
  payloadBytes: 'PayloadBytes',
138
169
  protocol: 'Protocol',
139
170
  rateValue: 'RateValue',
171
+ rule: 'Rule',
140
172
  seqNo: 'SeqNo',
141
173
  srcPortEnd: 'SrcPortEnd',
142
174
  srcPortStart: 'SrcPortStart',
175
+ type: 'Type',
143
176
  };
144
177
  }
145
178
 
146
179
  static types(): { [key: string]: any } {
147
180
  return {
181
+ comment: 'string',
148
182
  dstPortEnd: 'number',
149
183
  dstPortStart: 'number',
150
184
  id: 'string',
151
185
  matchAction: 'string',
152
186
  maxPktLen: 'number',
153
187
  minPktLen: 'number',
188
+ mode: 'number',
154
189
  offset: 'number',
155
190
  payloadBytes: 'string',
156
191
  protocol: 'string',
157
192
  rateValue: 'number',
193
+ rule: 'string',
158
194
  seqNo: 'number',
159
195
  srcPortEnd: 'number',
160
196
  srcPortStart: 'number',
197
+ type: 'number',
161
198
  };
162
199
  }
163
200
 
@@ -175,6 +212,8 @@ export class ModifyPolicyContentRequestContentL4RuleListConditionListOffset exte
175
212
  * @remarks
176
213
  * The end position. Valid values: **0** to **1499**.
177
214
  *
215
+ * > The end position must be greater than or equal to the start position.
216
+ *
178
217
  * @example
179
218
  * 1499
180
219
  */
@@ -214,6 +253,7 @@ export class ModifyPolicyContentRequestContentL4RuleListConditionList extends $d
214
253
  /**
215
254
  * @remarks
216
255
  * The detection content.
256
+ * > If the rule type is **char**, the value must be an ASCII string. If the rule type is **hex**, the value must be a hexadecimal string. Maximum length: 2048.
217
257
  *
218
258
  * @example
219
259
  * abcd
@@ -221,7 +261,23 @@ export class ModifyPolicyContentRequestContentL4RuleListConditionList extends $d
221
261
  arg?: string;
222
262
  /**
223
263
  * @remarks
224
- * The matching content.
264
+ * The match content.
265
+ *
266
+ * 1. When **Encode** is set to **str**, the following requirements must be met:
267
+ *
268
+ * - The length of **Content** must not exceed 1500.
269
+ *
270
+ * - **End** - **Start** >= the length of **Content**.
271
+ *
272
+ * 2. When **Encode** is set to **hex**, the following requirements must be met:
273
+ *
274
+ * - **Content** must be hexadecimal characters.
275
+ *
276
+ * - The length of **Content** must be an even number.
277
+ *
278
+ * - The length of **Content** must not exceed 3000.
279
+ *
280
+ * - **End** - **Start** + 1 >= the length of **Content** / 2.
225
281
  *
226
282
  * @example
227
283
  * test**
@@ -239,18 +295,26 @@ export class ModifyPolicyContentRequestContentL4RuleListConditionList extends $d
239
295
  * @remarks
240
296
  * The character type. Valid values:
241
297
  *
298
+ * - **str**: string.
299
+ *
300
+ * - **hex**: hexadecimal.
301
+ *
242
302
  * @example
243
303
  * str
244
304
  */
245
305
  encode?: string;
246
306
  /**
247
307
  * @remarks
248
- * The matching range.
308
+ * The match range.
249
309
  */
250
310
  offset?: ModifyPolicyContentRequestContentL4RuleListConditionListOffset;
251
311
  /**
252
312
  * @remarks
253
- * The matching pattern. Valid values:
313
+ * The match mode. Valid values:
314
+ *
315
+ * - **contain**: contains.
316
+ *
317
+ * - **not_contain**: does not contain.
254
318
  *
255
319
  * @example
256
320
  * contain
@@ -306,7 +370,7 @@ export class ModifyPolicyContentRequestContentL4RuleList extends $dara.Model {
306
370
  * The action.
307
371
  *
308
372
  * @example
309
- * 2
373
+ * block
310
374
  */
311
375
  action?: string;
312
376
  /**
@@ -326,6 +390,10 @@ export class ModifyPolicyContentRequestContentL4RuleList extends $dara.Model {
326
390
  * @remarks
327
391
  * The logical operator. Valid values:
328
392
  *
393
+ * - **0**: The action is executed on a match.
394
+ *
395
+ * - **1**: The action is executed on a non-match.
396
+ *
329
397
  * @example
330
398
  * 0
331
399
  */
@@ -334,6 +402,10 @@ export class ModifyPolicyContentRequestContentL4RuleList extends $dara.Model {
334
402
  * @remarks
335
403
  * The rule type. Valid values:
336
404
  *
405
+ * - **char**: string match.
406
+ *
407
+ * - **hex**: hexadecimal match.
408
+ *
337
409
  * @example
338
410
  * char
339
411
  */
@@ -351,6 +423,7 @@ export class ModifyPolicyContentRequestContentL4RuleList extends $dara.Model {
351
423
  /**
352
424
  * @remarks
353
425
  * The rule priority. Valid values: 1 to 100.
426
+ * >A smaller value indicates a higher priority.
354
427
  *
355
428
  * @example
356
429
  * 1
@@ -425,6 +498,8 @@ export class ModifyPolicyContentRequestContentPortRuleList extends $dara.Model {
425
498
  * @remarks
426
499
  * The match action. Valid values:
427
500
  *
501
+ * - **drop**: Drop.
502
+ *
428
503
  * This parameter is required.
429
504
  *
430
505
  * @example
@@ -435,6 +510,9 @@ export class ModifyPolicyContentRequestContentPortRuleList extends $dara.Model {
435
510
  * @remarks
436
511
  * The protocol type. Valid values:
437
512
  *
513
+ * - **tcp**: Transmission Control Protocol.
514
+ * - **udp**: User Datagram Protocol.
515
+ *
438
516
  * This parameter is required.
439
517
  *
440
518
  * @example
@@ -444,6 +522,7 @@ export class ModifyPolicyContentRequestContentPortRuleList extends $dara.Model {
444
522
  /**
445
523
  * @remarks
446
524
  * The priority number, expressed as an integer.
525
+ * >A smaller number indicates a higher priority.
447
526
  *
448
527
  * This parameter is required.
449
528
  *
@@ -509,7 +588,10 @@ export class ModifyPolicyContentRequestContentPortRuleList extends $dara.Model {
509
588
  export class ModifyPolicyContentRequestContentSipDefense extends $dara.Model {
510
589
  /**
511
590
  * @remarks
512
- * Specifies whether to enable SIP protection. Valid values:
591
+ * Specifies whether SIP protection is enabled. Valid values:
592
+ *
593
+ * - **true**: Enabled.
594
+ * - **false**: Disabled.
513
595
  *
514
596
  * @example
515
597
  * true
@@ -641,6 +723,10 @@ export class ModifyPolicyContentRequestContentSourceBlockList extends $dara.Mode
641
723
  /**
642
724
  * @remarks
643
725
  * The source rate limiting type. Valid values:
726
+ * - **3**: source PPS rate limiting.
727
+ * - **4**: source bandwidth throttling.
728
+ * - **5**: source SYN PPS rate limiting.
729
+ * - **6**: source SYN bandwidth throttling.
644
730
  *
645
731
  * This parameter is required.
646
732
  *
@@ -678,7 +764,7 @@ export class ModifyPolicyContentRequestContentSourceBlockList extends $dara.Mode
678
764
  export class ModifyPolicyContentRequestContentSourceLimit extends $dara.Model {
679
765
  /**
680
766
  * @remarks
681
- * The source bandwidth throttling value, in bytes per second.
767
+ * The source bandwidth throttling value, in bytes per second (Byte/s).
682
768
  *
683
769
  * @example
684
770
  * 2048
@@ -686,7 +772,7 @@ export class ModifyPolicyContentRequestContentSourceLimit extends $dara.Model {
686
772
  bps?: number;
687
773
  /**
688
774
  * @remarks
689
- * The source PPS rate limit, in packets per second.
775
+ * The source PPS rate limit, in packets per second (Packet/s).
690
776
  *
691
777
  * @example
692
778
  * 64
@@ -694,7 +780,7 @@ export class ModifyPolicyContentRequestContentSourceLimit extends $dara.Model {
694
780
  pps?: number;
695
781
  /**
696
782
  * @remarks
697
- * The source SYN bandwidth throttling value, in bytes per second.
783
+ * The source SYN bandwidth throttling value, in bytes per second (Byte/s).
698
784
  *
699
785
  * @example
700
786
  * 2048
@@ -702,7 +788,7 @@ export class ModifyPolicyContentRequestContentSourceLimit extends $dara.Model {
702
788
  synBps?: number;
703
789
  /**
704
790
  * @remarks
705
- * The source SYN PPS rate limit, in packets per second.
791
+ * The source SYN PPS rate limit, in packets per second (Packet/s).
706
792
  *
707
793
  * @example
708
794
  * 64
@@ -738,7 +824,7 @@ export class ModifyPolicyContentRequestContentSourceLimit extends $dara.Model {
738
824
  export class ModifyPolicyContentRequestContent extends $dara.Model {
739
825
  /**
740
826
  * @remarks
741
- * The expiration time of the IP blacklist (UNIX timestamp).
827
+ * The expiration time of the IP blacklist, in UNIX timestamp format.
742
828
  *
743
829
  * @example
744
830
  * 1716878000
@@ -770,13 +856,17 @@ export class ModifyPolicyContentRequestContent extends $dara.Model {
770
856
  enableL4Defense?: boolean;
771
857
  /**
772
858
  * @remarks
773
- * The list of byte-match filter rules.
859
+ * The list of Byte-Match Filter rules.
774
860
  */
775
861
  fingerPrintRuleList?: ModifyPolicyContentRequestContentFingerPrintRuleList[];
776
862
  /**
777
863
  * @remarks
778
864
  * The protection level of AI-based intelligent protection. Valid values:
779
865
  *
866
+ * - **default**: Normal.
867
+ * - **hard**: Strict.
868
+ * - **weak**: Loose.
869
+ *
780
870
  * @example
781
871
  * default
782
872
  */
@@ -933,6 +1023,10 @@ export class ModifyPolicyContentRequest extends $dara.Model {
933
1023
  * @remarks
934
1024
  * The version of the port-specific mitigation policy. Valid values:
935
1025
  *
1026
+ * - **Not specified**: Modifies the default surf mitigation engine policy.
1027
+ * - **2**: Modifies the new stream mitigation engine policy.
1028
+ * > Only port-specific mitigation policies are supported.
1029
+ *
936
1030
  * @example
937
1031
  * 2
938
1032
  */
@@ -30,6 +30,10 @@ export class ModifyPolicyContentShrinkRequest extends $dara.Model {
30
30
  * @remarks
31
31
  * The version of the port-specific mitigation policy. Valid values:
32
32
  *
33
+ * - **Not specified**: Modifies the default surf mitigation engine policy.
34
+ * - **2**: Modifies the new stream mitigation engine policy.
35
+ * > Only port-specific mitigation policies are supported.
36
+ *
33
37
  * @example
34
38
  * 2
35
39
  */