get_ebs_volume_recommendations
async
¶
get_ebs_volume_recommendations(
*,
config_overrides: Optional[AsyncComputeOptimizerClientConfig] = None,
volume_arns: Optional[VolumeArns] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
filters: Optional[EBSFilters] = None,
account_ids: Optional[AccountIds] = None,
) -> GetEBSVolumeRecommendationsResponse
Returns Amazon Elastic Block Store (Amazon EBS) volume recommendations.
Compute Optimizer generates recommendations for Amazon EBS volumes that meet a specific set of requirements. For more information, see the Supported resources and requirements in the Compute Optimizer User Guide.
Parameters:
-
volume_arns(Optional[VolumeArns], default:None) –The Amazon Resource Name (ARN) of the volumes for which to return recommendations.
-
next_token(Optional[NextToken], default:None) –The token to advance to the next page of volume recommendations.
-
max_results(Optional[MaxResults], default:None) –The maximum number of volume recommendations to return with a single request.
To retrieve the remaining results, make another request with the returned
nextTokenvalue. -
filters(Optional[EBSFilters], default:None) –An array of objects to specify a filter that returns a more specific list of volume recommendations.
-
account_ids(Optional[AccountIds], default:None) –The ID of the Amazon Web Services account for which to return volume 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 volume recommendations.
Only one account ID can be specified per request.
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/async_compute_optimizer.py
1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 | |