get_recommendation_summaries
async
¶
get_recommendation_summaries(
*,
config_overrides: Optional[AsyncComputeOptimizerClientConfig] = None,
account_ids: Optional[AccountIds] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
) -> GetRecommendationSummariesResponse
Returns the optimization findings for an account.
It returns the number of:
-
Amazon EC2 instances in an account that are
Underprovisioned,Overprovisioned, orOptimized. -
EC2Auto Scaling groups in an account that are
NotOptimized, orOptimized. -
Amazon EBS volumes in an account that are
NotOptimized, orOptimized. -
Lambda functions in an account that are
NotOptimized, orOptimized. -
Amazon ECS services in an account that are
Underprovisioned,Overprovisioned, orOptimized. -
Commercial software licenses in an account that are
InsufficientMetrics,NotOptimizedorOptimized. -
Amazon Aurora and Amazon RDS databases in an account that are
Underprovisioned,Overprovisioned,Optimized, orNotOptimized.
Parameters:
-
account_ids(Optional[AccountIds], default:None) –The ID of the Amazon Web Services account for which to return recommendation summaries.
If your account is the management account of an organization, use this parameter to specify the member account for which you want to return recommendation summaries.
Only one account ID can be specified per request.
-
next_token(Optional[NextToken], default:None) –The token to advance to the next page of recommendation summaries.
-
max_results(Optional[MaxResults], default:None) –The maximum number of recommendation summaries to return with a single request.
To retrieve the remaining results, make another request with the returned
nextTokenvalue.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
InternalServerException–An internal error has occurred. Try your call again.
-
InvalidParameterValueException–The value supplied for the input parameter is out of range or not valid.
-
MissingAuthenticationToken–The request must contain either a valid (registered) Amazon Web Services access key ID or X.509 certificate.
-
OptInRequiredException–The account is not opted in to Compute Optimizer.
-
ServiceUnavailableException–The request has failed due to a temporary failure of the server.
-
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/_services/async_compute_optimizer.py
2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 | |