@alicloud/cloudfw20171207 1.2.1 → 1.2.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.
package/dist/client.d.ts CHANGED
@@ -200,6 +200,7 @@ export declare class CreateVpcFirewallCenConfigureRequest extends $tea.Model {
200
200
  lang?: string;
201
201
  memberUid?: string;
202
202
  networkInstanceId?: string;
203
+ vSwitchId?: string;
203
204
  vpcFirewallName?: string;
204
205
  vpcRegion?: string;
205
206
  static names(): {
@@ -241,6 +242,56 @@ export declare class CreateVpcFirewallCenConfigureResponse extends $tea.Model {
241
242
  [key: string]: any;
242
243
  });
243
244
  }
245
+ export declare class CreateVpcFirewallConfigureRequest extends $tea.Model {
246
+ firewallSwitch?: string;
247
+ lang?: string;
248
+ localVpcCidrTableList?: string;
249
+ localVpcId?: string;
250
+ localVpcRegion?: string;
251
+ memberUid?: string;
252
+ peerVpcCidrTableList?: string;
253
+ peerVpcId?: string;
254
+ peerVpcRegion?: string;
255
+ vpcFirewallName?: string;
256
+ static names(): {
257
+ [key: string]: string;
258
+ };
259
+ static types(): {
260
+ [key: string]: any;
261
+ };
262
+ constructor(map?: {
263
+ [key: string]: any;
264
+ });
265
+ }
266
+ export declare class CreateVpcFirewallConfigureResponseBody extends $tea.Model {
267
+ requestId?: string;
268
+ vpcFirewallId?: string;
269
+ static names(): {
270
+ [key: string]: string;
271
+ };
272
+ static types(): {
273
+ [key: string]: any;
274
+ };
275
+ constructor(map?: {
276
+ [key: string]: any;
277
+ });
278
+ }
279
+ export declare class CreateVpcFirewallConfigureResponse extends $tea.Model {
280
+ headers: {
281
+ [key: string]: string;
282
+ };
283
+ statusCode: number;
284
+ body: CreateVpcFirewallConfigureResponseBody;
285
+ static names(): {
286
+ [key: string]: string;
287
+ };
288
+ static types(): {
289
+ [key: string]: any;
290
+ };
291
+ constructor(map?: {
292
+ [key: string]: any;
293
+ });
294
+ }
244
295
  export declare class CreateVpcFirewallControlPolicyRequest extends $tea.Model {
245
296
  aclAction?: string;
246
297
  applicationName?: string;
@@ -3401,6 +3452,25 @@ export default class Client extends OpenApi {
3401
3452
  * @return CreateVpcFirewallCenConfigureResponse
3402
3453
  */
3403
3454
  createVpcFirewallCenConfigure(request: CreateVpcFirewallCenConfigureRequest): Promise<CreateVpcFirewallCenConfigureResponse>;
3455
+ /**
3456
+ * 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).
3457
+ * ### Limits
3458
+ * 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.
3459
+ *
3460
+ * @param request CreateVpcFirewallConfigureRequest
3461
+ * @param runtime runtime options for this request RuntimeOptions
3462
+ * @return CreateVpcFirewallConfigureResponse
3463
+ */
3464
+ createVpcFirewallConfigureWithOptions(request: CreateVpcFirewallConfigureRequest, runtime: $Util.RuntimeOptions): Promise<CreateVpcFirewallConfigureResponse>;
3465
+ /**
3466
+ * 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).
3467
+ * ### Limits
3468
+ * 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.
3469
+ *
3470
+ * @param request CreateVpcFirewallConfigureRequest
3471
+ * @return CreateVpcFirewallConfigureResponse
3472
+ */
3473
+ createVpcFirewallConfigure(request: CreateVpcFirewallConfigureRequest): Promise<CreateVpcFirewallConfigureResponse>;
3404
3474
  /**
3405
3475
  * You can call the CreateVpcFirewallControlPolicy operation to create an access control policy in a specified policy group for a VPC firewall. Different access control policies are used when a VPC firewall is used to protect traffic between two VPCs that are connected by using a Cloud Enterprise Network (CEN) instance or an Express Connect circuit.
3406
3476
  * ## Limits
@@ -3811,7 +3881,7 @@ export default class Client extends OpenApi {
3811
3881
  */
3812
3882
  describeVpcFirewallDetail(request: DescribeVpcFirewallDetailRequest): Promise<DescribeVpcFirewallDetailResponse>;
3813
3883
  /**
3814
- * You can call the DescribeVpcFirewallList operation to query the details about VPC firewalls by page. Each VPC firewall controls traffic between two VPCs that are connected by using an Express Connect circuit.
3884
+ * You can call the DescribeVpcFirewallList operation to query the details about VPC firewalls by page. Each VPC firewall protects traffic between two VPCs that are connected by using an Express Connect circuit.
3815
3885
  * ## Limits
3816
3886
  * 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.
3817
3887
  *
@@ -3821,7 +3891,7 @@ export default class Client extends OpenApi {
3821
3891
  */
3822
3892
  describeVpcFirewallListWithOptions(request: DescribeVpcFirewallListRequest, runtime: $Util.RuntimeOptions): Promise<DescribeVpcFirewallListResponse>;
3823
3893
  /**
3824
- * You can call the DescribeVpcFirewallList operation to query the details about VPC firewalls by page. Each VPC firewall controls traffic between two VPCs that are connected by using an Express Connect circuit.
3894
+ * You can call the DescribeVpcFirewallList operation to query the details about VPC firewalls by page. Each VPC firewall protects traffic between two VPCs that are connected by using an Express Connect circuit.
3825
3895
  * ## Limits
3826
3896
  * 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.
3827
3897
  *
package/dist/client.js CHANGED
@@ -298,6 +298,7 @@ class CreateVpcFirewallCenConfigureRequest extends $tea.Model {
298
298
  lang: 'Lang',
299
299
  memberUid: 'MemberUid',
300
300
  networkInstanceId: 'NetworkInstanceId',
301
+ vSwitchId: 'VSwitchId',
301
302
  vpcFirewallName: 'VpcFirewallName',
302
303
  vpcRegion: 'VpcRegion',
303
304
  };
@@ -309,6 +310,7 @@ class CreateVpcFirewallCenConfigureRequest extends $tea.Model {
309
310
  lang: 'string',
310
311
  memberUid: 'string',
311
312
  networkInstanceId: 'string',
313
+ vSwitchId: 'string',
312
314
  vpcFirewallName: 'string',
313
315
  vpcRegion: 'string',
314
316
  };
@@ -353,6 +355,78 @@ class CreateVpcFirewallCenConfigureResponse extends $tea.Model {
353
355
  }
354
356
  }
355
357
  exports.CreateVpcFirewallCenConfigureResponse = CreateVpcFirewallCenConfigureResponse;
358
+ class CreateVpcFirewallConfigureRequest extends $tea.Model {
359
+ constructor(map) {
360
+ super(map);
361
+ }
362
+ static names() {
363
+ return {
364
+ firewallSwitch: 'FirewallSwitch',
365
+ lang: 'Lang',
366
+ localVpcCidrTableList: 'LocalVpcCidrTableList',
367
+ localVpcId: 'LocalVpcId',
368
+ localVpcRegion: 'LocalVpcRegion',
369
+ memberUid: 'MemberUid',
370
+ peerVpcCidrTableList: 'PeerVpcCidrTableList',
371
+ peerVpcId: 'PeerVpcId',
372
+ peerVpcRegion: 'PeerVpcRegion',
373
+ vpcFirewallName: 'VpcFirewallName',
374
+ };
375
+ }
376
+ static types() {
377
+ return {
378
+ firewallSwitch: 'string',
379
+ lang: 'string',
380
+ localVpcCidrTableList: 'string',
381
+ localVpcId: 'string',
382
+ localVpcRegion: 'string',
383
+ memberUid: 'string',
384
+ peerVpcCidrTableList: 'string',
385
+ peerVpcId: 'string',
386
+ peerVpcRegion: 'string',
387
+ vpcFirewallName: 'string',
388
+ };
389
+ }
390
+ }
391
+ exports.CreateVpcFirewallConfigureRequest = CreateVpcFirewallConfigureRequest;
392
+ class CreateVpcFirewallConfigureResponseBody extends $tea.Model {
393
+ constructor(map) {
394
+ super(map);
395
+ }
396
+ static names() {
397
+ return {
398
+ requestId: 'RequestId',
399
+ vpcFirewallId: 'VpcFirewallId',
400
+ };
401
+ }
402
+ static types() {
403
+ return {
404
+ requestId: 'string',
405
+ vpcFirewallId: 'string',
406
+ };
407
+ }
408
+ }
409
+ exports.CreateVpcFirewallConfigureResponseBody = CreateVpcFirewallConfigureResponseBody;
410
+ class CreateVpcFirewallConfigureResponse extends $tea.Model {
411
+ constructor(map) {
412
+ super(map);
413
+ }
414
+ static names() {
415
+ return {
416
+ headers: 'headers',
417
+ statusCode: 'statusCode',
418
+ body: 'body',
419
+ };
420
+ }
421
+ static types() {
422
+ return {
423
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
424
+ statusCode: 'number',
425
+ body: CreateVpcFirewallConfigureResponseBody,
426
+ };
427
+ }
428
+ }
429
+ exports.CreateVpcFirewallConfigureResponse = CreateVpcFirewallConfigureResponse;
356
430
  class CreateVpcFirewallControlPolicyRequest extends $tea.Model {
357
431
  constructor(map) {
358
432
  super(map);
@@ -5102,6 +5176,9 @@ class Client extends openapi_client_1.default {
5102
5176
  if (!tea_util_1.default.isUnset(request.networkInstanceId)) {
5103
5177
  query["NetworkInstanceId"] = request.networkInstanceId;
5104
5178
  }
5179
+ if (!tea_util_1.default.isUnset(request.vSwitchId)) {
5180
+ query["VSwitchId"] = request.vSwitchId;
5181
+ }
5105
5182
  if (!tea_util_1.default.isUnset(request.vpcFirewallName)) {
5106
5183
  query["VpcFirewallName"] = request.vpcFirewallName;
5107
5184
  }
@@ -5136,6 +5213,76 @@ class Client extends openapi_client_1.default {
5136
5213
  let runtime = new $Util.RuntimeOptions({});
5137
5214
  return await this.createVpcFirewallCenConfigureWithOptions(request, runtime);
5138
5215
  }
5216
+ /**
5217
+ * 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).
5218
+ * ### Limits
5219
+ * 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.
5220
+ *
5221
+ * @param request CreateVpcFirewallConfigureRequest
5222
+ * @param runtime runtime options for this request RuntimeOptions
5223
+ * @return CreateVpcFirewallConfigureResponse
5224
+ */
5225
+ async createVpcFirewallConfigureWithOptions(request, runtime) {
5226
+ tea_util_1.default.validateModel(request);
5227
+ let query = {};
5228
+ if (!tea_util_1.default.isUnset(request.firewallSwitch)) {
5229
+ query["FirewallSwitch"] = request.firewallSwitch;
5230
+ }
5231
+ if (!tea_util_1.default.isUnset(request.lang)) {
5232
+ query["Lang"] = request.lang;
5233
+ }
5234
+ if (!tea_util_1.default.isUnset(request.localVpcCidrTableList)) {
5235
+ query["LocalVpcCidrTableList"] = request.localVpcCidrTableList;
5236
+ }
5237
+ if (!tea_util_1.default.isUnset(request.localVpcId)) {
5238
+ query["LocalVpcId"] = request.localVpcId;
5239
+ }
5240
+ if (!tea_util_1.default.isUnset(request.localVpcRegion)) {
5241
+ query["LocalVpcRegion"] = request.localVpcRegion;
5242
+ }
5243
+ if (!tea_util_1.default.isUnset(request.memberUid)) {
5244
+ query["MemberUid"] = request.memberUid;
5245
+ }
5246
+ if (!tea_util_1.default.isUnset(request.peerVpcCidrTableList)) {
5247
+ query["PeerVpcCidrTableList"] = request.peerVpcCidrTableList;
5248
+ }
5249
+ if (!tea_util_1.default.isUnset(request.peerVpcId)) {
5250
+ query["PeerVpcId"] = request.peerVpcId;
5251
+ }
5252
+ if (!tea_util_1.default.isUnset(request.peerVpcRegion)) {
5253
+ query["PeerVpcRegion"] = request.peerVpcRegion;
5254
+ }
5255
+ if (!tea_util_1.default.isUnset(request.vpcFirewallName)) {
5256
+ query["VpcFirewallName"] = request.vpcFirewallName;
5257
+ }
5258
+ let req = new $OpenApi.OpenApiRequest({
5259
+ query: openapi_util_1.default.query(query),
5260
+ });
5261
+ let params = new $OpenApi.Params({
5262
+ action: "CreateVpcFirewallConfigure",
5263
+ version: "2017-12-07",
5264
+ protocol: "HTTPS",
5265
+ pathname: "/",
5266
+ method: "POST",
5267
+ authType: "AK",
5268
+ style: "RPC",
5269
+ reqBodyType: "formData",
5270
+ bodyType: "json",
5271
+ });
5272
+ return $tea.cast(await this.callApi(params, req, runtime), new CreateVpcFirewallConfigureResponse({}));
5273
+ }
5274
+ /**
5275
+ * 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).
5276
+ * ### Limits
5277
+ * 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.
5278
+ *
5279
+ * @param request CreateVpcFirewallConfigureRequest
5280
+ * @return CreateVpcFirewallConfigureResponse
5281
+ */
5282
+ async createVpcFirewallConfigure(request) {
5283
+ let runtime = new $Util.RuntimeOptions({});
5284
+ return await this.createVpcFirewallConfigureWithOptions(request, runtime);
5285
+ }
5139
5286
  /**
5140
5287
  * You can call the CreateVpcFirewallControlPolicy operation to create an access control policy in a specified policy group for a VPC firewall. Different access control policies are used when a VPC firewall is used to protect traffic between two VPCs that are connected by using a Cloud Enterprise Network (CEN) instance or an Express Connect circuit.
5141
5288
  * ## Limits
@@ -6629,7 +6776,7 @@ class Client extends openapi_client_1.default {
6629
6776
  return await this.describeVpcFirewallDetailWithOptions(request, runtime);
6630
6777
  }
6631
6778
  /**
6632
- * You can call the DescribeVpcFirewallList operation to query the details about VPC firewalls by page. Each VPC firewall controls traffic between two VPCs that are connected by using an Express Connect circuit.
6779
+ * You can call the DescribeVpcFirewallList operation to query the details about VPC firewalls by page. Each VPC firewall protects traffic between two VPCs that are connected by using an Express Connect circuit.
6633
6780
  * ## Limits
6634
6781
  * 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.
6635
6782
  *
@@ -6693,7 +6840,7 @@ class Client extends openapi_client_1.default {
6693
6840
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeVpcFirewallListResponse({}));
6694
6841
  }
6695
6842
  /**
6696
- * You can call the DescribeVpcFirewallList operation to query the details about VPC firewalls by page. Each VPC firewall controls traffic between two VPCs that are connected by using an Express Connect circuit.
6843
+ * You can call the DescribeVpcFirewallList operation to query the details about VPC firewalls by page. Each VPC firewall protects traffic between two VPCs that are connected by using an Express Connect circuit.
6697
6844
  * ## Limits
6698
6845
  * 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.
6699
6846
  *