libZSservicesZSamazonka-compute-optimizerZSamazonka-compute-optimizer
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.ComputeOptimizer.GetEBSVolumeRecommendations

Description

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

Creating a Request

data GetEBSVolumeRecommendations Source #

See: newGetEBSVolumeRecommendations smart constructor.

Constructors

GetEBSVolumeRecommendations' 

Fields

  • accountIds :: Maybe [Text]

    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.

  • filters :: Maybe [EBSFilter]

    An array of objects to specify a filter that returns a more specific list of volume recommendations.

  • nextToken :: Maybe Text

    The token to advance to the next page of volume recommendations.

  • volumeArns :: Maybe [Text]

    The Amazon Resource Name (ARN) of the volumes for which to return recommendations.

  • maxResults :: Maybe Int

    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.

Instances

Instances details
Eq GetEBSVolumeRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetEBSVolumeRecommendations

Read GetEBSVolumeRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetEBSVolumeRecommendations

Show GetEBSVolumeRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetEBSVolumeRecommendations

Generic GetEBSVolumeRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetEBSVolumeRecommendations

Associated Types

type Rep GetEBSVolumeRecommendations :: Type -> Type #

NFData GetEBSVolumeRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetEBSVolumeRecommendations

Hashable GetEBSVolumeRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetEBSVolumeRecommendations

ToJSON GetEBSVolumeRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetEBSVolumeRecommendations

AWSRequest GetEBSVolumeRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetEBSVolumeRecommendations

ToHeaders GetEBSVolumeRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetEBSVolumeRecommendations

ToPath GetEBSVolumeRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetEBSVolumeRecommendations

ToQuery GetEBSVolumeRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetEBSVolumeRecommendations

type Rep GetEBSVolumeRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetEBSVolumeRecommendations

type Rep GetEBSVolumeRecommendations = D1 ('MetaData "GetEBSVolumeRecommendations" "Amazonka.ComputeOptimizer.GetEBSVolumeRecommendations" "libZSservicesZSamazonka-compute-optimizerZSamazonka-compute-optimizer" 'False) (C1 ('MetaCons "GetEBSVolumeRecommendations'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "accountIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "filters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [EBSFilter]))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "volumeArns") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))))))
type AWSResponse GetEBSVolumeRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetEBSVolumeRecommendations

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 #

Constructors

GetEBSVolumeRecommendationsResponse' 

Fields

Instances

Instances details
Eq GetEBSVolumeRecommendationsResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetEBSVolumeRecommendations

Read GetEBSVolumeRecommendationsResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetEBSVolumeRecommendations

Show GetEBSVolumeRecommendationsResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetEBSVolumeRecommendations

Generic GetEBSVolumeRecommendationsResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetEBSVolumeRecommendations

NFData GetEBSVolumeRecommendationsResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetEBSVolumeRecommendations

type Rep GetEBSVolumeRecommendationsResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.GetEBSVolumeRecommendations

type Rep GetEBSVolumeRecommendationsResponse = D1 ('MetaData "GetEBSVolumeRecommendationsResponse" "Amazonka.ComputeOptimizer.GetEBSVolumeRecommendations" "libZSservicesZSamazonka-compute-optimizerZSamazonka-compute-optimizer" 'False) (C1 ('MetaCons "GetEBSVolumeRecommendationsResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "volumeRecommendations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [VolumeRecommendation]))) :*: (S1 ('MetaSel ('Just "errors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [GetRecommendationError])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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_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.