@alicloud/config20200907 2.3.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.d.ts CHANGED
@@ -1457,6 +1457,48 @@ export declare class DeleteRemediationsResponse extends $tea.Model {
1457
1457
  [key: string]: any;
1458
1458
  });
1459
1459
  }
1460
+ export declare class DescribeRemediationRequest extends $tea.Model {
1461
+ configRuleId?: string;
1462
+ remediationId?: string;
1463
+ static names(): {
1464
+ [key: string]: string;
1465
+ };
1466
+ static types(): {
1467
+ [key: string]: any;
1468
+ };
1469
+ constructor(map?: {
1470
+ [key: string]: any;
1471
+ });
1472
+ }
1473
+ export declare class DescribeRemediationResponseBody extends $tea.Model {
1474
+ remediation?: DescribeRemediationResponseBodyRemediation;
1475
+ requestId?: string;
1476
+ static names(): {
1477
+ [key: string]: string;
1478
+ };
1479
+ static types(): {
1480
+ [key: string]: any;
1481
+ };
1482
+ constructor(map?: {
1483
+ [key: string]: any;
1484
+ });
1485
+ }
1486
+ export declare class DescribeRemediationResponse extends $tea.Model {
1487
+ headers: {
1488
+ [key: string]: string;
1489
+ };
1490
+ statusCode: number;
1491
+ body: DescribeRemediationResponseBody;
1492
+ static names(): {
1493
+ [key: string]: string;
1494
+ };
1495
+ static types(): {
1496
+ [key: string]: any;
1497
+ };
1498
+ constructor(map?: {
1499
+ [key: string]: any;
1500
+ });
1501
+ }
1460
1502
  export declare class DetachAggregateConfigRuleToCompliancePackRequest extends $tea.Model {
1461
1503
  aggregatorId?: string;
1462
1504
  compliancePackId?: string;
@@ -6758,6 +6800,28 @@ export declare class DeleteRemediationsResponseBodyRemediationDeleteResults exte
6758
6800
  [key: string]: any;
6759
6801
  });
6760
6802
  }
