

# SentimentAnalysisSettings
<a name="API_SentimentAnalysisSettings"></a>

Determines whether Amazon Lex will use Amazon Comprehend to detect the sentiment of user utterances.

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

 ** detectSentiment **   <a name="lexv2-Type-SentimentAnalysisSettings-detectSentiment"></a>
Sets whether Amazon Lex uses Amazon Comprehend to detect the sentiment of user utterances.  
Type: Boolean  
Required: Yes

## See Also
<a name="API_SentimentAnalysisSettings_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/models.lex.v2-2020-08-07/SentimentAnalysisSettings) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/models.lex.v2-2020-08-07/SentimentAnalysisSettings) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/models.lex.v2-2020-08-07/SentimentAnalysisSettings) 