@alicloud/ddosbgp20180720 3.1.1 → 3.1.3

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 (57) hide show
  1. package/dist/client.d.ts +8 -8
  2. package/dist/client.js +56 -22
  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/DescribeInstanceListRequest.d.ts +8 -6
  9. package/dist/models/DescribeInstanceListRequest.js.map +1 -1
  10. package/dist/models/DescribeInstanceListResponseBody.d.ts +13 -6
  11. package/dist/models/DescribeInstanceListResponseBody.js.map +1 -1
  12. package/dist/models/DescribeNetworkLayerInterceptsRequest.d.ts +9 -1
  13. package/dist/models/DescribeNetworkLayerInterceptsRequest.js +2 -0
  14. package/dist/models/DescribeNetworkLayerInterceptsRequest.js.map +1 -1
  15. package/dist/models/DescribeNetworkLayerInterceptsResponseBody.d.ts +3 -3
  16. package/dist/models/ListPolicyAttachmentRequest.d.ts +3 -3
  17. package/dist/models/ListPolicyAttachmentResponseBody.d.ts +14 -3
  18. package/dist/models/ListPolicyAttachmentResponseBody.js +2 -0
  19. package/dist/models/ListPolicyAttachmentResponseBody.js.map +1 -1
  20. package/dist/models/ListPolicyAttachmentShrinkRequest.d.ts +3 -3
  21. package/dist/models/ListPolicyRequest.d.ts +17 -2
  22. package/dist/models/ListPolicyRequest.js.map +1 -1
  23. package/dist/models/ListPolicyResponseBody.d.ts +128 -22
  24. package/dist/models/ListPolicyResponseBody.js +8 -0
  25. package/dist/models/ListPolicyResponseBody.js.map +1 -1
  26. package/dist/models/ModifyPolicyContentRequest.d.ts +119 -33
  27. package/dist/models/ModifyPolicyContentRequest.js +8 -0
  28. package/dist/models/ModifyPolicyContentRequest.js.map +1 -1
  29. package/dist/models/ModifyPolicyContentResponseBody.d.ts +1 -1
  30. package/dist/models/ModifyPolicyContentShrinkRequest.d.ts +4 -0
  31. package/dist/models/ModifyPolicyContentShrinkRequest.js.map +1 -1
  32. package/dist/models/ModifyPolicyRequest.d.ts +157 -34
  33. package/dist/models/ModifyPolicyRequest.js +8 -0
  34. package/dist/models/ModifyPolicyRequest.js.map +1 -1
  35. package/dist/models/ModifyPolicyResponseBody.d.ts +1 -1
  36. package/dist/models/ModifyPolicyShrinkRequest.d.ts +28 -1
  37. package/dist/models/ModifyPolicyShrinkRequest.js.map +1 -1
  38. package/package.json +1 -1
  39. package/src/client.ts +57 -22
  40. package/src/models/AttachToPolicyRequest.ts +3 -2
  41. package/src/models/AttachToPolicyResponseBody.ts +1 -1
  42. package/src/models/AttachToPolicyShrinkRequest.ts +2 -2
  43. package/src/models/DescribeInstanceListRequest.ts +8 -6
  44. package/src/models/DescribeInstanceListResponseBody.ts +13 -6
  45. package/src/models/DescribeNetworkLayerInterceptsRequest.ts +11 -1
  46. package/src/models/DescribeNetworkLayerInterceptsResponseBody.ts +3 -3
  47. package/src/models/ListPolicyAttachmentRequest.ts +3 -3
  48. package/src/models/ListPolicyAttachmentResponseBody.ts +16 -3
  49. package/src/models/ListPolicyAttachmentShrinkRequest.ts +3 -3
  50. package/src/models/ListPolicyRequest.ts +17 -2
  51. package/src/models/ListPolicyResponseBody.ts +136 -22
  52. package/src/models/ModifyPolicyContentRequest.ts +127 -33
  53. package/src/models/ModifyPolicyContentResponseBody.ts +1 -1
  54. package/src/models/ModifyPolicyContentShrinkRequest.ts +4 -0
  55. package/src/models/ModifyPolicyRequest.ts +165 -34
  56. package/src/models/ModifyPolicyResponseBody.ts +1 -1
  57. package/src/models/ModifyPolicyShrinkRequest.ts +28 -1
