get_auto_scaling_group_recommendations
¶
get_auto_scaling_group_recommendations(
*,
config_overrides: Optional[ComputeOptimizerClientConfig] = None,
account_ids: Optional[AccountIds] = None,
auto_scaling_group_arns: Optional[AutoScalingGroupArns] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
filters: Optional[Filters] = None,
recommendation_preferences: Optional[RecommendationPreferences] = None,
) -> GetAutoScalingGroupRecommendationsResponse
Returns Auto Scaling group recommendations.
Compute Optimizer generates recommendations for Amazon EC2 Auto Scaling groups that meet a specific set of requirements. For more information, see the Supported resources and requirements in the Compute Optimizer User Guide.
Parameters:
-
account_ids(Optional[AccountIds], default:None) –The ID of the Amazon Web Services account for which to return Auto Scaling group recommendations.
If your account is the management account of an organization, use this parameter to specify the member account for which you want to return Auto Scaling group recommendations.
Only one account ID can be specified per request.
-
auto_scaling_group_arns(Optional[AutoScalingGroupArns], default:None) –The Amazon Resource Name (ARN) of the Auto Scaling groups for which to return recommendations.
-
next_token(Optional[NextToken], default:None) –The token to advance to the next page of Auto Scaling group recommendations.
-
max_results(Optional[MaxResults], default:None) –The maximum number of Auto Scaling group recommendations to return with a single request.
To retrieve the remaining results, make another request with the returned
nextTokenvalue. -
filters(Optional[Filters], default:None) –An array of objects to specify a filter that returns a more specific list of Auto Scaling group recommendations.
-
recommendation_preferences(Optional[RecommendationPreferences], default:None) –An object to specify the preferences for the Auto Scaling group recommendations to return in the response.
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
1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 | |