@Generated(value="software.amazon.awssdk:codegen") public final class HookConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<HookConfiguration.Builder,HookConfiguration>
Provides the configuration information for invoking a Lambda function in Lambda to alter document metadata and content when ingesting documents into Amazon Kendra. You can configure your Lambda function using PreExtractionHookConfiguration if you want to apply advanced alterations on the original or raw documents. If you want to apply advanced alterations on the Amazon Kendra structured documents, you must configure your Lambda function using PostExtractionHookConfiguration. You can only invoke one Lambda function. However, this function can invoke other functions it requires.
For more information, see Customizing document metadata during the ingestion process.
| Modifier and Type | Class and Description |
|---|---|
static interface |
HookConfiguration.Builder |
| Modifier and Type | Method and Description |
|---|---|
static HookConfiguration.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
DocumentAttributeCondition |
invocationCondition()
The condition used for when a Lambda function should be invoked.
|
String |
lambdaArn()
The Amazon Resource Name (ARN) of a role with permission to run a Lambda function during ingestion.
|
String |
s3Bucket()
Stores the original, raw documents or the structured, parsed documents before and after altering them.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends HookConfiguration.Builder> |
serializableBuilderClass() |
HookConfiguration.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final DocumentAttributeCondition invocationCondition()
The condition used for when a Lambda function should be invoked.
For example, you can specify a condition that if there are empty date-time values, then Amazon Kendra should invoke a function that inserts the current date-time.
For example, you can specify a condition that if there are empty date-time values, then Amazon Kendra should invoke a function that inserts the current date-time.
public final String lambdaArn()
The Amazon Resource Name (ARN) of a role with permission to run a Lambda function during ingestion. For more information, see IAM roles for Amazon Kendra.
public final String s3Bucket()
Stores the original, raw documents or the structured, parsed documents before and after altering them. For more information, see Data contracts for Lambda functions.
public HookConfiguration.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<HookConfiguration.Builder,HookConfiguration>public static HookConfiguration.Builder builder()
public static Class<? extends HookConfiguration.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.