@alicloud/waf-openapi20211001 4.0.2 → 4.0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/waf-openapi20211001",
3
- "version": "4.0.2",
3
+ "version": "4.0.3",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -611,6 +611,10 @@ export class CreateCloudResourceRequest extends $tea.Model {
611
611
  * rg-acfm***q
612
612
  */
613
613
  resourceManagerResourceGroupId?: string;
614
+ /**
615
+ * @remarks
616
+ * The tags to add to the resource.
617
+ */
614
618
  tag?: CreateCloudResourceRequestTag[];
615
619
  static names(): { [key: string]: string } {
616
620
  return {
@@ -695,6 +699,10 @@ export class CreateCloudResourceShrinkRequest extends $tea.Model {
695
699
  * rg-acfm***q
696
700
  */
697
701
  resourceManagerResourceGroupId?: string;
702
+ /**
703
+ * @remarks
704
+ * The tags to add to the resource.
705
+ */
698
706
  tag?: CreateCloudResourceShrinkRequestTag[];
699
707
  static names(): { [key: string]: string } {
700
708
  return {
@@ -7103,10 +7111,10 @@ export class DescribeCertsRequest extends $tea.Model {
7103
7111
  * The region in which the WAF instance is deployed. Valid values:
7104
7112
  *
7105
7113
  * * **cn-hangzhou**: Chinese mainland.
7106
- * * **ap-southeast-1**: outside the Chinese mainland.
7114
+ * * **ap-southeast-1**: Outside the Chinese mainland.
7107
7115
  *
7108
7116
  * @example
7109
- * cn-hangzhou
7117
+ * ap-southeast-1
7110
7118
  */
7111
7119
  regionId?: string;
7112
7120
  /**
@@ -8883,6 +8891,7 @@ export class DescribeDefenseResourceTemplatesRequest extends $tea.Model {
8883
8891
  * 20111098
8884
8892
  */
8885
8893
  ruleId?: number;
8894
+ ruleName?: string;
8886
8895
  /**
8887
8896
  * @remarks
8888
8897
  * The type of the protection rule. Valid values:
@@ -8894,6 +8903,7 @@ export class DescribeDefenseResourceTemplatesRequest extends $tea.Model {
8894
8903
  * whitelist
8895
8904
  */
8896
8905
  ruleType?: string;
8906
+ templateName?: string;
8897
8907
  static names(): { [key: string]: string } {
8898
8908
  return {
8899
8909
  instanceId: 'InstanceId',
@@ -8902,7 +8912,9 @@ export class DescribeDefenseResourceTemplatesRequest extends $tea.Model {
8902
8912
  resourceManagerResourceGroupId: 'ResourceManagerResourceGroupId',
8903
8913
  resourceType: 'ResourceType',
8904
8914
  ruleId: 'RuleId',
8915
+ ruleName: 'RuleName',
8905
8916
  ruleType: 'RuleType',
8917
+ templateName: 'TemplateName',
8906
8918
  };
8907
8919
  }
8908
8920
 
@@ -8914,7 +8926,9 @@ export class DescribeDefenseResourceTemplatesRequest extends $tea.Model {
8914
8926
  resourceManagerResourceGroupId: 'string',
8915
8927
  resourceType: 'string',
8916
8928
  ruleId: 'number',
8929
+ ruleName: 'string',
8917
8930
  ruleType: 'string',
8931
+ templateName: 'string',
8918
8932
  };
8919
8933
  }
8920
8934
 
@@ -9039,10 +9053,6 @@ export class DescribeDefenseResourcesRequest extends $tea.Model {
9039
9053
  * rg-acfm***q
9040
9054
  */
9041
9055
  resourceManagerResourceGroupId?: string;
9042
- /**
9043
- * @remarks
9044
- * The tags of the resources that you want to query. You can specify up to 20 tags.
9045
- */
9046
9056
  tag?: DescribeDefenseResourcesRequestTag[];
9047
9057
  static names(): { [key: string]: string } {
9048
9058
  return {
@@ -9084,7 +9094,7 @@ export class DescribeDefenseResourcesResponseBody extends $tea.Model {
9084
9094
  requestId?: string;
9085
9095
  /**
9086
9096
  * @remarks
9087
- * The protected objects.
9097
+ * An array of protected objects.
9088
9098
  */
9089
9099
  resources?: DescribeDefenseResourcesResponseBodyResources[];
9090
9100
  /**
@@ -9859,6 +9869,8 @@ export class DescribeDefenseTemplatesRequest extends $tea.Model {
9859
9869
  * 12345
9860
9870
  */
9861
9871
  templateId?: number;
9872
+ templateIds?: string;
9873
+ templateName?: string;
9862
9874
  /**
9863
9875
  * @remarks
9864
9876
  * The type of the protection template. Valid values:
@@ -9882,6 +9894,8 @@ export class DescribeDefenseTemplatesRequest extends $tea.Model {
9882
9894
  resourceManagerResourceGroupId: 'ResourceManagerResourceGroupId',
9883
9895
  resourceType: 'ResourceType',
9884
9896
  templateId: 'TemplateId',
9897
+ templateIds: 'TemplateIds',
9898
+ templateName: 'TemplateName',
9885
9899
  templateType: 'TemplateType',
9886
9900
  };
9887
9901
  }
@@ -9898,6 +9912,8 @@ export class DescribeDefenseTemplatesRequest extends $tea.Model {
9898
9912
  resourceManagerResourceGroupId: 'string',
9899
9913
  resourceType: 'string',
9900
9914
  templateId: 'number',
9915
+ templateIds: 'string',
9916
+ templateName: 'string',
9901
9917
  templateType: 'string',
9902
9918
  };
9903
9919
  }
@@ -20764,7 +20780,7 @@ export class ModifyDefaultHttpsRequest extends $tea.Model {
20764
20780
  regionId?: string;
20765
20781
  /**
20766
20782
  * @remarks
20767
- * The ID of the Alibaba Cloud resource group.
20783
+ * 阿里云资源组ID
20768
20784
  *
20769
20785
  * @example
20770
20786
  * rg-acfm***q
@@ -22239,6 +22255,8 @@ export class ModifyHybridCloudClusterBypassStatusRequest extends $tea.Model {
22239
22255
  * waf_elasticity-cn-0xldbqt****
22240
22256
  */
22241
22257
  instanceId?: string;
22258
+ regionId?: string;
22259
+ resourceManagerResourceGroupId?: string;
22242
22260
  /**
22243
22261
  * @remarks
22244
22262
  * The status of manual bypass. Valid values:
@@ -22256,6 +22274,8 @@ export class ModifyHybridCloudClusterBypassStatusRequest extends $tea.Model {
22256
22274
  return {
22257
22275
  clusterResourceId: 'ClusterResourceId',
22258
22276
  instanceId: 'InstanceId',
22277
+ regionId: 'RegionId',
22278
+ resourceManagerResourceGroupId: 'ResourceManagerResourceGroupId',
22259
22279
  ruleStatus: 'RuleStatus',
22260
22280
  };
22261
22281
  }
@@ -22264,6 +22284,8 @@ export class ModifyHybridCloudClusterBypassStatusRequest extends $tea.Model {
22264
22284
  return {
22265
22285
  clusterResourceId: 'string',
22266
22286
  instanceId: 'string',
22287
+ regionId: 'string',
22288
+ resourceManagerResourceGroupId: 'string',
22267
22289
  ruleStatus: 'string',
22268
22290
  };
22269
22291
  }
@@ -23987,7 +24009,7 @@ export class SyncProductInstanceRequest extends $tea.Model {
23987
24009
  regionId?: string;
23988
24010
  /**
23989
24011
  * @remarks
23990
- * The ID of the Alibaba Cloud resource group.
24012
+ * 阿里云资源组ID
23991
24013
  *
23992
24014
  * @example
23993
24015
  * rg-acfm4co****f5qa
@@ -24638,7 +24660,21 @@ export class CreateCloudResourceRequestRedirect extends $tea.Model {
24638
24660
  }
24639
24661
 
24640
24662
  export class CreateCloudResourceRequestTag extends $tea.Model {
24663
+ /**
24664
+ * @remarks
24665
+ * The key of tag N to add to the resource. Valid values of N: 1 to 20.
24666
+ *
24667
+ * @example
24668
+ * TagKey1
24669
+ */
24641
24670
  key?: string;
24671
+ /**
24672
+ * @remarks
24673
+ * The value of tag N to add to the resource. Valid values of N: 1 to 20.
24674
+ *
24675
+ * @example
24676
+ * TagValue1
24677
+ */
24642
24678
  value?: string;
24643
24679
  static names(): { [key: string]: string } {
24644
24680
  return {
@@ -24660,7 +24696,21 @@ export class CreateCloudResourceRequestTag extends $tea.Model {
24660
24696
  }
24661
24697
 
24662
24698
  export class CreateCloudResourceShrinkRequestTag extends $tea.Model {
24699
+ /**
24700
+ * @remarks
24701
+ * The key of tag N to add to the resource. Valid values of N: 1 to 20.
24702
+ *
24703
+ * @example
24704
+ * TagKey1
24705
+ */
24663
24706
  key?: string;
24707
+ /**
24708
+ * @remarks
24709
+ * The value of tag N to add to the resource. Valid values of N: 1 to 20.
24710
+ *
24711
+ * @example
24712
+ * TagValue1
24713
+ */
24664
24714
  value?: string;
24665
24715
  static names(): { [key: string]: string } {
24666
24716
  return {
@@ -27124,7 +27174,7 @@ export class DescribeCertDetailResponseBodyCertDetail extends $tea.Model {
27124
27174
  export class DescribeCertsResponseBodyCerts extends $tea.Model {
27125
27175
  /**
27126
27176
  * @remarks
27127
- * The time when the certificate becomes valid.
27177
+ * The expiration time.
27128
27178
  *
27129
27179
  * @example
27130
27180
  * 1976256736582
@@ -27132,7 +27182,7 @@ export class DescribeCertsResponseBodyCerts extends $tea.Model {
27132
27182
  afterDate?: number;
27133
27183
  /**
27134
27184
  * @remarks
27135
- * The time when the certificate expires.
27185
+ * The effective time.
27136
27186
  *
27137
27187
  * @example
27138
27188
  * 1976256836582
@@ -27140,10 +27190,10 @@ export class DescribeCertsResponseBodyCerts extends $tea.Model {
27140
27190
  beforeDate?: number;
27141
27191
  /**
27142
27192
  * @remarks
27143
- * The globally unique ID of the certificate. The value is in the "Certificate ID-cn-hangzhou" format. For example, if the ID of the certificate is 123, the value of CertIdentifier is 123-cn-hangzhou.
27193
+ * The globally unique ID of the certificate. The value follows a "\\<Certificate ID>-ap-southeast-1" format. For example, if the ID of the certificate is 123, the value of the CertIdentifier parameter is 123-ap-southeast-1.
27144
27194
  *
27145
27195
  * @example
27146
- * 1234567-cn-hangzhou
27196
+ * 123-ap-southeast-1
27147
27197
  */
27148
27198
  certIdentifier?: string;
27149
27199
  /**
@@ -27164,7 +27214,7 @@ export class DescribeCertsResponseBodyCerts extends $tea.Model {
27164
27214
  commonName?: string;
27165
27215
  /**
27166
27216
  * @remarks
27167
- * The domain name that is added to WAF.
27217
+ * The domain that is supported by the certificate.
27168
27218
  *
27169
27219
  * @example
27170
27220
  * www.example.com
@@ -28319,17 +28369,11 @@ export class DescribeDefenseResourceTemplatesResponseBodyTemplates extends $tea.
28319
28369
 
28320
28370
  export class DescribeDefenseResourcesRequestTag extends $tea.Model {
28321
28371
  /**
28322
- * @remarks
28323
- * The key of the tag.
28324
- *
28325
28372
  * @example
28326
28373
  * Tagkey1
28327
28374
  */
28328
28375
  key?: string;
28329
28376
  /**
28330
- * @remarks
28331
- * The value of the tag.
28332
- *
28333
28377
  * @example
28334
28378
  * TagValue1
28335
28379
  */
@@ -28356,10 +28400,11 @@ export class DescribeDefenseResourcesRequestTag extends $tea.Model {
28356
28400
  export class DescribeDefenseResourcesResponseBodyResources extends $tea.Model {
28357
28401
  /**
28358
28402
  * @remarks
28359
- * The status of the tracking cookie.
28403
+ * 跟踪cookie开关状态。
28360
28404
  *
28361
- * * **0:** disabled.
28362
- * * **1:** enabled.
28405
+ * - **0**:表示关闭。
28406
+ *
28407
+ * - **1**:表示开启。
28363
28408
  *
28364
28409
  * @example
28365
28410
  * 1
@@ -28367,10 +28412,11 @@ export class DescribeDefenseResourcesResponseBodyResources extends $tea.Model {
28367
28412
  acwCookieStatus?: number;
28368
28413
  /**
28369
28414
  * @remarks
28370
- * The status of the secure attribute in the tracking cookie.
28415
+ * 跟踪cookie的secure属性状态。
28371
28416
  *
28372
- * * **0:** disabled.
28373
- * * **1:** enabled.
28417
+ * - **0**:表示关闭。
28418
+ *
28419
+ * - **1**:表示开启。
28374
28420
  *
28375
28421
  * @example
28376
28422
  * 0
@@ -28378,10 +28424,11 @@ export class DescribeDefenseResourcesResponseBodyResources extends $tea.Model {
28378
28424
  acwSecureStatus?: number;
28379
28425
  /**
28380
28426
  * @remarks
28381
- * The status of the secure attribute in the slider CAPTCHA cookie.
28427
+ * 滑块cookie的secure属性状态。
28382
28428
  *
28383
- * * **0:** disabled.
28384
- * * **1:** enabled.
28429
+ * - **0**:表示关闭。
28430
+ *
28431
+ * - **1**:表示开启。
28385
28432
  *
28386
28433
  * @example
28387
28434
  * 0
@@ -28389,7 +28436,7 @@ export class DescribeDefenseResourcesResponseBodyResources extends $tea.Model {
28389
28436
  acwV3SecureStatus?: number;
28390
28437
  /**
28391
28438
  * @remarks
28392
- * The custom XFF headers that are used to identify the originating IP addresses of clients. If the value of XffStatus is 1 and CustomHeaders is left empty, the first IP addresses in the XFF headers are used as the originating IP addresses of clients.
28439
+ * An array of custom XFF headers that are used to identify the originating IP addresses of clients. If the value of the XffStatus parameter is 1 and the CustomHeaders field is left empty, the first IP address in the XFF header is the originating IP address of the client.
28393
28440
  */
28394
28441
  customHeaders?: string[];
28395
28442
  /**
@@ -28402,12 +28449,12 @@ export class DescribeDefenseResourcesResponseBodyResources extends $tea.Model {
28402
28449
  description?: string;
28403
28450
  /**
28404
28451
  * @remarks
28405
- * The details of the protected object. Different key-value pairs indicate different attributes of the protected object.
28452
+ * The description of the protected object. Different key-value pairs in a map indicate different properties of the protected object.
28406
28453
  */
28407
28454
  detail?: { [key: string]: any };
28408
28455
  /**
28409
28456
  * @remarks
28410
- * The time when the protected object was created. Unit: milliseconds.
28457
+ * The creation time of the protected object. Unit: seconds.
28411
28458
  *
28412
28459
  * @example
28413
28460
  * 1652149203187
@@ -28415,7 +28462,7 @@ export class DescribeDefenseResourcesResponseBodyResources extends $tea.Model {
28415
28462
  gmtCreate?: number;
28416
28463
  /**
28417
28464
  * @remarks
28418
- * The time when the protected object was modified. Unit: milliseconds.
28465
+ * The most recent modification time of the protected object. Unit: seconds.
28419
28466
  *
28420
28467
  * @example
28421
28468
  * 1665633032000
@@ -28423,7 +28470,7 @@ export class DescribeDefenseResourcesResponseBodyResources extends $tea.Model {
28423
28470
  gmtModified?: number;
28424
28471
  /**
28425
28472
  * @remarks
28426
- * The ID of the Alibaba Cloud account to which the resource belongs.
28473
+ * 多账号统一管理场景中防护对象资产归属账号。
28427
28474
  *
28428
28475
  * @example
28429
28476
  * 135*********46
@@ -28431,7 +28478,7 @@ export class DescribeDefenseResourcesResponseBodyResources extends $tea.Model {
28431
28478
  ownerUserId?: string;
28432
28479
  /**
28433
28480
  * @remarks
28434
- * The pattern in which the protected object is protected.
28481
+ * The protection pattern.
28435
28482
  *
28436
28483
  * @example
28437
28484
  * domain
@@ -28463,7 +28510,7 @@ export class DescribeDefenseResourcesResponseBodyResources extends $tea.Model {
28463
28510
  resourceGroup?: string;
28464
28511
  /**
28465
28512
  * @remarks
28466
- * The ID of the Alibaba Cloud resource group.
28513
+ * The ID of the resource group.
28467
28514
  *
28468
28515
  * @example
28469
28516
  * rg-acfm***q
@@ -28479,7 +28526,7 @@ export class DescribeDefenseResourcesResponseBodyResources extends $tea.Model {
28479
28526
  resourceOrigin?: string;
28480
28527
  /**
28481
28528
  * @remarks
28482
- * Indicates whether the X-Forwarded-For (XFF) proxy is enabled.
28529
+ * Indicates whether the X-Forwarded-For (XFF) header is used.
28483
28530
  *
28484
28531
  * @example
28485
28532
  * 1
@@ -38908,10 +38955,18 @@ export default class Client extends OpenApi {
38908
38955
  query["RuleId"] = request.ruleId;
38909
38956
  }
38910
38957
 
38958
+ if (!Util.isUnset(request.ruleName)) {
38959
+ query["RuleName"] = request.ruleName;
38960
+ }
38961
+
38911
38962
  if (!Util.isUnset(request.ruleType)) {
38912
38963
  query["RuleType"] = request.ruleType;
38913
38964
  }
38914
38965
 
38966
+ if (!Util.isUnset(request.templateName)) {
38967
+ query["TemplateName"] = request.templateName;
38968
+ }
38969
+
38915
38970
  let req = new $OpenApi.OpenApiRequest({
38916
38971
  query: OpenApiUtil.query(query),
38917
38972
  });
@@ -39304,6 +39359,14 @@ export default class Client extends OpenApi {
39304
39359
  query["TemplateId"] = request.templateId;
39305
39360
  }
39306
39361
 
39362
+ if (!Util.isUnset(request.templateIds)) {
39363
+ query["TemplateIds"] = request.templateIds;
39364
+ }
39365
+
39366
+ if (!Util.isUnset(request.templateName)) {
39367
+ query["TemplateName"] = request.templateName;
39368
+ }
39369
+
39307
39370
  if (!Util.isUnset(request.templateType)) {
39308
39371
  query["TemplateType"] = request.templateType;
39309
39372
  }
@@ -43731,7 +43794,7 @@ export default class Client extends OpenApi {
43731
43794
  }
43732
43795
 
43733
43796
  /**
43734
- * Modifies the default SSL and Transport Layer Security (TLS) settings.
43797
+ * Modifies the default Secure Sockets Layer (SSL) and Transport Layer Security (TLS) settings.
43735
43798
  *
43736
43799
  * @param request - ModifyDefaultHttpsRequest
43737
43800
  * @param runtime - runtime options for this request RuntimeOptions
@@ -43790,7 +43853,7 @@ export default class Client extends OpenApi {
43790
43853
  }
43791
43854
 
43792
43855
  /**
43793
- * Modifies the default SSL and Transport Layer Security (TLS) settings.
43856
+ * Modifies the default Secure Sockets Layer (SSL) and Transport Layer Security (TLS) settings.
43794
43857
  *
43795
43858
  * @param request - ModifyDefaultHttpsRequest
43796
43859
  * @returns ModifyDefaultHttpsResponse
@@ -44388,6 +44451,14 @@ export default class Client extends OpenApi {
44388
44451
  query["InstanceId"] = request.instanceId;
44389
44452
  }
44390
44453
 
44454
+ if (!Util.isUnset(request.regionId)) {
44455
+ query["RegionId"] = request.regionId;
44456
+ }
44457
+
44458
+ if (!Util.isUnset(request.resourceManagerResourceGroupId)) {
44459
+ query["ResourceManagerResourceGroupId"] = request.resourceManagerResourceGroupId;
44460
+ }
44461
+
44391
44462
  if (!Util.isUnset(request.ruleStatus)) {
44392
44463
  query["RuleStatus"] = request.ruleStatus;
44393
44464
  }
@@ -45161,7 +45232,7 @@ export default class Client extends OpenApi {
45161
45232
  }
45162
45233
 
45163
45234
  /**
45164
- * Synchronizes Elastic Compute Service (ECS) instances and Classic Load Balancer (CLB) instances to Web Application Firewall (WAF).
45235
+ * Synchronizes Elastic Compute Service (ECS) instances and Classic Load Balancer (CLB) instances with Web Application Firewall (WAF).
45165
45236
  *
45166
45237
  * @remarks
45167
45238
  * SyncProductInstance is an asynchronous operation. You can call the [DescribeProductInstances](https://help.aliyun.com/document_detail/2743168.html) operation to query the status of the task.
@@ -45203,7 +45274,7 @@ export default class Client extends OpenApi {
45203
45274
  }
45204
45275
 
45205
45276
  /**
45206
- * Synchronizes Elastic Compute Service (ECS) instances and Classic Load Balancer (CLB) instances to Web Application Firewall (WAF).
45277
+ * Synchronizes Elastic Compute Service (ECS) instances and Classic Load Balancer (CLB) instances with Web Application Firewall (WAF).
45207
45278
  *
45208
45279
  * @remarks
45209
45280
  * SyncProductInstance is an asynchronous operation. You can call the [DescribeProductInstances](https://help.aliyun.com/document_detail/2743168.html) operation to query the status of the task.