get_idle_recommendations
¶
get_idle_recommendations(
*,
config_overrides: Optional[ComputeOptimizerClientConfig] = None,
resource_arns: Optional[ResourceArns] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[IdleMaxResults] = None,
filters: Optional[IdleRecommendationFilters] = None,
account_ids: Optional[AccountIds] = None,
order_by: Optional[OrderBy] = None,
) -> GetIdleRecommendationsResponse
Returns idle resource recommendations. Compute Optimizer generates recommendations for idle resources that meet a specific set of requirements. For more information, see Resource requirements in the Compute Optimizer User Guide
Parameters:
-
resource_arns(Optional[ResourceArns], default:None) –The ARN that identifies the idle resource.
-
next_token(Optional[NextToken], default:None) –The token to advance to the next page of idle resource recommendations.
-
max_results(Optional[IdleMaxResults], default:None) –The maximum number of idle resource recommendations to return with a single request.
To retrieve the remaining results, make another request with the returned
nextTokenvalue. -
filters(Optional[IdleRecommendationFilters], default:None) –An array of objects to specify a filter that returns a more specific list of idle resource recommendations.
-
account_ids(Optional[AccountIds], default:None) –Return the idle resource recommendations to the specified Amazon Web Services account IDs.
If your account is the management account or the delegated administrator of an organization, use this parameter to return the idle resource recommendations to specific member accounts.
You can only specify one account ID per request.
-
order_by(Optional[OrderBy], default:None) –The order to sort the idle resource recommendations.
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.
-
ResourceNotFoundException–A resource that is required for the action doesn't exist.
-
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/compute_optimizer.py
1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 | |