

# GetRecommendationError
<a name="API_GetRecommendationError"></a>

Describes an error experienced when getting recommendations.

For example, an error is returned if you request recommendations for an unsupported Auto Scaling group, or if you request recommendations for an instance of an unsupported instance family.

## Contents
<a name="API_GetRecommendationError_Contents"></a>

 ** code **   <a name="computeoptimizer-Type-GetRecommendationError-code"></a>
The error code.  
Type: String  
Required: No

 ** identifier **   <a name="computeoptimizer-Type-GetRecommendationError-identifier"></a>
The ID of the error.  
Type: String  
Required: No

 ** message **   <a name="computeoptimizer-Type-GetRecommendationError-message"></a>
The message, or reason, for the error.  
Type: String  
Required: No

## See Also
<a name="API_GetRecommendationError_SeeAlso"></a>

For more information about using this API in one of the language-specific Amazon SDKs, see the following:
+  [Amazon SDK for C\$1\$1](https://docs.amazonaws.cn/goto/SdkForCpp/compute-optimizer-2019-11-01/GetRecommendationError) 
+  [Amazon SDK for Java V2](https://docs.amazonaws.cn/goto/SdkForJavaV2/compute-optimizer-2019-11-01/GetRecommendationError) 
+  [Amazon SDK for Ruby V3](https://docs.amazonaws.cn/goto/SdkForRubyV3/compute-optimizer-2019-11-01/GetRecommendationError) 