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 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.
Synopsis
- data GetAutoScalingGroupRecommendations = GetAutoScalingGroupRecommendations' {}
- newGetAutoScalingGroupRecommendations :: GetAutoScalingGroupRecommendations
- getAutoScalingGroupRecommendations_accountIds :: Lens' GetAutoScalingGroupRecommendations (Maybe [Text])
- getAutoScalingGroupRecommendations_filters :: Lens' GetAutoScalingGroupRecommendations (Maybe [Filter])
- getAutoScalingGroupRecommendations_autoScalingGroupArns :: Lens' GetAutoScalingGroupRecommendations (Maybe [Text])
- getAutoScalingGroupRecommendations_recommendationPreferences :: Lens' GetAutoScalingGroupRecommendations (Maybe RecommendationPreferences)
- getAutoScalingGroupRecommendations_nextToken :: Lens' GetAutoScalingGroupRecommendations (Maybe Text)
- getAutoScalingGroupRecommendations_maxResults :: Lens' GetAutoScalingGroupRecommendations (Maybe Int)
- data GetAutoScalingGroupRecommendationsResponse = GetAutoScalingGroupRecommendationsResponse' {}
- newGetAutoScalingGroupRecommendationsResponse :: Int -> GetAutoScalingGroupRecommendationsResponse
- getAutoScalingGroupRecommendationsResponse_autoScalingGroupRecommendations :: Lens' GetAutoScalingGroupRecommendationsResponse (Maybe [AutoScalingGroupRecommendation])
- getAutoScalingGroupRecommendationsResponse_nextToken :: Lens' GetAutoScalingGroupRecommendationsResponse (Maybe Text)
- getAutoScalingGroupRecommendationsResponse_errors :: Lens' GetAutoScalingGroupRecommendationsResponse (Maybe [GetRecommendationError])
- getAutoScalingGroupRecommendationsResponse_httpStatus :: Lens' GetAutoScalingGroupRecommendationsResponse Int
Creating a Request
data GetAutoScalingGroupRecommendations Source #
See: newGetAutoScalingGroupRecommendations
smart constructor.
GetAutoScalingGroupRecommendations' | |
|
Instances
newGetAutoScalingGroupRecommendations :: GetAutoScalingGroupRecommendations Source #
Create a value of GetAutoScalingGroupRecommendations
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:GetAutoScalingGroupRecommendations'
, getAutoScalingGroupRecommendations_accountIds
- 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.
$sel:filters:GetAutoScalingGroupRecommendations'
, getAutoScalingGroupRecommendations_filters
- An array of objects to specify a filter that returns a more specific
list of Auto Scaling group recommendations.
$sel:autoScalingGroupArns:GetAutoScalingGroupRecommendations'
, getAutoScalingGroupRecommendations_autoScalingGroupArns
- The Amazon Resource Name (ARN) of the Auto Scaling groups for which to
return recommendations.
$sel:recommendationPreferences:GetAutoScalingGroupRecommendations'
, getAutoScalingGroupRecommendations_recommendationPreferences
- An object to specify the preferences for the Auto Scaling group
recommendations to return in the response.
$sel:nextToken:GetAutoScalingGroupRecommendations'
, getAutoScalingGroupRecommendations_nextToken
- The token to advance to the next page of Auto Scaling group
recommendations.
$sel:maxResults:GetAutoScalingGroupRecommendations'
, getAutoScalingGroupRecommendations_maxResults
- 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 nextToken
value.
Request Lenses
getAutoScalingGroupRecommendations_accountIds :: Lens' GetAutoScalingGroupRecommendations (Maybe [Text]) Source #
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.
getAutoScalingGroupRecommendations_filters :: Lens' GetAutoScalingGroupRecommendations (Maybe [Filter]) Source #
An array of objects to specify a filter that returns a more specific list of Auto Scaling group recommendations.
getAutoScalingGroupRecommendations_autoScalingGroupArns :: Lens' GetAutoScalingGroupRecommendations (Maybe [Text]) Source #
The Amazon Resource Name (ARN) of the Auto Scaling groups for which to return recommendations.
getAutoScalingGroupRecommendations_recommendationPreferences :: Lens' GetAutoScalingGroupRecommendations (Maybe RecommendationPreferences) Source #
An object to specify the preferences for the Auto Scaling group recommendations to return in the response.
getAutoScalingGroupRecommendations_nextToken :: Lens' GetAutoScalingGroupRecommendations (Maybe Text) Source #
The token to advance to the next page of Auto Scaling group recommendations.
getAutoScalingGroupRecommendations_maxResults :: Lens' GetAutoScalingGroupRecommendations (Maybe Int) Source #
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 nextToken
value.
Destructuring the Response
data GetAutoScalingGroupRecommendationsResponse Source #
See: newGetAutoScalingGroupRecommendationsResponse
smart constructor.
GetAutoScalingGroupRecommendationsResponse' | |
|
Instances
newGetAutoScalingGroupRecommendationsResponse Source #
Create a value of GetAutoScalingGroupRecommendationsResponse
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:autoScalingGroupRecommendations:GetAutoScalingGroupRecommendationsResponse'
, getAutoScalingGroupRecommendationsResponse_autoScalingGroupRecommendations
- An array of objects that describe Auto Scaling group recommendations.
$sel:nextToken:GetAutoScalingGroupRecommendations'
, getAutoScalingGroupRecommendationsResponse_nextToken
- The token to use to advance to the next page of Auto Scaling group
recommendations.
This value is null when there are no more pages of Auto Scaling group recommendations to return.
$sel:errors:GetAutoScalingGroupRecommendationsResponse'
, getAutoScalingGroupRecommendationsResponse_errors
- An array of objects that describe errors of the request.
For example, an error is returned if you request recommendations for an unsupported Auto Scaling group.
$sel:httpStatus:GetAutoScalingGroupRecommendationsResponse'
, getAutoScalingGroupRecommendationsResponse_httpStatus
- The response's http status code.
Response Lenses
getAutoScalingGroupRecommendationsResponse_autoScalingGroupRecommendations :: Lens' GetAutoScalingGroupRecommendationsResponse (Maybe [AutoScalingGroupRecommendation]) Source #
An array of objects that describe Auto Scaling group recommendations.
getAutoScalingGroupRecommendationsResponse_nextToken :: Lens' GetAutoScalingGroupRecommendationsResponse (Maybe Text) Source #
The token to use to advance to the next page of Auto Scaling group recommendations.
This value is null when there are no more pages of Auto Scaling group recommendations to return.
getAutoScalingGroupRecommendationsResponse_errors :: Lens' GetAutoScalingGroupRecommendationsResponse (Maybe [GetRecommendationError]) Source #
An array of objects that describe errors of the request.
For example, an error is returned if you request recommendations for an unsupported Auto Scaling group.
getAutoScalingGroupRecommendationsResponse_httpStatus :: Lens' GetAutoScalingGroupRecommendationsResponse Int Source #
The response's http status code.