@alicloud/cloudfw20171207 1.4.0 → 1.5.1

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.
package/dist/client.d.ts CHANGED
@@ -276,7 +276,9 @@ export declare class CreateTrFirewallV2Request extends $tea.Model {
276
276
  regionNo?: string;
277
277
  routeMode?: string;
278
278
  trAttachmentMasterCidr?: string;
279
+ trAttachmentMasterZone?: string;
279
280
  trAttachmentSlaveCidr?: string;
281
+ trAttachmentSlaveZone?: string;
280
282
  transitRouterId?: string;
281
283
  static names(): {
282
284
  [key: string]: string;
@@ -923,6 +925,55 @@ export declare class DeleteVpcFirewallControlPolicyResponse extends $tea.Model {
923
925
  [key: string]: any;
924
926
  });
925
927
  }
928
+ export declare class DescribeACLProtectTrendRequest extends $tea.Model {
929
+ endTime?: string;
930
+ lang?: string;
931
+ sourceIp?: string;
932
+ startTime?: string;
933
+ static names(): {
934
+ [key: string]: string;
935
+ };
936
+ static types(): {
937
+ [key: string]: any;
938
+ };
939
+ constructor(map?: {
940
+ [key: string]: any;
941
+ });
942
+ }
943
+ export declare class DescribeACLProtectTrendResponseBody extends $tea.Model {
944
+ inProtectCnt?: number;
945
+ interVPCProtectCnt?: number;
946
+ interval?: number;
947
+ outProtectCnt?: number;
948
+ requestId?: string;
949
+ totalProtectCnt?: number;
950
+ trendList?: DescribeACLProtectTrendResponseBodyTrendList[];
951
+ static names(): {
952
+ [key: string]: string;
953
+ };
954
+ static types(): {
955
+ [key: string]: any;
956
+ };
957
+ constructor(map?: {
958
+ [key: string]: any;
959
+ });
960
+ }
961
+ export declare class DescribeACLProtectTrendResponse extends $tea.Model {
962
+ headers: {
963
+ [key: string]: string;
964
+ };
965
+ statusCode: number;
966
+ body: DescribeACLProtectTrendResponseBody;
967
+ static names(): {
968
+ [key: string]: string;
969
+ };
970
+ static types(): {
971
+ [key: string]: any;
972
+ };
973
+ constructor(map?: {
974
+ [key: string]: any;
975
+ });
976
+ }
926
977
  export declare class DescribeAddressBookRequest extends $tea.Model {
927
978
  containPort?: string;
928
979
  currentPage?: string;
@@ -3770,6 +3821,19 @@ export declare class CreateTrFirewallV2RoutePolicyRequestSrcCandidateList extend
3770
3821
  [key: string]: any;
3771
3822
  });
3772
3823
  }
