Filter - AWS Compute Optimizer

Filter

Describes a filter that returns a more specific list of recommendations.

This filter is used with the GetAutoScalingGroupRecommendations and GetEC2InstanceRecommendations actions.

Contents

name

The name of the filter.

Specify Finding to return recommendations with a specific finding classification (e.g., Overprovisioned).

Specify RecommendationSourceType to return recommendations of a specific resource type (e.g., AutoScalingGroup).

Type: String

Valid Values: Finding | RecommendationSourceType

Required: No

values

The value of the filter.

The valid values for this parameter are as follows, depending on what you specify for the name parameter and the resource type that you wish to filter results for:

  • Specify Optimized or NotOptimized if you specified the name parameter as Finding and you want to filter results for Auto Scaling groups.

  • Specify Underprovisioned, Overprovisioned, or Optimized if you specified the name parameter as Finding and you want to filter results for EC2 instances.

  • Specify Ec2Instance or AutoScalingGroup if you specified the name parameter as RecommendationSourceType.

Type: Array of strings

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: