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
- Struct
- Aws::ComputeOptimizer::Types::GetEC2InstanceRecommendationsRequest
- Defined in:
- (unknown)
Overview
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
-
#account_ids ⇒ Array<String>
The IDs of the AWS accounts for which to return instance recommendations.
-
#filters ⇒ Array<Types::Filter>
An array of objects that describe a filter that returns a more specific list of instance recommendations.
-
#instance_arns ⇒ Array<String>
The Amazon Resource Name (ARN) of the instances for which to return recommendations.
-
#max_results ⇒ Integer
The maximum number of instance recommendations to return with a single request.
-
#next_token ⇒ String
The token to advance to the next page of instance recommendations.
Instance Attribute Details
#account_ids ⇒ Array<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.
#filters ⇒ Array<Types::Filter>
An array of objects that describe a filter that returns a more specific list of instance recommendations.
#instance_arns ⇒ Array<String>
The Amazon Resource Name (ARN) of the instances for which to return recommendations.
#max_results ⇒ Integer
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.
#next_token ⇒ String
The token to advance to the next page of instance recommendations.