# InlineCustomDocumentEnrichmentConfigurationProperty

Provides the configuration information for applying basic logic to alter document metadata and content when ingesting documents into Amazon Kendra.

To apply advanced logic, to go beyond what you can do with basic logic, see [HookConfiguration](https://docs.aws.amazon.com/kendra/latest/dg/API_HookConfiguration.html) .

For more information, see [Customizing document metadata during the ingestion process](https://docs.aws.amazon.com/kendra/latest/dg/custom-document-enrichment.html) .

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_kendra as kendra } from 'aws-cdk-lib';
const inlineCustomDocumentEnrichmentConfigurationProperty: kendra.CfnDataSource.InlineCustomDocumentEnrichmentConfigurationProperty = {
  condition: {
    conditionDocumentAttributeKey: 'conditionDocumentAttributeKey',
    operator: 'operator',

    // the properties below are optional
    conditionOnValue: {
      dateValue: 'dateValue',
      longValue: 123,
      stringListValue: ['stringListValue'],
      stringValue: 'stringValue',
    },
  },
  documentContentDeletion: false,
  target: {
    targetDocumentAttributeKey: 'targetDocumentAttributeKey',

    // the properties below are optional
    targetDocumentAttributeValue: {
      dateValue: 'dateValue',
      longValue: 123,
      stringListValue: ['stringListValue'],
      stringValue: 'stringValue',
    },
    targetDocumentAttributeValueDeletion: false,
  },
};
```

## Properties

- `condition`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataSource.DocumentAttributeConditionProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_kendra.CfnDataSource.DocumentAttributeConditionProperty.html) — Configuration of the condition used for the target document attribute or metadata field when ingesting documents into Amazon Kendra.

- `documentContentDeletion`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — `TRUE` to delete content if the condition used for the target attribute is met.

- `target`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataSource.DocumentAttributeTargetProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_kendra.CfnDataSource.DocumentAttributeTargetProperty.html) — Configuration of the target document attribute or metadata field when ingesting documents into Amazon Kendra.

  You can also include a value.
