GetRecommendationSummaries
Returns the optimization findings for an account.
It returns the number of:
-
Amazon EC2 instances in an account that are
Underprovisioned
,Overprovisioned
, orOptimized
. -
Auto 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
.
Request Syntax
{
"accountIds": [ "string
" ],
"maxResults": number
,
"nextToken": "string
"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
The request accepts the following data in JSON format.
- accountIds
-
The ID of the AWS 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.
Type: Array of strings
Required: No
- maxResults
-
The maximum number of recommendation summaries to return with a single request.
To retrieve the remaining results, make another request with the returned
nextToken
value.Type: Integer
Valid Range: Minimum value of 0. Maximum value of 1000.
Required: No
- nextToken
-
The token to advance to the next page of recommendation summaries.
Type: String
Required: No
Response Syntax
{
"nextToken": "string",
"recommendationSummaries": [
{
"accountId": "string",
"aggregatedSavingsOpportunity": {
"estimatedMonthlySavings": {
"currency": "string",
"value": number
},
"savingsOpportunityPercentage": number
},
"currentPerformanceRiskRatings": {
"high": number,
"low": number,
"medium": number,
"veryLow": number
},
"idleSavingsOpportunity": {
"estimatedMonthlySavings": {
"currency": "string",
"value": number
},
"savingsOpportunityPercentage": number
},
"idleSummaries": [
{
"name": "string",
"value": number
}
],
"inferredWorkloadSavings": [
{
"estimatedMonthlySavings": {
"currency": "string",
"value": number
},
"inferredWorkloadTypes": [ "string" ]
}
],
"recommendationResourceType": "string",
"savingsOpportunity": {
"estimatedMonthlySavings": {
"currency": "string",
"value": number
},
"savingsOpportunityPercentage": number
},
"summaries": [
{
"name": "string",
"reasonCodeSummaries": [
{
"name": "string",
"value": number
}
],
"value": number
}
]
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
- nextToken
-
The token to use to advance to the next page of recommendation summaries.
This value is null when there are no more pages of recommendation summaries to return.
Type: String
- recommendationSummaries
-
An array of objects that summarize a recommendation.
Type: Array of RecommendationSummary objects
Errors
For information about the errors that are common to all actions, see Common Errors.
- AccessDeniedException
-
You do not have sufficient access to perform this action.
HTTP Status Code: 400
- InternalServerException
-
An internal error has occurred. Try your call again.
HTTP Status Code: 500
- InvalidParameterValueException
-
The value supplied for the input parameter is out of range or not valid.
HTTP Status Code: 400
- MissingAuthenticationToken
-
The request must contain either a valid (registered) AWS access key ID or X.509 certificate.
HTTP Status Code: 400
- OptInRequiredException
-
The account is not opted in to AWS Compute Optimizer.
HTTP Status Code: 400
- ServiceUnavailableException
-
The request has failed due to a temporary failure of the server.
HTTP Status Code: 500
- ThrottlingException
-
The request was denied due to request throttling.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: