list_automation_rule_preview
¶
list_automation_rule_preview(
rule_type: RuleType,
recommended_action_types: RecommendedActionTypeList,
*,
config_overrides: Optional[ComputeOptimizerAutomationClientConfig] = None,
organization_scope: Optional[OrganizationScope] = None,
criteria: Optional[Criteria] = None,
max_results: Optional[int] = None,
next_token: Optional[NextToken] = None,
) -> ListAutomationRulePreviewResponse
Returns a preview of the recommended actions that match your Automation rule's configuration and criteria.
Parameters:
-
rule_type(RuleType) –The type of rule.
Only the management account or a delegated administrator can set the ruleType to be OrganizationRule.
-
organization_scope(Optional[OrganizationScope], default:None) –The organizational scope for the rule preview. This parameter is required when
ruleTypeisOrganizationRule. Don't specify it whenruleTypeisAccountRule. -
recommended_action_types(RecommendedActionTypeList) –The types of recommended actions to include in the preview.
-
criteria(Optional[Criteria], default:None) –A set of conditions that specify which recommended action qualify for implementation. When a rule is active and a recommended action matches these criteria, Compute Optimizer implements the action at the scheduled run time.
-
max_results(Optional[int], default:None) –The maximum number of automation rule preview results to return in a single response. If you don't specify a value, the default is 100.
-
next_token(Optional[NextToken], default:None) –A token used for pagination to retrieve the next set of results when the response is truncated.
Raises:
-
AccessDeniedException–You do not have sufficient permissions to perform this action.
-
ForbiddenException–You are not authorized to perform this action.
-
InternalServerException–An internal error occurred while processing the request.
-
InvalidParameterValueException–One or more parameter values are not valid.
-
OptInRequiredException–The account must be opted in to Compute Optimizer Automation before performing this action.
-
ServiceUnavailableException–The service is temporarily unavailable.
-
ThrottlingException–The request was denied due to request throttling.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_compute_optimizer_automation/_services/compute_optimizer_automation.py
1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 | |