You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::ComputeOptimizer::Types::GetEC2InstanceRecommendationsRequest

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing GetEC2InstanceRecommendationsRequest as input to an Aws::Client method, you can use a vanilla Hash:

{
  instance_arns: ["InstanceArn"],
  next_token: "NextToken",
  max_results: 1,
  filters: [
    {
      name: "Finding", # accepts Finding, RecommendationSourceType
      values: ["FilterValue"],
    },
  ],
  account_ids: ["AccountId"],
}

Instance Attribute Summary collapse

Instance Attribute Details

#account_idsArray<String>

The IDs of the AWS accounts for which to return instance recommendations.

If your account is the master account of an organization, use this parameter to specify the member accounts for which you want to return instance recommendations.

Only one account ID can be specified per request.

Returns:

  • (Array<String>)

    The IDs of the AWS accounts for which to return instance recommendations.

#filtersArray<Types::Filter>

An array of objects that describe a filter that returns a more specific list of instance recommendations.

Returns:

  • (Array<Types::Filter>)

    An array of objects that describe a filter that returns a more specific list of instance recommendations.

#instance_arnsArray<String>

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

Returns:

  • (Array<String>)

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

#max_resultsInteger

The maximum number of instance recommendations to return with a single request.

To retrieve the remaining results, make another request with the returned NextToken value.

Returns:

  • (Integer)

    The maximum number of instance recommendations to return with a single request.

#next_tokenString

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

Returns:

  • (String)

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