@alicloud/config20200907 2.2.7 → 2.2.8

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/src/client.ts CHANGED
@@ -6172,6 +6172,99 @@ export class ListAggregateResourceEvaluationResultsResponse extends $tea.Model {
6172
6172
  }
6173
6173
  }
6174
6174
 
6175
+ export class ListAggregateResourceRelationsRequest extends $tea.Model {
6176
+ aggregatorId?: string;
6177
+ maxResults?: number;
6178
+ nextToken?: string;
6179
+ region?: string;
6180
+ relationType?: string;
6181
+ resourceAccountId?: number;
6182
+ resourceId?: string;
6183
+ resourceType?: string;
6184
+ targetResourceId?: string;
6185
+ targetResourceType?: string;
6186
+ static names(): { [key: string]: string } {
6187
+ return {
6188
+ aggregatorId: 'AggregatorId',
6189
+ maxResults: 'MaxResults',
6190
+ nextToken: 'NextToken',
6191
+ region: 'Region',
6192
+ relationType: 'RelationType',
6193
+ resourceAccountId: 'ResourceAccountId',
6194
+ resourceId: 'ResourceId',
6195
+ resourceType: 'ResourceType',
6196
+ targetResourceId: 'TargetResourceId',
6197
+ targetResourceType: 'TargetResourceType',
6198
+ };
6199
+ }
6200
+
6201
+ static types(): { [key: string]: any } {
6202
+ return {
6203
+ aggregatorId: 'string',
6204
+ maxResults: 'number',
6205
+ nextToken: 'string',
6206
+ region: 'string',
6207
+ relationType: 'string',
6208
+ resourceAccountId: 'number',
6209
+ resourceId: 'string',
6210
+ resourceType: 'string',
6211
+ targetResourceId: 'string',
6212
+ targetResourceType: 'string',
6213
+ };
6214
+ }
6215
+
6216
+ constructor(map?: { [key: string]: any }) {
6217
+ super(map);
6218
+ }
6219
+ }
6220
+
6221
+ export class ListAggregateResourceRelationsResponseBody extends $tea.Model {
6222
+ requestId?: string;
6223
+ resourceRelations?: ListAggregateResourceRelationsResponseBodyResourceRelations;
6224
+ static names(): { [key: string]: string } {
6225
+ return {
6226
+ requestId: 'RequestId',
6227
+ resourceRelations: 'ResourceRelations',
6228
+ };
6229
+ }
6230
+
6231
+ static types(): { [key: string]: any } {
6232
+ return {
6233
+ requestId: 'string',
6234
+ resourceRelations: ListAggregateResourceRelationsResponseBodyResourceRelations,
6235
+ };
6236
+ }
6237
+
6238
+ constructor(map?: { [key: string]: any }) {
6239
+ super(map);
6240
+ }
6241
+ }
6242
+
6243
+ export class ListAggregateResourceRelationsResponse extends $tea.Model {
6244
+ headers: { [key: string]: string };
6245
+ statusCode: number;
6246
+ body: ListAggregateResourceRelationsResponseBody;
6247
+ static names(): { [key: string]: string } {
6248
+ return {
6249
+ headers: 'headers',
6250
+ statusCode: 'statusCode',
6251
+ body: 'body',
6252
+ };
6253
+ }
6254
+
6255
+ static types(): { [key: string]: any } {
6256
+ return {
6257
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
6258
+ statusCode: 'number',
6259
+ body: ListAggregateResourceRelationsResponseBody,
6260
+ };
6261
+ }
6262
+
6263
+ constructor(map?: { [key: string]: any }) {
6264
+ super(map);
6265
+ }
6266
+ }
6267
+
6175
6268
  export class ListAggregatorsRequest extends $tea.Model {
6176
6269
  maxResults?: number;
6177
6270
  nextToken?: string;
@@ -6892,10 +6985,14 @@ export class ListPreManagedRulesResponse extends $tea.Model {
6892
6985
 
6893
6986
  export class ListRemediationTemplatesRequest extends $tea.Model {
6894
6987
  managedRuleIdentifier?: string;
6988
+ pageNumber?: number;
6989
+ pageSize?: number;
6895
6990
  remediationType?: string;
6896
6991
  static names(): { [key: string]: string } {
6897
6992
  return {
6898
6993
  managedRuleIdentifier: 'ManagedRuleIdentifier',
6994
+ pageNumber: 'PageNumber',
6995
+ pageSize: 'PageSize',
6899
6996
  remediationType: 'RemediationType',
6900
6997
  };
6901
6998
  }
@@ -6903,6 +7000,8 @@ export class ListRemediationTemplatesRequest extends $tea.Model {
6903
7000
  static types(): { [key: string]: any } {
6904
7001
  return {
6905
7002
  managedRuleIdentifier: 'string',
7003
+ pageNumber: 'number',
7004
+ pageSize: 'number',
6906
7005
  remediationType: 'string',
6907
7006
  };
6908
7007
  }
@@ -6913,19 +7012,28 @@ export class ListRemediationTemplatesRequest extends $tea.Model {
6913
7012
  }
6914
7013
 
6915
7014
  export class ListRemediationTemplatesResponseBody extends $tea.Model {
7015
+ pageNumber?: number;
7016
+ pageSize?: number;
6916
7017
  remediationTemplates?: ListRemediationTemplatesResponseBodyRemediationTemplates[];
6917
7018
  requestId?: string;
7019
+ totalCount?: string;
6918
7020
  static names(): { [key: string]: string } {
6919
7021
  return {
7022
+ pageNumber: 'PageNumber',
7023
+ pageSize: 'PageSize',
6920
7024
  remediationTemplates: 'RemediationTemplates',
6921
7025
  requestId: 'RequestId',
7026
+ totalCount: 'TotalCount',
6922
7027
  };
6923
7028
  }
6924
7029
 
6925
7030
  static types(): { [key: string]: any } {
6926
7031
  return {
7032
+ pageNumber: 'number',
7033
+ pageSize: 'number',
6927
7034
  remediationTemplates: { 'type': 'array', 'itemType': ListRemediationTemplatesResponseBodyRemediationTemplates },
6928
7035
  requestId: 'string',
7036
+ totalCount: 'string',
6929
7037
  };
6930
7038
  }
6931
7039
 
@@ -6961,15 +7069,21 @@ export class ListRemediationTemplatesResponse extends $tea.Model {
6961
7069
 
6962
7070
  export class ListRemediationsRequest extends $tea.Model {
6963
7071
  configRuleIds?: string;
7072
+ pageNumber?: number;
7073
+ pageSize?: number;
6964
7074
  static names(): { [key: string]: string } {
6965
7075
  return {
6966
7076
  configRuleIds: 'ConfigRuleIds',
7077
+ pageNumber: 'PageNumber',
7078
+ pageSize: 'PageSize',
6967
7079
  };
6968
7080
  }
6969
7081
 
6970
7082
  static types(): { [key: string]: any } {
6971
7083
  return {
6972
7084
  configRuleIds: 'string',
7085
+ pageNumber: 'number',
7086
+ pageSize: 'number',
6973
7087
  };
6974
7088
  }
6975
7089
 
@@ -6979,19 +7093,28 @@ export class ListRemediationsRequest extends $tea.Model {
6979
7093
  }
6980
7094
 
6981
7095
  export class ListRemediationsResponseBody extends $tea.Model {
7096
+ pageNumber?: number;
7097
+ pageSize?: number;
6982
7098
  remediations?: ListRemediationsResponseBodyRemediations[];
6983
7099
  requestId?: string;
7100
+ totalCount?: string;
6984
7101
  static names(): { [key: string]: string } {
6985
7102
  return {
7103
+ pageNumber: 'PageNumber',
7104
+ pageSize: 'PageSize',
6986
7105
  remediations: 'Remediations',
6987
7106
  requestId: 'RequestId',
7107
+ totalCount: 'TotalCount',
6988
7108
  };
6989
7109
  }
6990
7110
 
6991
7111
  static types(): { [key: string]: any } {
6992
7112
  return {
7113
+ pageNumber: 'number',
7114
+ pageSize: 'number',
6993
7115
  remediations: { 'type': 'array', 'itemType': ListRemediationsResponseBodyRemediations },
6994
7116
  requestId: 'string',
7117
+ totalCount: 'string',
6995
7118
  };
6996
7119
  }
6997
7120
 
@@ -7106,6 +7229,93 @@ export class ListResourceEvaluationResultsResponse extends $tea.Model {
7106
7229
  }
7107
7230
  }
7108
7231
 
7232
+ export class ListResourceRelationsRequest extends $tea.Model {
7233
+ maxResults?: number;
7234
+ nextToken?: string;
7235
+ region?: string;
7236
+ relationType?: string;
7237
+ resourceId?: string;
7238
+ resourceType?: string;
7239
+ targetResourceId?: string;
7240
+ targetResourceType?: string;
7241
+ static names(): { [key: string]: string } {
7242
+ return {
7243
+ maxResults: 'MaxResults',
7244
+ nextToken: 'NextToken',
7245
+ region: 'Region',
7246
+ relationType: 'RelationType',
7247
+ resourceId: 'ResourceId',
7248
+ resourceType: 'ResourceType',
7249
+ targetResourceId: 'TargetResourceId',
7250
+ targetResourceType: 'TargetResourceType',
7251
+ };
7252
+ }
7253
+
7254
+ static types(): { [key: string]: any } {
7255
+ return {
7256
+ maxResults: 'number',
7257
+ nextToken: 'string',
7258
+ region: 'string',
7259
+ relationType: 'string',
7260
+ resourceId: 'string',
7261
+ resourceType: 'string',
7262
+ targetResourceId: 'string',
7263
+ targetResourceType: 'string',
7264
+ };
7265
+ }
7266
+
7267
+ constructor(map?: { [key: string]: any }) {
7268
+ super(map);
7269
+ }
7270
+ }
7271
+
7272
+ export class ListResourceRelationsResponseBody extends $tea.Model {
7273
+ requestId?: string;
7274
+ resourceRelations?: ListResourceRelationsResponseBodyResourceRelations;
7275
+ static names(): { [key: string]: string } {
7276
+ return {
7277
+ requestId: 'RequestId',
7278
+ resourceRelations: 'ResourceRelations',
7279
+ };
7280
+ }
7281
+
7282
+ static types(): { [key: string]: any } {
7283
+ return {
7284
+ requestId: 'string',
7285
+ resourceRelations: ListResourceRelationsResponseBodyResourceRelations,
7286
+ };
7287
+ }
7288
+
7289
+ constructor(map?: { [key: string]: any }) {
7290
+ super(map);
7291
+ }
7292
+ }
7293
+
7294
+ export class ListResourceRelationsResponse extends $tea.Model {
7295
+ headers: { [key: string]: string };
7296
+ statusCode: number;
7297
+ body: ListResourceRelationsResponseBody;
7298
+ static names(): { [key: string]: string } {
7299
+ return {
7300
+ headers: 'headers',
7301
+ statusCode: 'statusCode',
7302
+ body: 'body',
7303
+ };
7304
+ }
7305
+
7306
+ static types(): { [key: string]: any } {
7307
+ return {
7308
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
7309
+ statusCode: 'number',
7310
+ body: ListResourceRelationsResponseBody,
7311
+ };
7312
+ }
7313
+
7314
+ constructor(map?: { [key: string]: any }) {
7315
+ super(map);
7316
+ }
7317
+ }
7318
+
7109
7319
  export class ListTagResourcesRequest extends $tea.Model {
7110
7320
  nextToken?: string;
7111
7321
  regionId?: string;
@@ -11504,6 +11714,25 @@ export class GetConfigRuleResponseBodyConfigRuleManagedRule extends $tea.Model {
11504
11714
  }
11505
11715
  }
11506
11716
 
11717
+ export class GetConfigRuleResponseBodyConfigRuleScope extends $tea.Model {
11718
+ complianceResourceTypes?: string[];
11719
+ static names(): { [key: string]: string } {
11720
+ return {
11721
+ complianceResourceTypes: 'ComplianceResourceTypes',
11722
+ };
11723
+ }
11724
+
11725
+ static types(): { [key: string]: any } {
11726
+ return {
11727
+ complianceResourceTypes: { 'type': 'array', 'itemType': 'string' },
11728
+ };
11729
+ }
11730
+
11731
+ constructor(map?: { [key: string]: any }) {
11732
+ super(map);
11733
+ }
11734
+ }
11735
+
11507
11736
  export class GetConfigRuleResponseBodyConfigRuleSourceSourceDetails extends $tea.Model {
11508
11737
  eventSource?: string;
11509
11738
  maximumExecutionFrequency?: string;
@@ -11575,6 +11804,7 @@ export class GetConfigRuleResponseBodyConfigRule extends $tea.Model {
11575
11804
  resourceGroupIdsScope?: string;
11576
11805
  resourceTypesScope?: string;
11577
11806
  riskLevel?: number;
11807
+ scope?: GetConfigRuleResponseBodyConfigRuleScope;
11578
11808
  source?: GetConfigRuleResponseBodyConfigRuleSource;
11579
11809
  tagKeyLogicScope?: string;
11580
11810
  tagKeyScope?: string;
@@ -11601,6 +11831,7 @@ export class GetConfigRuleResponseBodyConfigRule extends $tea.Model {
11601
11831
  resourceGroupIdsScope: 'ResourceGroupIdsScope',
11602
11832
  resourceTypesScope: 'ResourceTypesScope',
11603
11833
  riskLevel: 'RiskLevel',
11834
+ scope: 'Scope',
11604
11835
  source: 'Source',
11605
11836
  tagKeyLogicScope: 'TagKeyLogicScope',
11606
11837
  tagKeyScope: 'TagKeyScope',
@@ -11630,6 +11861,7 @@ export class GetConfigRuleResponseBodyConfigRule extends $tea.Model {
11630
11861
  resourceGroupIdsScope: 'string',
11631
11862
  resourceTypesScope: 'string',
11632
11863
  riskLevel: 'number',
11864
+ scope: GetConfigRuleResponseBodyConfigRuleScope,
11633
11865
  source: GetConfigRuleResponseBodyConfigRuleSource,
11634
11866
  tagKeyLogicScope: 'string',
11635
11867
  tagKeyScope: 'string',
@@ -13033,6 +13265,68 @@ export class ListAggregateResourceEvaluationResultsResponseBodyEvaluationResults
13033
13265
  }
13034
13266
  }
13035
13267
 
13268
+ export class ListAggregateResourceRelationsResponseBodyResourceRelationsResourceRelationList extends $tea.Model {
13269
+ accountId?: number;
13270
+ relationType?: string;
13271
+ sourceResourceId?: string;
13272
+ sourceResourceRegionId?: string;
13273
+ sourceResourceType?: string;
13274
+ targetResourceId?: string;
13275
+ targetResourceType?: string;
13276
+ static names(): { [key: string]: string } {
13277
+ return {
13278
+ accountId: 'AccountId',
13279
+ relationType: 'RelationType',
13280
+ sourceResourceId: 'SourceResourceId',
13281
+ sourceResourceRegionId: 'SourceResourceRegionId',
13282
+ sourceResourceType: 'SourceResourceType',
13283
+ targetResourceId: 'TargetResourceId',
13284
+ targetResourceType: 'TargetResourceType',
13285
+ };
13286
+ }
13287
+
13288
+ static types(): { [key: string]: any } {
13289
+ return {
13290
+ accountId: 'number',
13291
+ relationType: 'string',
13292
+ sourceResourceId: 'string',
13293
+ sourceResourceRegionId: 'string',
13294
+ sourceResourceType: 'string',
13295
+ targetResourceId: 'string',
13296
+ targetResourceType: 'string',
13297
+ };
13298
+ }
13299
+
13300
+ constructor(map?: { [key: string]: any }) {
13301
+ super(map);
13302
+ }
13303
+ }
13304
+
13305
+ export class ListAggregateResourceRelationsResponseBodyResourceRelations extends $tea.Model {
13306
+ maxResults?: number;
13307
+ nextToken?: string;
13308
+ resourceRelationList?: ListAggregateResourceRelationsResponseBodyResourceRelationsResourceRelationList[];
13309
+ static names(): { [key: string]: string } {
13310
+ return {
13311
+ maxResults: 'MaxResults',
13312
+ nextToken: 'NextToken',
13313
+ resourceRelationList: 'ResourceRelationList',
13314
+ };
13315
+ }
13316
+
13317
+ static types(): { [key: string]: any } {
13318
+ return {
13319
+ maxResults: 'number',
13320
+ nextToken: 'string',
13321
+ resourceRelationList: { 'type': 'array', 'itemType': ListAggregateResourceRelationsResponseBodyResourceRelationsResourceRelationList },
13322
+ };
13323
+ }
13324
+
13325
+ constructor(map?: { [key: string]: any }) {
13326
+ super(map);
13327
+ }
13328
+ }
13329
+
13036
13330
  export class ListAggregatorsResponseBodyAggregatorsResultAggregators extends $tea.Model {
13037
13331
  accountId?: number;
13038
13332
  aggregatorAccountCount?: number;
@@ -13735,8 +14029,11 @@ export class ListManagedRulesResponseBodyManagedRulesManagedRuleList extends $te
13735
14029
  helpUrls?: string;
13736
14030
  identifier?: string;
13737
14031
  labels?: string[];
14032
+ remediationTemplateIdentifier?: string;
14033
+ remediationTemplateName?: string;
13738
14034
  riskLevel?: number;
13739
14035
  scope?: ListManagedRulesResponseBodyManagedRulesManagedRuleListScope;
14036
+ supportPreviewManagedRule?: boolean;
13740
14037
  static names(): { [key: string]: string } {
13741
14038
  return {
13742
14039
  configRuleName: 'ConfigRuleName',
@@ -13744,8 +14041,11 @@ export class ListManagedRulesResponseBodyManagedRulesManagedRuleList extends $te
13744
14041
  helpUrls: 'HelpUrls',
13745
14042
  identifier: 'Identifier',
13746
14043
  labels: 'Labels',
14044
+ remediationTemplateIdentifier: 'RemediationTemplateIdentifier',
14045
+ remediationTemplateName: 'RemediationTemplateName',
13747
14046
  riskLevel: 'RiskLevel',
13748
14047
  scope: 'Scope',
14048
+ supportPreviewManagedRule: 'SupportPreviewManagedRule',
13749
14049
  };
13750
14050
  }
13751
14051
 
@@ -13756,8 +14056,11 @@ export class ListManagedRulesResponseBodyManagedRulesManagedRuleList extends $te
13756
14056
  helpUrls: 'string',
13757
14057
  identifier: 'string',
13758
14058
  labels: { 'type': 'array', 'itemType': 'string' },
14059
+ remediationTemplateIdentifier: 'string',
14060
+ remediationTemplateName: 'string',
13759
14061
  riskLevel: 'number',
13760
14062
  scope: ListManagedRulesResponseBodyManagedRulesManagedRuleListScope,
14063
+ supportPreviewManagedRule: 'boolean',
13761
14064
  };
13762
14065
  }
13763
14066
 
@@ -13834,12 +14137,14 @@ export class ListPreManagedRulesResponseBodyManagedRules extends $tea.Model {
13834
14137
  export class ListRemediationTemplatesResponseBodyRemediationTemplates extends $tea.Model {
13835
14138
  remediationType?: string;
13836
14139
  templateDefinition?: string;
14140
+ templateDescription?: string;
13837
14141
  templateIdentifier?: string;
13838
14142
  templateName?: string;
13839
14143
  static names(): { [key: string]: string } {
13840
14144
  return {
13841
14145
  remediationType: 'RemediationType',
13842
14146
  templateDefinition: 'TemplateDefinition',
14147
+ templateDescription: 'TemplateDescription',
13843
14148
  templateIdentifier: 'TemplateIdentifier',
13844
14149
  templateName: 'TemplateName',
13845
14150
  };
@@ -13849,6 +14154,7 @@ export class ListRemediationTemplatesResponseBodyRemediationTemplates extends $t
13849
14154
  return {
13850
14155
  remediationType: 'string',
13851
14156
  templateDefinition: 'string',
14157
+ templateDescription: 'string',
13852
14158
  templateIdentifier: 'string',
13853
14159
  templateName: 'string',
13854
14160
  };
@@ -14035,6 +14341,68 @@ export class ListResourceEvaluationResultsResponseBodyEvaluationResults extends
14035
14341
  }
14036
14342
  }
14037
14343
 
14344
+ export class ListResourceRelationsResponseBodyResourceRelationsResourceRelationList extends $tea.Model {
14345
+ accountId?: number;
14346
+ relationType?: string;
14347
+ sourceResourceId?: string;
14348
+ sourceResourceRegionId?: string;
14349
+ sourceResourceType?: string;
14350
+ targetResourceId?: string;
14351
+ targetResourceType?: string;
14352
+ static names(): { [key: string]: string } {
14353
+ return {
14354
+ accountId: 'AccountId',
14355
+ relationType: 'RelationType',
14356
+ sourceResourceId: 'SourceResourceId',
14357
+ sourceResourceRegionId: 'SourceResourceRegionId',
14358
+ sourceResourceType: 'SourceResourceType',
14359
+ targetResourceId: 'TargetResourceId',
14360
+ targetResourceType: 'TargetResourceType',
14361
+ };
14362
+ }
14363
+
14364
+ static types(): { [key: string]: any } {
14365
+ return {
14366
+ accountId: 'number',
14367
+ relationType: 'string',
14368
+ sourceResourceId: 'string',
14369
+ sourceResourceRegionId: 'string',
14370
+ sourceResourceType: 'string',
14371
+ targetResourceId: 'string',
14372
+ targetResourceType: 'string',
14373
+ };
14374
+ }
14375
+
14376
+ constructor(map?: { [key: string]: any }) {
14377
+ super(map);
14378
+ }
14379
+ }
14380
+
14381
+ export class ListResourceRelationsResponseBodyResourceRelations extends $tea.Model {
14382
+ maxResults?: number;
14383
+ nextToken?: string;
14384
+ resourceRelationList?: ListResourceRelationsResponseBodyResourceRelationsResourceRelationList[];
14385
+ static names(): { [key: string]: string } {
14386
+ return {
14387
+ maxResults: 'MaxResults',
14388
+ nextToken: 'NextToken',
14389
+ resourceRelationList: 'ResourceRelationList',
14390
+ };
14391
+ }
14392
+
14393
+ static types(): { [key: string]: any } {
14394
+ return {
14395
+ maxResults: 'number',
14396
+ nextToken: 'string',
14397
+ resourceRelationList: { 'type': 'array', 'itemType': ListResourceRelationsResponseBodyResourceRelationsResourceRelationList },
14398
+ };
14399
+ }
14400
+
14401
+ constructor(map?: { [key: string]: any }) {
14402
+ super(map);
14403
+ }
14404
+ }
14405
+
14038
14406
  export class ListTagResourcesRequestTag extends $tea.Model {
14039
14407
  key?: string;
14040
14408
  value?: string;
@@ -14347,7 +14715,8 @@ export default class Client extends OpenApi {
14347
14715
  }
14348
14716
 
14349
14717
  /**
14350
- * The sample request in this topic shows you how to enable the `cr-5772ba41209e007b****` rule in the `ca-a4e5626622af0079****` account group.
14718
+ * The ID of the rule. Separate multiple rule IDs with commas (,).
14719
+ * For more information about how to obtain the ID of a rule, see [ListAggregateConfigRules](~~264148~~).
14351
14720
  *
14352
14721
  * @param request ActiveAggregateConfigRulesRequest
14353
14722
  * @param runtime runtime options for this request RuntimeOptions
@@ -14382,7 +14751,8 @@ export default class Client extends OpenApi {
14382
14751
  }
14383
14752
 
14384
14753
  /**
14385
- * The sample request in this topic shows you how to enable the `cr-5772ba41209e007b****` rule in the `ca-a4e5626622af0079****` account group.
14754
+ * The ID of the rule. Separate multiple rule IDs with commas (,).
14755
+ * For more information about how to obtain the ID of a rule, see [ListAggregateConfigRules](~~264148~~).
14386
14756
  *
14387
14757
  * @param request ActiveAggregateConfigRulesRequest
14388
14758
  * @return ActiveAggregateConfigRulesResponse
@@ -14747,9 +15117,7 @@ export default class Client extends OpenApi {
14747
15117
  }
14748
15118
 
14749
15119
  /**
14750
- * The sample request in this topic shows you how to create a rule based on the required-tags managed rule in the `ca-a4e5626622af0079****` account group. The return result shows that the rule is created and its ID is `cr-4e3d626622af0080****`.
14751
- * ## Limits
14752
- * A management account can contain up to 200 rules.
15120
+ * The description of the rule.
14753
15121
  *
14754
15122
  * @param tmpReq CreateAggregateConfigRuleRequest
14755
15123
  * @param runtime runtime options for this request RuntimeOptions
@@ -14866,9 +15234,7 @@ export default class Client extends OpenApi {
14866
15234
  }
14867
15235
 
14868
15236
  /**
14869
- * The sample request in this topic shows you how to create a rule based on the required-tags managed rule in the `ca-a4e5626622af0079****` account group. The return result shows that the rule is created and its ID is `cr-4e3d626622af0080****`.
14870
- * ## Limits
14871
- * A management account can contain up to 200 rules.
15237
+ * The description of the rule.
14872
15238
  *
14873
15239
  * @param request CreateAggregateConfigRuleRequest
14874
15240
  * @return CreateAggregateConfigRuleResponse
@@ -15469,7 +15835,8 @@ export default class Client extends OpenApi {
15469
15835
  }
15470
15836
 
15471
15837
  /**
15472
- * The sample request in this topic shows you how to disable the `cr-5772ba41209e007b****` rule in the `ca-04b3fd170e340007****` account group.
15838
+ * The ID of the rule. Separate multiple rule IDs with commas (,).
15839
+ * For more information about how to obtain the ID of a rule, see [ListAggregateConfigRules](~~264148~~).
15473
15840
  *
15474
15841
  * @param request DeactiveAggregateConfigRulesRequest
15475
15842
  * @param runtime runtime options for this request RuntimeOptions
@@ -15504,7 +15871,8 @@ export default class Client extends OpenApi {
15504
15871
  }
15505
15872
 
15506
15873
  /**
15507
- * The sample request in this topic shows you how to disable the `cr-5772ba41209e007b****` rule in the `ca-04b3fd170e340007****` account group.
15874
+ * The ID of the rule. Separate multiple rule IDs with commas (,).
15875
+ * For more information about how to obtain the ID of a rule, see [ListAggregateConfigRules](~~264148~~).
15508
15876
  *
15509
15877
  * @param request DeactiveAggregateConfigRulesRequest
15510
15878
  * @return DeactiveAggregateConfigRulesResponse
@@ -15753,7 +16121,7 @@ export default class Client extends OpenApi {
15753
16121
  }
15754
16122
 
15755
16123
  /**
15756
- * In the example of this topic, a request is sent to delete the account group whose ID is `ca-9190626622af00a9****`.
16124
+ * The operation that you want to perform. Set the value to **DeleteAggregators**.
15757
16125
  *
15758
16126
  * @param request DeleteAggregatorsRequest
15759
16127
  * @param runtime runtime options for this request RuntimeOptions
@@ -15788,7 +16156,7 @@ export default class Client extends OpenApi {
15788
16156
  }
15789
16157
 
15790
16158
  /**
15791
- * In the example of this topic, a request is sent to delete the account group whose ID is `ca-9190626622af00a9****`.
16159
+ * The operation that you want to perform. Set the value to **DeleteAggregators**.
15792
16160
  *
15793
16161
  * @param request DeleteAggregatorsRequest
15794
16162
  * @return DeleteAggregatorsResponse
@@ -16595,7 +16963,8 @@ export default class Client extends OpenApi {
16595
16963
  }
16596
16964
 
16597
16965
  /**
16598
- * The sample request in this topic shows you how to query the `new-bucket` resource in the `ca-5885626622af0008****` account group.
16966
+ * The type of the resource.
16967
+ * For more information about how to query the type of a resource, see [ListAggregateDiscoveredResources](~~411691~~).
16599
16968
  *
16600
16969
  * @param request GetAggregateDiscoveredResourceRequest
16601
16970
  * @param runtime runtime options for this request RuntimeOptions
@@ -16622,7 +16991,8 @@ export default class Client extends OpenApi {
16622
16991
  }
16623
16992
 
16624
16993
  /**
16625
- * The sample request in this topic shows you how to query the `new-bucket` resource in the `ca-5885626622af0008****` account group.
16994
+ * The type of the resource.
16995
+ * For more information about how to query the type of a resource, see [ListAggregateDiscoveredResources](~~411691~~).
16626
16996
  *
16627
16997
  * @param request GetAggregateDiscoveredResourceRequest
16628
16998
  * @return GetAggregateDiscoveredResourceResponse
@@ -16633,7 +17003,8 @@ export default class Client extends OpenApi {
16633
17003
  }
16634
17004
 
16635
17005
  /**
16636
- * 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.
17006
+ * The ID of the rule.
17007
+ * For more information about how to query the ID of a rule, see [ListAggregateConfigRules](~~264148~~).
16637
17008
  *
16638
17009
  * @param request GetAggregateResourceComplianceByConfigRuleRequest
16639
17010
  * @param runtime runtime options for this request RuntimeOptions
@@ -16680,7 +17051,8 @@ export default class Client extends OpenApi {
16680
17051
  }
16681
17052
 
16682
17053
  /**
16683
- * 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.
17054
+ * The ID of the rule.
17055
+ * For more information about how to query the ID of a rule, see [ListAggregateConfigRules](~~264148~~).
16684
17056
  *
16685
17057
  * @param request GetAggregateResourceComplianceByConfigRuleRequest
16686
17058
  * @return GetAggregateResourceComplianceByConfigRuleResponse
@@ -16795,7 +17167,7 @@ export default class Client extends OpenApi {
16795
17167
  }
16796
17168
 
16797
17169
  /**
16798
- * The sample request in this topic shows you how to query the compliance timeline of the `new-bucket` resource that resides in the `cn-hangzhou` region within the `100931896542****` member account of the `ca-5885626622af0008****` account group. The new-bucket resource is an Object Storage Service (OSS) bucket. The return result shows the following two timestamps on the compliance timeline: `1625200295276` and `1625200228510`. The first timestamp indicates 12:31:35 on July 2, 2021 (UTC+8), and the second timestamp indicates 12:30:28 on July 2, 2021 (UTC+8).
17170
+ * The operation that you want to perform. Set the value to **GetAggregateResourceComplianceTimeline**.
16799
17171
  *
16800
17172
  * @param request GetAggregateResourceComplianceTimelineRequest
16801
17173
  * @param runtime runtime options for this request RuntimeOptions
@@ -16822,7 +17194,7 @@ export default class Client extends OpenApi {
16822
17194
  }
16823
17195
 
16824
17196
  /**
16825
- * The sample request in this topic shows you how to query the compliance timeline of the `new-bucket` resource that resides in the `cn-hangzhou` region within the `100931896542****` member account of the `ca-5885626622af0008****` account group. The new-bucket resource is an Object Storage Service (OSS) bucket. The return result shows the following two timestamps on the compliance timeline: `1625200295276` and `1625200228510`. The first timestamp indicates 12:31:35 on July 2, 2021 (UTC+8), and the second timestamp indicates 12:30:28 on July 2, 2021 (UTC+8).
17197
+ * The operation that you want to perform. Set the value to **GetAggregateResourceComplianceTimeline**.
16826
17198
  *
16827
17199
  * @param request GetAggregateResourceComplianceTimelineRequest
16828
17200
  * @return GetAggregateResourceComplianceTimelineResponse
@@ -16833,7 +17205,8 @@ export default class Client extends OpenApi {
16833
17205
  }
16834
17206
 
16835
17207
  /**
16836
- * The sample request in this topic shows you how to query the configuration timeline of the `new-bucket` resource that resides in the `cn-hangzhou` region within the `100931896542****` member account of the `ca-5885626622af0008****` account group. The new-bucket resource is an Object Storage Service (OSS) bucket. The return result shows that the timestamp when the resource configuration changes is `1624961112000`. The timestamp indicates 18:05:12 on June 29, 2021 (UTC+8).
17208
+ * The ID of the resource.
17209
+ * For more information about how to obtain the ID of a resource, see [ListAggregateDiscoveredResources](~~265983~~).
16837
17210
  *
16838
17211
  * @param request GetAggregateResourceConfigurationTimelineRequest
16839
17212
  * @param runtime runtime options for this request RuntimeOptions
@@ -16860,7 +17233,8 @@ export default class Client extends OpenApi {
16860
17233
  }
16861
17234
 
16862
17235
  /**
16863
- * The sample request in this topic shows you how to query the configuration timeline of the `new-bucket` resource that resides in the `cn-hangzhou` region within the `100931896542****` member account of the `ca-5885626622af0008****` account group. The new-bucket resource is an Object Storage Service (OSS) bucket. The return result shows that the timestamp when the resource configuration changes is `1624961112000`. The timestamp indicates 18:05:12 on June 29, 2021 (UTC+8).
17236
+ * The ID of the resource.
17237
+ * For more information about how to obtain the ID of a resource, see [ListAggregateDiscoveredResources](~~265983~~).
16864
17238
  *
16865
17239
  * @param request GetAggregateResourceConfigurationTimelineRequest
16866
17240
  * @return GetAggregateResourceConfigurationTimelineResponse
@@ -16871,7 +17245,8 @@ export default class Client extends OpenApi {
16871
17245
  }
16872
17246
 
16873
17247
  /**
16874
- * This topic provides an example on how to query the statistics on the resources in an account group named `ca-a260626622af0005****` by region. The returned result shows that a total of `10` resources exist in the `cn-hangzhou` region.
17248
+ * The ID of the account group.
17249
+ * For more information about how to obtain the ID of an account group, see [ListAggregators](~~255797~~).
16875
17250
  *
16876
17251
  * @param request GetAggregateResourceCountsGroupByRegionRequest
16877
17252
  * @param runtime runtime options for this request RuntimeOptions
@@ -16918,7 +17293,8 @@ export default class Client extends OpenApi {
16918
17293
  }
16919
17294
 
16920
17295
  /**
16921
- * This topic provides an example on how to query the statistics on the resources in an account group named `ca-a260626622af0005****` by region. The returned result shows that a total of `10` resources exist in the `cn-hangzhou` region.
17296
+ * The ID of the account group.
17297
+ * For more information about how to obtain the ID of an account group, see [ListAggregators](~~255797~~).
16922
17298
  *
16923
17299
  * @param request GetAggregateResourceCountsGroupByRegionRequest
16924
17300
  * @return GetAggregateResourceCountsGroupByRegionResponse
@@ -17654,7 +18030,7 @@ export default class Client extends OpenApi {
17654
18030
  }
17655
18031
 
17656
18032
  /**
17657
- * The sample request in this topic shows you how to query the configuration timeline of the `new-bucket` resource that resides in the `cn-hangzhou` region. The new-bucket resource is an Object Storage Service (OSS) bucket. The return result shows that the timestamp when the resource configuration changes is `1624961112000`. The timestamp indicates 18:05:12 on June 29, 2021 (UTC+8).
18033
+ * The timestamp that specifies the beginning of the time range to query. By default, Cloud Config retrieves the configuration changes in the last 30 days for the specified resource. Unit: milliseconds.
17658
18034
  *
17659
18035
  * @param request GetResourceConfigurationTimelineRequest
17660
18036
  * @param runtime runtime options for this request RuntimeOptions
@@ -17681,7 +18057,7 @@ export default class Client extends OpenApi {
17681
18057
  }
17682
18058
 
17683
18059
  /**
17684
- * The sample request in this topic shows you how to query the configuration timeline of the `new-bucket` resource that resides in the `cn-hangzhou` region. The new-bucket resource is an Object Storage Service (OSS) bucket. The return result shows that the timestamp when the resource configuration changes is `1624961112000`. The timestamp indicates 18:05:12 on June 29, 2021 (UTC+8).
18060
+ * The timestamp that specifies the beginning of the time range to query. By default, Cloud Config retrieves the configuration changes in the last 30 days for the specified resource. Unit: milliseconds.
17685
18061
  *
17686
18062
  * @param request GetResourceConfigurationTimelineRequest
17687
18063
  * @return GetResourceConfigurationTimelineResponse
@@ -18063,7 +18439,7 @@ export default class Client extends OpenApi {
18063
18439
  }
18064
18440
 
18065
18441
  /**
18066
- * This example shows how to query the resources in the `ca-c560626622af0005****` account group. The response shows that the account group contains eight resources.
18442
+ * The token that you want to use to initiate the current request. If the response of the previous request is truncated, you can use this token to initiate another request and obtain the remaining entries.``
18067
18443
  *
18068
18444
  * @param request ListAggregateDiscoveredResourcesRequest
18069
18445
  * @param runtime runtime options for this request RuntimeOptions
@@ -18126,7 +18502,7 @@ export default class Client extends OpenApi {
18126
18502
  }
18127
18503
 
18128
18504
  /**
18129
- * This example shows how to query the resources in the `ca-c560626622af0005****` account group. The response shows that the account group contains eight resources.
18505
+ * The token that you want to use to initiate the current request. If the response of the previous request is truncated, you can use this token to initiate another request and obtain the remaining entries.``
18130
18506
  *
18131
18507
  * @param request ListAggregateDiscoveredResourcesRequest
18132
18508
  * @return ListAggregateDiscoveredResourcesResponse
@@ -18248,6 +18624,71 @@ export default class Client extends OpenApi {
18248
18624
  return await this.listAggregateResourceEvaluationResultsWithOptions(request, runtime);
18249
18625
  }
18250
18626
 
18627
+ async listAggregateResourceRelationsWithOptions(request: ListAggregateResourceRelationsRequest, runtime: $Util.RuntimeOptions): Promise<ListAggregateResourceRelationsResponse> {
18628
+ Util.validateModel(request);
18629
+ let query = { };
18630
+ if (!Util.isUnset(request.aggregatorId)) {
18631
+ query["AggregatorId"] = request.aggregatorId;
18632
+ }
18633
+
18634
+ if (!Util.isUnset(request.maxResults)) {
18635
+ query["MaxResults"] = request.maxResults;
18636
+ }
18637
+
18638
+ if (!Util.isUnset(request.nextToken)) {
18639
+ query["NextToken"] = request.nextToken;
18640
+ }
18641
+
18642
+ if (!Util.isUnset(request.region)) {
18643
+ query["Region"] = request.region;
18644
+ }
18645
+
18646
+ if (!Util.isUnset(request.relationType)) {
18647
+ query["RelationType"] = request.relationType;
18648
+ }
18649
+
18650
+ if (!Util.isUnset(request.resourceAccountId)) {
18651
+ query["ResourceAccountId"] = request.resourceAccountId;
18652
+ }
18653
+
18654
+ if (!Util.isUnset(request.resourceId)) {
18655
+ query["ResourceId"] = request.resourceId;
18656
+ }
18657
+
18658
+ if (!Util.isUnset(request.resourceType)) {
18659
+ query["ResourceType"] = request.resourceType;
18660
+ }
18661
+
18662
+ if (!Util.isUnset(request.targetResourceId)) {
18663
+ query["TargetResourceId"] = request.targetResourceId;
18664
+ }
18665
+
18666
+ if (!Util.isUnset(request.targetResourceType)) {
18667
+ query["TargetResourceType"] = request.targetResourceType;
18668
+ }
18669
+
18670
+ let req = new $OpenApi.OpenApiRequest({
18671
+ query: OpenApiUtil.query(query),
18672
+ });
18673
+ let params = new $OpenApi.Params({
18674
+ action: "ListAggregateResourceRelations",
18675
+ version: "2020-09-07",
18676
+ protocol: "HTTPS",
18677
+ pathname: "/",
18678
+ method: "POST",
18679
+ authType: "AK",
18680
+ style: "RPC",
18681
+ reqBodyType: "formData",
18682
+ bodyType: "json",
18683
+ });
18684
+ return $tea.cast<ListAggregateResourceRelationsResponse>(await this.callApi(params, req, runtime), new ListAggregateResourceRelationsResponse({}));
18685
+ }
18686
+
18687
+ async listAggregateResourceRelations(request: ListAggregateResourceRelationsRequest): Promise<ListAggregateResourceRelationsResponse> {
18688
+ let runtime = new $Util.RuntimeOptions({ });
18689
+ return await this.listAggregateResourceRelationsWithOptions(request, runtime);
18690
+ }
18691
+
18251
18692
  /**
18252
18693
  * The sample request in this topic shows you how to query account groups. A maximum of 10 entries can be returned for the request. As shown in the responses, the account group returned is named as `Test_Group`, its description is `Test account group`, and it is of the `CUSTOM` type, which indicates a custom account group. The account group contains two member accounts.
18253
18694
  *
@@ -18699,6 +19140,14 @@ export default class Client extends OpenApi {
18699
19140
  query["ManagedRuleIdentifier"] = request.managedRuleIdentifier;
18700
19141
  }
18701
19142
 
19143
+ if (!Util.isUnset(request.pageNumber)) {
19144
+ query["PageNumber"] = request.pageNumber;
19145
+ }
19146
+
19147
+ if (!Util.isUnset(request.pageSize)) {
19148
+ query["PageSize"] = request.pageSize;
19149
+ }
19150
+
18702
19151
  if (!Util.isUnset(request.remediationType)) {
18703
19152
  query["RemediationType"] = request.remediationType;
18704
19153
  }
@@ -18745,6 +19194,14 @@ export default class Client extends OpenApi {
18745
19194
  query["ConfigRuleIds"] = request.configRuleIds;
18746
19195
  }
18747
19196
 
19197
+ if (!Util.isUnset(request.pageNumber)) {
19198
+ query["PageNumber"] = request.pageNumber;
19199
+ }
19200
+
19201
+ if (!Util.isUnset(request.pageSize)) {
19202
+ query["PageSize"] = request.pageSize;
19203
+ }
19204
+
18748
19205
  let req = new $OpenApi.OpenApiRequest({
18749
19206
  query: OpenApiUtil.query(query),
18750
19207
  });
@@ -18835,6 +19292,63 @@ export default class Client extends OpenApi {
18835
19292
  return await this.listResourceEvaluationResultsWithOptions(request, runtime);
18836
19293
  }
18837
19294
 
19295
+ async listResourceRelationsWithOptions(request: ListResourceRelationsRequest, runtime: $Util.RuntimeOptions): Promise<ListResourceRelationsResponse> {
19296
+ Util.validateModel(request);
19297
+ let query = { };
19298
+ if (!Util.isUnset(request.maxResults)) {
19299
+ query["MaxResults"] = request.maxResults;
19300
+ }
19301
+
19302
+ if (!Util.isUnset(request.nextToken)) {
19303
+ query["NextToken"] = request.nextToken;
19304
+ }
19305
+
19306
+ if (!Util.isUnset(request.region)) {
19307
+ query["Region"] = request.region;
19308
+ }
19309
+
19310
+ if (!Util.isUnset(request.relationType)) {
19311
+ query["RelationType"] = request.relationType;
19312
+ }
19313
+
19314
+ if (!Util.isUnset(request.resourceId)) {
19315
+ query["ResourceId"] = request.resourceId;
19316
+ }
19317
+
19318
+ if (!Util.isUnset(request.resourceType)) {
19319
+ query["ResourceType"] = request.resourceType;
19320
+ }
19321
+
19322
+ if (!Util.isUnset(request.targetResourceId)) {
19323
+ query["TargetResourceId"] = request.targetResourceId;
19324
+ }
19325
+
19326
+ if (!Util.isUnset(request.targetResourceType)) {
19327
+ query["TargetResourceType"] = request.targetResourceType;
19328
+ }
19329
+
19330
+ let req = new $OpenApi.OpenApiRequest({
19331
+ query: OpenApiUtil.query(query),
19332
+ });
19333
+ let params = new $OpenApi.Params({
19334
+ action: "ListResourceRelations",
19335
+ version: "2020-09-07",
19336
+ protocol: "HTTPS",
19337
+ pathname: "/",
19338
+ method: "POST",
19339
+ authType: "AK",
19340
+ style: "RPC",
19341
+ reqBodyType: "formData",
19342
+ bodyType: "json",
19343
+ });
19344
+ return $tea.cast<ListResourceRelationsResponse>(await this.callApi(params, req, runtime), new ListResourceRelationsResponse({}));
19345
+ }
19346
+
19347
+ async listResourceRelations(request: ListResourceRelationsRequest): Promise<ListResourceRelationsResponse> {
19348
+ let runtime = new $Util.RuntimeOptions({ });
19349
+ return await this.listResourceRelationsWithOptions(request, runtime);
19350
+ }
19351
+
18838
19352
  async listTagResourcesWithOptions(tmpReq: ListTagResourcesRequest, runtime: $Util.RuntimeOptions): Promise<ListTagResourcesResponse> {
18839
19353
  Util.validateModel(tmpReq);
18840
19354
  let request = new ListTagResourcesShrinkRequest({ });
@@ -19979,7 +20493,7 @@ export default class Client extends OpenApi {
19979
20493
 
19980
20494
  /**
19981
20495
  * @deprecated : UpdateDeliveryChannel is deprecated, please use Config::2020-09-07::UpdateConfigDeliveryChannel,Config::2020-09-07::UpdateAggregateConfigDeliveryChannel instead.
19982
- * In this example, the status of the delivery channel whose ID is `cdc-8e45ff4e06a3a8****` is changed to 0, which indicates that the delivery channel is disabled. After the delivery channel is disabled, Cloud Config retains the last delivery configuration and stops resource data delivery.
20496
+ * The operation that you want to perform. Set the value to **UpdateDeliveryChannel**.
19983
20497
  *
19984
20498
  * @param request UpdateDeliveryChannelRequest
19985
20499
  * @param runtime runtime options for this request RuntimeOptions
@@ -20056,7 +20570,7 @@ export default class Client extends OpenApi {
20056
20570
 
20057
20571
  /**
20058
20572
  * @deprecated : UpdateDeliveryChannel is deprecated, please use Config::2020-09-07::UpdateConfigDeliveryChannel,Config::2020-09-07::UpdateAggregateConfigDeliveryChannel instead.
20059
- * In this example, the status of the delivery channel whose ID is `cdc-8e45ff4e06a3a8****` is changed to 0, which indicates that the delivery channel is disabled. After the delivery channel is disabled, Cloud Config retains the last delivery configuration and stops resource data delivery.
20573
+ * The operation that you want to perform. Set the value to **UpdateDeliveryChannel**.
20060
20574
  *
20061
20575
  * @param request UpdateDeliveryChannelRequest
20062
20576
  * @return UpdateDeliveryChannelResponse