Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data DocumentAttributeCondition = DocumentAttributeCondition' {}
- newDocumentAttributeCondition :: Text -> ConditionOperator -> DocumentAttributeCondition
- documentAttributeCondition_conditionOnValue :: Lens' DocumentAttributeCondition (Maybe DocumentAttributeValue)
- documentAttributeCondition_conditionDocumentAttributeKey :: Lens' DocumentAttributeCondition Text
- documentAttributeCondition_operator :: Lens' DocumentAttributeCondition ConditionOperator
Documentation
data DocumentAttributeCondition Source #
The condition used for the target document attribute or metadata field when ingesting documents into Amazon Kendra. You use this with DocumentAttributeTarget to apply the condition.
For example, you can create the 'Department' target field and have it prefill department names associated with the documents based on information in the 'Source_URI' field. Set the condition that if the 'Source_URI' field contains 'financial' in its URI value, then prefill the target field 'Department' with the target value 'Finance' for the document.
Amazon Kendra cannot create a target field if it has not already been
created as an index field. After you create your index field, you can
create a document metadata field using DocumentAttributeTarget
. Amazon
Kendra then will map your newly created metadata field to your index
field.
See: newDocumentAttributeCondition
smart constructor.
DocumentAttributeCondition' | |
|
Instances
newDocumentAttributeCondition Source #
:: Text |
|
-> ConditionOperator | |
-> DocumentAttributeCondition |
Create a value of DocumentAttributeCondition
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:conditionOnValue:DocumentAttributeCondition'
, documentAttributeCondition_conditionOnValue
- The value used by the operator.
For example, you can specify the value 'financial' for strings in the 'Source_URI' field that partially match or contain this value.
$sel:conditionDocumentAttributeKey:DocumentAttributeCondition'
, documentAttributeCondition_conditionDocumentAttributeKey
- The identifier of the document attribute used for the condition.
For example, 'Source_URI' could be an identifier for the attribute or metadata field that contains source URIs associated with the documents.
Amazon Kendra currently does not support _document_body
as an
attribute key used for the condition.
$sel:operator:DocumentAttributeCondition'
, documentAttributeCondition_operator
- The condition operator.
For example, you can use 'Contains' to partially match a string.
documentAttributeCondition_conditionOnValue :: Lens' DocumentAttributeCondition (Maybe DocumentAttributeValue) Source #
The value used by the operator.
For example, you can specify the value 'financial' for strings in the 'Source_URI' field that partially match or contain this value.
documentAttributeCondition_conditionDocumentAttributeKey :: Lens' DocumentAttributeCondition Text Source #
The identifier of the document attribute used for the condition.
For example, 'Source_URI' could be an identifier for the attribute or metadata field that contains source URIs associated with the documents.
Amazon Kendra currently does not support _document_body
as an
attribute key used for the condition.
documentAttributeCondition_operator :: Lens' DocumentAttributeCondition ConditionOperator Source #
The condition operator.
For example, you can use 'Contains' to partially match a string.