@@ -3,6 +3,14 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class ListPolicyResponseBodyPolicyListContentFingerPrintRuleList extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The rule remarks.
9
+ *
10
+ * @example
11
+ * comment
12
+ */
13
+ comment?: string;
6
14
  /**
7
15
  * @remarks
8
16
  * The end value of the destination port range. Valid values: **0** to **65535**.
@@ -31,6 +39,11 @@ export class ListPolicyResponseBodyPolicyListContentFingerPrintRuleList extends
31
39
  * @remarks
32
40
  * The match action. Valid values:
33
41
  *
42
+ * - **accept**: Allow traffic that matches the fingerprint.
43
+ * - **drop**: Drop traffic that matches the fingerprint.
44
+ * - **ip_rate**: Rate-limit the source IP address of traffic that matches the fingerprint. The rate limit is specified by the **RateValue** parameter.
45
+ * - **session_rate**: Rate-limit the source session of traffic that matches the fingerprint. The rate limit is specified by the **RateValue** parameter.
46
+ *
34
47
  * @example
35
48
  * drop
36
49
  */
@@ -51,6 +64,14 @@ export class ListPolicyResponseBodyPolicyListContentFingerPrintRuleList extends
51
64
  * 1
52
65
  */
53
66
  minPktLen?: number;
67
+ /**
68
+ * @remarks
69
+ * The rule mode.
70
+ *
71
+ * @example
72
+ * 1
73
+ */
74
+ mode?: number;
54
75
  /**
55
76
  * @remarks
56
77
  * The offset. Valid values: **0** to **1500**.
@@ -61,7 +82,7 @@ export class ListPolicyResponseBodyPolicyListContentFingerPrintRuleList extends
61
82
  offset?: number;
62
83
  /**
63
84
  * @remarks
64
- * The detection payload, represented in hexadecimal string format.
85
+ * The detection payload, represented as a hexadecimal string.
65
86
  *
66
87
  * @example
67
88
  * abcd
@@ -71,6 +92,9 @@ export class ListPolicyResponseBodyPolicyListContentFingerPrintRuleList extends
71
92
  * @remarks
72
93
  * The protocol type. Valid values:
73
94
  *
95
+ * - **tcp**: Transmission Control Protocol.
96
+ * - **udp**: User Datagram Protocol.
97
+ *
74
98
  * @example
75
99
  * udp
76
100
  */
@@ -79,10 +103,20 @@ export class ListPolicyResponseBodyPolicyListContentFingerPrintRuleList extends
79
103
  * @remarks
80
104
  * The rate limit value. Valid values: **1** to **100000**.
81
105
  *
106
+ * > 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**).
107
+ *
82
108
  * @example
83
109
  * 1000
84
110
  */
85
111
  rateValue?: number;
112
+ /**
113
+ * @remarks
114
+ * The rule.
115
+ *
116
+ * @example
117
+ * (ip.version == 4)
118
+ */
119
+ rule?: string;
86
120
  /**
87
121
  * @remarks
88
122
  * The priority number, represented as an integer.
@@ -107,39 +141,55 @@ export class ListPolicyResponseBodyPolicyListContentFingerPrintRuleList extends
107
141
  * 0
108
142
  */
109
143
  srcPortStart?: number;
