list_recommendations
async
¶
list_recommendations(
*,
config_overrides: Optional[AsyncCostOptimizationHubClientConfig] = None,
filter: Optional[Filter] = None,
order_by: Optional[OrderBy] = None,
include_all_recommendations: Optional[bool] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[str] = None,
) -> ListRecommendationsResponse
Returns a list of recommendations.
Parameters:
-
filter(Optional[Filter], default:None) –The constraints that you want all returned recommendations to match.
-
order_by(Optional[OrderBy], default:None) –The ordering of recommendations by a dimension.
-
include_all_recommendations(Optional[bool], default:None) –List of all recommendations for a resource, or a single recommendation if de-duped by
resourceId. -
max_results(Optional[MaxResults], default:None) –The maximum number of recommendations that are returned for the request.
-
next_token(Optional[str], default:None) –The token to retrieve the next set of results.
Raises:
-
AccessDeniedException–You are not authorized to use this operation with the given parameters.
-
InternalServerException–An error on the server occurred during the processing of your request. Try again later.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.