

# AIRecommendationConstraint
<a name="API_AIRecommendationConstraint"></a>

A performance constraint for an AI recommendation job.

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

 ** Metric **   <a name="sagemaker-Type-AIRecommendationConstraint-Metric"></a>
The performance metric. Valid values are `ttft-ms` (time to first token in milliseconds), `throughput`, and `cost`.  
Type: String  
Valid Values: `ttft-ms | throughput | cost`   
Required: Yes

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

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/sagemaker-2017-07-24/AIRecommendationConstraint) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/sagemaker-2017-07-24/AIRecommendationConstraint) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/sagemaker-2017-07-24/AIRecommendationConstraint) 