3824
+ export declare class DescribeACLProtectTrendResponseBodyTrendList extends $tea.Model {
3825
+ protectCnt?: number;
3826
+ time?: number;
3827
+ static names(): {
3828
+ [key: string]: string;
3829
+ };
3830
+ static types(): {
3831
+ [key: string]: any;
3832
+ };
3833
+ constructor(map?: {
3834
+ [key: string]: any;
3835
+ });
3836
+ }
3773
3837
  export declare class DescribeAddressBookResponseBodyAclsTagList extends $tea.Model {
3774
3838
  tagKey?: string;
3775
3839
  tagValue?: string;
@@ -5162,8 +5226,8 @@ export default class Client extends OpenApi {
5162
5226
  */
5163
5227
  createVpcFirewallCenConfigure(request: CreateVpcFirewallCenConfigureRequest): Promise<CreateVpcFirewallCenConfigureResponse>;
5164
5228
  /**
5165
- * You can call the CreateVpcFirewallConfigure operation to create a VPC firewall. The VPC firewall controls traffic between two VPCs that are connected by using an Express Connect circuit. The VPC firewall does not control the mutual access traffic between VPCs that reside in different regions or belong to different Alibaba Cloud accounts. The firewall also does not control the mutual access traffic between VPCs and virtual border routers (VBRs). For more information, see [Limits on VPC firewalls](https://www.alibabacloud.com/help/en/cloud-firewall/latest/vpc-firewall-limits).
5166
- * ### Limits
5229
+ * You can call this operation to create a VPC firewall. The VPC firewall controls traffic between two VPCs that are connected by using an Express Connect circuit. The VPC firewall does not control the mutual access traffic between VPCs that reside in different regions or belong to different Alibaba Cloud accounts. The firewall also does not control the mutual access traffic between VPCs and virtual border routers (VBRs). For more information, see [VPC firewall limits](~~172295~~).
5230
+ * ### [](#qps)QPS limit
5167
5231
  * You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
5168
5232
  *
5169
5233
  * @param request CreateVpcFirewallConfigureRequest
@@ -5172,8 +5236,8 @@ export default class Client extends OpenApi {
5172
5236
  */
5173
5237
  createVpcFirewallConfigureWithOptions(request: CreateVpcFirewallConfigureRequest, runtime: $Util.RuntimeOptions): Promise<CreateVpcFirewallConfigureResponse>;
5174
5238
  /**
5175
- * You can call the CreateVpcFirewallConfigure operation to create a VPC firewall. The VPC firewall controls traffic between two VPCs that are connected by using an Express Connect circuit. The VPC firewall does not control the mutual access traffic between VPCs that reside in different regions or belong to different Alibaba Cloud accounts. The firewall also does not control the mutual access traffic between VPCs and virtual border routers (VBRs). For more information, see [Limits on VPC firewalls](https://www.alibabacloud.com/help/en/cloud-firewall/latest/vpc-firewall-limits).
5176
- * ### Limits
5239
+ * You can call this operation to create a VPC firewall. The VPC firewall controls traffic between two VPCs that are connected by using an Express Connect circuit. The VPC firewall does not control the mutual access traffic between VPCs that reside in different regions or belong to different Alibaba Cloud accounts. The firewall also does not control the mutual access traffic between VPCs and virtual border routers (VBRs). For more information, see [VPC firewall limits](~~172295~~).
5240
+ * ### [](#qps)QPS limit
5177
5241
  * You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
5178
5242
  *
5179
5243
  * @param request CreateVpcFirewallConfigureRequest
@@ -5332,6 +5396,8 @@ export default class Client extends OpenApi {
5332
5396
  * @return DeleteVpcFirewallControlPolicyResponse
5333
5397
  */
5334
5398
  deleteVpcFirewallControlPolicy(request: DeleteVpcFirewallControlPolicyRequest): Promise<DeleteVpcFirewallControlPolicyResponse>;
5399
+ describeACLProtectTrendWithOptions(request: DescribeACLProtectTrendRequest, runtime: $Util.RuntimeOptions): Promise<DescribeACLProtectTrendResponse>;
5400
+ describeACLProtectTrend(request: DescribeACLProtectTrendRequest): Promise<DescribeACLProtectTrendResponse>;
5335
5401
  /**
5336
5402
  * You can call the DescribeAddressBook operation to query the details about an address book for an access control policy.
5337
5403
  * ## Limits
@@ -5718,8 +5784,8 @@ export default class Client extends OpenApi {
5718
5784
  */
5719
5785
  modifyAddressBook(request: ModifyAddressBookRequest): Promise<ModifyAddressBookResponse>;
5720
5786
  /**
5721
- * You can call the ModifyControlPolicy operation to modify the configurations of an access control policy. The policy allows Cloud Firewall to allow, deny, or monitor the traffic that passes through Cloud Firewall.
5722
- * ## Limits
5787
+ * You can call this operation to modify the configurations of an access control policy. The policy allows Cloud Firewall to allow, deny, or monitor the traffic that passes through Cloud Firewall.
5788
+ * ## [](#qps)Limit
5723
5789
  * You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
5724
5790
  *
5725
5791
  * @param request ModifyControlPolicyRequest
@@ -5728,8 +5794,8 @@ export default class Client extends OpenApi {
5728
5794
  */
5729
5795
  modifyControlPolicyWithOptions(request: ModifyControlPolicyRequest, runtime: $Util.RuntimeOptions): Promise<ModifyControlPolicyResponse>;
5730
5796
  /**
5731
- * You can call the ModifyControlPolicy operation to modify the configurations of an access control policy. The policy allows Cloud Firewall to allow, deny, or monitor the traffic that passes through Cloud Firewall.
5732
- * ## Limits
5797
+ * You can call this operation to modify the configurations of an access control policy. The policy allows Cloud Firewall to allow, deny, or monitor the traffic that passes through Cloud Firewall.
5798
+ * ## [](#qps)Limit
5733
5799
  * You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
5734
5800
  *
5735
5801
  * @param request ModifyControlPolicyRequest
package/dist/client.js CHANGED
@@ -416,7 +416,9 @@ class CreateTrFirewallV2Request extends $tea.Model {
416
416
  regionNo: 'RegionNo',
417
417
  routeMode: 'RouteMode',
418
418
  trAttachmentMasterCidr: 'TrAttachmentMasterCidr',
419
+ trAttachmentMasterZone: 'TrAttachmentMasterZone',
419
420
  trAttachmentSlaveCidr: 'TrAttachmentSlaveCidr',
421
+ trAttachmentSlaveZone: 'TrAttachmentSlaveZone',
420
422
  transitRouterId: 'TransitRouterId',
421
423
  };
422
424
  }
@@ -433,7 +435,9 @@ class CreateTrFirewallV2Request extends $tea.Model {
433
435
  regionNo: 'string',
434
436
  routeMode: 'string',
435
437
  trAttachmentMasterCidr: 'string',
438
+ trAttachmentMasterZone: 'string',
436
439
  trAttachmentSlaveCidr: 'string',
440
+ trAttachmentSlaveZone: 'string',
437
441
  transitRouterId: 'string',
438
442
  };
439
443
  }
@@ -1317,6 +1321,76 @@ class DeleteVpcFirewallControlPolicyResponse extends $tea.Model {
1317
1321
  }
1318
1322
  }
1319
1323
  exports.DeleteVpcFirewallControlPolicyResponse = DeleteVpcFirewallControlPolicyResponse;
1324
+ class DescribeACLProtectTrendRequest extends $tea.Model {
1325
+ constructor(map) {
1326
+ super(map);
1327
+ }
1328
+ static names() {
1329
+ return {
1330
+ endTime: 'EndTime',
1331
+ lang: 'Lang',
1332
+ sourceIp: 'SourceIp',
1333
+ startTime: 'StartTime',
1334
+ };
1335
+ }
1336
+ static types() {
1337
+ return {
1338
+ endTime: 'string',
1339
+ lang: 'string',
1340
+ sourceIp: 'string',
1341
+ startTime: 'string',
1342
+ };
1343
+ }
1344
+ }
1345
+ exports.DescribeACLProtectTrendRequest = DescribeACLProtectTrendRequest;
1346
+ class DescribeACLProtectTrendResponseBody extends $tea.Model {
1347
+ constructor(map) {
1348
+ super(map);
1349
+ }
1350
+ static names() {
1351
+ return {
1352
+ inProtectCnt: 'InProtectCnt',
1353
+ interVPCProtectCnt: 'InterVPCProtectCnt',
1354
+ interval: 'Interval',
1355
+ outProtectCnt: 'OutProtectCnt',
1356
+ requestId: 'RequestId',
1357
+ totalProtectCnt: 'TotalProtectCnt',
1358
+ trendList: 'TrendList',
1359
+ };
1360
+ }
1361
+ static types() {
1362
+ return {
1363
+ inProtectCnt: 'number',
1364
+ interVPCProtectCnt: 'number',
1365
+ interval: 'number',
1366
+ outProtectCnt: 'number',
1367
+ requestId: 'string',
1368
+ totalProtectCnt: 'number',
1369
+ trendList: { 'type': 'array', 'itemType': DescribeACLProtectTrendResponseBodyTrendList },
1370
+ };
1371
+ }
1372
+ }
1373
+ exports.DescribeACLProtectTrendResponseBody = DescribeACLProtectTrendResponseBody;
1374
+ class DescribeACLProtectTrendResponse extends $tea.Model {
1375
+ constructor(map) {
1376
+ super(map);
1377
+ }
1378
+ static names() {
1379
+ return {
1380
+ headers: 'headers',
1381
+ statusCode: 'statusCode',
1382
+ body: 'body',
1383
+ };
1384
+ }
1385
+ static types() {
1386
+ return {
1387
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1388
+ statusCode: 'number',
1389
+ body: DescribeACLProtectTrendResponseBody,
1390
+ };
1391
+ }
1392
+ }
1393
+ exports.DescribeACLProtectTrendResponse = DescribeACLProtectTrendResponse;
1320
1394
  class DescribeAddressBookRequest extends $tea.Model {
1321
1395
  constructor(map) {
1322
1396
  super(map);
@@ -5375,6 +5449,24 @@ class CreateTrFirewallV2RoutePolicyRequestSrcCandidateList extends $tea.Model {
5375
5449
  }
5376
5450
  }
5377
5451
  exports.CreateTrFirewallV2RoutePolicyRequestSrcCandidateList = CreateTrFirewallV2RoutePolicyRequestSrcCandidateList;
5452
+ class DescribeACLProtectTrendResponseBodyTrendList extends $tea.Model {
5453
+ constructor(map) {
5454
+ super(map);
5455
+ }
5456
+ static names() {
5457
+ return {
5458
+ protectCnt: 'ProtectCnt',
5459
+ time: 'Time',
5460
+ };
5461
+ }
5462
+ static types() {
5463
+ return {
5464
+ protectCnt: 'number',
5465
+ time: 'number',
5466
+ };
5467
+ }
5468
+ }
5469
+ exports.DescribeACLProtectTrendResponseBodyTrendList = DescribeACLProtectTrendResponseBodyTrendList;
5378
5470
  class DescribeAddressBookResponseBodyAclsTagList extends $tea.Model {
5379
5471
  constructor(map) {
5380
5472
  super(map);
@@ -7807,9 +7899,15 @@ class Client extends openapi_client_1.default {
7807
7899
  if (!tea_util_1.default.isUnset(request.trAttachmentMasterCidr)) {
7808
7900
  query["TrAttachmentMasterCidr"] = request.trAttachmentMasterCidr;
7809
7901
  }
7902
+ if (!tea_util_1.default.isUnset(request.trAttachmentMasterZone)) {
7903
+ query["TrAttachmentMasterZone"] = request.trAttachmentMasterZone;
7904
+ }
7810
7905
  if (!tea_util_1.default.isUnset(request.trAttachmentSlaveCidr)) {
7811
7906
  query["TrAttachmentSlaveCidr"] = request.trAttachmentSlaveCidr;
7812
7907
  }
7908
+ if (!tea_util_1.default.isUnset(request.trAttachmentSlaveZone)) {
7909
+ query["TrAttachmentSlaveZone"] = request.trAttachmentSlaveZone;
7910
+ }
7813
7911
  if (!tea_util_1.default.isUnset(request.transitRouterId)) {
7814
7912
  query["TransitRouterId"] = request.transitRouterId;
7815
7913
  }
@@ -7959,8 +8057,8 @@ class Client extends openapi_client_1.default {
7959
8057
  return await this.createVpcFirewallCenConfigureWithOptions(request, runtime);
7960
8058
  }
7961
8059
  /**
7962
- * You can call the CreateVpcFirewallConfigure operation to create a VPC firewall. The VPC firewall controls traffic between two VPCs that are connected by using an Express Connect circuit. The VPC firewall does not control the mutual access traffic between VPCs that reside in different regions or belong to different Alibaba Cloud accounts. The firewall also does not control the mutual access traffic between VPCs and virtual border routers (VBRs). For more information, see [Limits on VPC firewalls](https://www.alibabacloud.com/help/en/cloud-firewall/latest/vpc-firewall-limits).
7963
- * ### Limits
8060
+ * You can call this operation to create a VPC firewall. The VPC firewall controls traffic between two VPCs that are connected by using an Express Connect circuit. The VPC firewall does not control the mutual access traffic between VPCs that reside in different regions or belong to different Alibaba Cloud accounts. The firewall also does not control the mutual access traffic between VPCs and virtual border routers (VBRs). For more information, see [VPC firewall limits](~~172295~~).
8061
+ * ### [](#qps)QPS limit
7964
8062
  * You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
7965
8063
  *
7966
8064
  * @param request CreateVpcFirewallConfigureRequest
@@ -8017,8 +8115,8 @@ class Client extends openapi_client_1.default {
8017
8115
  return $tea.cast(await this.callApi(params, req, runtime), new CreateVpcFirewallConfigureResponse({}));
8018
8116
  }
8019
8117
  /**
8020
- * You can call the CreateVpcFirewallConfigure operation to create a VPC firewall. The VPC firewall controls traffic between two VPCs that are connected by using an Express Connect circuit. The VPC firewall does not control the mutual access traffic between VPCs that reside in different regions or belong to different Alibaba Cloud accounts. The firewall also does not control the mutual access traffic between VPCs and virtual border routers (VBRs). For more information, see [Limits on VPC firewalls](https://www.alibabacloud.com/help/en/cloud-firewall/latest/vpc-firewall-limits).
8021
- * ### Limits
8118
+ * You can call this operation to create a VPC firewall. The VPC firewall controls traffic between two VPCs that are connected by using an Express Connect circuit. The VPC firewall does not control the mutual access traffic between VPCs that reside in different regions or belong to different Alibaba Cloud accounts. The firewall also does not control the mutual access traffic between VPCs and virtual border routers (VBRs). For more information, see [VPC firewall limits](~~172295~~).
8119
+ * ### [](#qps)QPS limit
8022
8120
  * You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
8023
8121
  *
8024
8122
  * @param request CreateVpcFirewallConfigureRequest
@@ -8537,6 +8635,44 @@ class Client extends openapi_client_1.default {
8537
8635
  let runtime = new $Util.RuntimeOptions({});
8538
8636
  return await this.deleteVpcFirewallControlPolicyWithOptions(request, runtime);
8539
8637
  }
8638
+ async describeACLProtectTrendWithOptions(request, runtime) {
8639
+ tea_util_1.default.validateModel(request);
8640
+ let query = {};
8641
+ if (!tea_util_1.default.isUnset(request.endTime)) {
8642
+ query["EndTime"] = request.endTime;
8643
+ }
8644
+ if (!tea_util_1.default.isUnset(request.lang)) {
8645
+ query["Lang"] = request.lang;
8646
+ }
8647
+ if (!tea_util_1.default.isUnset(request.lang)) {
8648
+ query["Lang"] = request.lang;
8649
+ }
8650
+ if (!tea_util_1.default.isUnset(request.sourceIp)) {
8651
+ query["SourceIp"] = request.sourceIp;
8652
+ }
8653
+ if (!tea_util_1.default.isUnset(request.startTime)) {
8654
+ query["StartTime"] = request.startTime;
8655
+ }
8656
+ let req = new $OpenApi.OpenApiRequest({
8657
+ query: openapi_util_1.default.query(query),
8658
+ });
8659
+ let params = new $OpenApi.Params({
8660
+ action: "DescribeACLProtectTrend",
8661
+ version: "2017-12-07",
8662
+ protocol: "HTTPS",
8663
+ pathname: "/",
8664
+ method: "POST",
8665
+ authType: "AK",
8666
+ style: "RPC",
8667
+ reqBodyType: "formData",
8668
+ bodyType: "json",
8669
+ });
8670
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeACLProtectTrendResponse({}));
8671
+ }
8672
+ async describeACLProtectTrend(request) {
8673
+ let runtime = new $Util.RuntimeOptions({});
8674
+ return await this.describeACLProtectTrendWithOptions(request, runtime);
8675
+ }
8540
8676
  /**
8541
8677
  * You can call the DescribeAddressBook operation to query the details about an address book for an access control policy.
8542
8678
  * ## Limits
@@ -10471,8 +10607,8 @@ class Client extends openapi_client_1.default {
10471
10607
  return await this.modifyAddressBookWithOptions(request, runtime);
10472
10608
  }
10473
10609
  /**
10474
- * You can call the ModifyControlPolicy operation to modify the configurations of an access control policy. The policy allows Cloud Firewall to allow, deny, or monitor the traffic that passes through Cloud Firewall.
10475
- * ## Limits
10610
+ * You can call this operation to modify the configurations of an access control policy. The policy allows Cloud Firewall to allow, deny, or monitor the traffic that passes through Cloud Firewall.
10611
+ * ## [](#qps)Limit
10476
10612
  * You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
10477
10613
  *
10478
10614
  * @param request ModifyControlPolicyRequest
@@ -10565,8 +10701,8 @@ class Client extends openapi_client_1.default {
10565
10701
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyControlPolicyResponse({}));
10566
10702
  }
10567
10703
  /**
10568
- * You can call the ModifyControlPolicy operation to modify the configurations of an access control policy. The policy allows Cloud Firewall to allow, deny, or monitor the traffic that passes through Cloud Firewall.
10569
- * ## Limits
10704
+ * You can call this operation to modify the configurations of an access control policy. The policy allows Cloud Firewall to allow, deny, or monitor the traffic that passes through Cloud Firewall.
10705
+ * ## [](#qps)Limit
10570
10706
  * You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
10571
10707
  *
10572
10708
  * @param request ModifyControlPolicyRequest