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 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.
Synopsis
- data GetEBSVolumeRecommendations = GetEBSVolumeRecommendations' {
- accountIds :: Maybe [Text]
- filters :: Maybe [EBSFilter]
- nextToken :: Maybe Text
- volumeArns :: Maybe [Text]
- maxResults :: Maybe Int
- newGetEBSVolumeRecommendations :: GetEBSVolumeRecommendations
- getEBSVolumeRecommendations_accountIds :: Lens' GetEBSVolumeRecommendations (Maybe [Text])
- getEBSVolumeRecommendations_filters :: Lens' GetEBSVolumeRecommendations (Maybe [EBSFilter])
- getEBSVolumeRecommendations_nextToken :: Lens' GetEBSVolumeRecommendations (Maybe Text)
- getEBSVolumeRecommendations_volumeArns :: Lens' GetEBSVolumeRecommendations (Maybe [Text])
- getEBSVolumeRecommendations_maxResults :: Lens' GetEBSVolumeRecommendations (Maybe Int)
- data GetEBSVolumeRecommendationsResponse = GetEBSVolumeRecommendationsResponse' {}
- newGetEBSVolumeRecommendationsResponse :: Int -> GetEBSVolumeRecommendationsResponse
- getEBSVolumeRecommendationsResponse_nextToken :: Lens' GetEBSVolumeRecommendationsResponse (Maybe Text)
- getEBSVolumeRecommendationsResponse_volumeRecommendations :: Lens' GetEBSVolumeRecommendationsResponse (Maybe [VolumeRecommendation])
- getEBSVolumeRecommendationsResponse_errors :: Lens' GetEBSVolumeRecommendationsResponse (Maybe [GetRecommendationError])
- getEBSVolumeRecommendationsResponse_httpStatus :: Lens' GetEBSVolumeRecommendationsResponse Int
Creating a Request
data GetEBSVolumeRecommendations Source #
See: newGetEBSVolumeRecommendations
smart constructor.
GetEBSVolumeRecommendations' | |
|
Instances
newGetEBSVolumeRecommendations :: GetEBSVolumeRecommendations Source #
Create a value of GetEBSVolumeRecommendations
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:GetEBSVolumeRecommendations'
, getEBSVolumeRecommendations_accountIds
- 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.
$sel:filters:GetEBSVolumeRecommendations'
, getEBSVolumeRecommendations_filters
- An array of objects to specify a filter that returns a more specific
list of volume recommendations.
$sel:nextToken:GetEBSVolumeRecommendations'
, getEBSVolumeRecommendations_nextToken
- The token to advance to the next page of volume recommendations.
$sel:volumeArns:GetEBSVolumeRecommendations'
, getEBSVolumeRecommendations_volumeArns
- The Amazon Resource Name (ARN) of the volumes for which to return
recommendations.
$sel:maxResults:GetEBSVolumeRecommendations'
, getEBSVolumeRecommendations_maxResults
- The maximum number of volume recommendations to return with a single
request.
To retrieve the remaining results, make another request with the
returned nextToken
value.
Request Lenses
getEBSVolumeRecommendations_accountIds :: Lens' GetEBSVolumeRecommendations (Maybe [Text]) Source #
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.
getEBSVolumeRecommendations_filters :: Lens' GetEBSVolumeRecommendations (Maybe [EBSFilter]) Source #
An array of objects to specify a filter that returns a more specific list of volume recommendations.
getEBSVolumeRecommendations_nextToken :: Lens' GetEBSVolumeRecommendations (Maybe Text) Source #
The token to advance to the next page of volume recommendations.
getEBSVolumeRecommendations_volumeArns :: Lens' GetEBSVolumeRecommendations (Maybe [Text]) Source #
The Amazon Resource Name (ARN) of the volumes for which to return recommendations.
getEBSVolumeRecommendations_maxResults :: Lens' GetEBSVolumeRecommendations (Maybe Int) Source #
The maximum number of volume recommendations to return with a single request.
To retrieve the remaining results, make another request with the
returned nextToken
value.
Destructuring the Response
data GetEBSVolumeRecommendationsResponse Source #
See: newGetEBSVolumeRecommendationsResponse
smart constructor.
GetEBSVolumeRecommendationsResponse' | |
|
Instances
newGetEBSVolumeRecommendationsResponse Source #
Create a value of GetEBSVolumeRecommendationsResponse
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:GetEBSVolumeRecommendations'
, getEBSVolumeRecommendationsResponse_nextToken
- The token to use to advance to the next page of volume recommendations.
This value is null when there are no more pages of volume recommendations to return.
$sel:volumeRecommendations:GetEBSVolumeRecommendationsResponse'
, getEBSVolumeRecommendationsResponse_volumeRecommendations
- An array of objects that describe volume recommendations.
$sel:errors:GetEBSVolumeRecommendationsResponse'
, getEBSVolumeRecommendationsResponse_errors
- An array of objects that describe errors of the request.
For example, an error is returned if you request recommendations for an unsupported volume.
$sel:httpStatus:GetEBSVolumeRecommendationsResponse'
, getEBSVolumeRecommendationsResponse_httpStatus
- The response's http status code.
Response Lenses
getEBSVolumeRecommendationsResponse_nextToken :: Lens' GetEBSVolumeRecommendationsResponse (Maybe Text) Source #
The token to use to advance to the next page of volume recommendations.
This value is null when there are no more pages of volume recommendations to return.
getEBSVolumeRecommendationsResponse_volumeRecommendations :: Lens' GetEBSVolumeRecommendationsResponse (Maybe [VolumeRecommendation]) Source #
An array of objects that describe volume recommendations.
getEBSVolumeRecommendationsResponse_errors :: Lens' GetEBSVolumeRecommendationsResponse (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 volume.
getEBSVolumeRecommendationsResponse_httpStatus :: Lens' GetEBSVolumeRecommendationsResponse Int Source #
The response's http status code.