Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
.
Synopsis
- data GetRecommendationSummaries = GetRecommendationSummaries' {
- accountIds :: Maybe [Text]
- nextToken :: Maybe Text
- maxResults :: Maybe Int
- newGetRecommendationSummaries :: GetRecommendationSummaries
- getRecommendationSummaries_accountIds :: Lens' GetRecommendationSummaries (Maybe [Text])
- getRecommendationSummaries_nextToken :: Lens' GetRecommendationSummaries (Maybe Text)
- getRecommendationSummaries_maxResults :: Lens' GetRecommendationSummaries (Maybe Int)
- data GetRecommendationSummariesResponse = GetRecommendationSummariesResponse' {}
- newGetRecommendationSummariesResponse :: Int -> GetRecommendationSummariesResponse
- getRecommendationSummariesResponse_nextToken :: Lens' GetRecommendationSummariesResponse (Maybe Text)
- getRecommendationSummariesResponse_recommendationSummaries :: Lens' GetRecommendationSummariesResponse (Maybe [RecommendationSummary])
- getRecommendationSummariesResponse_httpStatus :: Lens' GetRecommendationSummariesResponse Int
Creating a Request
data GetRecommendationSummaries Source #
See: newGetRecommendationSummaries
smart constructor.
GetRecommendationSummaries' | |
|
Instances
newGetRecommendationSummaries :: GetRecommendationSummaries Source #
Create a value of GetRecommendationSummaries
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:accountIds:GetRecommendationSummaries'
, getRecommendationSummaries_accountIds
- The ID of the Amazon Web Services 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.
$sel:nextToken:GetRecommendationSummaries'
, getRecommendationSummaries_nextToken
- The token to advance to the next page of recommendation summaries.
$sel:maxResults:GetRecommendationSummaries'
, getRecommendationSummaries_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.
Request Lenses
getRecommendationSummaries_accountIds :: Lens' GetRecommendationSummaries (Maybe [Text]) Source #
The ID of the Amazon Web Services 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.
getRecommendationSummaries_nextToken :: Lens' GetRecommendationSummaries (Maybe Text) Source #
The token to advance to the next page of recommendation summaries.
getRecommendationSummaries_maxResults :: Lens' GetRecommendationSummaries (Maybe Int) Source #
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.
Destructuring the Response
data GetRecommendationSummariesResponse Source #
See: newGetRecommendationSummariesResponse
smart constructor.
GetRecommendationSummariesResponse' | |
|
Instances
newGetRecommendationSummariesResponse Source #
Create a value of GetRecommendationSummariesResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:nextToken:GetRecommendationSummaries'
, getRecommendationSummariesResponse_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.
$sel:recommendationSummaries:GetRecommendationSummariesResponse'
, getRecommendationSummariesResponse_recommendationSummaries
- An array of objects that summarize a recommendation.
$sel:httpStatus:GetRecommendationSummariesResponse'
, getRecommendationSummariesResponse_httpStatus
- The response's http status code.
Response Lenses
getRecommendationSummariesResponse_nextToken :: Lens' GetRecommendationSummariesResponse (Maybe Text) Source #
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.
getRecommendationSummariesResponse_recommendationSummaries :: Lens' GetRecommendationSummariesResponse (Maybe [RecommendationSummary]) Source #
An array of objects that summarize a recommendation.
getRecommendationSummariesResponse_httpStatus :: Lens' GetRecommendationSummariesResponse Int Source #
The response's http status code.