144
+ /**
145
+ * @remarks
146
+ * The type.
147
+ *
148
+ * @example
149
+ * 1
150
+ */
151
+ type?: number;
110
152
  static names(): { [key: string]: string } {
111
153
  return {
154
+ comment: 'Comment',
112
155
  dstPortEnd: 'DstPortEnd',
113
156
  dstPortStart: 'DstPortStart',
114
157
  id: 'Id',
115
158
  matchAction: 'MatchAction',
116
159
  maxPktLen: 'MaxPktLen',
117
160
  minPktLen: 'MinPktLen',
161
+ mode: 'Mode',
118
162
  offset: 'Offset',
119
163
  payloadBytes: 'PayloadBytes',
120
164
  protocol: 'Protocol',
121
165
  rateValue: 'RateValue',
166
+ rule: 'Rule',
122
167
  seqNo: 'SeqNo',
123
168
  srcPortEnd: 'SrcPortEnd',
124
169
  srcPortStart: 'SrcPortStart',
170
+ type: 'Type',
125
171
  };
126
172
  }
127
173
 
128
174
  static types(): { [key: string]: any } {
129
175
  return {
176
+ comment: 'string',
130
177
  dstPortEnd: 'number',
131
178
  dstPortStart: 'number',
132
179
  id: 'string',
133
180
  matchAction: 'string',
134
181
  maxPktLen: 'number',
135
182
  minPktLen: 'number',
183
+ mode: 'number',
136
184
  offset: 'number',
137
185
  payloadBytes: 'string',
138
186
  protocol: 'string',
139
187
  rateValue: 'number',
188
+ rule: 'string',
140
189
  seqNo: 'number',
141
190
  srcPortEnd: 'number',
142
191
  srcPortStart: 'number',
192
+ type: 'number',
143
193
  };
144
194
  }
145
195
 
@@ -157,6 +207,8 @@ export class ListPolicyResponseBodyPolicyListContentL4RuleListConditionListOffse
157
207
  * @remarks
158
208
  * The end position. Valid values: **0** to **1499**.
159
209
  *
210
+ * > The end position must be greater than or equal to the start position.
211
+ *
160
212
  * @example
161
213
  * 1499
162
214
  */
@@ -196,6 +248,7 @@ export class ListPolicyResponseBodyPolicyListContentL4RuleListConditionList exte
196
248
  /**
197
249
  * @remarks
198
250
  * The detection content.
251
+ * > 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.
199
252
  *
200
253
  * @example
201
254
  * test
@@ -203,7 +256,23 @@ export class ListPolicyResponseBodyPolicyListContentL4RuleListConditionList exte
203
256
  arg?: string;
204
257
  /**
205
258
  * @remarks
206
- * The match content.
259
+ * The matching content.
260
+ *
261
+ * 1. If **Encode** is set to **str**, the following requirements must be met:
262
+ *
263
+ * - The length of **Content** cannot exceed 1500.
264
+ *
265
+ * - **End** - **Start** >= the length of **Content**.
266
+ *
267
+ * 2. If **Encode** is set to **hex**, the following requirements must be met:
268
+ *
269
+ * - **Content** must be hexadecimal characters.
270
+ *
271
+ * - The length of **Content** must be an even number.
272
+ *
273
+ * - The length of **Content** cannot exceed 3000.
274
+ *
275
+ * - **End** - **Start** + 1 >= the length of **Content** / 2.
207
276
  *
208
277
  * @example
209
278
  * test**
@@ -221,18 +290,26 @@ export class ListPolicyResponseBodyPolicyListContentL4RuleListConditionList exte
221
290
  * @remarks
222
291
  * The character type. Valid values:
223
292
  *
293
+ * - **str**: string.
294
+ *
295
+ * - **hex**: hexadecimal.
296
+ *
224
297
  * @example
225
298
  * str
226
299
  */
227
300
  encode?: string;
228
301
  /**
229
302
  * @remarks
230
- * The match range.
303
+ * The matching range.
231
304
  */
232
305
  offset?: ListPolicyResponseBodyPolicyListContentL4RuleListConditionListOffset;
233
306
  /**
234
307
  * @remarks
235
- * The match pattern. Valid values:
308
+ * The matching pattern. Valid values:
309
+ *
310
+ * - **contain**: contains.
311
+ *
312
+ * - **not_contain**: does not contain.
236
313
  *
237
314
  * @example
238
315
  * contain
@@ -287,6 +364,8 @@ export class ListPolicyResponseBodyPolicyListContentL4RuleList extends $dara.Mod
287
364
  * @remarks
288
365
  * The action. Valid values:
289
366
  *
367
+ * - **2**: Drop.
368
+ *
290
369
  * @example
291
370
  * 2
292
371
  */
@@ -308,6 +387,10 @@ export class ListPolicyResponseBodyPolicyListContentL4RuleList extends $dara.Mod
308
387
  * @remarks
309
388
  * The logical operator. Valid values:
310
389
  *
390
+ * - **0**: Execute the action when matched.
391
+ *
392
+ * - **1**: Execute the action when not matched.
393
+ *
311
394
  * @example
312
395
  * 1
313
396
  */
@@ -316,6 +399,10 @@ export class ListPolicyResponseBodyPolicyListContentL4RuleList extends $dara.Mod
316
399
  * @remarks
317
400
  * The rule type. Valid values:
318
401
  *
402
+ * - **char**: string matching.
403
+ *
404
+ * - **hex**: hexadecimal matching.
405
+ *
319
406
  * @example
320
407
  * char
321
408
  */
@@ -401,6 +488,8 @@ export class ListPolicyResponseBodyPolicyListContentPortRuleList extends $dara.M
401
488
  * @remarks
402
489
  * The match action. Valid values:
403
490
  *
491
+ * - **drop**: Drop.
492
+ *
404
493
  * @example
405
494
  * drop
406
495
  */
@@ -409,6 +498,9 @@ export class ListPolicyResponseBodyPolicyListContentPortRuleList extends $dara.M
409
498
  * @remarks
410
499
  * The protocol type. Valid values:
411
500
  *
501
+ * - **tcp**: Transmission Control Protocol.
502
+ * - **udp**: User Datagram Protocol.
503
+ *
412
504
  * @example
413
505
  * udp
414
506
  */
@@ -477,6 +569,9 @@ export class ListPolicyResponseBodyPolicyListContentSipDefense extends $dara.Mod
477
569
  * @remarks
478
570
  * Indicates whether SIP protection is enabled. Valid values:
479
571
  *
572
+ * - **true**: Enabled.
573
+ * - **false**: Disabled.
574
+ *
480
575
  * @example
481
576
  * true
482
577
  */
@@ -491,17 +586,17 @@ export class ListPolicyResponseBodyPolicyListContentSipDefense extends $dara.Mod
491
586
  level?: string;
492
587
  /**
493
588
  * @remarks
494
- * The switch for the SIP defense mode.
589
+ * Indicates whether SIP defense mode is enabled.
495
590
  */
496
591
  sipDefend?: boolean;
497
592
  /**
498
593
  * @remarks
499
- * The switch for the SIP learning mode.
594
+ * Indicates whether SIP learning mode is enabled.
500
595
  */
501
596
  sipLearn?: boolean;
502
597
  /**
503
598
  * @remarks
504
- * The switch for the SIP source rate limiting module.
599
+ * Indicates whether the SIP source rate limiting module is enabled.
505
600
  */
506
601
  sipModule?: boolean;