6803
+ export declare class DescribeRemediationResponseBodyRemediation extends $tea.Model {
6804
+ accountId?: number;
6805
+ configRuleId?: string;
6806
+ invokeType?: string;
6807
+ lastSuccessfulInvocationId?: string;
6808
+ lastSuccessfulInvocationTime?: number;
6809
+ lastSuccessfulInvocationType?: string;
6810
+ remediationId?: string;
6811
+ remediationOriginParams?: string;
6812
+ remediationSourceType?: string;
6813
+ remediationTemplateId?: string;
6814
+ remediationType?: string;
6815
+ static names(): {
6816
+ [key: string]: string;
6817
+ };
6818
+ static types(): {
6819
+ [key: string]: any;
6820
+ };
6821
+ constructor(map?: {
6822
+ [key: string]: any;
6823
+ });
6824
+ }
6761
6825
  export declare class DetachAggregateConfigRuleToCompliancePackResponseBodyOperateRuleResultOperateRuleItemList extends $tea.Model {
6762
6826
  configRuleId?: string;
6763
6827
  errorCode?: string;
@@ -9807,9 +9871,10 @@ export default class Client extends OpenApi {
9807
9871
  */
9808
9872
  createConfigDeliveryChannel(request: CreateConfigDeliveryChannelRequest): Promise<CreateConfigDeliveryChannelResponse>;
9809
9873
  /**
9874
+ * ### Limits
9875
+ * You can use an ordinary account to create up to 200 rules.
9876
+ * ### Usage notes
9810
9877
  * This topic provides an example on how to create a managed rule named required-tags. The returned result indicates that the rule is created and the ID of the rule is `cr-5772ba41209e007b****`.
9811
- * ## Limits
9812
- * You can use a common account to create up to 200 rules.
9813
9878
  *
9814
9879
  * @param tmpReq CreateConfigRuleRequest
9815
9880
  * @param runtime runtime options for this request RuntimeOptions
@@ -9817,9 +9882,10 @@ export default class Client extends OpenApi {
9817
9882
  */
9818
9883
  createConfigRuleWithOptions(tmpReq: CreateConfigRuleRequest, runtime: $Util.RuntimeOptions): Promise<CreateConfigRuleResponse>;
9819
9884
  /**
9885
+ * ### Limits
9886
+ * You can use an ordinary account to create up to 200 rules.
9887
+ * ### Usage notes
9820
9888
  * This topic provides an example on how to create a managed rule named required-tags. The returned result indicates that the rule is created and the ID of the rule is `cr-5772ba41209e007b****`.
9821
- * ## Limits
9822
- * You can use a common account to create up to 200 rules.
9823
9889
  *
9824
9890
  * @param request CreateConfigRuleRequest
9825
9891
  * @return CreateConfigRuleResponse
@@ -10028,10 +10094,13 @@ export default class Client extends OpenApi {
10028
10094
  * @return DeleteRemediationsResponse
10029
10095
  */
10030
10096
  deleteRemediations(request: DeleteRemediationsRequest): Promise<DeleteRemediationsResponse>;
10097
+ describeRemediationWithOptions(request: DescribeRemediationRequest, runtime: $Util.RuntimeOptions): Promise<DescribeRemediationResponse>;
10098
+ describeRemediation(request: DescribeRemediationRequest): Promise<DescribeRemediationResponse>;
10031
10099
  /**
10100
+ * ### Prerequisites
10101
+ * One or more rules are added to a compliance package.
10102
+ * ### Usage notes
10032
10103
  * The sample request in this topic shows you how to remove the `cr-6cc4626622af00e7****` rule in the `ca-75b4626622af00c3****` account group from the `cp-5bb1626622af00bd****` compliance package.
10033
- * ## Prerequisites
10034
- * One or more rules in an account group are added to a compliance package.
10035
10104
  *
10036
10105
  * @param request DetachAggregateConfigRuleToCompliancePackRequest
10037
10106
  * @param runtime runtime options for this request RuntimeOptions
@@ -10039,9 +10108,10 @@ export default class Client extends OpenApi {
10039
10108
  */
10040
10109
  detachAggregateConfigRuleToCompliancePackWithOptions(request: DetachAggregateConfigRuleToCompliancePackRequest, runtime: $Util.RuntimeOptions): Promise<DetachAggregateConfigRuleToCompliancePackResponse>;
10041
10110
  /**
10111
+ * ### Prerequisites
10112
+ * One or more rules are added to a compliance package.
10113
+ * ### Usage notes
10042
10114
  * The sample request in this topic shows you how to remove the `cr-6cc4626622af00e7****` rule in the `ca-75b4626622af00c3****` account group from the `cp-5bb1626622af00bd****` compliance package.
10043
- * ## Prerequisites
10044
- * One or more rules in an account group are added to a compliance package.
10045
10115
  *
10046
10116
  * @param request DetachAggregateConfigRuleToCompliancePackRequest
10047
10117
  * @return DetachAggregateConfigRuleToCompliancePackResponse
@@ -10104,7 +10174,20 @@ export default class Client extends OpenApi {
10104
10174
  * @return GenerateAggregateConfigRulesReportResponse
10105
10175
  */
10106
10176
  generateAggregateConfigRulesReport(request: GenerateAggregateConfigRulesReportRequest): Promise<GenerateAggregateConfigRulesReportResponse>;
10177
+ /**
10178
+ * This topic provides an example to show how to generate a downloadable inventory for global resources in the account group ca-a91d626622af0035\\*\\*\\*\\*.
10179
+ *
10180
+ * @param request GenerateAggregateResourceInventoryRequest
10181
+ * @param runtime runtime options for this request RuntimeOptions
10182
+ * @return GenerateAggregateResourceInventoryResponse
10183
+ */
10107
10184
  generateAggregateResourceInventoryWithOptions(request: GenerateAggregateResourceInventoryRequest, runtime: $Util.RuntimeOptions): Promise<GenerateAggregateResourceInventoryResponse>;
10185
+ /**
10186
+ * This topic provides an example to show how to generate a downloadable inventory for global resources in the account group ca-a91d626622af0035\\*\\*\\*\\*.
10187
+ *
10188
+ * @param request GenerateAggregateResourceInventoryRequest
10189
+ * @return GenerateAggregateResourceInventoryResponse
10190
+ */
10108
10191
  generateAggregateResourceInventory(request: GenerateAggregateResourceInventoryRequest): Promise<GenerateAggregateResourceInventoryResponse>;
10109
10192
  /**
10110
10193
  * > You can call this operation to generate the latest compliance evaluation report. To download the report, call the GetCompliancePackReport operation. For more information, see [GetCompliancePackReport](~~263347~~).
@@ -10140,7 +10223,20 @@ export default class Client extends OpenApi {
10140
10223
  * @return GenerateConfigRulesReportResponse
10141
10224
  */
10142
10225
  generateConfigRulesReport(request: GenerateConfigRulesReportRequest): Promise<GenerateConfigRulesReportResponse>;
10226
+ /**
10227
+ * This topic provides an example on how to generate a resource inventory for global resources of the current account.
10228
+ *
10229
+ * @param request GenerateResourceInventoryRequest
10230
+ * @param runtime runtime options for this request RuntimeOptions
10231
+ * @return GenerateResourceInventoryResponse
10232
+ */
10143
10233
  generateResourceInventoryWithOptions(request: GenerateResourceInventoryRequest, runtime: $Util.RuntimeOptions): Promise<GenerateResourceInventoryResponse>;
10234
+ /**
10235
+ * This topic provides an example on how to generate a resource inventory for global resources of the current account.
10236
+ *
10237
+ * @param request GenerateResourceInventoryRequest
10238
+ * @return GenerateResourceInventoryResponse
10239
+ */
10144
10240
  generateResourceInventory(request: GenerateResourceInventoryRequest): Promise<GenerateResourceInventoryResponse>;
10145
10241
  getAdvancedSearchFileWithOptions(runtime: $Util.RuntimeOptions): Promise<GetAdvancedSearchFileResponse>;
10146
10242
  getAdvancedSearchFile(): Promise<GetAdvancedSearchFileResponse>;
@@ -10193,7 +10289,20 @@ export default class Client extends OpenApi {
10193
10289
  * @return GetAggregateCompliancePackReportResponse
10194
10290
  */
10195
10291
  getAggregateCompliancePackReport(request: GetAggregateCompliancePackReportRequest): Promise<GetAggregateCompliancePackReportResponse>;
10292
+ /**
10293
+ * This topic provides an example on how to query the compliance statistics of resources and rules in the account group ca-a91d626622af0035\\*\\*\\*\\*.
10294
+ *
10295
+ * @param request GetAggregateComplianceSummaryRequest
10296
+ * @param runtime runtime options for this request RuntimeOptions
10297
+ * @return GetAggregateComplianceSummaryResponse
10298
+ */
10196
10299
  getAggregateComplianceSummaryWithOptions(request: GetAggregateComplianceSummaryRequest, runtime: $Util.RuntimeOptions): Promise<GetAggregateComplianceSummaryResponse>;
10300
+ /**
10301
+ * This topic provides an example on how to query the compliance statistics of resources and rules in the account group ca-a91d626622af0035\\*\\*\\*\\*.
10302
+ *
10303
+ * @param request GetAggregateComplianceSummaryRequest
10304
+ * @return GetAggregateComplianceSummaryResponse
10305
+ */
10197
10306
  getAggregateComplianceSummary(request: GetAggregateComplianceSummaryRequest): Promise<GetAggregateComplianceSummaryResponse>;
10198
10307
  getAggregateConfigDeliveryChannelWithOptions(request: GetAggregateConfigDeliveryChannelRequest, runtime: $Util.RuntimeOptions): Promise<GetAggregateConfigDeliveryChannelResponse>;
10199
10308
  getAggregateConfigDeliveryChannel(request: GetAggregateConfigDeliveryChannelRequest): Promise<GetAggregateConfigDeliveryChannelResponse>;
@@ -10275,7 +10384,7 @@ export default class Client extends OpenApi {
10275
10384
  */
10276
10385
  getAggregateDiscoveredResource(request: GetAggregateDiscoveredResourceRequest): Promise<GetAggregateDiscoveredResourceResponse>;
10277
10386
  /**
10278
- * The sample request in this topic shows you how to query the compliance evaluation results based on the `cr-d369626622af008e****` rule in the `ca-a4e5626622af0079****` account group. The return result shows that a total of 10 resources are evaluated by the rule and five of them are evaluated as compliant.
10387
+ * This topic provides an example on how to query the compliance evaluation results based on the `cr-d369626622af008e****` rule in the `ca-a4e5626622af0079****` account group. The returned result shows that a total of 10 resources are evaluated by the rule and five of them are evaluated as compliant.
10279
10388
  *
10280
10389
  * @param request GetAggregateResourceComplianceByConfigRuleRequest
10281
10390
  * @param runtime runtime options for this request RuntimeOptions
@@ -10283,7 +10392,7 @@ export default class Client extends OpenApi {
10283
10392
  */
10284
10393
  getAggregateResourceComplianceByConfigRuleWithOptions(request: GetAggregateResourceComplianceByConfigRuleRequest, runtime: $Util.RuntimeOptions): Promise<GetAggregateResourceComplianceByConfigRuleResponse>;
10285
10394
  /**
10286
- * The sample request in this topic shows you how to query the compliance evaluation results based on the `cr-d369626622af008e****` rule in the `ca-a4e5626622af0079****` account group. The return result shows that a total of 10 resources are evaluated by the rule and five of them are evaluated as compliant.
10395
+ * This topic provides an example on how to query the compliance evaluation results based on the `cr-d369626622af008e****` rule in the `ca-a4e5626622af0079****` account group. The returned result shows that a total of 10 resources are evaluated by the rule and five of them are evaluated as compliant.
10287
10396
  *
10288
10397
  * @param request GetAggregateResourceComplianceByConfigRuleRequest
10289
10398
  * @return GetAggregateResourceComplianceByConfigRuleResponse
@@ -10417,7 +10526,19 @@ export default class Client extends OpenApi {
10417
10526
  * @return GetCompliancePackReportResponse
10418
10527
  */
10419
10528
  getCompliancePackReport(request: GetCompliancePackReportRequest): Promise<GetCompliancePackReportResponse>;
10529
+ /**
10530
+ * This topic provides an example on how to query the compliance statistics of resources and rules in the current account group.
10531
+ *
10532
+ * @param request GetComplianceSummaryRequest
10533
+ * @param runtime runtime options for this request RuntimeOptions
10534
+ * @return GetComplianceSummaryResponse
10535
+ */
10420
10536
  getComplianceSummaryWithOptions(runtime: $Util.RuntimeOptions): Promise<GetComplianceSummaryResponse>;
10537
+ /**
10538
+ * This topic provides an example on how to query the compliance statistics of resources and rules in the current account group.
10539
+ *
10540
+ * @return GetComplianceSummaryResponse
10541
+ */
10421
10542
  getComplianceSummary(): Promise<GetComplianceSummaryResponse>;
10422
10543
  getConfigDeliveryChannelWithOptions(request: GetConfigDeliveryChannelRequest, runtime: $Util.RuntimeOptions): Promise<GetConfigDeliveryChannelResponse>;
10423
10544
  getConfigDeliveryChannel(request: GetConfigDeliveryChannelRequest): Promise<GetConfigDeliveryChannelResponse>;
@@ -10482,7 +10603,19 @@ export default class Client extends OpenApi {
10482
10603
  * @return GetConfigRulesReportResponse
10483
10604
  */
10484
10605
  getConfigRulesReport(request: GetConfigRulesReportRequest): Promise<GetConfigRulesReportResponse>;
10606
+ /**
10607
+ * This topic provides an example on how to query the activation status and resource monitoring scope of Cloud Config for the current account.
10608
+ *
10609
+ * @param request GetConfigurationRecorderRequest
10610
+ * @param runtime runtime options for this request RuntimeOptions
10611
+ * @return GetConfigurationRecorderResponse
10612
+ */
10485
10613
  getConfigurationRecorderWithOptions(runtime: $Util.RuntimeOptions): Promise<GetConfigurationRecorderResponse>;
10614
+ /**
10615
+ * This topic provides an example on how to query the activation status and resource monitoring scope of Cloud Config for the current account.
10616
+ *
10617
+ * @return GetConfigurationRecorderResponse
10618
+ */
10486
10619
  getConfigurationRecorder(): Promise<GetConfigurationRecorderResponse>;
10487
10620
  /**
10488
10621
  * The sample request in this topic shows you how to query the details of the `new-bucket` resource.
@@ -10546,7 +10679,20 @@ export default class Client extends OpenApi {
10546
10679
  * @return GetManagedRuleResponse
10547
10680
  */
10548
10681
  getManagedRule(request: GetManagedRuleRequest): Promise<GetManagedRuleResponse>;
10682
+ /**
10683
+ * This topic provides an example on how to query the details of the automatic remediation template ACS-ALB-BulkyEnableDeletionProtection.
10684
+ *
10685
+ * @param request GetRemediationTemplateRequest
10686
+ * @param runtime runtime options for this request RuntimeOptions
10687
+ * @return GetRemediationTemplateResponse
10688
+ */
10549
10689
  getRemediationTemplateWithOptions(request: GetRemediationTemplateRequest, runtime: $Util.RuntimeOptions): Promise<GetRemediationTemplateResponse>;
10690
+ /**
10691
+ * This topic provides an example on how to query the details of the automatic remediation template ACS-ALB-BulkyEnableDeletionProtection.
10692
+ *
10693
+ * @param request GetRemediationTemplateRequest
10694
+ * @return GetRemediationTemplateResponse
10695
+ */
10550
10696
  getRemediationTemplate(request: GetRemediationTemplateRequest): Promise<GetRemediationTemplateResponse>;
10551
10697
  /**
10552
10698
  * In this topic, the `cr-d369626622af008e****` rule is used as an example. The return result shows that a total of 10 resources are evaluated by the rule and `five` of them are evaluated as compliant.
@@ -10889,7 +11035,20 @@ export default class Client extends OpenApi {
10889
11035
  listManagedRules(request: ListManagedRulesRequest): Promise<ListManagedRulesResponse>;
10890
11036
  listPreManagedRulesWithOptions(tmpReq: ListPreManagedRulesRequest, runtime: $Util.RuntimeOptions): Promise<ListPreManagedRulesResponse>;
10891
11037
  listPreManagedRules(request: ListPreManagedRulesRequest): Promise<ListPreManagedRulesResponse>;
11038
+ /**
11039
+ * This topic provides an example on how to query the remediation records of the rule cr-5392626622af0000\\*\\*\\*\\*.
11040
+ *
11041
+ * @param request ListRemediationExecutionsRequest
11042
+ * @param runtime runtime options for this request RuntimeOptions
11043
+ * @return ListRemediationExecutionsResponse
11044
+ */
10892
11045
  listRemediationExecutionsWithOptions(request: ListRemediationExecutionsRequest, runtime: $Util.RuntimeOptions): Promise<ListRemediationExecutionsResponse>;
11046
+ /**
11047
+ * This topic provides an example on how to query the remediation records of the rule cr-5392626622af0000\\*\\*\\*\\*.
11048
+ *
11049
+ * @param request ListRemediationExecutionsRequest
11050
+ * @return ListRemediationExecutionsResponse
11051
+ */
10893
11052
  listRemediationExecutions(request: ListRemediationExecutionsRequest): Promise<ListRemediationExecutionsResponse>;
10894
11053
  /**
10895
11054
  * In this topic, the `oss-bucket-public-write-prohibited` managed rule is used as an example. The return result shows the details of the remediation template of the `OOS` type for the managed rule. OOS represents Operation Orchestration Service.
@@ -11033,9 +11192,34 @@ export default class Client extends OpenApi {
11033
11192
  * @return StartAggregateRemediationResponse
11034
11193
  */
11035
11194
  startAggregateRemediation(request: StartAggregateRemediationRequest): Promise<StartAggregateRemediationResponse>;
11195
+ /**
11196
+ * In this example, the cr-9920626622af0035\\*\\*\\*\\* rule is used to re-evaluate the compliance of resources.
11197
+ *
11198
+ * @param request StartConfigRuleEvaluationRequest
11199
+ * @param runtime runtime options for this request RuntimeOptions
11200
+ * @return StartConfigRuleEvaluationResponse
11201
+ */
11036
11202
  startConfigRuleEvaluationWithOptions(request: StartConfigRuleEvaluationRequest, runtime: $Util.RuntimeOptions): Promise<StartConfigRuleEvaluationResponse>;
11203
+ /**
11204
+ * In this example, the cr-9920626622af0035\\*\\*\\*\\* rule is used to re-evaluate the compliance of resources.
11205
+ *
11206
+ * @param request StartConfigRuleEvaluationRequest
11207
+ * @return StartConfigRuleEvaluationResponse
11208
+ */
11037
11209
  startConfigRuleEvaluation(request: StartConfigRuleEvaluationRequest): Promise<StartConfigRuleEvaluationResponse>;
11210
+ /**
11211
+ * This topic provides an example on how to enable Cloud Config to monitor the resources of your Alibaba Cloud account.
11212
+ *
11213
+ * @param request StartConfigurationRecorderRequest
11214
+ * @param runtime runtime options for this request RuntimeOptions
11215
+ * @return StartConfigurationRecorderResponse
11216
+ */
11038
11217
  startConfigurationRecorderWithOptions(runtime: $Util.RuntimeOptions): Promise<StartConfigurationRecorderResponse>;
11218
+ /**
11219
+ * This topic provides an example on how to enable Cloud Config to monitor the resources of your Alibaba Cloud account.
11220
+ *
11221
+ * @return StartConfigurationRecorderResponse
11222
+ */
11039
11223
  startConfigurationRecorder(): Promise<StartConfigurationRecorderResponse>;
11040
11224
  /**
11041
11225
  * This topic provides an example on how to perform a remediation operation by using the rule whose ID is `cr-8a973ac2e2be00a2****`. The returned result shows that the manual execution is successful.
@@ -11178,7 +11362,20 @@ export default class Client extends OpenApi {
11178
11362
  * @return UpdateConfigRuleResponse
11179
11363
  */
11180
11364
  updateConfigRule(request: UpdateConfigRuleRequest): Promise<UpdateConfigRuleResponse>;
11365
+ /**
11366
+ * This topic provides an example on how to change the resource monitoring scope of the current account to ACS::ECS::Instance.
11367
+ *
11368
+ * @param request UpdateConfigurationRecorderRequest
11369
+ * @param runtime runtime options for this request RuntimeOptions
11370
+ * @return UpdateConfigurationRecorderResponse
11371
+ */
11181
11372
  updateConfigurationRecorderWithOptions(request: UpdateConfigurationRecorderRequest, runtime: $Util.RuntimeOptions): Promise<UpdateConfigurationRecorderResponse>;
11373
+ /**
11374
+ * This topic provides an example on how to change the resource monitoring scope of the current account to ACS::ECS::Instance.
11375
+ *
11376
+ * @param request UpdateConfigurationRecorderRequest
11377
+ * @return UpdateConfigurationRecorderResponse
11378
+ */
11182
11379
  updateConfigurationRecorder(request: UpdateConfigurationRecorderRequest): Promise<UpdateConfigurationRecorderResponse>;
11183
11380
  /**
11184
11381
  * @deprecated : UpdateDeliveryChannel is deprecated, please use Config::2020-09-07::UpdateConfigDeliveryChannel,Config::2020-09-07::UpdateAggregateConfigDeliveryChannel instead.