@alicloud/config20200907 4.2.1 → 4.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 +34 -22
- package/dist/client.js +52 -22
- package/dist/client.js.map +1 -1
- package/dist/models/CreateAggregateConfigRuleRequest.d.ts +52 -45
- package/dist/models/CreateAggregateConfigRuleRequest.js.map +1 -1
- package/dist/models/CreateAggregateConfigRuleShrinkRequest.d.ts +52 -45
- package/dist/models/CreateAggregateConfigRuleShrinkRequest.js.map +1 -1
- package/dist/models/CreateConfigRuleRequest.d.ts +28 -21
- package/dist/models/CreateConfigRuleRequest.js.map +1 -1
- package/dist/models/CreateConfigRuleShrinkRequest.d.ts +28 -21
- package/dist/models/CreateConfigRuleShrinkRequest.js.map +1 -1
- package/dist/models/StartAggregateRemediationRequest.d.ts +38 -0
- package/dist/models/StartAggregateRemediationRequest.js +6 -0
- package/dist/models/StartAggregateRemediationRequest.js.map +1 -1
- package/dist/models/StartAggregateRemediationResponseBody.d.ts +18 -0
- package/dist/models/StartAggregateRemediationResponseBody.js.map +1 -1
- package/dist/models/StartRemediationRequest.d.ts +22 -0
- package/dist/models/StartRemediationRequest.js +6 -0
- package/dist/models/StartRemediationRequest.js.map +1 -1
- package/dist/models/StartRemediationResponseBody.d.ts +18 -0
- package/dist/models/StartRemediationResponseBody.js.map +1 -1
- package/dist/models/UpdateAggregateConfigRuleRequest.d.ts +25 -24
- package/dist/models/UpdateAggregateConfigRuleRequest.js.map +1 -1
- package/dist/models/UpdateAggregateConfigRuleShrinkRequest.d.ts +25 -24
- package/dist/models/UpdateAggregateConfigRuleShrinkRequest.js.map +1 -1
- package/dist/models/UpdateConfigRuleRequest.d.ts +30 -25
- package/dist/models/UpdateConfigRuleRequest.js.map +1 -1
- package/dist/models/UpdateConfigRuleShrinkRequest.d.ts +30 -25
- package/dist/models/UpdateConfigRuleShrinkRequest.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +58 -22
- package/src/models/CreateAggregateConfigRuleRequest.ts +52 -45
- package/src/models/CreateAggregateConfigRuleShrinkRequest.ts +52 -45
- package/src/models/CreateConfigRuleRequest.ts +28 -21
- package/src/models/CreateConfigRuleShrinkRequest.ts +28 -21
- package/src/models/StartAggregateRemediationRequest.ts +44 -0
- package/src/models/StartAggregateRemediationResponseBody.ts +18 -0
- package/src/models/StartRemediationRequest.ts +28 -0
- package/src/models/StartRemediationResponseBody.ts +18 -0
- package/src/models/UpdateAggregateConfigRuleRequest.ts +25 -24
- package/src/models/UpdateAggregateConfigRuleShrinkRequest.ts +25 -24
- package/src/models/UpdateConfigRuleRequest.ts +30 -25
- package/src/models/UpdateConfigRuleShrinkRequest.ts +30 -25
|
@@ -95,9 +95,9 @@ export class UpdateAggregateConfigRuleShrinkRequest extends $dara.Model {
|
|
|
95
95
|
accountIdsScope?: string;
|
|
96
96
|
/**
|
|
97
97
|
* @remarks
|
|
98
|
-
* The
|
|
98
|
+
* The account group ID.
|
|
99
99
|
*
|
|
100
|
-
* For more information, see [ListAggregators](
|
|
100
|
+
* For more information, see [ListAggregators]().
|
|
101
101
|
*
|
|
102
102
|
* This parameter is required.
|
|
103
103
|
*
|
|
@@ -114,15 +114,18 @@ export class UpdateAggregateConfigRuleShrinkRequest extends $dara.Model {
|
|
|
114
114
|
*/
|
|
115
115
|
clientToken?: string;
|
|
116
116
|
/**
|
|
117
|
+
* @remarks
|
|
118
|
+
* The conditions for the custom rule, specified in JSON format.
|
|
119
|
+
*
|
|
117
120
|
* @example
|
|
118
|
-
* {"ComplianceConditions":"{
|
|
121
|
+
* {"ComplianceConditions":"{\\"operator\\":\\"and\\",\\"children\\":[{\\"operator\\":\\"StringEquals\\",\\"featurePath\\":\\"$.Status\\",\\"desired\\":\\"1\\",\\"featureSource\\":\\"CONFIGURATION\\"}]}"}
|
|
119
122
|
*/
|
|
120
123
|
conditions?: string;
|
|
121
124
|
/**
|
|
122
125
|
* @remarks
|
|
123
126
|
* The rule ID.
|
|
124
127
|
*
|
|
125
|
-
* For more information, see [ListAggregateConfigRules](
|
|
128
|
+
* For more information, see [ListAggregateConfigRules]().
|
|
126
129
|
*
|
|
127
130
|
* This parameter is required.
|
|
128
131
|
*
|
|
@@ -132,9 +135,9 @@ export class UpdateAggregateConfigRuleShrinkRequest extends $dara.Model {
|
|
|
132
135
|
configRuleId?: string;
|
|
133
136
|
/**
|
|
134
137
|
* @remarks
|
|
135
|
-
* The name
|
|
138
|
+
* The rule name.
|
|
136
139
|
*
|
|
137
|
-
* For more information, see [ListAggregateConfigRules](
|
|
140
|
+
* For more information, see [ListAggregateConfigRules]().
|
|
138
141
|
*
|
|
139
142
|
* @example
|
|
140
143
|
* 存在所有指定标签
|
|
@@ -142,11 +145,11 @@ export class UpdateAggregateConfigRuleShrinkRequest extends $dara.Model {
|
|
|
142
145
|
configRuleName?: string;
|
|
143
146
|
/**
|
|
144
147
|
* @remarks
|
|
145
|
-
* The trigger
|
|
148
|
+
* The trigger mechanism of the rule. Valid values:
|
|
146
149
|
*
|
|
147
|
-
* - ConfigurationItemChangeNotification:
|
|
150
|
+
* - ConfigurationItemChangeNotification: Configuration changes.
|
|
148
151
|
*
|
|
149
|
-
* - ScheduledNotification:
|
|
152
|
+
* - ScheduledNotification: Scheduled execution.
|
|
150
153
|
*
|
|
151
154
|
* > You can modify this parameter only for custom rules.
|
|
152
155
|
*
|
|
@@ -217,7 +220,7 @@ export class UpdateAggregateConfigRuleShrinkRequest extends $dara.Model {
|
|
|
217
220
|
excludeTagsScope?: UpdateAggregateConfigRuleShrinkRequestExcludeTagsScope[];
|
|
218
221
|
/**
|
|
219
222
|
* @remarks
|
|
220
|
-
* The rule applies only to resources of member accounts in the specified
|
|
223
|
+
* The rule applies only to resources of member accounts in the specified resource directory IDs.
|
|
221
224
|
*
|
|
222
225
|
* > - This parameter applies only to rules in a global account group.
|
|
223
226
|
* >
|
|
@@ -229,7 +232,7 @@ export class UpdateAggregateConfigRuleShrinkRequest extends $dara.Model {
|
|
|
229
232
|
folderIdsScope?: string;
|
|
230
233
|
/**
|
|
231
234
|
* @remarks
|
|
232
|
-
* The
|
|
235
|
+
* The rule parameters.
|
|
233
236
|
*
|
|
234
237
|
* @example
|
|
235
238
|
* {"tag1Key":"ECS","tag1Value":"test"}
|
|
@@ -237,7 +240,7 @@ export class UpdateAggregateConfigRuleShrinkRequest extends $dara.Model {
|
|
|
237
240
|
inputParametersShrink?: string;
|
|
238
241
|
/**
|
|
239
242
|
* @remarks
|
|
240
|
-
* The frequency at which the rule
|
|
243
|
+
* The frequency at which the rule runs. Valid values:
|
|
241
244
|
*
|
|
242
245
|
* - One_Hour: 1 hour.
|
|
243
246
|
*
|
|
@@ -257,7 +260,7 @@ export class UpdateAggregateConfigRuleShrinkRequest extends $dara.Model {
|
|
|
257
260
|
maximumExecutionFrequency?: string;
|
|
258
261
|
/**
|
|
259
262
|
* @remarks
|
|
260
|
-
* The rule applies only to resources in the specified
|
|
263
|
+
* The rule applies only to resources in the specified region IDs. Separate multiple region IDs with a comma (,).
|
|
261
264
|
*
|
|
262
265
|
* > This parameter applies only to rule templates.
|
|
263
266
|
*
|
|
@@ -267,7 +270,7 @@ export class UpdateAggregateConfigRuleShrinkRequest extends $dara.Model {
|
|
|
267
270
|
regionIdsScope?: string;
|
|
268
271
|
/**
|
|
269
272
|
* @remarks
|
|
270
|
-
* The rule applies only to resources in the specified resource
|
|
273
|
+
* The rule applies only to resources in the specified resource group IDs. Separate multiple resource group IDs with a comma (,).
|
|
271
274
|
*
|
|
272
275
|
* > This parameter applies only to rule templates.
|
|
273
276
|
*
|
|
@@ -277,7 +280,7 @@ export class UpdateAggregateConfigRuleShrinkRequest extends $dara.Model {
|
|
|
277
280
|
resourceGroupIdsScope?: string;
|
|
278
281
|
/**
|
|
279
282
|
* @remarks
|
|
280
|
-
* The rule applies only to the specified
|
|
283
|
+
* The rule applies only to the specified resource IDs. Separate multiple resource IDs with a comma (,).
|
|
281
284
|
*
|
|
282
285
|
* @example
|
|
283
286
|
* lb-5cmbowstbkss9ta03****
|
|
@@ -285,7 +288,7 @@ export class UpdateAggregateConfigRuleShrinkRequest extends $dara.Model {
|
|
|
285
288
|
resourceIdsScope?: string;
|
|
286
289
|
/**
|
|
287
290
|
* @remarks
|
|
288
|
-
* The rule applies only to resources with the specified name.
|
|
291
|
+
* The rule applies only to resources with the specified resource name.
|
|
289
292
|
*
|
|
290
293
|
* @example
|
|
291
294
|
* i-xxx
|
|
@@ -318,9 +321,7 @@ export class UpdateAggregateConfigRuleShrinkRequest extends $dara.Model {
|
|
|
318
321
|
riskLevel?: number;
|
|
319
322
|
/**
|
|
320
323
|
* @remarks
|
|
321
|
-
* The
|
|
322
|
-
*
|
|
323
|
-
* A maximum of 20 tags can be attached.
|
|
324
|
+
* The rule applies only to resources with the specified resource name.
|
|
324
325
|
*
|
|
325
326
|
* @deprecated
|
|
326
327
|
*/
|
|
@@ -329,13 +330,13 @@ export class UpdateAggregateConfigRuleShrinkRequest extends $dara.Model {
|
|
|
329
330
|
* @remarks
|
|
330
331
|
* The logical relationship for multiple tags in the `TagsScope` parameter. For example, if you set the `TagsScope` parameter to `"TagsScope.1.TagKey":"a","TagsScope.1.TagValue":"a","TagsScope.2.TagKey":"b","TagsScope.2.TagValue":"b"` and set this parameter to `AND`, the rule applies only to resources that have both the `a:a` and `b:b` tags. If you do not set this parameter, the default value is `OR`.
|
|
331
332
|
*
|
|
332
|
-
* This parameter also works with the deprecated `TagKeyScope` parameter. For example, if you set the `TagKeyScope` parameter to `ECS,OSS` and set this parameter to `AND`, the rule applies only to resources that have both the `ECS` and `OSS` tags.
|
|
333
|
+
* This parameter also works with the deprecated `TagKeyScope` parameter (not recommended). For example, if you set the `TagKeyScope` parameter to `ECS,OSS` and set this parameter to `AND`, the rule applies only to resources that have both the `ECS` and `OSS` tags.
|
|
333
334
|
*
|
|
334
335
|
* Valid values:
|
|
335
336
|
*
|
|
336
|
-
* - AND
|
|
337
|
+
* - AND: Logical AND.
|
|
337
338
|
*
|
|
338
|
-
* - OR
|
|
339
|
+
* - OR: Logical OR.
|
|
339
340
|
*
|
|
340
341
|
* @example
|
|
341
342
|
* AND
|
|
@@ -345,7 +346,7 @@ export class UpdateAggregateConfigRuleShrinkRequest extends $dara.Model {
|
|
|
345
346
|
* @remarks
|
|
346
347
|
* This parameter is deprecated. Use the `TagsScope` parameter instead.
|
|
347
348
|
*
|
|
348
|
-
* The rule applies only to resources
|
|
349
|
+
* The rule applies only to resources with the specified tag.
|
|
349
350
|
*
|
|
350
351
|
* > This parameter applies only to rule templates. You must specify both `TagKeyScope` and `TagValueScope`.
|
|
351
352
|
*
|
|
@@ -359,7 +360,7 @@ export class UpdateAggregateConfigRuleShrinkRequest extends $dara.Model {
|
|
|
359
360
|
* @remarks
|
|
360
361
|
* This parameter is deprecated. Use the `TagsScope` parameter instead.
|
|
361
362
|
*
|
|
362
|
-
* The rule applies only to resources
|
|
363
|
+
* The rule applies only to resources with the specified tag.
|
|
363
364
|
*
|
|
364
365
|
* > This parameter applies only to rule templates. You must specify both `TagKeyScope` and `TagValueScope`.
|
|
365
366
|
*
|
|
@@ -125,15 +125,18 @@ export class UpdateConfigRuleRequestTagsScope extends $dara.Model {
|
|
|
125
125
|
export class UpdateConfigRuleRequest extends $dara.Model {
|
|
126
126
|
/**
|
|
127
127
|
* @remarks
|
|
128
|
-
* A client token used to ensure the idempotence of the request.
|
|
128
|
+
* A client token used to ensure the idempotence of the request. Generate a unique token on your client for each request. The `ClientToken` parameter supports only ASCII characters and must not exceed 64 characters in length.
|
|
129
129
|
*
|
|
130
130
|
* @example
|
|
131
131
|
* 1594295238-f9361358-5843-4294-8d30-b5183fac****
|
|
132
132
|
*/
|
|
133
133
|
clientToken?: string;
|
|
134
134
|
/**
|
|
135
|
+
* @remarks
|
|
136
|
+
* The condition for a custom conditional rule, in JSON format.
|
|
137
|
+
*
|
|
135
138
|
* @example
|
|
136
|
-
* {"ComplianceConditions":"{
|
|
139
|
+
* {"ComplianceConditions":"{\\"operator\\":\\"and\\",\\"children\\":[{\\"operator\\":\\"StringEquals\\",\\"featurePath\\":\\"$.Status\\",\\"desired\\":\\"1\\",\\"featureSource\\":\\"CONFIGURATION\\"}]}"}
|
|
137
140
|
*
|
|
138
141
|
* **if can be null:**
|
|
139
142
|
* true
|
|
@@ -165,11 +168,11 @@ export class UpdateConfigRuleRequest extends $dara.Model {
|
|
|
165
168
|
* @remarks
|
|
166
169
|
* The trigger type of the rule. Valid values:
|
|
167
170
|
*
|
|
168
|
-
* - ConfigurationItemChangeNotification: The rule
|
|
171
|
+
* - ConfigurationItemChangeNotification: The rule triggers on configuration changes.
|
|
169
172
|
*
|
|
170
|
-
* - ScheduledNotification: The rule
|
|
173
|
+
* - ScheduledNotification: The rule triggers on a schedule.
|
|
171
174
|
*
|
|
172
|
-
* >
|
|
175
|
+
* > You can modify this parameter only for custom rules.
|
|
173
176
|
*
|
|
174
177
|
* @example
|
|
175
178
|
* ConfigurationItemChangeNotification
|
|
@@ -177,7 +180,7 @@ export class UpdateConfigRuleRequest extends $dara.Model {
|
|
|
177
180
|
configRuleTriggerTypes?: string;
|
|
178
181
|
/**
|
|
179
182
|
* @remarks
|
|
180
|
-
* The description
|
|
183
|
+
* The rule description. The description can be up to 500 characters long.
|
|
181
184
|
*
|
|
182
185
|
* @example
|
|
183
186
|
* 最多可以定义6组标签。如果资源同时具有指定的所有标签,则视为“合规”。
|
|
@@ -185,7 +188,7 @@ export class UpdateConfigRuleRequest extends $dara.Model {
|
|
|
185
188
|
description?: string;
|
|
186
189
|
/**
|
|
187
190
|
* @remarks
|
|
188
|
-
* The regions where the rule
|
|
191
|
+
* The regions where the rule does not apply. To specify multiple region IDs, separate them with a comma (,).
|
|
189
192
|
*
|
|
190
193
|
* @example
|
|
191
194
|
* cn-shanghai
|
|
@@ -193,7 +196,7 @@ export class UpdateConfigRuleRequest extends $dara.Model {
|
|
|
193
196
|
excludeRegionIdsScope?: string;
|
|
194
197
|
/**
|
|
195
198
|
* @remarks
|
|
196
|
-
* The resource groups where the rule
|
|
199
|
+
* The resource groups where the rule does not apply. To specify multiple resource group IDs, separate them with a comma (,).
|
|
197
200
|
*
|
|
198
201
|
* @example
|
|
199
202
|
* rg-bnczc6r7rml****
|
|
@@ -201,7 +204,7 @@ export class UpdateConfigRuleRequest extends $dara.Model {
|
|
|
201
204
|
excludeResourceGroupIdsScope?: string;
|
|
202
205
|
/**
|
|
203
206
|
* @remarks
|
|
204
|
-
* The resources that
|
|
207
|
+
* The resources that the rule does not evaluate. To specify multiple resource IDs, separate them with a comma (,).
|
|
205
208
|
*
|
|
206
209
|
* > This parameter applies only to managed rules.
|
|
207
210
|
*
|
|
@@ -211,12 +214,12 @@ export class UpdateConfigRuleRequest extends $dara.Model {
|
|
|
211
214
|
excludeResourceIdsScope?: string;
|
|
212
215
|
/**
|
|
213
216
|
* @remarks
|
|
214
|
-
* The tags
|
|
217
|
+
* The tags used to exclude resources.
|
|
215
218
|
*/
|
|
216
219
|
excludeTagsScope?: UpdateConfigRuleRequestExcludeTagsScope[];
|
|
217
220
|
/**
|
|
218
221
|
* @remarks
|
|
219
|
-
*
|
|
222
|
+
* Optional. Extended content used with a 24-hour trigger period to set the trigger time.
|
|
220
223
|
*
|
|
221
224
|
* @example
|
|
222
225
|
* {"fixedHour":"12"}
|
|
@@ -227,7 +230,7 @@ export class UpdateConfigRuleRequest extends $dara.Model {
|
|
|
227
230
|
extendContent?: string;
|
|
228
231
|
/**
|
|
229
232
|
* @remarks
|
|
230
|
-
* The
|
|
233
|
+
* The rule parameters.
|
|
231
234
|
*
|
|
232
235
|
* @example
|
|
233
236
|
* {"tag1Key":"ECS","tag1Value":"test"}
|
|
@@ -235,7 +238,7 @@ export class UpdateConfigRuleRequest extends $dara.Model {
|
|
|
235
238
|
inputParameters?: { [key: string]: any };
|
|
236
239
|
/**
|
|
237
240
|
* @remarks
|
|
238
|
-
* The frequency at which the rule
|
|
241
|
+
* The frequency at which the rule runs. Valid values:
|
|
239
242
|
*
|
|
240
243
|
* - One_Hour: 1 hour.
|
|
241
244
|
*
|
|
@@ -247,7 +250,7 @@ export class UpdateConfigRuleRequest extends $dara.Model {
|
|
|
247
250
|
*
|
|
248
251
|
* - TwentyFour_Hours (default): 24 hours.
|
|
249
252
|
*
|
|
250
|
-
* >
|
|
253
|
+
* > Set this parameter when `ConfigRuleTriggerTypes` is set to `ScheduledNotification`.
|
|
251
254
|
*
|
|
252
255
|
* @example
|
|
253
256
|
* One_Hour
|
|
@@ -255,7 +258,7 @@ export class UpdateConfigRuleRequest extends $dara.Model {
|
|
|
255
258
|
maximumExecutionFrequency?: string;
|
|
256
259
|
/**
|
|
257
260
|
* @remarks
|
|
258
|
-
* The regions where the rule
|
|
261
|
+
* The regions where the rule applies. To specify multiple region IDs, separate them with a comma (,).
|
|
259
262
|
*
|
|
260
263
|
* > This parameter applies only to managed rules.
|
|
261
264
|
*
|
|
@@ -265,7 +268,7 @@ export class UpdateConfigRuleRequest extends $dara.Model {
|
|
|
265
268
|
regionIdsScope?: string;
|
|
266
269
|
/**
|
|
267
270
|
* @remarks
|
|
268
|
-
* The resource groups where the rule
|
|
271
|
+
* The resource groups where the rule applies. To specify multiple resource group IDs, separate them with a comma (,).
|
|
269
272
|
*
|
|
270
273
|
* > This parameter applies only to managed rules.
|
|
271
274
|
*
|
|
@@ -283,7 +286,9 @@ export class UpdateConfigRuleRequest extends $dara.Model {
|
|
|
283
286
|
resourceIdsScope?: string;
|
|
284
287
|
/**
|
|
285
288
|
* @remarks
|
|
286
|
-
* The
|
|
289
|
+
* The tags of the resource. This parameter is deprecated. Ignore it. Values passed for this parameter have no effect.
|
|
290
|
+
*
|
|
291
|
+
* You can add up to 20 tags.
|
|
287
292
|
*
|
|
288
293
|
* @example
|
|
289
294
|
* i-xxx
|
|
@@ -316,7 +321,7 @@ export class UpdateConfigRuleRequest extends $dara.Model {
|
|
|
316
321
|
riskLevel?: number;
|
|
317
322
|
/**
|
|
318
323
|
* @remarks
|
|
319
|
-
* The tags of the resource. This parameter is deprecated.
|
|
324
|
+
* The tags of the resource. This parameter is deprecated. Ignore it. Values passed for this parameter have no effect.
|
|
320
325
|
*
|
|
321
326
|
* You can add up to 20 tags.
|
|
322
327
|
*
|
|
@@ -325,9 +330,9 @@ export class UpdateConfigRuleRequest extends $dara.Model {
|
|
|
325
330
|
tag?: UpdateConfigRuleRequestTag[];
|
|
326
331
|
/**
|
|
327
332
|
* @remarks
|
|
328
|
-
* The logical relationship
|
|
333
|
+
* The logical relationship between tags in the `TagsScope` parameter. For example, if you set `TagsScope` to `"TagsScope.1.TagKey":"a","TagsScope.1.TagValue":"a","TagsScope.2.TagKey":"b","TagsScope.2.TagValue":"b"` and set this parameter to `AND`, the rule applies only to resources that have both the `a:a` and `b:b` tags. If you omit this parameter, the default logic is `OR`.
|
|
329
334
|
*
|
|
330
|
-
* This parameter also
|
|
335
|
+
* This parameter also works with the deprecated `TagKeyScope` parameter, but this is not recommended. For example, if you set `TagKeyScope` to `ECS,OSS` and set this parameter to `AND`, the rule applies only to resources that have both the `ECS` and `OSS` tags.
|
|
331
336
|
*
|
|
332
337
|
* Valid values:
|
|
333
338
|
*
|
|
@@ -343,9 +348,9 @@ export class UpdateConfigRuleRequest extends $dara.Model {
|
|
|
343
348
|
* @remarks
|
|
344
349
|
* This parameter is deprecated. Use the `TagsScope` parameter instead.
|
|
345
350
|
*
|
|
346
|
-
* The rule
|
|
351
|
+
* The rule applies only to resources that have the specified tag.
|
|
347
352
|
*
|
|
348
|
-
* > This parameter applies only to managed rules.
|
|
353
|
+
* > This parameter applies only to managed rules. You must specify both `TagKeyScope` and `TagValueScope`.
|
|
349
354
|
*
|
|
350
355
|
* @example
|
|
351
356
|
* ECS
|
|
@@ -357,9 +362,9 @@ export class UpdateConfigRuleRequest extends $dara.Model {
|
|
|
357
362
|
* @remarks
|
|
358
363
|
* This parameter is deprecated. Use the `TagsScope` parameter instead.
|
|
359
364
|
*
|
|
360
|
-
* The rule
|
|
365
|
+
* The rule applies only to resources that have the specified tag.
|
|
361
366
|
*
|
|
362
|
-
* > This parameter applies only to managed rules.
|
|
367
|
+
* > This parameter applies only to managed rules. You must specify both `TagKeyScope` and `TagValueScope`.
|
|
363
368
|
*
|
|
364
369
|
* @example
|
|
365
370
|
* test
|
|
@@ -369,7 +374,7 @@ export class UpdateConfigRuleRequest extends $dara.Model {
|
|
|
369
374
|
tagValueScope?: string;
|
|
370
375
|
/**
|
|
371
376
|
* @remarks
|
|
372
|
-
*
|
|
377
|
+
* Scope of the tag
|
|
373
378
|
*/
|
|
374
379
|
tagsScope?: UpdateConfigRuleRequestTagsScope[];
|
|
375
380
|
static names(): { [key: string]: string } {
|
|
@@ -85,15 +85,18 @@ export class UpdateConfigRuleShrinkRequestTagsScope extends $dara.Model {
|
|
|
85
85
|
export class UpdateConfigRuleShrinkRequest extends $dara.Model {
|
|
86
86
|
/**
|
|
87
87
|
* @remarks
|
|
88
|
-
* A client token used to ensure the idempotence of the request.
|
|
88
|
+
* A client token used to ensure the idempotence of the request. Generate a unique token on your client for each request. The `ClientToken` parameter supports only ASCII characters and must not exceed 64 characters in length.
|
|
89
89
|
*
|
|
90
90
|
* @example
|
|
91
91
|
* 1594295238-f9361358-5843-4294-8d30-b5183fac****
|
|
92
92
|
*/
|
|
93
93
|
clientToken?: string;
|
|
94
94
|
/**
|
|
95
|
+
* @remarks
|
|
96
|
+
* The condition for a custom conditional rule, in JSON format.
|
|
97
|
+
*
|
|
95
98
|
* @example
|
|
96
|
-
* {"ComplianceConditions":"{
|
|
99
|
+
* {"ComplianceConditions":"{\\"operator\\":\\"and\\",\\"children\\":[{\\"operator\\":\\"StringEquals\\",\\"featurePath\\":\\"$.Status\\",\\"desired\\":\\"1\\",\\"featureSource\\":\\"CONFIGURATION\\"}]}"}
|
|
97
100
|
*
|
|
98
101
|
* **if can be null:**
|
|
99
102
|
* true
|
|
@@ -125,11 +128,11 @@ export class UpdateConfigRuleShrinkRequest extends $dara.Model {
|
|
|
125
128
|
* @remarks
|
|
126
129
|
* The trigger type of the rule. Valid values:
|
|
127
130
|
*
|
|
128
|
-
* - ConfigurationItemChangeNotification: The rule
|
|
131
|
+
* - ConfigurationItemChangeNotification: The rule triggers on configuration changes.
|
|
129
132
|
*
|
|
130
|
-
* - ScheduledNotification: The rule
|
|
133
|
+
* - ScheduledNotification: The rule triggers on a schedule.
|
|
131
134
|
*
|
|
132
|
-
* >
|
|
135
|
+
* > You can modify this parameter only for custom rules.
|
|
133
136
|
*
|
|
134
137
|
* @example
|
|
135
138
|
* ConfigurationItemChangeNotification
|
|
@@ -137,7 +140,7 @@ export class UpdateConfigRuleShrinkRequest extends $dara.Model {
|
|
|
137
140
|
configRuleTriggerTypes?: string;
|
|
138
141
|
/**
|
|
139
142
|
* @remarks
|
|
140
|
-
* The description
|
|
143
|
+
* The rule description. The description can be up to 500 characters long.
|
|
141
144
|
*
|
|
142
145
|
* @example
|
|
143
146
|
* 最多可以定义6组标签。如果资源同时具有指定的所有标签,则视为“合规”。
|
|
@@ -145,7 +148,7 @@ export class UpdateConfigRuleShrinkRequest extends $dara.Model {
|
|
|
145
148
|
description?: string;
|
|
146
149
|
/**
|
|
147
150
|
* @remarks
|
|
148
|
-
* The regions where the rule
|
|
151
|
+
* The regions where the rule does not apply. To specify multiple region IDs, separate them with a comma (,).
|
|
149
152
|
*
|
|
150
153
|
* @example
|
|
151
154
|
* cn-shanghai
|
|
@@ -153,7 +156,7 @@ export class UpdateConfigRuleShrinkRequest extends $dara.Model {
|
|
|
153
156
|
excludeRegionIdsScope?: string;
|
|
154
157
|
/**
|
|
155
158
|
* @remarks
|
|
156
|
-
* The resource groups where the rule
|
|
159
|
+
* The resource groups where the rule does not apply. To specify multiple resource group IDs, separate them with a comma (,).
|
|
157
160
|
*
|
|
158
161
|
* @example
|
|
159
162
|
* rg-bnczc6r7rml****
|
|
@@ -161,7 +164,7 @@ export class UpdateConfigRuleShrinkRequest extends $dara.Model {
|
|
|
161
164
|
excludeResourceGroupIdsScope?: string;
|
|
162
165
|
/**
|
|
163
166
|
* @remarks
|
|
164
|
-
* The resources that
|
|
167
|
+
* The resources that the rule does not evaluate. To specify multiple resource IDs, separate them with a comma (,).
|
|
165
168
|
*
|
|
166
169
|
* > This parameter applies only to managed rules.
|
|
167
170
|
*
|
|
@@ -171,12 +174,12 @@ export class UpdateConfigRuleShrinkRequest extends $dara.Model {
|
|
|
171
174
|
excludeResourceIdsScope?: string;
|
|
172
175
|
/**
|
|
173
176
|
* @remarks
|
|
174
|
-
* The tags
|
|
177
|
+
* The tags used to exclude resources.
|
|
175
178
|
*/
|
|
176
179
|
excludeTagsScope?: UpdateConfigRuleShrinkRequestExcludeTagsScope[];
|
|
177
180
|
/**
|
|
178
181
|
* @remarks
|
|
179
|
-
*
|
|
182
|
+
* Optional. Extended content used with a 24-hour trigger period to set the trigger time.
|
|
180
183
|
*
|
|
181
184
|
* @example
|
|
182
185
|
* {"fixedHour":"12"}
|
|
@@ -187,7 +190,7 @@ export class UpdateConfigRuleShrinkRequest extends $dara.Model {
|
|
|
187
190
|
extendContent?: string;
|
|
188
191
|
/**
|
|
189
192
|
* @remarks
|
|
190
|
-
* The
|
|
193
|
+
* The rule parameters.
|
|
191
194
|
*
|
|
192
195
|
* @example
|
|
193
196
|
* {"tag1Key":"ECS","tag1Value":"test"}
|
|
@@ -195,7 +198,7 @@ export class UpdateConfigRuleShrinkRequest extends $dara.Model {
|
|
|
195
198
|
inputParametersShrink?: string;
|
|
196
199
|
/**
|
|
197
200
|
* @remarks
|
|
198
|
-
* The frequency at which the rule
|
|
201
|
+
* The frequency at which the rule runs. Valid values:
|
|
199
202
|
*
|
|
200
203
|
* - One_Hour: 1 hour.
|
|
201
204
|
*
|
|
@@ -207,7 +210,7 @@ export class UpdateConfigRuleShrinkRequest extends $dara.Model {
|
|
|
207
210
|
*
|
|
208
211
|
* - TwentyFour_Hours (default): 24 hours.
|
|
209
212
|
*
|
|
210
|
-
* >
|
|
213
|
+
* > Set this parameter when `ConfigRuleTriggerTypes` is set to `ScheduledNotification`.
|
|
211
214
|
*
|
|
212
215
|
* @example
|
|
213
216
|
* One_Hour
|
|
@@ -215,7 +218,7 @@ export class UpdateConfigRuleShrinkRequest extends $dara.Model {
|
|
|
215
218
|
maximumExecutionFrequency?: string;
|
|
216
219
|
/**
|
|
217
220
|
* @remarks
|
|
218
|
-
* The regions where the rule
|
|
221
|
+
* The regions where the rule applies. To specify multiple region IDs, separate them with a comma (,).
|
|
219
222
|
*
|
|
220
223
|
* > This parameter applies only to managed rules.
|
|
221
224
|
*
|
|
@@ -225,7 +228,7 @@ export class UpdateConfigRuleShrinkRequest extends $dara.Model {
|
|
|
225
228
|
regionIdsScope?: string;
|
|
226
229
|
/**
|
|
227
230
|
* @remarks
|
|
228
|
-
* The resource groups where the rule
|
|
231
|
+
* The resource groups where the rule applies. To specify multiple resource group IDs, separate them with a comma (,).
|
|
229
232
|
*
|
|
230
233
|
* > This parameter applies only to managed rules.
|
|
231
234
|
*
|
|
@@ -243,7 +246,9 @@ export class UpdateConfigRuleShrinkRequest extends $dara.Model {
|
|
|
243
246
|
resourceIdsScope?: string;
|
|
244
247
|
/**
|
|
245
248
|
* @remarks
|
|
246
|
-
* The
|
|
249
|
+
* The tags of the resource. This parameter is deprecated. Ignore it. Values passed for this parameter have no effect.
|
|
250
|
+
*
|
|
251
|
+
* You can add up to 20 tags.
|
|
247
252
|
*
|
|
248
253
|
* @example
|
|
249
254
|
* i-xxx
|
|
@@ -276,7 +281,7 @@ export class UpdateConfigRuleShrinkRequest extends $dara.Model {
|
|
|
276
281
|
riskLevel?: number;
|
|
277
282
|
/**
|
|
278
283
|
* @remarks
|
|
279
|
-
* The tags of the resource. This parameter is deprecated.
|
|
284
|
+
* The tags of the resource. This parameter is deprecated. Ignore it. Values passed for this parameter have no effect.
|
|
280
285
|
*
|
|
281
286
|
* You can add up to 20 tags.
|
|
282
287
|
*
|
|
@@ -285,9 +290,9 @@ export class UpdateConfigRuleShrinkRequest extends $dara.Model {
|
|
|
285
290
|
tagShrink?: string;
|
|
286
291
|
/**
|
|
287
292
|
* @remarks
|
|
288
|
-
* The logical relationship
|
|
293
|
+
* The logical relationship between tags in the `TagsScope` parameter. For example, if you set `TagsScope` to `"TagsScope.1.TagKey":"a","TagsScope.1.TagValue":"a","TagsScope.2.TagKey":"b","TagsScope.2.TagValue":"b"` and set this parameter to `AND`, the rule applies only to resources that have both the `a:a` and `b:b` tags. If you omit this parameter, the default logic is `OR`.
|
|
289
294
|
*
|
|
290
|
-
* This parameter also
|
|
295
|
+
* This parameter also works with the deprecated `TagKeyScope` parameter, but this is not recommended. For example, if you set `TagKeyScope` to `ECS,OSS` and set this parameter to `AND`, the rule applies only to resources that have both the `ECS` and `OSS` tags.
|
|
291
296
|
*
|
|
292
297
|
* Valid values:
|
|
293
298
|
*
|
|
@@ -303,9 +308,9 @@ export class UpdateConfigRuleShrinkRequest extends $dara.Model {
|
|
|
303
308
|
* @remarks
|
|
304
309
|
* This parameter is deprecated. Use the `TagsScope` parameter instead.
|
|
305
310
|
*
|
|
306
|
-
* The rule
|
|
311
|
+
* The rule applies only to resources that have the specified tag.
|
|
307
312
|
*
|
|
308
|
-
* > This parameter applies only to managed rules.
|
|
313
|
+
* > This parameter applies only to managed rules. You must specify both `TagKeyScope` and `TagValueScope`.
|
|
309
314
|
*
|
|
310
315
|
* @example
|
|
311
316
|
* ECS
|
|
@@ -317,9 +322,9 @@ export class UpdateConfigRuleShrinkRequest extends $dara.Model {
|
|
|
317
322
|
* @remarks
|
|
318
323
|
* This parameter is deprecated. Use the `TagsScope` parameter instead.
|
|
319
324
|
*
|
|
320
|
-
* The rule
|
|
325
|
+
* The rule applies only to resources that have the specified tag.
|
|
321
326
|
*
|
|
322
|
-
* > This parameter applies only to managed rules.
|
|
327
|
+
* > This parameter applies only to managed rules. You must specify both `TagKeyScope` and `TagValueScope`.
|
|
323
328
|
*
|
|
324
329
|
* @example
|
|
325
330
|
* test
|
|
@@ -329,7 +334,7 @@ export class UpdateConfigRuleShrinkRequest extends $dara.Model {
|
|
|
329
334
|
tagValueScope?: string;
|
|
330
335
|
/**
|
|
331
336
|
* @remarks
|
|
332
|
-
*
|
|
337
|
+
* Scope of the tag
|
|
333
338
|
*/
|
|
334
339
|
tagsScope?: UpdateConfigRuleShrinkRequestTagsScope[];
|
|
335
340
|
static names(): { [key: string]: string } {
|