tencentcloud-sdk-nodejs-intl-en 3.0.1458 → 3.0.1459
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,2 +1,2 @@
|
|
|
1
|
-
const sdkVersion = "3.0.
|
|
1
|
+
const sdkVersion = "3.0.1459";
|
|
2
2
|
module.exports = sdkVersion
|
|
@@ -4491,7 +4491,7 @@ class AddInstancesResponse extends AbstractModel {
|
|
|
4491
4491
|
this.TranId = null;
|
|
4492
4492
|
|
|
4493
4493
|
/**
|
|
4494
|
-
* <p>Order number of the payment. Description: We recommend you use the <a href="https://www.tencentcloud.com/document/product/1003/52131?from_cn_redirect=1">DescribeResourcesByDealName</a> API to query
|
|
4494
|
+
* <p>Order number of the payment. Description: We recommend you use the <a href="https://www.tencentcloud.com/document/product/1003/52131?from_cn_redirect=1">DescribeResourcesByDealName</a> API to query the instances associated with the order.</p>
|
|
4495
4495
|
* @type {Array.<string> || null}
|
|
4496
4496
|
*/
|
|
4497
4497
|
this.DealNames = null;
|
|
@@ -5484,7 +5484,7 @@ class OpenReadOnlyInstanceExclusiveAccessRequest extends AbstractModel {
|
|
|
5484
5484
|
super();
|
|
5485
5485
|
|
|
5486
5486
|
/**
|
|
5487
|
-
* Please use [
|
|
5487
|
+
* Please use [Cluster information description](https://www.tencentcloud.com/document/api/1003/48086?from_cn_redirect=1) to get the clusterId.
|
|
5488
5488
|
* @type {string || null}
|
|
5489
5489
|
*/
|
|
5490
5490
|
this.ClusterId = null;
|
|
@@ -5496,13 +5496,13 @@ class OpenReadOnlyInstanceExclusiveAccessRequest extends AbstractModel {
|
|
|
5496
5496
|
this.InstanceId = null;
|
|
5497
5497
|
|
|
5498
5498
|
/**
|
|
5499
|
-
*
|
|
5499
|
+
* Designated vpc ID. Please use [query the vpc list](https://www.tencentcloud.com/document/api/215/15778?from_cn_redirect=1) to get the vpc ID.
|
|
5500
5500
|
* @type {string || null}
|
|
5501
5501
|
*/
|
|
5502
5502
|
this.VpcId = null;
|
|
5503
5503
|
|
|
5504
5504
|
/**
|
|
5505
|
-
* Designated subnet ID. If vpc ID is set up, SubnetId is required. Please use
|
|
5505
|
+
* Designated subnet ID. If vpc ID is set up, SubnetId is required. Please use query subnet list (https://www.tencentcloud.com/document/api/215/15784?from_cn_redirect=1) to get SubnetId.
|
|
5506
5506
|
* @type {string || null}
|
|
5507
5507
|
*/
|
|
5508
5508
|
this.SubnetId = null;
|
|
@@ -8692,7 +8692,7 @@ class DisassociateSecurityGroupsRequest extends AbstractModel {
|
|
|
8692
8692
|
|
|
8693
8693
|
/**
|
|
8694
8694
|
* Array of instance group IDs, starting with the cynosdbmysql-grp- prefix or cluster ID.
|
|
8695
|
-
Description: To get the instance group ID of a cluster, perform [Query
|
|
8695
|
+
Description: To get the instance group ID of a cluster, perform [Query cluster instance group](https://www.tencentcloud.com/document/product/1003/103934?from_cn_redirect=1).
|
|
8696
8696
|
* @type {Array.<string> || null}
|
|
8697
8697
|
*/
|
|
8698
8698
|
this.InstanceIds = null;
|
|
@@ -9758,7 +9758,7 @@ class ModifyProxyRwSplitRequest extends AbstractModel {
|
|
|
9758
9758
|
this.ConsistencyType = null;
|
|
9759
9759
|
|
|
9760
9760
|
/**
|
|
9761
|
-
* <p>Consistency timeout
|
|
9761
|
+
* <p>Consistency timeout. Value range: 0–1000000 (ms). If set to 0, requests will wait indefinitely when a read-only instance has a delay that causes the consistency policy to fail.</p>
|
|
9762
9762
|
* @type {string || null}
|
|
9763
9763
|
*/
|
|
9764
9764
|
this.ConsistencyTimeOut = null;
|
|
@@ -10759,8 +10759,8 @@ class AssociateSecurityGroupsRequest extends AbstractModel {
|
|
|
10759
10759
|
super();
|
|
10760
10760
|
|
|
10761
10761
|
/**
|
|
10762
|
-
* Array of instance group IDs, starting with the cynosdbmysql-grp- prefix or
|
|
10763
|
-
Description: To get the instance group ID of a cluster,
|
|
10762
|
+
* Array of instance group IDs, starting with the cynosdbmysql-grp- prefix or cluster ID.
|
|
10763
|
+
Description: To get the instance group ID of a cluster, call [Query cluster instance group](https://www.tencentcloud.com/document/product/1003/103934?from_cn_redirect=1).
|
|
10764
10764
|
* @type {Array.<string> || null}
|
|
10765
10765
|
*/
|
|
10766
10766
|
this.InstanceIds = null;
|
|
@@ -2595,7 +2595,7 @@ Note: The output parameter's default maximum value for the number of groups is 2
|
|
|
2595
2595
|
}
|
|
2596
2596
|
|
|
2597
2597
|
/**
|
|
2598
|
-
* Output format for real-time log delivery. You can directly use the specified predefined log output format (JSON Lines / csv) through the FormatType parameter, or define a variant output format through additional parameters based on the predefined log output format. For usage details, see Custom Log Output Format
|
|
2598
|
+
* Output format for real-time log delivery. You can directly use the specified predefined log output format (JSON Lines / csv) through the FormatType parameter, or define a variant output format through additional parameters based on the predefined log output format. For usage details, see [Custom Log Output Format](https://www.tencentcloud.com/document/product/1552/110448?from_cn_redirect=1).
|
|
2599
2599
|
* @class
|
|
2600
2600
|
*/
|
|
2601
2601
|
class LogFormat extends AbstractModel {
|
|
@@ -2603,7 +2603,7 @@ class LogFormat extends AbstractModel {
|
|
|
2603
2603
|
super();
|
|
2604
2604
|
|
|
2605
2605
|
/**
|
|
2606
|
-
* <p>Log output format. Valid values:</p><ul><li
|
|
2606
|
+
* <p>Log output format. Valid values:</p><ul><li>`json`: uses the preset JSON Lines format, where the fields in each log entry are presented as key-value pairs;</li><li>`csv`: uses the preset CSV format, where each log entry presents only field values and not field names;</li><li>`template`: uses a user-defined output template, which allows you to customize the layout and concatenation of each log entry. It must be used together with the `RecordTemplate` parameter.</li></ul>
|
|
2607
2607
|
* @type {string || null}
|
|
2608
2608
|
*/
|
|
2609
2609
|
this.FormatType = null;
|
|
@@ -2621,31 +2621,31 @@ class LogFormat extends AbstractModel {
|
|
|
2621
2621
|
this.BatchSuffix = null;
|
|
2622
2622
|
|
|
2623
2623
|
/**
|
|
2624
|
-
* <p>
|
|
2624
|
+
* <p>Prefix of a single log entry. String added before each log record.</p>
|
|
2625
2625
|
* @type {string || null}
|
|
2626
2626
|
*/
|
|
2627
2627
|
this.RecordPrefix = null;
|
|
2628
2628
|
|
|
2629
2629
|
/**
|
|
2630
|
-
* <p>
|
|
2630
|
+
* <p>Suffix of a single log entry. String appended after each log record.</p>
|
|
2631
2631
|
* @type {string || null}
|
|
2632
2632
|
*/
|
|
2633
2633
|
this.RecordSuffix = null;
|
|
2634
2634
|
|
|
2635
2635
|
/**
|
|
2636
|
-
* <p>Log
|
|
2636
|
+
* <p>Log delimiter. String inserted between log records as a separator. Valid values:</p><ul><li>`\n`: line feed;</li><li>`\t`: tab;</li><li>`,`: half-width comma.</li></ul>
|
|
2637
2637
|
* @type {string || null}
|
|
2638
2638
|
*/
|
|
2639
2639
|
this.RecordDelimiter = null;
|
|
2640
2640
|
|
|
2641
2641
|
/**
|
|
2642
|
-
* <p>Log template
|
|
2642
|
+
* <p>Log template. Output template of a single log entry, with a length limit of 4 KB. It takes effect only when `FormatType` = `template`. It allows you to customize the layout and concatenation of the configured delivery fields according to the template.</p>
|
|
2643
2643
|
* @type {string || null}
|
|
2644
2644
|
*/
|
|
2645
2645
|
this.RecordTemplate = null;
|
|
2646
2646
|
|
|
2647
2647
|
/**
|
|
2648
|
-
* <p>Field
|
|
2648
|
+
* <p>Field delimiter. String inserted between fields within a single log record as a separator. It takes effect only when `FormatType` = `csv`. Valid values:</p><ul><li>`\t`: tab;</li><li>`,`: half-width comma;</li><li>`;`: half-width semicolon.</li></ul>
|
|
2649
2649
|
* @type {string || null}
|
|
2650
2650
|
*/
|
|
2651
2651
|
this.FieldDelimiter = null;
|
|
@@ -3169,13 +3169,13 @@ class CreateRealtimeLogDeliveryTaskRequest extends AbstractModel {
|
|
|
3169
3169
|
this.ZoneId = null;
|
|
3170
3170
|
|
|
3171
3171
|
/**
|
|
3172
|
-
* <p>Data
|
|
3172
|
+
* <p>Data delivery area. Valid values:</p><ul><li>`mainland`: Chinese mainland;</li><li>`overseas`: Global (excluding the Chinese mainland).</li></ul>
|
|
3173
3173
|
* @type {string || null}
|
|
3174
3174
|
*/
|
|
3175
3175
|
this.Area = null;
|
|
3176
3176
|
|
|
3177
3177
|
/**
|
|
3178
|
-
* <p>Data delivery type.
|
|
3178
|
+
* <p>Data delivery type. Valid values:</p><ul><li>`l7-access-logs`: Layer 7 access logs;</li><li>`application`: Layer 4 proxy logs;</li><li>`function`: Edge Function execution logs;</li><li>`web-attack`: managed rule logs.</li></ul><p>The following log types have been merged into `l7-access-logs`, and no new tasks can be added for them:</p><ul><li>`domain`: site acceleration logs;</li><li>`web-rateLiming`: rate limiting and CC attack defense logs;</li><li>`web-rule`: custom rule logs;</li><li>`web-bot`: Bot management logs.</li></ul>
|
|
3179
3179
|
* @type {string || null}
|
|
3180
3180
|
*/
|
|
3181
3181
|
this.LogType = null;
|
|
@@ -3187,71 +3187,77 @@ class CreateRealtimeLogDeliveryTaskRequest extends AbstractModel {
|
|
|
3187
3187
|
this.TaskName = null;
|
|
3188
3188
|
|
|
3189
3189
|
/**
|
|
3190
|
-
* <p>Type of
|
|
3190
|
+
* <p>Type of the real-time log delivery task. Valid values:</p><ul><li>`cls`: deliver to Tencent Cloud CLS;</li><li>`custom_endpoint`: deliver to a custom HTTP(S) endpoint;</li><li>`s3`: deliver to an S3-compatible (SigV4 authentication algorithm compatible) object storage endpoint. This task type is not supported when `LogType` = `web-attack`;</li><li>`aws_s3`: deliver to an AWS S3 bucket. It uses IAM role authorization, requires no long-term key, and applies only to AWS native S3;</li><li>`log_analysis`: deliver to EdgeOne Log Analysis. This is supported only when `LogType` = `l7-access-logs` or `web-attack`.</li></ul>
|
|
3191
3191
|
* @type {string || null}
|
|
3192
3192
|
*/
|
|
3193
3193
|
this.TaskType = null;
|
|
3194
3194
|
|
|
3195
3195
|
/**
|
|
3196
|
-
* <p>List of entities
|
|
3196
|
+
* <p>List of entities that the real-time log delivery task applies to. Examples:</p><ul><li>Layer 7 domain name: `domain.example.com`</li><li>Layer 4 proxy instance: `sid-2s69eb5wcms7`</li><li>Edge Function instance: `test-zone-2mxigizoh9l9-1257626257`</li></ul>For valid values, see <a href="https://www.tencentcloud.com/document/product/1145/59024">DescribeL4Proxy</a>.
|
|
3197
3197
|
* @type {Array.<string> || null}
|
|
3198
3198
|
*/
|
|
3199
3199
|
this.EntityList = null;
|
|
3200
3200
|
|
|
3201
3201
|
/**
|
|
3202
|
-
* <p>
|
|
3202
|
+
* <p>List of preset fields to deliver. For valid values, see:</p><ul><li><a href="https://www.tencentcloud.com/document/product/1145/61300">Layer 7 access logs (site acceleration logs)</a></li><li><a href="https://www.tencentcloud.com/document/product/1145/61301">Layer 4 proxy logs</a></li><li><a href="https://www.tencentcloud.com/document/product/1145/67840">Edge Function execution logs</a></li></ul>For valid values, see also `DescribeLogFields`.
|
|
3203
3203
|
* @type {Array.<string> || null}
|
|
3204
3204
|
*/
|
|
3205
3205
|
this.Fields = null;
|
|
3206
3206
|
|
|
3207
3207
|
/**
|
|
3208
|
-
* <p>
|
|
3208
|
+
* <p>List of custom fields to deliver. You can extract specified content from HTTP request headers, response headers, cookies, and request bodies.</p><p>Custom field names must be unique. Custom fields can be added only for Layer 7 access logs (`LogType` = `l7-access-logs` or `domain`).</p><p>The number of custom fields you can configure is subject to a quota. If the quota is insufficient, <a href="https://www.tencentcloud.com/contact-us">contact us</a>.</p>
|
|
3209
3209
|
* @type {Array.<CustomField> || null}
|
|
3210
3210
|
*/
|
|
3211
3211
|
this.CustomFields = null;
|
|
3212
3212
|
|
|
3213
3213
|
/**
|
|
3214
|
-
* <p>
|
|
3214
|
+
* <p>List of custom expression fields to deliver. By defining the field name and value expression for log delivery, you can deliver personalized real-time log content. For details, see <a href="https://www.tencentcloud.com/document/product/1145/61302">Custom Log Field Expressions</a>.</p><p>Custom fields can be added only for Layer 7 access logs (`LogType` = `l7-access-logs` or `domain`).</p><p>The number of custom fields you can configure is subject to a quota. If the quota is insufficient, <a href="https://www.tencentcloud.com/contact-us">contact us</a>.</p><p><strong>Note</strong>: If a field in `CustomExpressionFields` has the same name as a field in `Fields` or `CustomFields`, the value in `CustomExpressionFields` takes precedence.</p>
|
|
3215
3215
|
* @type {Array.<CustomExpressionField> || null}
|
|
3216
3216
|
*/
|
|
3217
3217
|
this.CustomExpressionFields = null;
|
|
3218
3218
|
|
|
3219
3219
|
/**
|
|
3220
|
-
* <p>Filter
|
|
3220
|
+
* <p>Filter conditions for log delivery. If left empty, all logs are delivered.</p>
|
|
3221
3221
|
* @type {Array.<DeliveryCondition> || null}
|
|
3222
3222
|
*/
|
|
3223
3223
|
this.DeliveryConditions = null;
|
|
3224
3224
|
|
|
3225
3225
|
/**
|
|
3226
|
-
* <p>Sampling ratio in
|
|
3226
|
+
* <p>Sampling ratio, in per mille. Value range: 1-1000. For example, 605 means a sampling ratio of 60.5%. If left empty, the sampling ratio is 100%.</p>
|
|
3227
3227
|
* @type {number || null}
|
|
3228
3228
|
*/
|
|
3229
3229
|
this.Sample = null;
|
|
3230
3230
|
|
|
3231
3231
|
/**
|
|
3232
|
-
* <p>Output format for log delivery. For usage details, see <a href="https://www.tencentcloud.com/document/product/
|
|
3232
|
+
* <p>Output format for log delivery. For usage details, see <a href="https://www.tencentcloud.com/document/product/1145/64485">Custom Log Output Format</a>. If left blank, the default format applies. The default format logic is as follows:</p><ul><li>When `TaskType` is `custom_endpoint`, the default format is an array of JSON objects, each JSON object represents a log entry;</li><li>When `TaskType` is `s3` or `aws_s3`, the default format is JSON Lines;</li></ul><p>Particularly, when `TaskType` is `cls` or `log_analysis`, the only allowed value for `LogFormat.FormatType` is `json`, and other parameters in `LogFormat` will be ignored. It is recommended not to transfer `LogFormat`.</p>
|
|
3233
3233
|
* @type {LogFormat || null}
|
|
3234
3234
|
*/
|
|
3235
3235
|
this.LogFormat = null;
|
|
3236
3236
|
|
|
3237
3237
|
/**
|
|
3238
|
-
* <p>
|
|
3238
|
+
* <p>CLS configuration. This parameter is required when `TaskType` is `cls`.</p>
|
|
3239
3239
|
* @type {CLSTopic || null}
|
|
3240
3240
|
*/
|
|
3241
3241
|
this.CLS = null;
|
|
3242
3242
|
|
|
3243
3243
|
/**
|
|
3244
|
-
* <p>Configuration
|
|
3244
|
+
* <p>Configuration of the custom HTTP service. This parameter is required when `TaskType` is `custom_endpoint`.</p>
|
|
3245
3245
|
* @type {CustomEndpoint || null}
|
|
3246
3246
|
*/
|
|
3247
3247
|
this.CustomEndpoint = null;
|
|
3248
3248
|
|
|
3249
3249
|
/**
|
|
3250
|
-
* <p>Configuration
|
|
3250
|
+
* <p>Configuration of the S3-compatible (SigV4 authentication algorithm compatible) object storage. This parameter is required when `TaskType` is `s3`.</p>
|
|
3251
3251
|
* @type {S3 || null}
|
|
3252
3252
|
*/
|
|
3253
3253
|
this.S3 = null;
|
|
3254
3254
|
|
|
3255
|
+
/**
|
|
3256
|
+
* <p>Configuration of the AWS S3 object storage. It uses IAM role authorization, requires no long-term key, and applies only to AWS native S3. This parameter is required when `TaskType` is `aws_s3`.</p>
|
|
3257
|
+
* @type {AWSS3 || null}
|
|
3258
|
+
*/
|
|
3259
|
+
this.AWSS3 = null;
|
|
3260
|
+
|
|
3255
3261
|
}
|
|
3256
3262
|
|
|
3257
3263
|
/**
|
|
@@ -3321,6 +3327,12 @@ class CreateRealtimeLogDeliveryTaskRequest extends AbstractModel {
|
|
|
3321
3327
|
this.S3 = obj;
|
|
3322
3328
|
}
|
|
3323
3329
|
|
|
3330
|
+
if (params.AWSS3) {
|
|
3331
|
+
let obj = new AWSS3();
|
|
3332
|
+
obj.deserialize(params.AWSS3)
|
|
3333
|
+
this.AWSS3 = obj;
|
|
3334
|
+
}
|
|
3335
|
+
|
|
3324
3336
|
}
|
|
3325
3337
|
}
|
|
3326
3338
|
|
|
@@ -4012,7 +4024,7 @@ class InferenceScheduledScalingAction extends AbstractModel {
|
|
|
4012
4024
|
}
|
|
4013
4025
|
|
|
4014
4026
|
/**
|
|
4015
|
-
*
|
|
4027
|
+
* Configuration information of real-time log delivery to Tencent Cloud CLS.
|
|
4016
4028
|
* @class
|
|
4017
4029
|
*/
|
|
4018
4030
|
class CLSTopic extends AbstractModel {
|
|
@@ -4020,19 +4032,19 @@ class CLSTopic extends AbstractModel {
|
|
|
4020
4032
|
super();
|
|
4021
4033
|
|
|
4022
4034
|
/**
|
|
4023
|
-
*
|
|
4035
|
+
* Tencent Cloud CLS log set ID.
|
|
4024
4036
|
* @type {string || null}
|
|
4025
4037
|
*/
|
|
4026
4038
|
this.LogSetId = null;
|
|
4027
4039
|
|
|
4028
4040
|
/**
|
|
4029
|
-
*
|
|
4041
|
+
* Tencent Cloud CLS log topic ID.
|
|
4030
4042
|
* @type {string || null}
|
|
4031
4043
|
*/
|
|
4032
4044
|
this.TopicId = null;
|
|
4033
4045
|
|
|
4034
4046
|
/**
|
|
4035
|
-
*
|
|
4047
|
+
* Region of the Tencent Cloud CLS log set.
|
|
4036
4048
|
* @type {string || null}
|
|
4037
4049
|
*/
|
|
4038
4050
|
this.LogSetRegion = null;
|
|
@@ -6719,7 +6731,7 @@ class CreateL7AccRulesRequest extends AbstractModel {
|
|
|
6719
6731
|
}
|
|
6720
6732
|
|
|
6721
6733
|
/**
|
|
6722
|
-
* Real-time log delivery task
|
|
6734
|
+
* Real-time log delivery task.
|
|
6723
6735
|
* @class
|
|
6724
6736
|
*/
|
|
6725
6737
|
class RealtimeLogDeliveryTask extends AbstractModel {
|
|
@@ -6727,109 +6739,115 @@ class RealtimeLogDeliveryTask extends AbstractModel {
|
|
|
6727
6739
|
super();
|
|
6728
6740
|
|
|
6729
6741
|
/**
|
|
6730
|
-
*
|
|
6742
|
+
* <p>Real-time log delivery task ID.</p>
|
|
6731
6743
|
* @type {string || null}
|
|
6732
6744
|
*/
|
|
6733
6745
|
this.TaskId = null;
|
|
6734
6746
|
|
|
6735
6747
|
/**
|
|
6736
|
-
* Name of
|
|
6748
|
+
* <p>Name of the real-time log delivery task.</p>
|
|
6737
6749
|
* @type {string || null}
|
|
6738
6750
|
*/
|
|
6739
6751
|
this.TaskName = null;
|
|
6740
6752
|
|
|
6741
6753
|
/**
|
|
6742
|
-
* Status of a real-time log shipping task. Valid values: <li>enabled: enabled;</li><li>disabled: disabled;</li><li>deleted: deleted abnormally. Check whether the destination log set/log topic of Tencent Cloud CLS has been deleted.</li>
|
|
6754
|
+
* <p>Status of a real-time log shipping task. Valid values: <li>enabled: enabled;</li><li>disabled: disabled;</li><li>deleted: deleted abnormally. Check whether the destination log set/log topic of Tencent Cloud CLS has been deleted.</li></p>
|
|
6743
6755
|
* @type {string || null}
|
|
6744
6756
|
*/
|
|
6745
6757
|
this.DeliveryStatus = null;
|
|
6746
6758
|
|
|
6747
6759
|
/**
|
|
6748
|
-
* Type of a real-time log shipping task.
|
|
6760
|
+
* <p>Type of a real-time log shipping task. Valid values: <ul><li>cls: push to Tencent Cloud CLS;</li> <li>custom_endpoint: push to a custom HTTP(S) address;</li> <li>s3: push to an S3-compatible (compatible with the SigV4 authentication algorithm) object storage address;</li><li>aws_s3: push to an AWS S3 bucket address;</li><li>log_analysis: push to EdgeOne log analytics.</li></ul></p>
|
|
6749
6761
|
* @type {string || null}
|
|
6750
6762
|
*/
|
|
6751
6763
|
this.TaskType = null;
|
|
6752
6764
|
|
|
6753
6765
|
/**
|
|
6754
|
-
* List of entities
|
|
6766
|
+
* <p>List of entities corresponding to the real-time log delivery task (Layer 7 domain or L4 proxy instance). Example values: <li>Layer 7 domain: domain.example.com;</li> <li>L4 proxy instance: sid-2s69eb5wcms7.</li></p>
|
|
6755
6767
|
* @type {Array.<string> || null}
|
|
6756
6768
|
*/
|
|
6757
6769
|
this.EntityList = null;
|
|
6758
6770
|
|
|
6759
6771
|
/**
|
|
6760
|
-
* Data
|
|
6772
|
+
* <p>Data delivery type. Valid values: <li>l7-access-logs: L7 access log</li><li>application: four-layer proxy logs</li> <li>function: edge function logs</li> <li>web-attack: managed rule log</li> <li>domain: site acceleration log</li> <li>web-rateLiming: rate limit and CC attack defense log</li><li>web-rule: custom rule log</li> <li>web-bot: Bot Management Log.</li></p>
|
|
6761
6773
|
* @type {string || null}
|
|
6762
6774
|
*/
|
|
6763
6775
|
this.LogType = null;
|
|
6764
6776
|
|
|
6765
6777
|
/**
|
|
6766
|
-
* Data shipping area. Valid values:<li>mainland: within the Chinese mainland;</li><li>overseas: global (excluding the Chinese mainland).</li>
|
|
6778
|
+
* <p>Data shipping area. Valid values:<li>mainland: within the Chinese mainland;</li><li>overseas: global (excluding the Chinese mainland).</li></p>
|
|
6767
6779
|
* @type {string || null}
|
|
6768
6780
|
*/
|
|
6769
6781
|
this.Area = null;
|
|
6770
6782
|
|
|
6771
6783
|
/**
|
|
6772
|
-
* List of predefined fields for
|
|
6784
|
+
* <p>List of predefined fields for delivery.</p>
|
|
6773
6785
|
* @type {Array.<string> || null}
|
|
6774
6786
|
*/
|
|
6775
6787
|
this.Fields = null;
|
|
6776
6788
|
|
|
6777
6789
|
/**
|
|
6778
|
-
*
|
|
6790
|
+
* <p>Custom fields for delivery.</p>
|
|
6779
6791
|
* @type {Array.<CustomField> || null}
|
|
6780
6792
|
*/
|
|
6781
6793
|
this.CustomFields = null;
|
|
6782
6794
|
|
|
6783
6795
|
/**
|
|
6784
|
-
*
|
|
6796
|
+
* <p>List of custom expression fields for shipping.</p>
|
|
6797
|
+
* @type {Array.<CustomExpressionField> || null}
|
|
6798
|
+
*/
|
|
6799
|
+
this.CustomExpressionFields = null;
|
|
6800
|
+
|
|
6801
|
+
/**
|
|
6802
|
+
* <p>Filter criteria of log shipping.</p>
|
|
6785
6803
|
* @type {Array.<DeliveryCondition> || null}
|
|
6786
6804
|
*/
|
|
6787
6805
|
this.DeliveryConditions = null;
|
|
6788
6806
|
|
|
6789
6807
|
/**
|
|
6790
|
-
* Sampling ratio in permille. Value range: 1-1000. For example, 605 indicates a sampling ratio of 60.5
|
|
6808
|
+
* <p>Sampling ratio in permille. Value range: 1-1000. For example, 605 indicates a sampling ratio of 60.5%.</p>
|
|
6791
6809
|
* @type {number || null}
|
|
6792
6810
|
*/
|
|
6793
6811
|
this.Sample = null;
|
|
6794
6812
|
|
|
6795
6813
|
/**
|
|
6796
|
-
* Output format for log delivery. When the output parameter is null, the default format is used, which works as follows
|
|
6797
|
-
<li>When TaskType is 'custom_endpoint', the default format is an array of JSON objects, with each JSON object representing a log entry;</li>
|
|
6798
|
-
<li>When TaskType is 's3', the default format is JSON Lines. </li>
|
|
6799
|
-
Note: This field may return 'null', which indicates a failure to obtain a valid value.
|
|
6814
|
+
* <p>Output format for log delivery. When the output parameter is null, the default format is used, which works as follows:</p><li>When TaskType is custom_endpoint, the default format is an array of JSON objects, where each JSON object represents a log entry;</li><li>When TaskType is s3, the default format is JSON Lines.</li>
|
|
6800
6815
|
* @type {LogFormat || null}
|
|
6801
6816
|
*/
|
|
6802
6817
|
this.LogFormat = null;
|
|
6803
6818
|
|
|
6804
6819
|
/**
|
|
6805
|
-
* Configuration information of the CLS
|
|
6806
|
-
Note: This field may return null, which indicates a failure to obtain a valid value.
|
|
6820
|
+
* <p>Configuration information of the CLS.</p>
|
|
6807
6821
|
* @type {CLSTopic || null}
|
|
6808
6822
|
*/
|
|
6809
6823
|
this.CLS = null;
|
|
6810
6824
|
|
|
6811
6825
|
/**
|
|
6812
|
-
* Configuration information of the custom HTTP service
|
|
6813
|
-
Note: This field may return null, which indicates a failure to obtain a valid value.
|
|
6826
|
+
* <p>Configuration information of the custom HTTP service.</p>
|
|
6814
6827
|
* @type {CustomEndpoint || null}
|
|
6815
6828
|
*/
|
|
6816
6829
|
this.CustomEndpoint = null;
|
|
6817
6830
|
|
|
6818
6831
|
/**
|
|
6819
|
-
* Configuration
|
|
6820
|
-
Note: This field may return null, which indicates a failure to obtain a valid value.
|
|
6832
|
+
* <p>Configuration message of S3-compatible (compatible with SigV4 authentication algorithm) object storage.</p>
|
|
6821
6833
|
* @type {S3 || null}
|
|
6822
6834
|
*/
|
|
6823
6835
|
this.S3 = null;
|
|
6824
6836
|
|
|
6825
6837
|
/**
|
|
6826
|
-
*
|
|
6838
|
+
* <p>Configuration information of the AWS S3 object storage. It uses IAM role authorization, eliminating the need for persistent keys, and is applicable only to AWS native S3.</p>
|
|
6839
|
+
* @type {AWSS3 || null}
|
|
6840
|
+
*/
|
|
6841
|
+
this.AWSS3 = null;
|
|
6842
|
+
|
|
6843
|
+
/**
|
|
6844
|
+
* <p>Creation time.</p>
|
|
6827
6845
|
* @type {string || null}
|
|
6828
6846
|
*/
|
|
6829
6847
|
this.CreateTime = null;
|
|
6830
6848
|
|
|
6831
6849
|
/**
|
|
6832
|
-
* Update time
|
|
6850
|
+
* <p>Update time.</p>
|
|
6833
6851
|
* @type {string || null}
|
|
6834
6852
|
*/
|
|
6835
6853
|
this.UpdateTime = null;
|
|
@@ -6861,6 +6879,15 @@ Note: This field may return null, which indicates a failure to obtain a valid va
|
|
|
6861
6879
|
}
|
|
6862
6880
|
}
|
|
6863
6881
|
|
|
6882
|
+
if (params.CustomExpressionFields) {
|
|
6883
|
+
this.CustomExpressionFields = new Array();
|
|
6884
|
+
for (let z in params.CustomExpressionFields) {
|
|
6885
|
+
let obj = new CustomExpressionField();
|
|
6886
|
+
obj.deserialize(params.CustomExpressionFields[z]);
|
|
6887
|
+
this.CustomExpressionFields.push(obj);
|
|
6888
|
+
}
|
|
6889
|
+
}
|
|
6890
|
+
|
|
6864
6891
|
if (params.DeliveryConditions) {
|
|
6865
6892
|
this.DeliveryConditions = new Array();
|
|
6866
6893
|
for (let z in params.DeliveryConditions) {
|
|
@@ -6894,6 +6921,12 @@ Note: This field may return null, which indicates a failure to obtain a valid va
|
|
|
6894
6921
|
obj.deserialize(params.S3)
|
|
6895
6922
|
this.S3 = obj;
|
|
6896
6923
|
}
|
|
6924
|
+
|
|
6925
|
+
if (params.AWSS3) {
|
|
6926
|
+
let obj = new AWSS3();
|
|
6927
|
+
obj.deserialize(params.AWSS3)
|
|
6928
|
+
this.AWSS3 = obj;
|
|
6929
|
+
}
|
|
6897
6930
|
this.CreateTime = 'CreateTime' in params ? params.CreateTime : null;
|
|
6898
6931
|
this.UpdateTime = 'UpdateTime' in params ? params.UpdateTime : null;
|
|
6899
6932
|
|
|
@@ -9132,25 +9165,25 @@ class CustomField extends AbstractModel {
|
|
|
9132
9165
|
super();
|
|
9133
9166
|
|
|
9134
9167
|
/**
|
|
9135
|
-
* Type of the custom log field, which indicates extracting data from specified positions in HTTP requests and responses.
|
|
9136
|
-
<li>ReqHeader: extract the value of a specified field from an HTTP request header;</li
|
|
9137
|
-
<li>RspHeader: extracts the value of a specified field from an HTTP response header.</li
|
|
9138
|
-
<
|
|
9139
|
-
<li>ReqBody: extract specified content from an HTTP request body using a Google RE2 regular expression.</li
|
|
9168
|
+
* Type of the custom log field, which indicates extracting data from specified positions in HTTP requests and responses. Valid values:
|
|
9169
|
+
<li>ReqHeader: extract the value of a specified field from an HTTP request header;</li>
|
|
9170
|
+
<li>RspHeader: extracts the value of a specified field from an HTTP response header.</li>
|
|
9171
|
+
<li>Cookie: extract the specified field value from a cookie;</li>
|
|
9172
|
+
<li>ReqBody: extract specified content from an HTTP request body using a Google RE2 regular expression.</li>
|
|
9140
9173
|
* @type {string || null}
|
|
9141
9174
|
*/
|
|
9142
9175
|
this.Name = null;
|
|
9143
9176
|
|
|
9144
9177
|
/**
|
|
9145
|
-
* Enter the field value definition based on the field type (Name).
|
|
9146
|
-
<li>When the field type is ReqHeader
|
|
9147
|
-
<li>When the field type is ReqBody
|
|
9178
|
+
* Enter the field value definition based on the field type (`Name`). This parameter is case-sensitive.
|
|
9179
|
+
<li>When the field type is `ReqHeader`, `RspHeader`, or `Cookie`, enter the parameter name for value extraction, such as `Accept-Language`. You can enter 1-100 characters. the name must start with a letter, contain letters, digits, or hyphens (-) in the middle, and end with a letter or digit.</li>
|
|
9180
|
+
<li>When the field type is `ReqBody`, enter the Google RE2 regular expression. The maximum length of the regular expression is 4 KB.</li>
|
|
9148
9181
|
* @type {string || null}
|
|
9149
9182
|
*/
|
|
9150
9183
|
this.Value = null;
|
|
9151
9184
|
|
|
9152
9185
|
/**
|
|
9153
|
-
* Whether to deliver this field.
|
|
9186
|
+
* Whether to deliver this field. Leave blank to skip delivery.
|
|
9154
9187
|
* @type {boolean || null}
|
|
9155
9188
|
*/
|
|
9156
9189
|
this.Enabled = null;
|
|
@@ -11945,7 +11978,7 @@ class LoadBalancer extends AbstractModel {
|
|
|
11945
11978
|
}
|
|
11946
11979
|
|
|
11947
11980
|
/**
|
|
11948
|
-
* Custom log
|
|
11981
|
+
* Custom log field in a real-time log delivery task. You can define a custom field name and configure a value expression for it. For details, see [Custom Log Field Expressions](https://www.tencentcloud.com/document/product/1145/61302).
|
|
11949
11982
|
* @class
|
|
11950
11983
|
*/
|
|
11951
11984
|
class CustomExpressionField extends AbstractModel {
|
|
@@ -11959,7 +11992,7 @@ class CustomExpressionField extends AbstractModel {
|
|
|
11959
11992
|
this.Name = null;
|
|
11960
11993
|
|
|
11961
11994
|
/**
|
|
11962
|
-
* <p>The value expression of a custom log field. The maximum length of the expression is 4KB. For syntax
|
|
11995
|
+
* <p>The value expression of a custom log field. The maximum length of the expression is 4KB. For syntax details, see <a href="https://www.tencentcloud.com/document/product/1145/61302">Custom Log Field Expression</a>.</p>
|
|
11963
11996
|
* @type {string || null}
|
|
11964
11997
|
*/
|
|
11965
11998
|
this.Expression = null;
|
|
@@ -17045,81 +17078,89 @@ class ModifyRealtimeLogDeliveryTaskRequest extends AbstractModel {
|
|
|
17045
17078
|
super();
|
|
17046
17079
|
|
|
17047
17080
|
/**
|
|
17048
|
-
*
|
|
17081
|
+
* <p>Site ID.</p>
|
|
17049
17082
|
* @type {string || null}
|
|
17050
17083
|
*/
|
|
17051
17084
|
this.ZoneId = null;
|
|
17052
17085
|
|
|
17053
17086
|
/**
|
|
17054
|
-
*
|
|
17087
|
+
* <p>ID of the real-time log delivery task.</p>
|
|
17055
17088
|
* @type {string || null}
|
|
17056
17089
|
*/
|
|
17057
17090
|
this.TaskId = null;
|
|
17058
17091
|
|
|
17059
17092
|
/**
|
|
17060
|
-
*
|
|
17093
|
+
* <p>Name of the real-time log delivery task. It can contain digits, letters, hyphens (-), and underscores (_), with a maximum of 200 characters. If left empty, the original configuration applies.</p>
|
|
17061
17094
|
* @type {string || null}
|
|
17062
17095
|
*/
|
|
17063
17096
|
this.TaskName = null;
|
|
17064
17097
|
|
|
17065
17098
|
/**
|
|
17066
|
-
*
|
|
17067
|
-
<li>enabled: Enabled;</li>
|
|
17068
|
-
<li>disabled: Disabled.</li>If this field is not filled in, the original configuration will be retained.
|
|
17099
|
+
* <p>Status of the real-time log delivery task. Valid values:</p><ul><li>`enabled`: enabled;</li><li>`disabled`: disabled.</li></ul>If left empty, the original configuration applies.
|
|
17069
17100
|
* @type {string || null}
|
|
17070
17101
|
*/
|
|
17071
17102
|
this.DeliveryStatus = null;
|
|
17072
17103
|
|
|
17073
17104
|
/**
|
|
17074
|
-
*
|
|
17075
|
-
<li>Layer 7 domain: domain.example.com;</li>
|
|
17076
|
-
<li>Layer 4 proxy instance: sid-2s69eb5wcms7.</li>If this field is not filled in, the original configuration will be retained.
|
|
17105
|
+
* <p>List of entities that the real-time log delivery task applies to (Layer 7 domain names or Layer 4 proxy instances). Examples:</p><ul><li>Layer 7 domain name: `domain.example.com`;</li><li>Layer 4 proxy instance: `sid-2s69eb5wcms7`.</li></ul>If left empty, the original configuration applies. For valid values, see <a href="https://www.tencentcloud.com/document/product/1145/59024">DescribeL4Proxy</a>.
|
|
17077
17106
|
* @type {Array.<string> || null}
|
|
17078
17107
|
*/
|
|
17079
17108
|
this.EntityList = null;
|
|
17080
17109
|
|
|
17081
17110
|
/**
|
|
17082
|
-
*
|
|
17111
|
+
* <p>List of preset fields to deliver. If left empty, the original configuration applies. For valid values, see `DescribeLogFields`.</p>
|
|
17083
17112
|
* @type {Array.<string> || null}
|
|
17084
17113
|
*/
|
|
17085
17114
|
this.Fields = null;
|
|
17086
17115
|
|
|
17087
17116
|
/**
|
|
17088
|
-
*
|
|
17117
|
+
* <p>List of custom fields to deliver. You can extract specified content from HTTP request headers, response headers, cookies, and request bodies.</p><p>Custom field names must be unique. Custom fields can be added only for Layer 7 access logs (`LogType` = `l7-access-logs` or `domain`).</p><p>The number of custom fields you can configure is subject to a quota. If the quota is insufficient, <a href="https://www.tencentcloud.com/contact-us">contact us</a>.</p>
|
|
17089
17118
|
* @type {Array.<CustomField> || null}
|
|
17090
17119
|
*/
|
|
17091
17120
|
this.CustomFields = null;
|
|
17092
17121
|
|
|
17093
17122
|
/**
|
|
17094
|
-
*
|
|
17123
|
+
* <p>List of custom expression fields to deliver. By defining the field name and value expression for log delivery, you can deliver personalized real-time log content. For details, see <a href="https://www.tencentcloud.com/document/product/1145/61302">Custom Log Field Expressions</a>.</p><p>Custom fields can be added only for Layer 7 access logs (`LogType` = `l7-access-logs` or `domain`).</p><p>The number of custom fields you can configure is subject to a quota. If the quota is insufficient, <a href="https://www.tencentcloud.com/contact-us">contact us</a>.</p><p><strong>Note</strong>: If a field in `CustomExpressionFields` has the same name as a field in `Fields` or `CustomFields`, the value in `CustomExpressionFields` takes precedence.</p>
|
|
17124
|
+
* @type {Array.<CustomExpressionField> || null}
|
|
17125
|
+
*/
|
|
17126
|
+
this.CustomExpressionFields = null;
|
|
17127
|
+
|
|
17128
|
+
/**
|
|
17129
|
+
* <p>Filter conditions for log delivery. If left empty, all logs are delivered.</p>
|
|
17095
17130
|
* @type {Array.<DeliveryCondition> || null}
|
|
17096
17131
|
*/
|
|
17097
17132
|
this.DeliveryConditions = null;
|
|
17098
17133
|
|
|
17099
17134
|
/**
|
|
17100
|
-
*
|
|
17135
|
+
* <p>Sampling ratio, in per mille. Value range: 1-1000. For example, 605 means a sampling ratio of 60.5%. If left empty, the original configuration applies.</p>
|
|
17101
17136
|
* @type {number || null}
|
|
17102
17137
|
*/
|
|
17103
17138
|
this.Sample = null;
|
|
17104
17139
|
|
|
17105
17140
|
/**
|
|
17106
|
-
* Output format for log delivery. If
|
|
17141
|
+
* <p>Output format for log delivery. For usage details, see <a href="https://www.tencentcloud.com/document/product/1145/64485">Custom Log Output Format</a>. If left blank, the default format applies. The default format logic is as follows:</p><ul><li>When `TaskType` is `custom_endpoint`, the default format is an array of JSON objects, each JSON object represents a log entry;</li><li>When `TaskType` is `s3`, the default format is JSON Lines;</li></ul><p>Particularly, when `TaskType` is `cls` or `log_analysis`, the only allowed value for `LogFormat.FormatType` is `json`, and other parameters in `LogFormat` will be ignored. It is recommended not to transfer `LogFormat`.</p>
|
|
17107
17142
|
* @type {LogFormat || null}
|
|
17108
17143
|
*/
|
|
17109
17144
|
this.LogFormat = null;
|
|
17110
17145
|
|
|
17111
17146
|
/**
|
|
17112
|
-
*
|
|
17147
|
+
* <p>Configuration of the custom HTTP service. If left empty, the original configuration applies.</p>
|
|
17113
17148
|
* @type {CustomEndpoint || null}
|
|
17114
17149
|
*/
|
|
17115
17150
|
this.CustomEndpoint = null;
|
|
17116
17151
|
|
|
17117
17152
|
/**
|
|
17118
|
-
*
|
|
17153
|
+
* <p>Configuration of the S3-compatible (SigV4 authentication algorithm compatible) object storage. If left empty, the original configuration applies.</p>
|
|
17119
17154
|
* @type {S3 || null}
|
|
17120
17155
|
*/
|
|
17121
17156
|
this.S3 = null;
|
|
17122
17157
|
|
|
17158
|
+
/**
|
|
17159
|
+
* <p>Configuration of the AWS S3 object storage. If left empty, the original configuration applies.</p>
|
|
17160
|
+
* @type {AWSS3 || null}
|
|
17161
|
+
*/
|
|
17162
|
+
this.AWSS3 = null;
|
|
17163
|
+
|
|
17123
17164
|
}
|
|
17124
17165
|
|
|
17125
17166
|
/**
|
|
@@ -17145,6 +17186,15 @@ class ModifyRealtimeLogDeliveryTaskRequest extends AbstractModel {
|
|
|
17145
17186
|
}
|
|
17146
17187
|
}
|
|
17147
17188
|
|
|
17189
|
+
if (params.CustomExpressionFields) {
|
|
17190
|
+
this.CustomExpressionFields = new Array();
|
|
17191
|
+
for (let z in params.CustomExpressionFields) {
|
|
17192
|
+
let obj = new CustomExpressionField();
|
|
17193
|
+
obj.deserialize(params.CustomExpressionFields[z]);
|
|
17194
|
+
this.CustomExpressionFields.push(obj);
|
|
17195
|
+
}
|
|
17196
|
+
}
|
|
17197
|
+
|
|
17148
17198
|
if (params.DeliveryConditions) {
|
|
17149
17199
|
this.DeliveryConditions = new Array();
|
|
17150
17200
|
for (let z in params.DeliveryConditions) {
|
|
@@ -17173,6 +17223,12 @@ class ModifyRealtimeLogDeliveryTaskRequest extends AbstractModel {
|
|
|
17173
17223
|
this.S3 = obj;
|
|
17174
17224
|
}
|
|
17175
17225
|
|
|
17226
|
+
if (params.AWSS3) {
|
|
17227
|
+
let obj = new AWSS3();
|
|
17228
|
+
obj.deserialize(params.AWSS3)
|
|
17229
|
+
this.AWSS3 = obj;
|
|
17230
|
+
}
|
|
17231
|
+
|
|
17176
17232
|
}
|
|
17177
17233
|
}
|
|
17178
17234
|
|
|
@@ -32254,7 +32310,7 @@ class AccelerateType extends AbstractModel {
|
|
|
32254
32310
|
}
|
|
32255
32311
|
|
|
32256
32312
|
/**
|
|
32257
|
-
* Real-time log delivery conditions used to define the scope of
|
|
32313
|
+
* Real-time log delivery conditions, used to define the scope of delivered logs. Multiple items in the `DeliveryCondition` array are in an "OR" relationship, and multiple items in the inner `Conditions` array are in an "AND" relationship.
|
|
32258
32314
|
* @class
|
|
32259
32315
|
*/
|
|
32260
32316
|
class DeliveryCondition extends AbstractModel {
|
|
@@ -32262,11 +32318,7 @@ class DeliveryCondition extends AbstractModel {
|
|
|
32262
32318
|
super();
|
|
32263
32319
|
|
|
32264
32320
|
/**
|
|
32265
|
-
* Log filter
|
|
32266
|
-
<li>EdgeResponseStatusCode: Filter by response status code returned from the EdgeOne node to the client.<br>?? Supported operators: equal, great, less, great_equal, less_equal<br>?? Valid values: any integer greater than or equal to 0</li>
|
|
32267
|
-
<li>OriginResponseStatusCode: Filter by response status code of the origin server.<br>?? Supported operators: equal, great, less, great_equal, less_equal.<br>?? Valid values: any integer greater than or equal to -1</li>
|
|
32268
|
-
<li>SecurityAction: Filter by final action after the request matches a security rule.<br>?? Supported operator: equal<br>?? Options:<br>?? -: unknown/not matched<br>?? Monitor: observation<br>?? JSChallenge: JavaScript challenge<br>?? Deny: blocking<br>?? Allow: allowing<br>?? BlockIP: IP blocking<br>?? Redirect: redirection<br>?? ReturnCustomPage: returning to a custom page<br>?? ManagedChallenge: managed challenge<br>?? Silence: silence<br>?? LongDelay: response after a long delay<br>?? ShortDelay: response after a short delay</li>
|
|
32269
|
-
<li>SecurityModule: Filter by name of the security module finally handling the request.<br>??Supported operator: equal<br>??Options:<br>?? -: unknown/not matched<br>?? CustomRule: Custom Rules in Web Protection<br>?? RateLimitingCustomRule: Rate Limiting Rules in Web Protection<br>?? ManagedRule: Managed Rules in Web Protection<br>?? L7DDoS: CC Attack Defense in Web Protection<br>?? BotManagement: Bot Basic Management in Bot Management<br>?? BotClientReputation: Client Reputation Analysis in Bot Management<br>?? BotBehaviorAnalysis: Bot Intelligent Analysis in Bot Management<br>?? BotCustomRule: Custom Bot Rules in Bot Management<br>?? BotActiveDetection: Active Detection in Bot Management</li>
|
|
32321
|
+
* <p>Log filter conditions. The supported conditions are as follows:<ul><li>`EdgeResponseStatusCode`: filters by the status code that the EdgeOne node returns to the client.<ul><li>Supported operators: `equal`, `great`, `less`, `great_equal`, `less_equal`</li><li>Value range: any integer greater than or equal to 0</li></ul></li><li>`OriginResponseStatusCode`: filters by the status code returned by the origin server.<ul><li>Supported operators: `equal`, `great`, `less`, `great_equal`, `less_equal`</li><li>Value range: any integer greater than or equal to -1</li></ul></li><li>`SecurityAction`: filters by the final action taken after the request hits a security rule.<ul><li>Supported operators: `equal`</li><li>Valid values:<ul><li>`-`: unknown or no rule hit</li><li>`Monitor`: Monitor</li><li>`JSChallenge`: JavaScript Challenge</li><li>`Deny`: Deny</li><li>`Allow`: Allow</li><li>`BlockIP`: Block IP</li><li>`Redirect`: Redirect</li><li>`ReturnCustomPage`: Return custom page</li><li>`ManagedChallenge`: Managed Challenge</li><li>`Silence`: Silence</li><li>`LongDelay`: Respond after a long delay</li><li>`ShortDelay`: Respond after a short delay</li></ul></li></ul></li><li>`SecurityModule`: filters by the name of the security module that finally handled the request.<ul><li>Supported operators: `equal`</li><li>Valid values:<ul><li>`-`: unknown or no rule hit</li><li>`CustomRule`: Web Security - Custom Rules</li><li>`RateLimitingCustomRule`: Web Security - Rate Limiting Rules</li><li>`ManagedRule`: Web Security - Managed Rules</li><li>`L7DDoS`: Web Security - CC Attack Defense</li><li>`BotManagement`: Bot Management - Basic Bot Management</li><li>`BotClientReputation`: Bot Management - Client Reputation Analysis</li><li>`BotBehaviorAnalysis`: Bot Management - Intelligent Bot Analysis</li><li>`BotCustomRule`: Bot Management - Custom Bot Rules</li><li>`BotActiveDetection`: Bot Management - Active Detection</li></ul></li></ul></li></ul></p>
|
|
32270
32322
|
* @type {Array.<QueryCondition> || null}
|
|
32271
32323
|
*/
|
|
32272
32324
|
this.Conditions = null;
|
|
@@ -34269,6 +34321,62 @@ Note: This field may return null, which indicates a failure to obtain a valid va
|
|
|
34269
34321
|
}
|
|
34270
34322
|
}
|
|
34271
34323
|
|
|
34324
|
+
/**
|
|
34325
|
+
* Destination information of the AWS S3 bucket. EdgeOne is authorized to deliver real-time logs to your AWS S3 bucket through an IAM role and an external ID, with no need to provide a long-term access key. For details, see [Delivering Logs to AWS S3](https://www.tencentcloud.com/document/product/1145/56251).
|
|
34326
|
+
* @class
|
|
34327
|
+
*/
|
|
34328
|
+
class AWSS3 extends AbstractModel {
|
|
34329
|
+
constructor(){
|
|
34330
|
+
super();
|
|
34331
|
+
|
|
34332
|
+
/**
|
|
34333
|
+
* Service endpoint domain name of the AWS S3 bucket. For valid values, see [AWS Endpoints](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Example: `s3.us-west-2.amazonaws.com`.
|
|
34334
|
+
* @type {string || null}
|
|
34335
|
+
*/
|
|
34336
|
+
this.Endpoint = null;
|
|
34337
|
+
|
|
34338
|
+
/**
|
|
34339
|
+
* <p>Name of the AWS S3 bucket. You can view the bucket name in the Buckets list in the AWS S3 console.</p><p>It must be 3 to 63 characters in length, contain only lowercase letters, digits, periods (.), and hyphens (-), and start and end with a letter or a digit.</p>
|
|
34340
|
+
* @type {string || null}
|
|
34341
|
+
*/
|
|
34342
|
+
this.BucketName = null;
|
|
34343
|
+
|
|
34344
|
+
/**
|
|
34345
|
+
* <p>Directory path where log files are stored in the AWS S3 bucket. Multiple directory levels can be created by separating with `/`. It cannot contain relative path segments such as `./..`, and the total path length cannot exceed 1024 bytes.</p><p>If the directory path exists, it is used directly; if it does not exist, it is automatically created.</p><p>Directory names can only consist of letters, digits, and `!-_.*'()`.</p><p>Example: `eo-logs/l7-access-logs`.</p>
|
|
34346
|
+
* @type {string || null}
|
|
34347
|
+
*/
|
|
34348
|
+
this.Path = null;
|
|
34349
|
+
|
|
34350
|
+
/**
|
|
34351
|
+
* <p>ARN of the IAM role that authorizes EdgeOne to access the AWS S3 bucket.</p><p>You need to first create an IAM role in your AWS account that grants EdgeOne write permissions (for how to create it, see <a href="https://www.tencentcloud.com/document/product/1145/56251">Delivering Logs to AWS S3</a>). After creation, you can view and copy the ARN at the top of the role details page in the AWS IAM console.</p><p>Example: `arn:aws:iam::123456789012:role/eo-logs`.</p>
|
|
34352
|
+
* @type {string || null}
|
|
34353
|
+
*/
|
|
34354
|
+
this.RoleARN = null;
|
|
34355
|
+
|
|
34356
|
+
/**
|
|
34357
|
+
* <p>Data compression type. Valid values:</p><ul><li>`gzip`: gzip compression.</li></ul>If left empty, compression is disabled.
|
|
34358
|
+
* @type {string || null}
|
|
34359
|
+
*/
|
|
34360
|
+
this.CompressType = null;
|
|
34361
|
+
|
|
34362
|
+
}
|
|
34363
|
+
|
|
34364
|
+
/**
|
|
34365
|
+
* @private
|
|
34366
|
+
*/
|
|
34367
|
+
deserialize(params) {
|
|
34368
|
+
if (!params) {
|
|
34369
|
+
return;
|
|
34370
|
+
}
|
|
34371
|
+
this.Endpoint = 'Endpoint' in params ? params.Endpoint : null;
|
|
34372
|
+
this.BucketName = 'BucketName' in params ? params.BucketName : null;
|
|
34373
|
+
this.Path = 'Path' in params ? params.Path : null;
|
|
34374
|
+
this.RoleARN = 'RoleARN' in params ? params.RoleARN : null;
|
|
34375
|
+
this.CompressType = 'CompressType' in params ? params.CompressType : null;
|
|
34376
|
+
|
|
34377
|
+
}
|
|
34378
|
+
}
|
|
34379
|
+
|
|
34272
34380
|
/**
|
|
34273
34381
|
* Exception rule conditions, used to filter requests by specific fields
|
|
34274
34382
|
* @class
|
|
@@ -46389,6 +46497,7 @@ module.exports = {
|
|
|
46389
46497
|
ModifyZoneCustomVariablesResponse: ModifyZoneCustomVariablesResponse,
|
|
46390
46498
|
VaryParameters: VaryParameters,
|
|
46391
46499
|
L4Proxy: L4Proxy,
|
|
46500
|
+
AWSS3: AWSS3,
|
|
46392
46501
|
SkipCondition: SkipCondition,
|
|
46393
46502
|
CreateSharedCNAMERequest: CreateSharedCNAMERequest,
|
|
46394
46503
|
UpstreamHttp2: UpstreamHttp2,
|
|
@@ -657,6 +657,7 @@ const IdentifyZoneRequest = models.IdentifyZoneRequest;
|
|
|
657
657
|
const ModifyZoneCustomVariablesResponse = models.ModifyZoneCustomVariablesResponse;
|
|
658
658
|
const VaryParameters = models.VaryParameters;
|
|
659
659
|
const L4Proxy = models.L4Proxy;
|
|
660
|
+
const AWSS3 = models.AWSS3;
|
|
660
661
|
const SkipCondition = models.SkipCondition;
|
|
661
662
|
const CreateSharedCNAMERequest = models.CreateSharedCNAMERequest;
|
|
662
663
|
const UpstreamHttp2 = models.UpstreamHttp2;
|
|
@@ -1645,14 +1646,24 @@ If your plan needs to upgrade to the Enterprise Edition, [Contact Us](https://ww
|
|
|
1645
1646
|
}
|
|
1646
1647
|
|
|
1647
1648
|
/**
|
|
1648
|
-
* This API is used to create a real-time log delivery task.
|
|
1649
|
-
-When the data delivery type (LogType) is Layer 7 Access Logs, four-layer proxy logs, or edge function logs, an entity (layer-7 domain name, L4 proxy instance, or edge function instance) can only be added to the following combination of real-time log delivery task types (TaskType) under the same combination of data delivery type (LogType) and data delivery area (Area):
|
|
1650
|
-
-A task that pushes to Tencent Cloud CLS, add an additional task that pushes to a custom HTTP(S) address.
|
|
1651
|
-
-A task to push to Tencent Cloud CLS, add another task to push to AWS S3-compatible object storage;
|
|
1652
|
-
-When the data delivery type (LogType) is rate limit and CC attack defense log, managed rule log, custom rule log, or Bot Management Log, an entity can only be added to one real-time log delivery task under the combination of the same data delivery type (LogType) and data delivery Area.
|
|
1653
|
-
-When the real-time log delivery task type (TaskType) is EdgeOne log analysis (log_analysis), it supports only data delivery types (LogType) of Layer 7 Access Logs (l7-access-logs) or managed rule logs (web-attack). Under the combination of the same site (ZoneId), same data delivery area (Area), and data, each data delivery type (LogType) can only add one real-time log delivery task pushed to EdgeOne log analysis.
|
|
1649
|
+
* This API is used to create a real-time log delivery task.
|
|
1654
1650
|
|
|
1655
|
-
|
|
1651
|
+
**Restrictions**
|
|
1652
|
+
|
|
1653
|
+
An entity (a Layer 7 domain name, a Layer 4 proxy instance, or an Edge Function instance) under the same combination of `LogType` and `Area` can only have one task created for each `TaskType`. The mutual exclusion rules for different `LogType` values are as follows:
|
|
1654
|
+
|
|
1655
|
+
| LogType | Conflicting TaskType |
|
|
1656
|
+
|---|---|
|
|
1657
|
+
| Layer 4 proxy logs, Edge Function execution logs | Choose one of `custom_endpoint`, `s3`, and `aws_s3` |
|
|
1658
|
+
|
|
1659
|
+
When `TaskType` is `log_analysis`:
|
|
1660
|
+
|
|
1661
|
+
<ul>
|
|
1662
|
+
<li>Only `LogType` = `l7-access-logs` or `web-attack` is supported.</li>
|
|
1663
|
+
<li>Under the same combination of `ZoneId` and `Area`, only one task can be created for each `LogType`.</li>
|
|
1664
|
+
</ul>
|
|
1665
|
+
|
|
1666
|
+
**Recommendation**: Before creating a task, call the [DescribeRealtimeLogDeliveryTasks](https://www.tencentcloud.com/document/product/1145/59503) API to query existing tasks and avoid duplicate additions.
|
|
1656
1667
|
* @param {CreateRealtimeLogDeliveryTaskRequest} req
|
|
1657
1668
|
* @param {function(string, CreateRealtimeLogDeliveryTaskResponse):void} cb
|
|
1658
1669
|
* @public
|
|
@@ -3011,7 +3022,13 @@ This API is used to learn about the detailed capacity of JIT transcoding. EdgeOn
|
|
|
3011
3022
|
}
|
|
3012
3023
|
|
|
3013
3024
|
/**
|
|
3014
|
-
* This API is used to modify the
|
|
3025
|
+
* This API is used to modify the configuration of a real-time log delivery task. It has the following limits:
|
|
3026
|
+
<ul>
|
|
3027
|
+
<li>The destination type (`TaskType`) of a real-time log delivery task cannot be modified;</li>
|
|
3028
|
+
<li>The data delivery type (`LogType`) cannot be modified;</li>
|
|
3029
|
+
<li>The data delivery region (`Area`) cannot be modified;</li>
|
|
3030
|
+
<li>When the destination of the original real-time log delivery task is Tencent Cloud CLS, the destination details such as the log set and log topic cannot be modified.</li>
|
|
3031
|
+
</ul>
|
|
3015
3032
|
* @param {ModifyRealtimeLogDeliveryTaskRequest} req
|
|
3016
3033
|
* @param {function(string, ModifyRealtimeLogDeliveryTaskResponse):void} cb
|
|
3017
3034
|
* @public
|