507
602
  /**
@@ -514,7 +609,7 @@ export class ListPolicyResponseBodyPolicyListContentSipDefense extends $dara.Mod
514
609
  sipPort?: string;
515
610
  /**
516
611
  * @remarks
517
- * The SIP source rate limit value (PPS).
612
+ * The SIP source rate limit value in PPS.
518
613
  *
519
614
  * @example
520
615
  * 1000
@@ -522,7 +617,7 @@ export class ListPolicyResponseBodyPolicyListContentSipDefense extends $dara.Mod
522
617
  sipRate?: number;
523
618
  /**
524
619
  * @remarks
525
- * The SIP activation threshold (Mbit/s).
620
+ * The SIP activation threshold in Mbit/s.
526
621
  *
527
622
  * @example
528
623
  * 100
@@ -530,7 +625,7 @@ export class ListPolicyResponseBodyPolicyListContentSipDefense extends $dara.Mod
530
625
  sipStartMbps?: number;
531
626
  /**
532
627
  * @remarks
533
- * The SIP activation threshold (PPS).
628
+ * The SIP activation threshold in PPS.
534
629
  *
535
630
  * @example
536
631
  * 500
@@ -602,6 +697,14 @@ export class ListPolicyResponseBodyPolicyListContentSourceBlockList extends $dar
602
697
  * @remarks
603
698
  * The source rate limiting type. Valid values:
604
699
  *
700
+ * - **3**: source PPS rate limiting.
701
+ *
702
+ * - **4**: source bandwidth throttling.
703
+ *
704
+ * - **5**: source SYN PPS rate limiting.
705
+ *
706
+ * - **6**: source SYN bandwidth throttling.
707
+ *
605
708
  * @example
606
709
  * 3
607
710
  */
