

支援終止通知：2025 年 9 月 15 日， AWS 將停止對 Amazon Lex V1 的支援。2025 年 9 月 15 日之後，您將無法再存取 Amazon Lex V1 主控台或 Amazon Lex V1 資源。如果您使用的是 Amazon Lex V2，請改參閱 [Amazon Lex V2 指南](https://docs.aws.amazon.com/lexv2/latest/dg/what-is.html)。

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# KendraConfiguration
<a name="API_KendraConfiguration"></a>

提供 AMAZON.KendraSearchIntent 意圖的組態資訊。當您使用此意圖時，Amazon Lex 會搜尋指定的 Amazon Kendra 索引，並從索引傳回符合使用者表達式的文件。如需詳細資訊，請參閱 [ AMAZON.KendraSearchIntent](https://docs.aws.amazon.com/lex/latest/dg/built-in-intent-kendra-search.html)。

## 目錄
<a name="API_KendraConfiguration_Contents"></a>

 ** kendraIndex **   <a name="lex-Type-KendraConfiguration-kendraIndex"></a>
您希望 AMAZON.KendraSearchIntent 意圖搜尋的 Amazon Kendra 索引的 Amazon Resource Name (ARN)。索引必須與 Amazon Lex 機器人位於相同的帳戶和區域中。如果 Amazon Kendra 索引不存在，當您呼叫 `PutIntent`操作時，會收到例外狀況。  
類型：字串  
長度限制︰長度下限為 20。長度上限為 2048。  
模式：`arn:aws:kendra:[a-z]+-[a-z]+-[0-9]:[0-9]{12}:index\/[a-zA-Z0-9][a-zA-Z0-9_-]*`  
必要：是

 ** role **   <a name="lex-Type-KendraConfiguration-role"></a>
具有搜尋 Amazon Kendra 索引許可的 IAM 角色的 Amazon Resource Name (ARN)。角色必須與 Amazon Lex 機器人位於相同的帳戶和區域中。如果角色不存在，當您呼叫 `PutIntent`操作時會收到例外狀況。  
類型：字串  
長度限制︰長度下限為 20。長度上限為 2048。  
模式：`arn:aws:iam::[0-9]{12}:role/.*`  
必要：是

 ** queryFilterString **   <a name="lex-Type-KendraConfiguration-queryFilterString"></a>
Amazon Lex 傳送給 Amazon Kendra 的查詢篩選條件，以篩選查詢中的回應。該篩選器的格式由 Amazon Kendra 定義。如需詳細資訊，請參閱[篩選查詢](https://docs.aws.amazon.com/kendra/latest/dg/filtering.html)。  
您可以在執行時間使用新的篩選條件字串覆寫此篩選條件字串。  
類型：字串  
長度限制：長度下限為 0。  
必要：否

## 另請參閱
<a name="API_KendraConfiguration_SeeAlso"></a>

如需在其中一種語言特定 AWS SDKs中使用此 API 的詳細資訊，請參閱以下內容：
+  [AWS 適用於 C\$1\$1 的 SDK](https://docs.aws.amazon.com/goto/SdkForCpp/lex-models-2017-04-19/KendraConfiguration) 
+  [AWS 適用於 Java V2 的 SDK](https://docs.aws.amazon.com/goto/SdkForJavaV2/lex-models-2017-04-19/KendraConfiguration) 
+  [AWS 適用於 Ruby V3 的 SDK](https://docs.aws.amazon.com/goto/SdkForRubyV3/lex-models-2017-04-19/KendraConfiguration) 