list_automation_rule_preview_summaries
¶
list_automation_rule_preview_summaries(
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,
) -> ListAutomationRulePreviewSummariesResponse
Returns a summary of the recommended actions that match your rule preview configuration and criteria.
Parameters:
-
rule_type(RuleType) –The type of rule.
-
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.
-
max_results(Optional[int], default:None) –The maximum number of automation rule preview summaries 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
1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 | |