@alicloud/config20200907 2.3.0 → 2.4.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,6 +10094,8 @@ 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
  /**
10032
10100
  * 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
10101
  * ## Prerequisites
package/dist/client.js CHANGED
@@ -2057,6 +2057,62 @@ class DeleteRemediationsResponse extends $tea.Model {
2057
2057
  }
2058
2058
  }
2059
2059
  exports.DeleteRemediationsResponse = DeleteRemediationsResponse;
2060
+ class DescribeRemediationRequest extends $tea.Model {
2061
+ constructor(map) {
2062
+ super(map);
2063
+ }
2064
+ static names() {
2065
+ return {
2066
+ configRuleId: 'ConfigRuleId',
2067
+ remediationId: 'RemediationId',
2068
+ };
2069
+ }
2070
+ static types() {
2071
+ return {
2072
+ configRuleId: 'string',
2073
+ remediationId: 'string',
2074
+ };
2075
+ }
2076
+ }
2077
+ exports.DescribeRemediationRequest = DescribeRemediationRequest;
2078
+ class DescribeRemediationResponseBody extends $tea.Model {
2079
+ constructor(map) {
2080
+ super(map);
2081
+ }
2082
+ static names() {
2083
+ return {
2084
+ remediation: 'Remediation',
2085
+ requestId: 'RequestId',
2086
+ };
2087
+ }
2088
+ static types() {
2089
+ return {
2090
+ remediation: DescribeRemediationResponseBodyRemediation,
2091
+ requestId: 'string',
2092
+ };
2093
+ }
2094
+ }
2095
+ exports.DescribeRemediationResponseBody = DescribeRemediationResponseBody;
2096
+ class DescribeRemediationResponse extends $tea.Model {
2097
+ constructor(map) {
2098
+ super(map);
2099
+ }
2100
+ static names() {
2101
+ return {
2102
+ headers: 'headers',
2103
+ statusCode: 'statusCode',
2104
+ body: 'body',
2105
+ };
2106
+ }
2107
+ static types() {
2108
+ return {
2109
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2110
+ statusCode: 'number',
2111
+ body: DescribeRemediationResponseBody,
2112
+ };
2113
+ }
2114
+ }
2115
+ exports.DescribeRemediationResponse = DescribeRemediationResponse;
2060
2116
  class DetachAggregateConfigRuleToCompliancePackRequest extends $tea.Model {
2061
2117
  constructor(map) {
2062
2118
  super(map);
@@ -9335,6 +9391,42 @@ class DeleteRemediationsResponseBodyRemediationDeleteResults extends $tea.Model
9335
9391
  }
9336
9392
  }
9337
9393
  exports.DeleteRemediationsResponseBodyRemediationDeleteResults = DeleteRemediationsResponseBodyRemediationDeleteResults;
9394
+ class DescribeRemediationResponseBodyRemediation extends $tea.Model {
9395
+ constructor(map) {
9396
+ super(map);
9397
+ }
9398
+ static names() {
9399
+ return {
9400
+ accountId: 'AccountId',
9401
+ configRuleId: 'ConfigRuleId',
9402
+ invokeType: 'InvokeType',
9403
+ lastSuccessfulInvocationId: 'LastSuccessfulInvocationId',
9404
+ lastSuccessfulInvocationTime: 'LastSuccessfulInvocationTime',
9405
+ lastSuccessfulInvocationType: 'LastSuccessfulInvocationType',
9406
+ remediationId: 'RemediationId',
9407
+ remediationOriginParams: 'RemediationOriginParams',
9408
+ remediationSourceType: 'RemediationSourceType',
9409
+ remediationTemplateId: 'RemediationTemplateId',
9410
+ remediationType: 'RemediationType',
9411
+ };
9412
+ }
9413
+ static types() {
9414
+ return {
9415
+ accountId: 'number',
9416
+ configRuleId: 'string',
9417
+ invokeType: 'string',
9418
+ lastSuccessfulInvocationId: 'string',
9419
+ lastSuccessfulInvocationTime: 'number',
9420
+ lastSuccessfulInvocationType: 'string',
9421
+ remediationId: 'string',
9422
+ remediationOriginParams: 'string',
9423
+ remediationSourceType: 'string',
9424
+ remediationTemplateId: 'string',
9425
+ remediationType: 'string',
9426
+ };
9427
+ }
9428
+ }
9429
+ exports.DescribeRemediationResponseBodyRemediation = DescribeRemediationResponseBodyRemediation;
9338
9430
  class DetachAggregateConfigRuleToCompliancePackResponseBodyOperateRuleResultOperateRuleItemList extends $tea.Model {
9339
9431
  constructor(map) {
9340
9432
  super(map);
@@ -14428,9 +14520,10 @@ class Client extends openapi_client_1.default {
14428
14520
  return await this.createConfigDeliveryChannelWithOptions(request, runtime);
14429
14521
  }
14430
14522
  /**
14523
+ * ### Limits
14524
+ * You can use an ordinary account to create up to 200 rules.
14525
+ * ### Usage notes
14431
14526
  * 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****`.
14432
- * ## Limits
14433
- * You can use a common account to create up to 200 rules.
14434
14527
  *
14435
14528
  * @param tmpReq CreateConfigRuleRequest
14436
14529
  * @param runtime runtime options for this request RuntimeOptions
@@ -14512,9 +14605,10 @@ class Client extends openapi_client_1.default {
14512
14605
  return $tea.cast(await this.callApi(params, req, runtime), new CreateConfigRuleResponse({}));
14513
14606
  }
14514
14607
  /**
14608
+ * ### Limits
14609
+ * You can use an ordinary account to create up to 200 rules.
14610
+ * ### Usage notes
14515
14611
  * 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****`.
14516
- * ## Limits
14517
- * You can use a common account to create up to 200 rules.
14518
14612
  *
14519
14613
  * @param request CreateConfigRuleRequest
14520
14614
  * @return CreateConfigRuleResponse
@@ -15118,6 +15212,29 @@ class Client extends openapi_client_1.default {
15118
15212
  let runtime = new $Util.RuntimeOptions({});
15119
15213
  return await this.deleteRemediationsWithOptions(request, runtime);
15120
15214
  }
15215
+ async describeRemediationWithOptions(request, runtime) {
15216
+ tea_util_1.default.validateModel(request);
15217
+ let query = openapi_util_1.default.query(tea_util_1.default.toMap(request));
15218
+ let req = new $OpenApi.OpenApiRequest({
15219
+ query: openapi_util_1.default.query(query),
15220
+ });
15221
+ let params = new $OpenApi.Params({
15222
+ action: "DescribeRemediation",
15223
+ version: "2020-09-07",
15224
+ protocol: "HTTPS",
15225
+ pathname: "/",
15226
+ method: "GET",
15227
+ authType: "AK",
15228
+ style: "RPC",
15229
+ reqBodyType: "formData",
15230
+ bodyType: "json",
15231
+ });
15232
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeRemediationResponse({}));
15233
+ }
15234
+ async describeRemediation(request) {
15235
+ let runtime = new $Util.RuntimeOptions({});
15236
+ return await this.describeRemediationWithOptions(request, runtime);
15237
+ }
15121
15238
  /**
15122
15239
  * 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.
15123
15240
  * ## Prerequisites