@@ -636,7 +739,7 @@ export class ListPolicyResponseBodyPolicyListContentSourceBlockList extends $dar
636
739
  export class ListPolicyResponseBodyPolicyListContentSourceLimit extends $dara.Model {
637
740
  /**
638
741
  * @remarks
639
- * The source bandwidth throttling value, in bytes per second.
742
+ * The source bandwidth throttling value, in bytes per second (Byte/s).
640
743
  *
641
744
  * @example
642
745
  * 2048
@@ -644,7 +747,7 @@ export class ListPolicyResponseBodyPolicyListContentSourceLimit extends $dara.Mo
644
747
  bps?: number;
645
748
  /**
646
749
  * @remarks
647
- * The source PPS rate limit, in packets per second.
750
+ * The source PPS rate limit, in packets per second (Packet/s).
648
751
  *
649
752
  * @example
650
753
  * 64
@@ -652,7 +755,7 @@ export class ListPolicyResponseBodyPolicyListContentSourceLimit extends $dara.Mo
652
755
  pps?: number;
653
756
  /**
654
757
  * @remarks
655
- * The source SYN bandwidth throttling value, in bytes per second.
758
+ * The source SYN bandwidth throttling value, in bytes per second (Byte/s).
656
759
  *
657
760
  * @example
658
761
  * 2048
@@ -660,7 +763,7 @@ export class ListPolicyResponseBodyPolicyListContentSourceLimit extends $dara.Mo
660
763
  synBps?: number;
661
764
  /**
662
765
  * @remarks
663
- * The source SYN PPS rate limit, in packets per second.
766
+ * The source SYN PPS rate limit, in packets per second (Packet/s).
664
767
  *
665
768
  * @example
666
769
  * 64
@@ -720,7 +823,7 @@ export class ListPolicyResponseBodyPolicyListContent extends $dara.Model {
720
823
  enableIntelligence?: boolean;
721
824
  /**
722
825
  * @remarks
723
- * Indicates whether port protection is enabled.
826
+ * Indicates whether port-specific mitigation is enabled.
724
827
  *
725
828
  * @example
726
829
  * true
@@ -728,20 +831,24 @@ export class ListPolicyResponseBodyPolicyListContent extends $dara.Model {
728
831
  enableL4Defense?: boolean;
729
832
  /**
730
833
  * @remarks
731
- * The list of byte-match filter rules.
834
+ * The list of Byte-Match Filter rules.
732
835
  */
733
836
  fingerPrintRuleList?: ListPolicyResponseBodyPolicyListContentFingerPrintRuleList[];
734
837
  /**
735
838
  * @remarks
736
839
  * The protection level of AI-based intelligent analysis. Valid values:
737
840
  *
841
+ * - **default**: Normal.
842
+ * - **hard**: Strict.
843
+ * - **weak**: Loose.
844
+ *
738
845
  * @example
739
846
  * default
740
847
  */
741
848
  intelligenceLevel?: string;
742
849
  /**
743
850
  * @remarks
744
- * The list of port protection rules.
851
+ * The list of port-specific mitigation rules.
745
852
  */
746
853
  l4RuleList?: ListPolicyResponseBodyPolicyListContentL4RuleList[];
747
854
  /**
@@ -751,7 +858,11 @@ export class ListPolicyResponseBodyPolicyListContent extends $dara.Model {
751
858
  portRuleList?: ListPolicyResponseBodyPolicyListContentPortRuleList[];
752
859
  /**
753
860
  * @remarks
754
- * The version of the port-specific mitigation policies. Valid values:
861
+ * The version of the port-specific mitigation policy. Valid values:
862
+ *
863
+ * - **Not specified**: the default surf mitigation engine policy.
864
+ * - **2**: the new stream mitigation engine policy.
865
+ * > Only port-specific mitigation policies support this parameter.
755
866
  *
756
867
  * @example
757
868
  * 2
@@ -774,12 +885,12 @@ export class ListPolicyResponseBodyPolicyListContent extends $dara.Model {
774
885
  regionBlockProvinceList?: number[];
775
886
  /**
776
887
  * @remarks
777
- * The SIP protection configuration.
888
+ * The SIP Protection Settings.
778
889
  */
779
890
  sipDefense?: ListPolicyResponseBodyPolicyListContentSipDefense;
780
891
  /**
781
892
  * @remarks
782
- * The source rate limiting blacklist.
893
+ * The list of source rate limiting blacklist rules.
783
894
  */
784
895
  sourceBlockList?: ListPolicyResponseBodyPolicyListContentSourceBlockList[];
785
896
  /**
@@ -789,7 +900,7 @@ export class ListPolicyResponseBodyPolicyListContent extends $dara.Model {
789
900
  sourceLimit?: ListPolicyResponseBodyPolicyListContentSourceLimit;
790
901
  /**
791
902
  * @remarks
792
- * Indicates whether whitelisting of back-to-origin CIDR blocks of Anti-DDoS Pro and Anti-DDoS Premium (the Chinese mainland & outside the Chinese mainland) is enabled.
903
+ * Indicates whether the back-to-origin CIDR blocks of Anti-DDoS Pro and Anti-DDoS Premium (the Chinese mainland & outside the Chinese mainland) are added to the whitelist.
793
904
  *
794
905
  * @example
795
906
  * false
@@ -914,6 +1025,9 @@ export class ListPolicyResponseBodyPolicyList extends $dara.Model {
914
1025
  /**
915
1026
  * @remarks
916
1027
  * The policy type. Valid values:
1028
+ * - **default**: default mitigation policy.
1029
+ * - **l3**: IP-specific mitigation policy.
1030
+ * - **l4**: port-specific mitigation policy.
917
1031
  *
918
1032
  * @example
919
1033
  * l3
@@ -961,7 +1075,7 @@ export class ListPolicyResponseBody extends $dara.Model {
961
1075
  policyList?: ListPolicyResponseBodyPolicyList[];
962
1076
  /**
963
1077
  * @remarks
964
- * The ID of this request, which is a unique identifier generated by Alibaba Cloud for the request. It can be used to troubleshoot and locate issues.
1078
+ * The ID of this request, which is a unique identifier generated by Alibaba Cloud for the request. You can use this ID to troubleshoot issues.
965
1079
  *
966
1080
  * @example
967
1081
  * B4B379C2-9319-4C6B-B579-FE36831B09F4