We announced the upcoming end-of-support for AWS SDK for JavaScript v2.
We recommend that you migrate to AWS SDK for JavaScript v3. For dates, additional details, and information on how to migrate, please refer to the linked announcement.

Class: AWS.Kendra

Inherits:
AWS.Service show all
Identifier:
kendra
API Version:
2019-02-03
Defined in:
(unknown)

Overview

Constructs a service interface object. Each API operation is exposed as a function on service.

Service Description

Amazon Kendra is a service for indexing large document sets.

Sending a Request Using Kendra

var kendra = new AWS.Kendra();
kendra.associateEntitiesToExperience(params, function (err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Locking the API Version

In order to ensure that the Kendra object uses this specific API, you can construct the object by passing the apiVersion option to the constructor:

var kendra = new AWS.Kendra({apiVersion: '2019-02-03'});

You can also set the API version globally in AWS.config.apiVersions using the kendra service identifier:

AWS.config.apiVersions = {
  kendra: '2019-02-03',
  // other service API versions
};

var kendra = new AWS.Kendra();

Version:

  • 2019-02-03

Constructor Summary collapse

Property Summary collapse

Properties inherited from AWS.Service

apiVersions

Method Summary collapse

Methods inherited from AWS.Service

makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService

Constructor Details

new AWS.Kendra(options = {}) ⇒ Object

Constructs a service object. This object has one method for each API operation.

Examples:

Constructing a Kendra object

var kendra = new AWS.Kendra({apiVersion: '2019-02-03'});

Options Hash (options):

  • params (map)

    An optional map of parameters to bind to every request sent by this service object. For more information on bound parameters, see "Working with Services" in the Getting Started Guide.

  • endpoint (String|AWS.Endpoint)

    The endpoint URI to send requests to. The default endpoint is built from the configured region. The endpoint should be a string like 'https://{service}.{region}.amazonaws.com' or an Endpoint object.

  • accessKeyId (String)

    your AWS access key ID.

  • secretAccessKey (String)

    your AWS secret access key.

  • sessionToken (AWS.Credentials)

    the optional AWS session token to sign requests with.

  • credentials (AWS.Credentials)

    the AWS credentials to sign requests with. You can either specify this object, or specify the accessKeyId and secretAccessKey options directly.

  • credentialProvider (AWS.CredentialProviderChain)

    the provider chain used to resolve credentials if no static credentials property is set.

  • region (String)

    the region to send service requests to. See AWS.Kendra.region for more information.

  • maxRetries (Integer)

    the maximum amount of retries to attempt with a request. See AWS.Kendra.maxRetries for more information.

  • maxRedirects (Integer)

    the maximum amount of redirects to follow with a request. See AWS.Kendra.maxRedirects for more information.

  • sslEnabled (Boolean)

    whether to enable SSL for requests.

  • paramValidation (Boolean|map)

    whether input parameters should be validated against the operation description before sending the request. Defaults to true. Pass a map to enable any of the following specific validation features:

    • min [Boolean] — Validates that a value meets the min constraint. This is enabled by default when paramValidation is set to true.
    • max [Boolean] — Validates that a value meets the max constraint.
    • pattern [Boolean] — Validates that a string value matches a regular expression.
    • enum [Boolean] — Validates that a string value matches one of the allowable enum values.
  • computeChecksums (Boolean)

    whether to compute checksums for payload bodies when the service accepts it (currently supported in S3 only)

  • convertResponseTypes (Boolean)

    whether types are converted when parsing response data. Currently only supported for JSON based services. Turning this off may improve performance on large response payloads. Defaults to true.

  • correctClockSkew (Boolean)

    whether to apply a clock skew correction and retry requests that fail because of an skewed client clock. Defaults to false.

  • s3ForcePathStyle (Boolean)

    whether to force path style URLs for S3 objects.

  • s3BucketEndpoint (Boolean)

    whether the provided endpoint addresses an individual bucket (false if it addresses the root API endpoint). Note that setting this configuration option requires an endpoint to be provided explicitly to the service constructor.

  • s3DisableBodySigning (Boolean)

    whether S3 body signing should be disabled when using signature version v4. Body signing can only be disabled when using https. Defaults to true.

  • s3UsEast1RegionalEndpoint ('legacy'|'regional')

    when region is set to 'us-east-1', whether to send s3 request to global endpoints or 'us-east-1' regional endpoints. This config is only applicable to S3 client. Defaults to legacy

  • s3UseArnRegion (Boolean)

    whether to override the request region with the region inferred from requested resource's ARN. Only available for S3 buckets Defaults to true

  • retryDelayOptions (map)

    A set of options to configure the retry delay on retryable errors. Currently supported options are:

    • base [Integer] — The base number of milliseconds to use in the exponential backoff for operation retries. Defaults to 100 ms for all services except DynamoDB, where it defaults to 50ms.
    • customBackoff [function] — A custom function that accepts a retry count and error and returns the amount of time to delay in milliseconds. If the result is a non-zero negative value, no further retry attempts will be made. The base option will be ignored if this option is supplied. The function is only called for retryable errors.
  • httpOptions (map)

    A set of options to pass to the low-level HTTP request. Currently supported options are:

    • proxy [String] — the URL to proxy requests through
    • agent [http.Agent, https.Agent] — the Agent object to perform HTTP requests with. Used for connection pooling. Defaults to the global agent (http.globalAgent) for non-SSL connections. Note that for SSL connections, a special Agent object is used in order to enable peer certificate verification. This feature is only available in the Node.js environment.
    • connectTimeout [Integer] — Sets the socket to timeout after failing to establish a connection with the server after connectTimeout milliseconds. This timeout has no effect once a socket connection has been established.
    • timeout [Integer] — Sets the socket to timeout after timeout milliseconds of inactivity on the socket. Defaults to two minutes (120000).
    • xhrAsync [Boolean] — Whether the SDK will send asynchronous HTTP requests. Used in the browser environment only. Set to false to send requests synchronously. Defaults to true (async on).
    • xhrWithCredentials [Boolean] — Sets the "withCredentials" property of an XMLHttpRequest object. Used in the browser environment only. Defaults to false.
  • apiVersion (String, Date)

    a String in YYYY-MM-DD format (or a date) that represents the latest possible API version that can be used in all services (unless overridden by apiVersions). Specify 'latest' to use the latest possible version.

  • apiVersions (map<String, String|Date>)

    a map of service identifiers (the lowercase service class name) with the API version to use when instantiating a service. Specify 'latest' for each individual that can use the latest available version.

  • logger (#write, #log)

    an object that responds to .write() (like a stream) or .log() (like the console object) in order to log information about requests

  • systemClockOffset (Number)

    an offset value in milliseconds to apply to all signing times. Use this to compensate for clock skew when your system may be out of sync with the service time. Note that this configuration option can only be applied to the global AWS.config object and cannot be overridden in service-specific configuration. Defaults to 0 milliseconds.

  • signatureVersion (String)

    the signature version to sign requests with (overriding the API configuration). Possible values are: 'v2', 'v3', 'v4'.

  • signatureCache (Boolean)

    whether the signature to sign requests with (overriding the API configuration) is cached. Only applies to the signature version 'v4'. Defaults to true.

  • dynamoDbCrc32 (Boolean)

    whether to validate the CRC32 checksum of HTTP response bodies returned by DynamoDB. Default: true.

  • useAccelerateEndpoint (Boolean)

    Whether to use the S3 Transfer Acceleration endpoint with the S3 service. Default: false.

  • clientSideMonitoring (Boolean)

    whether to collect and publish this client's performance metrics of all its API requests.

  • endpointDiscoveryEnabled (Boolean|undefined)

    whether to call operations with endpoints given by service dynamically. Setting this

  • endpointCacheSize (Number)

    the size of the global cache storing endpoints from endpoint discovery operations. Once endpoint cache is created, updating this setting cannot change existing cache size. Defaults to 1000

  • hostPrefixEnabled (Boolean)

    whether to marshal request parameters to the prefix of hostname. Defaults to true.

  • stsRegionalEndpoints ('legacy'|'regional')

    whether to send sts request to global endpoints or regional endpoints. Defaults to 'legacy'.

  • useFipsEndpoint (Boolean)

    Enables FIPS compatible endpoints. Defaults to false.

  • useDualstackEndpoint (Boolean)

    Enables IPv6 dualstack endpoint. Defaults to false.

Property Details

endpointAWS.Endpoint (readwrite)

Returns an Endpoint object representing the endpoint URL for service requests.

Returns:

  • (AWS.Endpoint)

    an Endpoint object representing the endpoint URL for service requests.

Method Details

associateEntitiesToExperience(params = {}, callback) ⇒ AWS.Request

Grants users or groups in your IAM Identity Center identity source access to your Amazon Kendra experience. You can create an Amazon Kendra experience such as a search application. For more information on creating a search application experience, see Building a search experience with no code.

Service Reference:

Examples:

Calling the associateEntitiesToExperience operation

var params = {
  EntityList: [ /* required */
    {
      EntityId: 'STRING_VALUE', /* required */
      EntityType: USER | GROUP /* required */
    },
    /* more items */
  ],
  Id: 'STRING_VALUE', /* required */
  IndexId: 'STRING_VALUE' /* required */
};
kendra.associateEntitiesToExperience(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Id — (String)

      The identifier of your Amazon Kendra experience.

    • IndexId — (String)

      The identifier of the index for your Amazon Kendra experience.

    • EntityList — (Array<map>)

      Lists users or groups in your IAM Identity Center identity source.

      • EntityIdrequired — (String)

        The identifier of a user or group in your IAM Identity Center identity source. For example, a user ID could be an email.

      • EntityTyperequired — (String)

        Specifies whether you are configuring a User or a Group.

        Possible values include:
        • "USER"
        • "GROUP"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • FailedEntityList — (Array<map>)

        Lists the users or groups in your IAM Identity Center identity source that failed to properly configure with your Amazon Kendra experience.

        • EntityId — (String)

          The identifier of the user or group in your IAM Identity Center identity source. For example, a user ID could be an email.

        • ErrorMessage — (String)

          The reason the user or group in your IAM Identity Center identity source failed to properly configure with your Amazon Kendra experience.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

associatePersonasToEntities(params = {}, callback) ⇒ AWS.Request

Defines the specific permissions of users or groups in your IAM Identity Center identity source with access to your Amazon Kendra experience. You can create an Amazon Kendra experience such as a search application. For more information on creating a search application experience, see Building a search experience with no code.

Service Reference:

Examples:

Calling the associatePersonasToEntities operation

var params = {
  Id: 'STRING_VALUE', /* required */
  IndexId: 'STRING_VALUE', /* required */
  Personas: [ /* required */
    {
      EntityId: 'STRING_VALUE', /* required */
      Persona: OWNER | VIEWER /* required */
    },
    /* more items */
  ]
};
kendra.associatePersonasToEntities(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Id — (String)

      The identifier of your Amazon Kendra experience.

    • IndexId — (String)

      The identifier of the index for your Amazon Kendra experience.

    • Personas — (Array<map>)

      The personas that define the specific permissions of users or groups in your IAM Identity Center identity source. The available personas or access roles are Owner and Viewer. For more information on these personas, see Providing access to your search page.

      • EntityIdrequired — (String)

        The identifier of a user or group in your IAM Identity Center identity source. For example, a user ID could be an email.

      • Personarequired — (String)

        The persona that defines the specific permissions of the user or group in your IAM Identity Center identity source. The available personas or access roles are Owner and Viewer. For more information on these personas, see Providing access to your search page.

        Possible values include:
        • "OWNER"
        • "VIEWER"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • FailedEntityList — (Array<map>)

        Lists the users or groups in your IAM Identity Center identity source that failed to properly configure with your Amazon Kendra experience.

        • EntityId — (String)

          The identifier of the user or group in your IAM Identity Center identity source. For example, a user ID could be an email.

        • ErrorMessage — (String)

          The reason the user or group in your IAM Identity Center identity source failed to properly configure with your Amazon Kendra experience.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

batchDeleteDocument(params = {}, callback) ⇒ AWS.Request

Removes one or more documents from an index. The documents must have been added with the BatchPutDocument API.

The documents are deleted asynchronously. You can see the progress of the deletion by using Amazon Web Services CloudWatch. Any error messages related to the processing of the batch are sent to your Amazon Web Services CloudWatch log. You can also use the BatchGetDocumentStatus API to monitor the progress of deleting your documents.

Deleting documents from an index using BatchDeleteDocument could take up to an hour or more, depending on the number of documents you want to delete.

Service Reference:

Examples:

Calling the batchDeleteDocument operation

var params = {
  DocumentIdList: [ /* required */
    'STRING_VALUE',
    /* more items */
  ],
  IndexId: 'STRING_VALUE', /* required */
  DataSourceSyncJobMetricTarget: {
    DataSourceId: 'STRING_VALUE', /* required */
    DataSourceSyncJobId: 'STRING_VALUE'
  }
};
kendra.batchDeleteDocument(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • IndexId — (String)

      The identifier of the index that contains the documents to delete.

    • DocumentIdList — (Array<String>)

      One or more identifiers for documents to delete from the index.

    • DataSourceSyncJobMetricTarget — (map)

      Maps a particular data source sync job to a particular data source.

      • DataSourceIdrequired — (String)

        The ID of the data source that is running the sync job.

      • DataSourceSyncJobId — (String)

        The ID of the sync job that is running on the data source.

        If the ID of a sync job is not provided and there is a sync job running, then the ID of this sync job is used and metrics are generated for this sync job.

        If the ID of a sync job is not provided and there is no sync job running, then no metrics are generated and documents are indexed/deleted at the index level without sync job metrics included.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • FailedDocuments — (Array<map>)

        A list of documents that could not be removed from the index. Each entry contains an error message that indicates why the document couldn't be removed from the index.

        • Id — (String)

          The identifier of the document that couldn't be removed from the index.

        • ErrorCode — (String)

          The error code for why the document couldn't be removed from the index.

          Possible values include:
          • "InternalError"
          • "InvalidRequest"
        • ErrorMessage — (String)

          An explanation for why the document couldn't be removed from the index.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

batchDeleteFeaturedResultsSet(params = {}, callback) ⇒ AWS.Request

Removes one or more sets of featured results. Features results are placed above all other results for certain queries. If there's an exact match of a query, then one or more specific documents are featured in the search results.

Service Reference:

Examples:

Calling the batchDeleteFeaturedResultsSet operation

var params = {
  FeaturedResultsSetIds: [ /* required */
    'STRING_VALUE',
    /* more items */
  ],
  IndexId: 'STRING_VALUE' /* required */
};
kendra.batchDeleteFeaturedResultsSet(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • IndexId — (String)

      The identifier of the index used for featuring results.

    • FeaturedResultsSetIds — (Array<String>)

      The identifiers of the featured results sets that you want to delete.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Errors — (Array<map>)

        The list of errors for the featured results set IDs, explaining why they couldn't be removed from the index.

        • Idrequired — (String)

          The identifier of the set of featured results that couldn't be removed from the index.

        • ErrorCoderequired — (String)

          The error code for why the set of featured results couldn't be removed from the index.

          Possible values include:
          • "InternalError"
          • "InvalidRequest"
        • ErrorMessagerequired — (String)

          An explanation for why the set of featured results couldn't be removed from the index.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

batchGetDocumentStatus(params = {}, callback) ⇒ AWS.Request

Returns the indexing status for one or more documents submitted with the BatchPutDocument API.

When you use the BatchPutDocument API, documents are indexed asynchronously. You can use the BatchGetDocumentStatus API to get the current status of a list of documents so that you can determine if they have been successfully indexed.

You can also use the BatchGetDocumentStatus API to check the status of the BatchDeleteDocument API. When a document is deleted from the index, Amazon Kendra returns NOT_FOUND as the status.

Service Reference:

Examples:

Calling the batchGetDocumentStatus operation

var params = {
  DocumentInfoList: [ /* required */
    {
      DocumentId: 'STRING_VALUE', /* required */
      Attributes: [
        {
          Key: 'STRING_VALUE', /* required */
          Value: { /* required */
            DateValue: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
            LongValue: 'NUMBER_VALUE',
            StringListValue: [
              'STRING_VALUE',
              /* more items */
            ],
            StringValue: 'STRING_VALUE'
          }
        },
        /* more items */
      ]
    },
    /* more items */
  ],
  IndexId: 'STRING_VALUE' /* required */
};
kendra.batchGetDocumentStatus(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • IndexId — (String)

      The identifier of the index to add documents to. The index ID is returned by the CreateIndex API.

    • DocumentInfoList — (Array<map>)

      A list of DocumentInfo objects that identify the documents for which to get the status. You identify the documents by their document ID and optional attributes.

      • DocumentIdrequired — (String)

        The identifier of the document.

      • Attributes — (Array<map>)

        Attributes that identify a specific version of a document to check.

        The only valid attributes are:

        • version

        • datasourceId

        • jobExecutionId

        The attributes follow these rules:

        • dataSourceId and jobExecutionId must be used together.

        • version is ignored if dataSourceId and jobExecutionId are not provided.

        • If dataSourceId and jobExecutionId are provided, but version is not, the version defaults to "0".

        • Keyrequired — (String)

          The identifier for the attribute.

        • Valuerequired — (map)

          The value of the attribute.

          • StringValue — (String)

            A string, such as "department".

          • StringListValue — (Array<String>)

            A list of strings. The default maximum length or number of strings is 10.

          • LongValue — (Integer)

            A long integer value.

          • DateValue — (Date)

            A date expressed as an ISO 8601 string.

            It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Errors — (Array<map>)

        A list of documents that Amazon Kendra couldn't get the status for. The list includes the ID of the document and the reason that the status couldn't be found.

        • DocumentId — (String)

          The identifier of the document whose status could not be retrieved.

        • ErrorCode — (String)

          Indicates the source of the error.

          Possible values include:
          • "InternalError"
          • "InvalidRequest"
        • ErrorMessage — (String)

          States that the API could not get the status of a document. This could be because the request is not valid or there is a system error.

      • DocumentStatusList — (Array<map>)

        The status of documents. The status indicates if the document is waiting to be indexed, is in the process of indexing, has completed indexing, or failed indexing. If a document failed indexing, the status provides the reason why.

        • DocumentId — (String)

          The identifier of the document.

        • DocumentStatus — (String)

          The current status of a document.

          If the document was submitted for deletion, the status is NOT_FOUND after the document is deleted.

          Possible values include:
          • "NOT_FOUND"
          • "PROCESSING"
          • "INDEXED"
          • "UPDATED"
          • "FAILED"
          • "UPDATE_FAILED"
        • FailureCode — (String)

          Indicates the source of the error.

        • FailureReason — (String)

          Provides detailed information about why the document couldn't be indexed. Use this information to correct the error before you resubmit the document for indexing.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

batchPutDocument(params = {}, callback) ⇒ AWS.Request

Adds one or more documents to an index.

The BatchPutDocument API enables you to ingest inline documents or a set of documents stored in an Amazon S3 bucket. Use this API to ingest your text and unstructured text into an index, add custom attributes to the documents, and to attach an access control list to the documents added to the index.

The documents are indexed asynchronously. You can see the progress of the batch using Amazon Web Services CloudWatch. Any error messages related to processing the batch are sent to your Amazon Web Services CloudWatch log. You can also use the BatchGetDocumentStatus API to monitor the progress of indexing your documents.

For an example of ingesting inline documents using Python and Java SDKs, see Adding files directly to an index.

Service Reference:

Examples:

Calling the batchPutDocument operation

var params = {
  Documents: [ /* required */
    {
      Id: 'STRING_VALUE', /* required */
      AccessControlConfigurationId: 'STRING_VALUE',
      AccessControlList: [
        {
          Access: ALLOW | DENY, /* required */
          Name: 'STRING_VALUE', /* required */
          Type: USER | GROUP, /* required */
          DataSourceId: 'STRING_VALUE'
        },
        /* more items */
      ],
      Attributes: [
        {
          Key: 'STRING_VALUE', /* required */
          Value: { /* required */
            DateValue: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
            LongValue: 'NUMBER_VALUE',
            StringListValue: [
              'STRING_VALUE',
              /* more items */
            ],
            StringValue: 'STRING_VALUE'
          }
        },
        /* more items */
      ],
      Blob: Buffer.from('...') || 'STRING_VALUE' /* Strings will be Base-64 encoded on your behalf */,
      ContentType: PDF | HTML | MS_WORD | PLAIN_TEXT | PPT | RTF | XML | XSLT | MS_EXCEL | CSV | JSON | MD,
      HierarchicalAccessControlList: [
        {
          PrincipalList: [ /* required */
            {
              Access: ALLOW | DENY, /* required */
              Name: 'STRING_VALUE', /* required */
              Type: USER | GROUP, /* required */
              DataSourceId: 'STRING_VALUE'
            },
            /* more items */
          ]
        },
        /* more items */
      ],
      S3Path: {
        Bucket: 'STRING_VALUE', /* required */
        Key: 'STRING_VALUE' /* required */
      },
      Title: 'STRING_VALUE'
    },
    /* more items */
  ],
  IndexId: 'STRING_VALUE', /* required */
  CustomDocumentEnrichmentConfiguration: {
    InlineConfigurations: [
      {
        Condition: {
          ConditionDocumentAttributeKey: 'STRING_VALUE', /* required */
          Operator: GreaterThan | GreaterThanOrEquals | LessThan | LessThanOrEquals | Equals | NotEquals | Contains | NotContains | Exists | NotExists | BeginsWith, /* required */
          ConditionOnValue: {
            DateValue: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
            LongValue: 'NUMBER_VALUE',
            StringListValue: [
              'STRING_VALUE',
              /* more items */
            ],
            StringValue: 'STRING_VALUE'
          }
        },
        DocumentContentDeletion: true || false,
        Target: {
          TargetDocumentAttributeKey: 'STRING_VALUE',
          TargetDocumentAttributeValue: {
            DateValue: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
            LongValue: 'NUMBER_VALUE',
            StringListValue: [
              'STRING_VALUE',
              /* more items */
            ],
            StringValue: 'STRING_VALUE'
          },
          TargetDocumentAttributeValueDeletion: true || false
        }
      },
      /* more items */
    ],
    PostExtractionHookConfiguration: {
      LambdaArn: 'STRING_VALUE', /* required */
      S3Bucket: 'STRING_VALUE', /* required */
      InvocationCondition: {
        ConditionDocumentAttributeKey: 'STRING_VALUE', /* required */
        Operator: GreaterThan | GreaterThanOrEquals | LessThan | LessThanOrEquals | Equals | NotEquals | Contains | NotContains | Exists | NotExists | BeginsWith, /* required */
        ConditionOnValue: {
          DateValue: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
          LongValue: 'NUMBER_VALUE',
          StringListValue: [
            'STRING_VALUE',
            /* more items */
          ],
          StringValue: 'STRING_VALUE'
        }
      }
    },
    PreExtractionHookConfiguration: {
      LambdaArn: 'STRING_VALUE', /* required */
      S3Bucket: 'STRING_VALUE', /* required */
      InvocationCondition: {
        ConditionDocumentAttributeKey: 'STRING_VALUE', /* required */
        Operator: GreaterThan | GreaterThanOrEquals | LessThan | LessThanOrEquals | Equals | NotEquals | Contains | NotContains | Exists | NotExists | BeginsWith, /* required */
        ConditionOnValue: {
          DateValue: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
          LongValue: 'NUMBER_VALUE',
          StringListValue: [
            'STRING_VALUE',
            /* more items */
          ],
          StringValue: 'STRING_VALUE'
        }
      }
    },
    RoleArn: 'STRING_VALUE'
  },
  RoleArn: 'STRING_VALUE'
};
kendra.batchPutDocument(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • IndexId — (String)

      The identifier of the index to add the documents to. You need to create the index first using the CreateIndex API.

    • RoleArn — (String)

      The Amazon Resource Name (ARN) of an IAM role with permission to access your S3 bucket. For more information, see IAM access roles for Amazon Kendra.

    • Documents — (Array<map>)

      One or more documents to add to the index.

      Documents have the following file size limits.

      • 50 MB total size for any file

      • 5 MB extracted text for any file

      For more information, see Quotas.

      • Idrequired — (String)

        A identifier of the document in the index.

        Note, each document ID must be unique per index. You cannot create a data source to index your documents with their unique IDs and then use the BatchPutDocument API to index the same documents, or vice versa. You can delete a data source and then use the BatchPutDocument API to index the same documents, or vice versa.

      • Title — (String)

        The title of the document.

      • Blob — (Buffer, Typed Array, Blob, String)

        The contents of the document.

        Documents passed to the Blob parameter must be base64 encoded. Your code might not need to encode the document file bytes if you're using an Amazon Web Services SDK to call Amazon Kendra APIs. If you are calling the Amazon Kendra endpoint directly using REST, you must base64 encode the contents before sending.

      • S3Path — (map)

        Information required to find a specific file in an Amazon S3 bucket.

        • Bucketrequired — (String)

          The name of the S3 bucket that contains the file.

        • Keyrequired — (String)

          The name of the file.

      • Attributes — (Array<map>)

        Custom attributes to apply to the document. Use the custom attributes to provide additional information for searching, to provide facets for refining searches, and to provide additional information in the query response.

        For example, 'DataSourceId' and 'DataSourceSyncJobId' are custom attributes that provide information on the synchronization of documents running on a data source. Note, 'DataSourceSyncJobId' could be an optional custom attribute as Amazon Kendra will use the ID of a running sync job.

        • Keyrequired — (String)

          The identifier for the attribute.

        • Valuerequired — (map)

          The value of the attribute.

          • StringValue — (String)

            A string, such as "department".

          • StringListValue — (Array<String>)

            A list of strings. The default maximum length or number of strings is 10.

          • LongValue — (Integer)

            A long integer value.

          • DateValue — (Date)

            A date expressed as an ISO 8601 string.

            It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

      • AccessControlList — (Array<map>)

        Information on principals (users and/or groups) and which documents they should have access to. This is useful for user context filtering, where search results are filtered based on the user or their group access to documents.

        • Namerequired — (String)

          The name of the user or group.

        • Typerequired — (String)

          The type of principal.

          Possible values include:
          • "USER"
          • "GROUP"
        • Accessrequired — (String)

          Whether to allow or deny document access to the principal.

          Possible values include:
          • "ALLOW"
          • "DENY"
        • DataSourceId — (String)

          The identifier of the data source the principal should access documents from.

      • HierarchicalAccessControlList — (Array<map>)

        The list of principal lists that define the hierarchy for which documents users should have access to.

        • PrincipalListrequired — (Array<map>)

          A list of principal lists that define the hierarchy for which documents users should have access to. Each hierarchical list specifies which user or group has allow or deny access for each document.

          • Namerequired — (String)

            The name of the user or group.

          • Typerequired — (String)

            The type of principal.

            Possible values include:
            • "USER"
            • "GROUP"
          • Accessrequired — (String)

            Whether to allow or deny document access to the principal.

            Possible values include:
            • "ALLOW"
            • "DENY"
          • DataSourceId — (String)

            The identifier of the data source the principal should access documents from.

      • ContentType — (String)

        The file type of the document in the Blob field.

        If you want to index snippets or subsets of HTML documents instead of the entirety of the HTML documents, you must add the HTML start and closing tags (<HTML>content</HTML>) around the content.

        Possible values include:
        • "PDF"
        • "HTML"
        • "MS_WORD"
        • "PLAIN_TEXT"
        • "PPT"
        • "RTF"
        • "XML"
        • "XSLT"
        • "MS_EXCEL"
        • "CSV"
        • "JSON"
        • "MD"
      • AccessControlConfigurationId — (String)

        The identifier of the access control configuration that you want to apply to the document.

    • CustomDocumentEnrichmentConfiguration — (map)

      Configuration information for altering your document metadata and content during the document ingestion process when you use the BatchPutDocument API.

      For more information on how to create, modify and delete document metadata, or make other content alterations when you ingest documents into Amazon Kendra, see Customizing document metadata during the ingestion process.

      • InlineConfigurations — (Array<map>)

        Configuration information to alter document attributes or metadata fields and content when ingesting documents into Amazon Kendra.

        • Condition — (map)

          Configuration of the condition used for the target document attribute or metadata field when ingesting documents into Amazon Kendra.

          • ConditionDocumentAttributeKeyrequired — (String)

            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.

          • Operatorrequired — (String)

            The condition operator.

            For example, you can use 'Contains' to partially match a string.

            Possible values include:
            • "GreaterThan"
            • "GreaterThanOrEquals"
            • "LessThan"
            • "LessThanOrEquals"
            • "Equals"
            • "NotEquals"
            • "Contains"
            • "NotContains"
            • "Exists"
            • "NotExists"
            • "BeginsWith"
          • ConditionOnValue — (map)

            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.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • Target — (map)

          Configuration of the target document attribute or metadata field when ingesting documents into Amazon Kendra. You can also include a value.

          • TargetDocumentAttributeKey — (String)

            The identifier of the target document attribute or metadata field.

            For example, 'Department' could be an identifier for the target attribute or metadata field that includes the department names associated with the documents.

          • TargetDocumentAttributeValueDeletion — (Boolean)

            TRUE to delete the existing target value for your specified target attribute key. You cannot create a target value and set this to TRUE. To create a target value (TargetDocumentAttributeValue), set this to FALSE.

          • TargetDocumentAttributeValue — (map)

            The target value you want to create for the target attribute.

            For example, 'Finance' could be the target value for the target attribute key 'Department'.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • DocumentContentDeletion — (Boolean)

          TRUE to delete content if the condition used for the target attribute is met.

      • PreExtractionHookConfiguration — (map)

        Configuration information for invoking a Lambda function in Lambda on the original or raw documents before extracting their metadata and text. You can use a Lambda function to apply advanced logic for creating, modifying, or deleting document metadata and content. For more information, see Advanced data manipulation.

        • InvocationCondition — (map)

          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.

          • ConditionDocumentAttributeKeyrequired — (String)

            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.

          • Operatorrequired — (String)

            The condition operator.

            For example, you can use 'Contains' to partially match a string.

            Possible values include:
            • "GreaterThan"
            • "GreaterThanOrEquals"
            • "LessThan"
            • "LessThanOrEquals"
            • "Equals"
            • "NotEquals"
            • "Contains"
            • "NotContains"
            • "Exists"
            • "NotExists"
            • "BeginsWith"
          • ConditionOnValue — (map)

            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.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • LambdaArnrequired — (String)

          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.

        • S3Bucketrequired — (String)

          Stores the original, raw documents or the structured, parsed documents before and after altering them. For more information, see Data contracts for Lambda functions.

      • PostExtractionHookConfiguration — (map)

        Configuration information for invoking a Lambda function in Lambda on the structured documents with their metadata and text extracted. You can use a Lambda function to apply advanced logic for creating, modifying, or deleting document metadata and content. For more information, see Advanced data manipulation.

        • InvocationCondition — (map)

          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.

          • ConditionDocumentAttributeKeyrequired — (String)

            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.

          • Operatorrequired — (String)

            The condition operator.

            For example, you can use 'Contains' to partially match a string.

            Possible values include:
            • "GreaterThan"
            • "GreaterThanOrEquals"
            • "LessThan"
            • "LessThanOrEquals"
            • "Equals"
            • "NotEquals"
            • "Contains"
            • "NotContains"
            • "Exists"
            • "NotExists"
            • "BeginsWith"
          • ConditionOnValue — (map)

            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.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • LambdaArnrequired — (String)

          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.

        • S3Bucketrequired — (String)

          Stores the original, raw documents or the structured, parsed documents before and after altering them. For more information, see Data contracts for Lambda functions.

      • RoleArn — (String)

        The Amazon Resource Name (ARN) of a role with permission to run PreExtractionHookConfiguration and PostExtractionHookConfiguration for altering document metadata and content during the document ingestion process. For more information, see IAM roles for Amazon Kendra.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • FailedDocuments — (Array<map>)

        A list of documents that were not added to the index because the document failed a validation check. Each document contains an error message that indicates why the document couldn't be added to the index.

        If there was an error adding a document to an index the error is reported in your Amazon Web Services CloudWatch log. For more information, see Monitoring Amazon Kendra with Amazon CloudWatch logs.

        • Id — (String)

          The identifier of the document.

        • ErrorCode — (String)

          The type of error that caused the document to fail to be indexed.

          Possible values include:
          • "InternalError"
          • "InvalidRequest"
        • ErrorMessage — (String)

          A description of the reason why the document could not be indexed.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

clearQuerySuggestions(params = {}, callback) ⇒ AWS.Request

Clears existing query suggestions from an index.

This deletes existing suggestions only, not the queries in the query log. After you clear suggestions, Amazon Kendra learns new suggestions based on new queries added to the query log from the time you cleared suggestions. If you do not see any new suggestions, then please allow Amazon Kendra to collect enough queries to learn new suggestions.

ClearQuerySuggestions is currently not supported in the Amazon Web Services GovCloud (US-West) region.

Service Reference:

Examples:

Calling the clearQuerySuggestions operation

var params = {
  IndexId: 'STRING_VALUE' /* required */
};
kendra.clearQuerySuggestions(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • IndexId — (String)

      The identifier of the index you want to clear query suggestions from.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createAccessControlConfiguration(params = {}, callback) ⇒ AWS.Request

Creates an access configuration for your documents. This includes user and group access information for your documents. This is useful for user context filtering, where search results are filtered based on the user or their group access to documents.

You can use this to re-configure your existing document level access control without indexing all of your documents again. For example, your index contains top-secret company documents that only certain employees or users should access. One of these users leaves the company or switches to a team that should be blocked from accessing top-secret documents. The user still has access to top-secret documents because the user had access when your documents were previously indexed. You can create a specific access control configuration for the user with deny access. You can later update the access control configuration to allow access if the user returns to the company and re-joins the 'top-secret' team. You can re-configure access control for your documents as circumstances change.

To apply your access control configuration to certain documents, you call the BatchPutDocument API with the AccessControlConfigurationId included in the Document object. If you use an S3 bucket as a data source, you update the .metadata.json with the AccessControlConfigurationId and synchronize your data source. Amazon Kendra currently only supports access control configuration for S3 data sources and documents indexed using the BatchPutDocument API.

Examples:

Calling the createAccessControlConfiguration operation

var params = {
  IndexId: 'STRING_VALUE', /* required */
  Name: 'STRING_VALUE', /* required */
  AccessControlList: [
    {
      Access: ALLOW | DENY, /* required */
      Name: 'STRING_VALUE', /* required */
      Type: USER | GROUP, /* required */
      DataSourceId: 'STRING_VALUE'
    },
    /* more items */
  ],
  ClientToken: 'STRING_VALUE',
  Description: 'STRING_VALUE',
  HierarchicalAccessControlList: [
    {
      PrincipalList: [ /* required */
        {
          Access: ALLOW | DENY, /* required */
          Name: 'STRING_VALUE', /* required */
          Type: USER | GROUP, /* required */
          DataSourceId: 'STRING_VALUE'
        },
        /* more items */
      ]
    },
    /* more items */
  ]
};
kendra.createAccessControlConfiguration(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • IndexId — (String)

      The identifier of the index to create an access control configuration for your documents.

    • Name — (String)

      A name for the access control configuration.

    • Description — (String)

      A description for the access control configuration.

    • AccessControlList — (Array<map>)

      Information on principals (users and/or groups) and which documents they should have access to. This is useful for user context filtering, where search results are filtered based on the user or their group access to documents.

      • Namerequired — (String)

        The name of the user or group.

      • Typerequired — (String)

        The type of principal.

        Possible values include:
        • "USER"
        • "GROUP"
      • Accessrequired — (String)

        Whether to allow or deny document access to the principal.

        Possible values include:
        • "ALLOW"
        • "DENY"
      • DataSourceId — (String)

        The identifier of the data source the principal should access documents from.

    • HierarchicalAccessControlList — (Array<map>)

      The list of principal lists that define the hierarchy for which documents users should have access to.

      • PrincipalListrequired — (Array<map>)

        A list of principal lists that define the hierarchy for which documents users should have access to. Each hierarchical list specifies which user or group has allow or deny access for each document.

        • Namerequired — (String)

          The name of the user or group.

        • Typerequired — (String)

          The type of principal.

          Possible values include:
          • "USER"
          • "GROUP"
        • Accessrequired — (String)

          Whether to allow or deny document access to the principal.

          Possible values include:
          • "ALLOW"
          • "DENY"
        • DataSourceId — (String)

          The identifier of the data source the principal should access documents from.

    • ClientToken — (String)

      A token that you provide to identify the request to create an access control configuration. Multiple calls to the CreateAccessControlConfiguration API with the same client token will create only one access control configuration.

      If a token is not provided, the SDK will use a version 4 UUID.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Id — (String)

        The identifier of the access control configuration for your documents in an index.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createDataSource(params = {}, callback) ⇒ AWS.Request

Creates a data source connector that you want to use with an Amazon Kendra index.

You specify a name, data source connector type and description for your data source. You also specify configuration information for the data source connector.

CreateDataSource is a synchronous operation. The operation returns 200 if the data source was successfully created. Otherwise, an exception is raised.

For an example of creating an index and data source using the Python SDK, see Getting started with Python SDK. For an example of creating an index and data source using the Java SDK, see Getting started with Java SDK.

Service Reference:

Examples:

Calling the createDataSource operation

var params = {
  IndexId: 'STRING_VALUE', /* required */
  Name: 'STRING_VALUE', /* required */
  Type: S3 | SHAREPOINT | DATABASE | SALESFORCE | ONEDRIVE | SERVICENOW | CUSTOM | CONFLUENCE | GOOGLEDRIVE | WEBCRAWLER | WORKDOCS | FSX | SLACK | BOX | QUIP | JIRA | GITHUB | ALFRESCO | TEMPLATE, /* required */
  ClientToken: 'STRING_VALUE',
  Configuration: {
    AlfrescoConfiguration: {
      SecretArn: 'STRING_VALUE', /* required */
      SiteId: 'STRING_VALUE', /* required */
      SiteUrl: 'STRING_VALUE', /* required */
      SslCertificateS3Path: { /* required */
        Bucket: 'STRING_VALUE', /* required */
        Key: 'STRING_VALUE' /* required */
      },
      BlogFieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      CrawlComments: true || false,
      CrawlSystemFolders: true || false,
      DocumentLibraryFieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      EntityFilter: [
        wiki | blog | documentLibrary,
        /* more items */
      ],
      ExclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      InclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      VpcConfiguration: {
        SecurityGroupIds: [ /* required */
          'STRING_VALUE',
          /* more items */
        ],
        SubnetIds: [ /* required */
          'STRING_VALUE',
          /* more items */
        ]
      },
      WikiFieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ]
    },
    BoxConfiguration: {
      EnterpriseId: 'STRING_VALUE', /* required */
      SecretArn: 'STRING_VALUE', /* required */
      CommentFieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      CrawlComments: true || false,
      CrawlTasks: true || false,
      CrawlWebLinks: true || false,
      ExclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      FileFieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      InclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      TaskFieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      UseChangeLog: true || false,
      VpcConfiguration: {
        SecurityGroupIds: [ /* required */
          'STRING_VALUE',
          /* more items */
        ],
        SubnetIds: [ /* required */
          'STRING_VALUE',
          /* more items */
        ]
      },
      WebLinkFieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ]
    },
    ConfluenceConfiguration: {
      SecretArn: 'STRING_VALUE', /* required */
      ServerUrl: 'STRING_VALUE', /* required */
      Version: CLOUD | SERVER, /* required */
      AttachmentConfiguration: {
        AttachmentFieldMappings: [
          {
            DataSourceFieldName: AUTHOR | CONTENT_TYPE | CREATED_DATE | DISPLAY_URL | FILE_SIZE | ITEM_TYPE | PARENT_ID | SPACE_KEY | SPACE_NAME | URL | VERSION,
            DateFieldFormat: 'STRING_VALUE',
            IndexFieldName: 'STRING_VALUE'
          },
          /* more items */
        ],
        CrawlAttachments: true || false
      },
      AuthenticationType: HTTP_BASIC | PAT,
      BlogConfiguration: {
        BlogFieldMappings: [
          {
            DataSourceFieldName: AUTHOR | DISPLAY_URL | ITEM_TYPE | LABELS | PUBLISH_DATE | SPACE_KEY | SPACE_NAME | URL | VERSION,
            DateFieldFormat: 'STRING_VALUE',
            IndexFieldName: 'STRING_VALUE'
          },
          /* more items */
        ]
      },
      ExclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      InclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      PageConfiguration: {
        PageFieldMappings: [
          {
            DataSourceFieldName: AUTHOR | CONTENT_STATUS | CREATED_DATE | DISPLAY_URL | ITEM_TYPE | LABELS | MODIFIED_DATE | PARENT_ID | SPACE_KEY | SPACE_NAME | URL | VERSION,
            DateFieldFormat: 'STRING_VALUE',
            IndexFieldName: 'STRING_VALUE'
          },
          /* more items */
        ]
      },
      ProxyConfiguration: {
        Host: 'STRING_VALUE', /* required */
        Port: 'NUMBER_VALUE', /* required */
        Credentials: 'STRING_VALUE'
      },
      SpaceConfiguration: {
        CrawlArchivedSpaces: true || false,
        CrawlPersonalSpaces: true || false,
        ExcludeSpaces: [
          'STRING_VALUE',
          /* more items */
        ],
        IncludeSpaces: [
          'STRING_VALUE',
          /* more items */
        ],
        SpaceFieldMappings: [
          {
            DataSourceFieldName: DISPLAY_URL | ITEM_TYPE | SPACE_KEY | URL,
            DateFieldFormat: 'STRING_VALUE',
            IndexFieldName: 'STRING_VALUE'
          },
          /* more items */
        ]
      },
      VpcConfiguration: {
        SecurityGroupIds: [ /* required */
          'STRING_VALUE',
          /* more items */
        ],
        SubnetIds: [ /* required */
          'STRING_VALUE',
          /* more items */
        ]
      }
    },
    DatabaseConfiguration: {
      ColumnConfiguration: { /* required */
        ChangeDetectingColumns: [ /* required */
          'STRING_VALUE',
          /* more items */
        ],
        DocumentDataColumnName: 'STRING_VALUE', /* required */
        DocumentIdColumnName: 'STRING_VALUE', /* required */
        DocumentTitleColumnName: 'STRING_VALUE',
        FieldMappings: [
          {
            DataSourceFieldName: 'STRING_VALUE', /* required */
            IndexFieldName: 'STRING_VALUE', /* required */
            DateFieldFormat: 'STRING_VALUE'
          },
          /* more items */
        ]
      },
      ConnectionConfiguration: { /* required */
        DatabaseHost: 'STRING_VALUE', /* required */
        DatabaseName: 'STRING_VALUE', /* required */
        DatabasePort: 'NUMBER_VALUE', /* required */
        SecretArn: 'STRING_VALUE', /* required */
        TableName: 'STRING_VALUE' /* required */
      },
      DatabaseEngineType: RDS_AURORA_MYSQL | RDS_AURORA_POSTGRESQL | RDS_MYSQL | RDS_POSTGRESQL, /* required */
      AclConfiguration: {
        AllowedGroupsColumnName: 'STRING_VALUE' /* required */
      },
      SqlConfiguration: {
        QueryIdentifiersEnclosingOption: DOUBLE_QUOTES | NONE
      },
      VpcConfiguration: {
        SecurityGroupIds: [ /* required */
          'STRING_VALUE',
          /* more items */
        ],
        SubnetIds: [ /* required */
          'STRING_VALUE',
          /* more items */
        ]
      }
    },
    FsxConfiguration: {
      FileSystemId: 'STRING_VALUE', /* required */
      FileSystemType: WINDOWS, /* required */
      VpcConfiguration: { /* required */
        SecurityGroupIds: [ /* required */
          'STRING_VALUE',
          /* more items */
        ],
        SubnetIds: [ /* required */
          'STRING_VALUE',
          /* more items */
        ]
      },
      ExclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      FieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      InclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      SecretArn: 'STRING_VALUE'
    },
    GitHubConfiguration: {
      SecretArn: 'STRING_VALUE', /* required */
      ExclusionFileNamePatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      ExclusionFileTypePatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      ExclusionFolderNamePatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      GitHubCommitConfigurationFieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      GitHubDocumentCrawlProperties: {
        CrawlIssue: true || false,
        CrawlIssueComment: true || false,
        CrawlIssueCommentAttachment: true || false,
        CrawlPullRequest: true || false,
        CrawlPullRequestComment: true || false,
        CrawlPullRequestCommentAttachment: true || false,
        CrawlRepositoryDocuments: true || false
      },
      GitHubIssueAttachmentConfigurationFieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      GitHubIssueCommentConfigurationFieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      GitHubIssueDocumentConfigurationFieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      GitHubPullRequestCommentConfigurationFieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      GitHubPullRequestDocumentAttachmentConfigurationFieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      GitHubPullRequestDocumentConfigurationFieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      GitHubRepositoryConfigurationFieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      InclusionFileNamePatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      InclusionFileTypePatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      InclusionFolderNamePatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      OnPremiseConfiguration: {
        HostUrl: 'STRING_VALUE', /* required */
        OrganizationName: 'STRING_VALUE', /* required */
        SslCertificateS3Path: { /* required */
          Bucket: 'STRING_VALUE', /* required */
          Key: 'STRING_VALUE' /* required */
        }
      },
      RepositoryFilter: [
        'STRING_VALUE',
        /* more items */
      ],
      SaaSConfiguration: {
        HostUrl: 'STRING_VALUE', /* required */
        OrganizationName: 'STRING_VALUE' /* required */
      },
      Type: SAAS | ON_PREMISE,
      UseChangeLog: true || false,
      VpcConfiguration: {
        SecurityGroupIds: [ /* required */
          'STRING_VALUE',
          /* more items */
        ],
        SubnetIds: [ /* required */
          'STRING_VALUE',
          /* more items */
        ]
      }
    },
    GoogleDriveConfiguration: {
      SecretArn: 'STRING_VALUE', /* required */
      ExcludeMimeTypes: [
        'STRING_VALUE',
        /* more items */
      ],
      ExcludeSharedDrives: [
        'STRING_VALUE',
        /* more items */
      ],
      ExcludeUserAccounts: [
        'STRING_VALUE',
        /* more items */
      ],
      ExclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      FieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      InclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ]
    },
    JiraConfiguration: {
      JiraAccountUrl: 'STRING_VALUE', /* required */
      SecretArn: 'STRING_VALUE', /* required */
      AttachmentFieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      CommentFieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      ExclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      InclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      IssueFieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      IssueSubEntityFilter: [
        COMMENTS | ATTACHMENTS | WORKLOGS,
        /* more items */
      ],
      IssueType: [
        'STRING_VALUE',
        /* more items */
      ],
      Project: [
        'STRING_VALUE',
        /* more items */
      ],
      ProjectFieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      Status: [
        'STRING_VALUE',
        /* more items */
      ],
      UseChangeLog: true || false,
      VpcConfiguration: {
        SecurityGroupIds: [ /* required */
          'STRING_VALUE',
          /* more items */
        ],
        SubnetIds: [ /* required */
          'STRING_VALUE',
          /* more items */
        ]
      },
      WorkLogFieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ]
    },
    OneDriveConfiguration: {
      OneDriveUsers: { /* required */
        OneDriveUserList: [
          'STRING_VALUE',
          /* more items */
        ],
        OneDriveUserS3Path: {
          Bucket: 'STRING_VALUE', /* required */
          Key: 'STRING_VALUE' /* required */
        }
      },
      SecretArn: 'STRING_VALUE', /* required */
      TenantDomain: 'STRING_VALUE', /* required */
      DisableLocalGroups: true || false,
      ExclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      FieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      InclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ]
    },
    QuipConfiguration: {
      Domain: 'STRING_VALUE', /* required */
      SecretArn: 'STRING_VALUE', /* required */
      AttachmentFieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      CrawlAttachments: true || false,
      CrawlChatRooms: true || false,
      CrawlFileComments: true || false,
      ExclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      FolderIds: [
        'STRING_VALUE',
        /* more items */
      ],
      InclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      MessageFieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      ThreadFieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      VpcConfiguration: {
        SecurityGroupIds: [ /* required */
          'STRING_VALUE',
          /* more items */
        ],
        SubnetIds: [ /* required */
          'STRING_VALUE',
          /* more items */
        ]
      }
    },
    S3Configuration: {
      BucketName: 'STRING_VALUE', /* required */
      AccessControlListConfiguration: {
        KeyPath: 'STRING_VALUE'
      },
      DocumentsMetadataConfiguration: {
        S3Prefix: 'STRING_VALUE'
      },
      ExclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      InclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      InclusionPrefixes: [
        'STRING_VALUE',
        /* more items */
      ]
    },
    SalesforceConfiguration: {
      SecretArn: 'STRING_VALUE', /* required */
      ServerUrl: 'STRING_VALUE', /* required */
      ChatterFeedConfiguration: {
        DocumentDataFieldName: 'STRING_VALUE', /* required */
        DocumentTitleFieldName: 'STRING_VALUE',
        FieldMappings: [
          {
            DataSourceFieldName: 'STRING_VALUE', /* required */
            IndexFieldName: 'STRING_VALUE', /* required */
            DateFieldFormat: 'STRING_VALUE'
          },
          /* more items */
        ],
        IncludeFilterTypes: [
          ACTIVE_USER | STANDARD_USER,
          /* more items */
        ]
      },
      CrawlAttachments: true || false,
      ExcludeAttachmentFilePatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      IncludeAttachmentFilePatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      KnowledgeArticleConfiguration: {
        IncludedStates: [ /* required */
          DRAFT | PUBLISHED | ARCHIVED,
          /* more items */
        ],
        CustomKnowledgeArticleTypeConfigurations: [
          {
            DocumentDataFieldName: 'STRING_VALUE', /* required */
            Name: 'STRING_VALUE', /* required */
            DocumentTitleFieldName: 'STRING_VALUE',
            FieldMappings: [
              {
                DataSourceFieldName: 'STRING_VALUE', /* required */
                IndexFieldName: 'STRING_VALUE', /* required */
                DateFieldFormat: 'STRING_VALUE'
              },
              /* more items */
            ]
          },
          /* more items */
        ],
        StandardKnowledgeArticleTypeConfiguration: {
          DocumentDataFieldName: 'STRING_VALUE', /* required */
          DocumentTitleFieldName: 'STRING_VALUE',
          FieldMappings: [
            {
              DataSourceFieldName: 'STRING_VALUE', /* required */
              IndexFieldName: 'STRING_VALUE', /* required */
              DateFieldFormat: 'STRING_VALUE'
            },
            /* more items */
          ]
        }
      },
      StandardObjectAttachmentConfiguration: {
        DocumentTitleFieldName: 'STRING_VALUE',
        FieldMappings: [
          {
            DataSourceFieldName: 'STRING_VALUE', /* required */
            IndexFieldName: 'STRING_VALUE', /* required */
            DateFieldFormat: 'STRING_VALUE'
          },
          /* more items */
        ]
      },
      StandardObjectConfigurations: [
        {
          DocumentDataFieldName: 'STRING_VALUE', /* required */
          Name: ACCOUNT | CAMPAIGN | CASE | CONTACT | CONTRACT | DOCUMENT | GROUP | IDEA | LEAD | OPPORTUNITY | PARTNER | PRICEBOOK | PRODUCT | PROFILE | SOLUTION | TASK | USER, /* required */
          DocumentTitleFieldName: 'STRING_VALUE',
          FieldMappings: [
            {
              DataSourceFieldName: 'STRING_VALUE', /* required */
              IndexFieldName: 'STRING_VALUE', /* required */
              DateFieldFormat: 'STRING_VALUE'
            },
            /* more items */
          ]
        },
        /* more items */
      ]
    },
    ServiceNowConfiguration: {
      HostUrl: 'STRING_VALUE', /* required */
      SecretArn: 'STRING_VALUE', /* required */
      ServiceNowBuildVersion: LONDON | OTHERS, /* required */
      AuthenticationType: HTTP_BASIC | OAUTH2,
      KnowledgeArticleConfiguration: {
        DocumentDataFieldName: 'STRING_VALUE', /* required */
        CrawlAttachments: true || false,
        DocumentTitleFieldName: 'STRING_VALUE',
        ExcludeAttachmentFilePatterns: [
          'STRING_VALUE',
          /* more items */
        ],
        FieldMappings: [
          {
            DataSourceFieldName: 'STRING_VALUE', /* required */
            IndexFieldName: 'STRING_VALUE', /* required */
            DateFieldFormat: 'STRING_VALUE'
          },
          /* more items */
        ],
        FilterQuery: 'STRING_VALUE',
        IncludeAttachmentFilePatterns: [
          'STRING_VALUE',
          /* more items */
        ]
      },
      ServiceCatalogConfiguration: {
        DocumentDataFieldName: 'STRING_VALUE', /* required */
        CrawlAttachments: true || false,
        DocumentTitleFieldName: 'STRING_VALUE',
        ExcludeAttachmentFilePatterns: [
          'STRING_VALUE',
          /* more items */
        ],
        FieldMappings: [
          {
            DataSourceFieldName: 'STRING_VALUE', /* required */
            IndexFieldName: 'STRING_VALUE', /* required */
            DateFieldFormat: 'STRING_VALUE'
          },
          /* more items */
        ],
        IncludeAttachmentFilePatterns: [
          'STRING_VALUE',
          /* more items */
        ]
      }
    },
    SharePointConfiguration: {
      SecretArn: 'STRING_VALUE', /* required */
      SharePointVersion: SHAREPOINT_2013 | SHAREPOINT_2016 | SHAREPOINT_ONLINE | SHAREPOINT_2019, /* required */
      Urls: [ /* required */
        'STRING_VALUE',
        /* more items */
      ],
      AuthenticationType: HTTP_BASIC | OAUTH2,
      CrawlAttachments: true || false,
      DisableLocalGroups: true || false,
      DocumentTitleFieldName: 'STRING_VALUE',
      ExclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      FieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      InclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      ProxyConfiguration: {
        Host: 'STRING_VALUE', /* required */
        Port: 'NUMBER_VALUE', /* required */
        Credentials: 'STRING_VALUE'
      },
      SslCertificateS3Path: {
        Bucket: 'STRING_VALUE', /* required */
        Key: 'STRING_VALUE' /* required */
      },
      UseChangeLog: true || false,
      VpcConfiguration: {
        SecurityGroupIds: [ /* required */
          'STRING_VALUE',
          /* more items */
        ],
        SubnetIds: [ /* required */
          'STRING_VALUE',
          /* more items */
        ]
      }
    },
    SlackConfiguration: {
      SecretArn: 'STRING_VALUE', /* required */
      SinceCrawlDate: 'STRING_VALUE', /* required */
      SlackEntityList: [ /* required */
        PUBLIC_CHANNEL | PRIVATE_CHANNEL | GROUP_MESSAGE | DIRECT_MESSAGE,
        /* more items */
      ],
      TeamId: 'STRING_VALUE', /* required */
      CrawlBotMessage: true || false,
      ExcludeArchived: true || false,
      ExclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      FieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      InclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      LookBackPeriod: 'NUMBER_VALUE',
      PrivateChannelFilter: [
        'STRING_VALUE',
        /* more items */
      ],
      PublicChannelFilter: [
        'STRING_VALUE',
        /* more items */
      ],
      UseChangeLog: true || false,
      VpcConfiguration: {
        SecurityGroupIds: [ /* required */
          'STRING_VALUE',
          /* more items */
        ],
        SubnetIds: [ /* required */
          'STRING_VALUE',
          /* more items */
        ]
      }
    },
    TemplateConfiguration: {
      Template: {
      }
    },
    WebCrawlerConfiguration: {
      Urls: { /* required */
        SeedUrlConfiguration: {
          SeedUrls: [ /* required */
            'STRING_VALUE',
            /* more items */
          ],
          WebCrawlerMode: HOST_ONLY | SUBDOMAINS | EVERYTHING
        },
        SiteMapsConfiguration: {
          SiteMaps: [ /* required */
            'STRING_VALUE',
            /* more items */
          ]
        }
      },
      AuthenticationConfiguration: {
        BasicAuthentication: [
          {
            Credentials: 'STRING_VALUE', /* required */
            Host: 'STRING_VALUE', /* required */
            Port: 'NUMBER_VALUE' /* required */
          },
          /* more items */
        ]
      },
      CrawlDepth: 'NUMBER_VALUE',
      MaxContentSizePerPageInMegaBytes: 'NUMBER_VALUE',
      MaxLinksPerPage: 'NUMBER_VALUE',
      MaxUrlsPerMinuteCrawlRate: 'NUMBER_VALUE',
      ProxyConfiguration: {
        Host: 'STRING_VALUE', /* required */
        Port: 'NUMBER_VALUE', /* required */
        Credentials: 'STRING_VALUE'
      },
      UrlExclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      UrlInclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ]
    },
    WorkDocsConfiguration: {
      OrganizationId: 'STRING_VALUE', /* required */
      CrawlComments: true || false,
      ExclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      FieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      InclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      UseChangeLog: true || false
    }
  },
  CustomDocumentEnrichmentConfiguration: {
    InlineConfigurations: [
      {
        Condition: {
          ConditionDocumentAttributeKey: 'STRING_VALUE', /* required */
          Operator: GreaterThan | GreaterThanOrEquals | LessThan | LessThanOrEquals | Equals | NotEquals | Contains | NotContains | Exists | NotExists | BeginsWith, /* required */
          ConditionOnValue: {
            DateValue: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
            LongValue: 'NUMBER_VALUE',
            StringListValue: [
              'STRING_VALUE',
              /* more items */
            ],
            StringValue: 'STRING_VALUE'
          }
        },
        DocumentContentDeletion: true || false,
        Target: {
          TargetDocumentAttributeKey: 'STRING_VALUE',
          TargetDocumentAttributeValue: {
            DateValue: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
            LongValue: 'NUMBER_VALUE',
            StringListValue: [
              'STRING_VALUE',
              /* more items */
            ],
            StringValue: 'STRING_VALUE'
          },
          TargetDocumentAttributeValueDeletion: true || false
        }
      },
      /* more items */
    ],
    PostExtractionHookConfiguration: {
      LambdaArn: 'STRING_VALUE', /* required */
      S3Bucket: 'STRING_VALUE', /* required */
      InvocationCondition: {
        ConditionDocumentAttributeKey: 'STRING_VALUE', /* required */
        Operator: GreaterThan | GreaterThanOrEquals | LessThan | LessThanOrEquals | Equals | NotEquals | Contains | NotContains | Exists | NotExists | BeginsWith, /* required */
        ConditionOnValue: {
          DateValue: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
          LongValue: 'NUMBER_VALUE',
          StringListValue: [
            'STRING_VALUE',
            /* more items */
          ],
          StringValue: 'STRING_VALUE'
        }
      }
    },
    PreExtractionHookConfiguration: {
      LambdaArn: 'STRING_VALUE', /* required */
      S3Bucket: 'STRING_VALUE', /* required */
      InvocationCondition: {
        ConditionDocumentAttributeKey: 'STRING_VALUE', /* required */
        Operator: GreaterThan | GreaterThanOrEquals | LessThan | LessThanOrEquals | Equals | NotEquals | Contains | NotContains | Exists | NotExists | BeginsWith, /* required */
        ConditionOnValue: {
          DateValue: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
          LongValue: 'NUMBER_VALUE',
          StringListValue: [
            'STRING_VALUE',
            /* more items */
          ],
          StringValue: 'STRING_VALUE'
        }
      }
    },
    RoleArn: 'STRING_VALUE'
  },
  Description: 'STRING_VALUE',
  LanguageCode: 'STRING_VALUE',
  RoleArn: 'STRING_VALUE',
  Schedule: 'STRING_VALUE',
  Tags: [
    {
      Key: 'STRING_VALUE', /* required */
      Value: 'STRING_VALUE' /* required */
    },
    /* more items */
  ],
  VpcConfiguration: {
    SecurityGroupIds: [ /* required */
      'STRING_VALUE',
      /* more items */
    ],
    SubnetIds: [ /* required */
      'STRING_VALUE',
      /* more items */
    ]
  }
};
kendra.createDataSource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Name — (String)

      A name for the data source connector.

    • IndexId — (String)

      The identifier of the index you want to use with the data source connector.

    • Type — (String)

      The type of data source repository. For example, SHAREPOINT.

      Possible values include:
      • "S3"
      • "SHAREPOINT"
      • "DATABASE"
      • "SALESFORCE"
      • "ONEDRIVE"
      • "SERVICENOW"
      • "CUSTOM"
      • "CONFLUENCE"
      • "GOOGLEDRIVE"
      • "WEBCRAWLER"
      • "WORKDOCS"
      • "FSX"
      • "SLACK"
      • "BOX"
      • "QUIP"
      • "JIRA"
      • "GITHUB"
      • "ALFRESCO"
      • "TEMPLATE"
    • Configuration — (map)

      Configuration information to connect to your data source repository.

      You can't specify the Configuration parameter when the Type parameter is set to CUSTOM. If you do, you receive a ValidationException exception.

      The Configuration parameter is required for all other data sources.

      • S3Configuration — (map)

        Provides the configuration information to connect to an Amazon S3 bucket as your data source.

        Note: Amazon Kendra now supports an upgraded Amazon S3 connector. You must now use the TemplateConfiguration object instead of the S3DataSourceConfiguration object to configure your connector. Connectors configured using the older console and API architecture will continue to function as configured. However, you won't be able to edit or update them. If you want to edit or update your connector configuration, you must create a new connector. We recommended migrating your connector workflow to the upgraded version. Support for connectors configured using the older architecture is scheduled to end by June 2024.
        • BucketNamerequired — (String)

          The name of the bucket that contains the documents.

        • InclusionPrefixes — (Array<String>)

          A list of S3 prefixes for the documents that should be included in the index.

        • InclusionPatterns — (Array<String>)

          A list of glob patterns (patterns that can expand a wildcard pattern into a list of path names that match the given pattern) for certain file names and file types to include in your index. If a document matches both an inclusion and exclusion prefix or pattern, the exclusion prefix takes precendence and the document is not indexed. Examples of glob patterns include:

          • /myapp/config/—All files inside config directory.

          • **/.png—All .png files in all directories.

          • /*.ico, md—All .png, .ico or .md files in all directories.

          • /myapp/src//.ts—All .ts files inside src directory (and all its subdirectories).

          • **/!(.module).ts—All .ts files but not .module.ts

          • .png , .jpg—All PNG and JPEG image files in a directory (files with the extensions .png and .jpg).

          • internal—All files in a directory that contain 'internal' in the file name, such as 'internal', 'internal_only', 'company_internal'.

          • /internal—All internal-related files in a directory and its subdirectories.

          For more examples, see Use of Exclude and Include Filters in the Amazon Web Services CLI Command Reference.

        • ExclusionPatterns — (Array<String>)

          A list of glob patterns (patterns that can expand a wildcard pattern into a list of path names that match the given pattern) for certain file names and file types to exclude from your index. If a document matches both an inclusion and exclusion prefix or pattern, the exclusion prefix takes precendence and the document is not indexed. Examples of glob patterns include:

          • /myapp/config/—All files inside config directory.

          • **/.png—All .png files in all directories.

          • /*.ico, md—All .png, .ico or .md files in all directories.

          • /myapp/src//.ts—All .ts files inside src directory (and all its subdirectories).

          • **/!(.module).ts—All .ts files but not .module.ts

          • .png , .jpg—All PNG and JPEG image files in a directory (files with the extensions .png and .jpg).

          • internal—All files in a directory that contain 'internal' in the file name, such as 'internal', 'internal_only', 'company_internal'.

          • /internal—All internal-related files in a directory and its subdirectories.

          For more examples, see Use of Exclude and Include Filters in the Amazon Web Services CLI Command Reference.

        • DocumentsMetadataConfiguration — (map)

          Document metadata files that contain information such as the document access control information, source URI, document author, and custom attributes. Each metadata file contains metadata about a single document.

          • S3Prefix — (String)

            A prefix used to filter metadata configuration files in the Amazon Web Services S3 bucket. The S3 bucket might contain multiple metadata files. Use S3Prefix to include only the desired metadata files.

        • AccessControlListConfiguration — (map)

          Provides the path to the S3 bucket that contains the user context filtering files for the data source. For the format of the file, see Access control for S3 data sources.

          • KeyPath — (String)

            Path to the Amazon S3 bucket that contains the ACL files.

      • SharePointConfiguration — (map)

        Provides the configuration information to connect to Microsoft SharePoint as your data source.

        • SharePointVersionrequired — (String)

          The version of Microsoft SharePoint that you use.

          Possible values include:
          • "SHAREPOINT_2013"
          • "SHAREPOINT_2016"
          • "SHAREPOINT_ONLINE"
          • "SHAREPOINT_2019"
        • Urlsrequired — (Array<String>)

          The Microsoft SharePoint site URLs for the documents you want to index.

        • SecretArnrequired — (String)

          The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the user name and password required to connect to the SharePoint instance. For more information, see Microsoft SharePoint.

        • CrawlAttachments — (Boolean)

          TRUE to index document attachments.

        • UseChangeLog — (Boolean)

          TRUE to use the SharePoint change log to determine which documents require updating in the index. Depending on the change log's size, it may take longer for Amazon Kendra to use the change log than to scan all of your documents in SharePoint.

        • InclusionPatterns — (Array<String>)

          A list of regular expression patterns to include certain documents in your SharePoint. Documents that match the patterns are included in the index. Documents that don't match the patterns are excluded from the index. If a document matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the document isn't included in the index.

          The regex applies to the display URL of the SharePoint document.

        • ExclusionPatterns — (Array<String>)

          A list of regular expression patterns to exclude certain documents in your SharePoint. Documents that match the patterns are excluded from the index. Documents that don't match the patterns are included in the index. If a document matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the document isn't included in the index.

          The regex applies to the display URL of the SharePoint document.

        • VpcConfiguration — (map)

          Configuration information for an Amazon Virtual Private Cloud to connect to your Microsoft SharePoint. For more information, see Configuring a VPC.

          • SubnetIdsrequired — (Array<String>)

            A list of identifiers for subnets within your Amazon VPC. The subnets should be able to connect to each other in the VPC, and they should have outgoing access to the Internet through a NAT device.

          • SecurityGroupIdsrequired — (Array<String>)

            A list of identifiers of security groups within your Amazon VPC. The security groups should enable Amazon Kendra to connect to the data source.

        • FieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map SharePoint data source attributes or field names to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to SharePoint fields. For more information, see Mapping data source fields. The SharePoint data source field names must exist in your SharePoint custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • DocumentTitleFieldName — (String)

          The Microsoft SharePoint attribute field that contains the title of the document.

        • DisableLocalGroups — (Boolean)

          TRUE to disable local groups information.

        • SslCertificateS3Path — (map)

          The path to the SSL certificate stored in an Amazon S3 bucket. You use this to connect to SharePoint Server if you require a secure SSL connection.

          You can generate a self-signed X509 certificate on any computer using OpenSSL. For an example of using OpenSSL to create an X509 certificate, see Create and sign an X509 certificate.

          • Bucketrequired — (String)

            The name of the S3 bucket that contains the file.

          • Keyrequired — (String)

            The name of the file.

        • AuthenticationType — (String)

          Whether you want to connect to SharePoint Online using basic authentication of user name and password, or OAuth authentication of user name, password, client ID, and client secret, or AD App-only authentication of client secret.

          Possible values include:
          • "HTTP_BASIC"
          • "OAUTH2"
        • ProxyConfiguration — (map)

          Configuration information to connect to your Microsoft SharePoint site URLs via instance via a web proxy. You can use this option for SharePoint Server.

          You must provide the website host name and port number. For example, the host name of https://a.example.com/page1.html is "a.example.com" and the port is 443, the standard port for HTTPS.

          Web proxy credentials are optional and you can use them to connect to a web proxy server that requires basic authentication of user name and password. To store web proxy credentials, you use a secret in Secrets Manager.

          It is recommended that you follow best security practices when configuring your web proxy. This includes setting up throttling, setting up logging and monitoring, and applying security patches on a regular basis. If you use your web proxy with multiple data sources, sync jobs that occur at the same time could strain the load on your proxy. It is recommended you prepare your proxy beforehand for any security and load requirements.

          • Hostrequired — (String)

            The name of the website host you want to connect to via a web proxy server.

            For example, the host name of https://a.example.com/page1.html is "a.example.com".

          • Portrequired — (Integer)

            The port number of the website host you want to connect to via a web proxy server.

            For example, the port for https://a.example.com/page1.html is 443, the standard port for HTTPS.

          • Credentials — (String)

            Your secret ARN, which you can create in Secrets Manager

            The credentials are optional. You use a secret if web proxy credentials are required to connect to a website host. Amazon Kendra currently support basic authentication to connect to a web proxy server. The secret stores your credentials.

      • DatabaseConfiguration — (map)

        Provides the configuration information to connect to a database as your data source.

        • DatabaseEngineTyperequired — (String)

          The type of database engine that runs the database.

          Possible values include:
          • "RDS_AURORA_MYSQL"
          • "RDS_AURORA_POSTGRESQL"
          • "RDS_MYSQL"
          • "RDS_POSTGRESQL"
        • ConnectionConfigurationrequired — (map)

          Configuration information that's required to connect to a database.

          • DatabaseHostrequired — (String)

            The name of the host for the database. Can be either a string (host.subdomain.domain.tld) or an IPv4 or IPv6 address.

          • DatabasePortrequired — (Integer)

            The port that the database uses for connections.

          • DatabaseNamerequired — (String)

            The name of the database containing the document data.

          • TableNamerequired — (String)

            The name of the table that contains the document data.

          • SecretArnrequired — (String)

            The Amazon Resource Name (ARN) of credentials stored in Secrets Manager. The credentials should be a user/password pair. For more information, see Using a Database Data Source. For more information about Secrets Manager, see What Is Secrets Manager in the Secrets Manager user guide.

        • VpcConfiguration — (map)

          Provides the configuration information to connect to an Amazon VPC.

          • SubnetIdsrequired — (Array<String>)

            A list of identifiers for subnets within your Amazon VPC. The subnets should be able to connect to each other in the VPC, and they should have outgoing access to the Internet through a NAT device.

          • SecurityGroupIdsrequired — (Array<String>)

            A list of identifiers of security groups within your Amazon VPC. The security groups should enable Amazon Kendra to connect to the data source.

        • ColumnConfigurationrequired — (map)

          Information about where the index should get the document information from the database.

          • DocumentIdColumnNamerequired — (String)

            The column that provides the document's identifier.

          • DocumentDataColumnNamerequired — (String)

            The column that contains the contents of the document.

          • DocumentTitleColumnName — (String)

            The column that contains the title of the document.

          • FieldMappings — (Array<map>)

            An array of objects that map database column names to the corresponding fields in an index. You must first create the fields in the index using the UpdateIndex API.

            • DataSourceFieldNamerequired — (String)

              The name of the field in the data source. You must first create the index field using the UpdateIndex API.

            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldNamerequired — (String)

              The name of the index field to map to the data source field. The index field type must match the data source field type.

          • ChangeDetectingColumnsrequired — (Array<String>)

            One to five columns that indicate when a document in the database has changed.

        • AclConfiguration — (map)

          Information about the database column that provides information for user context filtering.

          • AllowedGroupsColumnNamerequired — (String)

            A list of groups, separated by semi-colons, that filters a query response based on user context. The document is only returned to users that are in one of the groups specified in the UserContext field of the Query API.

        • SqlConfiguration — (map)

          Provides information about how Amazon Kendra uses quote marks around SQL identifiers when querying a database data source.

          • QueryIdentifiersEnclosingOption — (String)

            Determines whether Amazon Kendra encloses SQL identifiers for tables and column names in double quotes (") when making a database query.

            By default, Amazon Kendra passes SQL identifiers the way that they are entered into the data source configuration. It does not change the case of identifiers or enclose them in quotes.

            PostgreSQL internally converts uppercase characters to lower case characters in identifiers unless they are quoted. Choosing this option encloses identifiers in quotes so that PostgreSQL does not convert the character's case.

            For MySQL databases, you must enable the ansi_quotes option when you set this field to DOUBLE_QUOTES.

            Possible values include:
            • "DOUBLE_QUOTES"
            • "NONE"
      • SalesforceConfiguration — (map)

        Provides the configuration information to connect to Salesforce as your data source.

        • ServerUrlrequired — (String)

          The instance URL for the Salesforce site that you want to index.

        • SecretArnrequired — (String)

          The Amazon Resource Name (ARN) of an Secrets Managersecret that contains the key/value pairs required to connect to your Salesforce instance. The secret must contain a JSON structure with the following keys:

          • authenticationUrl - The OAUTH endpoint that Amazon Kendra connects to get an OAUTH token.

          • consumerKey - The application public key generated when you created your Salesforce application.

          • consumerSecret - The application private key generated when you created your Salesforce application.

          • password - The password associated with the user logging in to the Salesforce instance.

          • securityToken - The token associated with the user logging in to the Salesforce instance.

          • username - The user name of the user logging in to the Salesforce instance.

        • StandardObjectConfigurations — (Array<map>)

          Configuration of the Salesforce standard objects that Amazon Kendra indexes.

          • Namerequired — (String)

            The name of the standard object.

            Possible values include:
            • "ACCOUNT"
            • "CAMPAIGN"
            • "CASE"
            • "CONTACT"
            • "CONTRACT"
            • "DOCUMENT"
            • "GROUP"
            • "IDEA"
            • "LEAD"
            • "OPPORTUNITY"
            • "PARTNER"
            • "PRICEBOOK"
            • "PRODUCT"
            • "PROFILE"
            • "SOLUTION"
            • "TASK"
            • "USER"
          • DocumentDataFieldNamerequired — (String)

            The name of the field in the standard object table that contains the document contents.

          • DocumentTitleFieldName — (String)

            The name of the field in the standard object table that contains the document title.

          • FieldMappings — (Array<map>)

            Maps attributes or field names of the standard object to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Salesforce fields. For more information, see Mapping data source fields. The Salesforce data source field names must exist in your Salesforce custom metadata.

            • DataSourceFieldNamerequired — (String)

              The name of the field in the data source. You must first create the index field using the UpdateIndex API.

            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldNamerequired — (String)

              The name of the index field to map to the data source field. The index field type must match the data source field type.

        • KnowledgeArticleConfiguration — (map)

          Configuration information for the knowledge article types that Amazon Kendra indexes. Amazon Kendra indexes standard knowledge articles and the standard fields of knowledge articles, or the custom fields of custom knowledge articles, but not both.

          • IncludedStatesrequired — (Array<String>)

            Specifies the document states that should be included when Amazon Kendra indexes knowledge articles. You must specify at least one state.

          • StandardKnowledgeArticleTypeConfiguration — (map)

            Configuration information for standard Salesforce knowledge articles.

            • DocumentDataFieldNamerequired — (String)

              The name of the field that contains the document data to index.

            • DocumentTitleFieldName — (String)

              The name of the field that contains the document title.

            • FieldMappings — (Array<map>)

              Maps attributes or field names of the knowledge article to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Salesforce fields. For more information, see Mapping data source fields. The Salesforce data source field names must exist in your Salesforce custom metadata.

              • DataSourceFieldNamerequired — (String)

                The name of the field in the data source. You must first create the index field using the UpdateIndex API.

              • DateFieldFormat — (String)

                The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

              • IndexFieldNamerequired — (String)

                The name of the index field to map to the data source field. The index field type must match the data source field type.

          • CustomKnowledgeArticleTypeConfigurations — (Array<map>)

            Configuration information for custom Salesforce knowledge articles.

            • Namerequired — (String)

              The name of the configuration.

            • DocumentDataFieldNamerequired — (String)

              The name of the field in the custom knowledge article that contains the document data to index.

            • DocumentTitleFieldName — (String)

              The name of the field in the custom knowledge article that contains the document title.

            • FieldMappings — (Array<map>)

              Maps attributes or field names of the custom knowledge article to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Salesforce fields. For more information, see Mapping data source fields. The Salesforce data source field names must exist in your Salesforce custom metadata.

              • DataSourceFieldNamerequired — (String)

                The name of the field in the data source. You must first create the index field using the UpdateIndex API.

              • DateFieldFormat — (String)

                The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

              • IndexFieldNamerequired — (String)

                The name of the index field to map to the data source field. The index field type must match the data source field type.

        • ChatterFeedConfiguration — (map)

          Configuration information for Salesforce chatter feeds.

          • DocumentDataFieldNamerequired — (String)

            The name of the column in the Salesforce FeedItem table that contains the content to index. Typically this is the Body column.

          • DocumentTitleFieldName — (String)

            The name of the column in the Salesforce FeedItem table that contains the title of the document. This is typically the Title column.

          • FieldMappings — (Array<map>)

            Maps fields from a Salesforce chatter feed into Amazon Kendra index fields.

            • DataSourceFieldNamerequired — (String)

              The name of the field in the data source. You must first create the index field using the UpdateIndex API.

            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldNamerequired — (String)

              The name of the index field to map to the data source field. The index field type must match the data source field type.

          • IncludeFilterTypes — (Array<String>)

            Filters the documents in the feed based on status of the user. When you specify ACTIVE_USERS only documents from users who have an active account are indexed. When you specify STANDARD_USER only documents for Salesforce standard users are documented. You can specify both.

        • CrawlAttachments — (Boolean)

          Indicates whether Amazon Kendra should index attachments to Salesforce objects.

        • StandardObjectAttachmentConfiguration — (map)

          Configuration information for processing attachments to Salesforce standard objects.

          • DocumentTitleFieldName — (String)

            The name of the field used for the document title.

          • FieldMappings — (Array<map>)

            One or more objects that map fields in attachments to Amazon Kendra index fields.

            • DataSourceFieldNamerequired — (String)

              The name of the field in the data source. You must first create the index field using the UpdateIndex API.

            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldNamerequired — (String)

              The name of the index field to map to the data source field. The index field type must match the data source field type.

        • IncludeAttachmentFilePatterns — (Array<String>)

          A list of regular expression patterns to include certain documents in your Salesforce. Documents that match the patterns are included in the index. Documents that don't match the patterns are excluded from the index. If a document matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the document isn't included in the index.

          The pattern is applied to the name of the attached file.

        • ExcludeAttachmentFilePatterns — (Array<String>)

          A list of regular expression patterns to exclude certain documents in your Salesforce. Documents that match the patterns are excluded from the index. Documents that don't match the patterns are included in the index. If a document matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the document isn't included in the index.

          The pattern is applied to the name of the attached file.

      • OneDriveConfiguration — (map)

        Provides the configuration information to connect to Microsoft OneDrive as your data source.

        • TenantDomainrequired — (String)

          The Azure Active Directory domain of the organization.

        • SecretArnrequired — (String)

          The Amazon Resource Name (ARN) of an Secrets Managersecret that contains the user name and password to connect to OneDrive. The user name should be the application ID for the OneDrive application, and the password is the application key for the OneDrive application.

        • OneDriveUsersrequired — (map)

          A list of user accounts whose documents should be indexed.

          • OneDriveUserList — (Array<String>)

            A list of users whose documents should be indexed. Specify the user names in email format, for example, username@tenantdomain. If you need to index the documents of more than 100 users, use the OneDriveUserS3Path field to specify the location of a file containing a list of users.

          • OneDriveUserS3Path — (map)

            The S3 bucket location of a file containing a list of users whose documents should be indexed.

            • Bucketrequired — (String)

              The name of the S3 bucket that contains the file.

            • Keyrequired — (String)

              The name of the file.

        • InclusionPatterns — (Array<String>)

          A list of regular expression patterns to include certain documents in your OneDrive. Documents that match the patterns are included in the index. Documents that don't match the patterns are excluded from the index. If a document matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the document isn't included in the index.

          The pattern is applied to the file name.

        • ExclusionPatterns — (Array<String>)

          A list of regular expression patterns to exclude certain documents in your OneDrive. Documents that match the patterns are excluded from the index. Documents that don't match the patterns are included in the index. If a document matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the document isn't included in the index.

          The pattern is applied to the file name.

        • FieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map OneDrive data source attributes or field names to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to OneDrive fields. For more information, see Mapping data source fields. The OneDrive data source field names must exist in your OneDrive custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • DisableLocalGroups — (Boolean)

          TRUE to disable local groups information.

      • ServiceNowConfiguration — (map)

        Provides the configuration information to connect to ServiceNow as your data source.

        • HostUrlrequired — (String)

          The ServiceNow instance that the data source connects to. The host endpoint should look like the following: {instance}.service-now.com.

        • SecretArnrequired — (String)

          The Amazon Resource Name (ARN) of the Secrets Manager secret that contains the user name and password required to connect to the ServiceNow instance. You can also provide OAuth authentication credentials of user name, password, client ID, and client secret. For more information, see Using a ServiceNow data source.

        • ServiceNowBuildVersionrequired — (String)

          The identifier of the release that the ServiceNow host is running. If the host is not running the LONDON release, use OTHERS.

          Possible values include:
          • "LONDON"
          • "OTHERS"
        • KnowledgeArticleConfiguration — (map)

          Configuration information for crawling knowledge articles in the ServiceNow site.

          • CrawlAttachments — (Boolean)

            TRUE to index attachments to knowledge articles.

          • IncludeAttachmentFilePatterns — (Array<String>)

            A list of regular expression patterns applied to include knowledge article attachments. Attachments that match the patterns are included in the index. Items that don't match the patterns are excluded from the index. If an item matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the item isn't included in the index.

          • ExcludeAttachmentFilePatterns — (Array<String>)

            A list of regular expression patterns applied to exclude certain knowledge article attachments. Attachments that match the patterns are excluded from the index. Items that don't match the patterns are included in the index. If an item matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the item isn't included in the index.

          • DocumentDataFieldNamerequired — (String)

            The name of the ServiceNow field that is mapped to the index document contents field in the Amazon Kendra index.

          • DocumentTitleFieldName — (String)

            The name of the ServiceNow field that is mapped to the index document title field.

          • FieldMappings — (Array<map>)

            Maps attributes or field names of knoweldge articles to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to ServiceNow fields. For more information, see Mapping data source fields. The ServiceNow data source field names must exist in your ServiceNow custom metadata.

            • DataSourceFieldNamerequired — (String)

              The name of the field in the data source. You must first create the index field using the UpdateIndex API.

            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldNamerequired — (String)

              The name of the index field to map to the data source field. The index field type must match the data source field type.

          • FilterQuery — (String)

            A query that selects the knowledge articles to index. The query can return articles from multiple knowledge bases, and the knowledge bases can be public or private.

            The query string must be one generated by the ServiceNow console. For more information, see Specifying documents to index with a query.

        • ServiceCatalogConfiguration — (map)

          Configuration information for crawling service catalogs in the ServiceNow site.

          • CrawlAttachments — (Boolean)

            TRUE to index attachments to service catalog items.

          • IncludeAttachmentFilePatterns — (Array<String>)

            A list of regular expression patterns to include certain attachments of catalogs in your ServiceNow. Item that match the patterns are included in the index. Items that don't match the patterns are excluded from the index. If an item matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the item isn't included in the index.

            The regex is applied to the file name of the attachment.

          • ExcludeAttachmentFilePatterns — (Array<String>)

            A list of regular expression patterns to exclude certain attachments of catalogs in your ServiceNow. Item that match the patterns are excluded from the index. Items that don't match the patterns are included in the index. If an item matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the item isn't included in the index.

            The regex is applied to the file name of the attachment.

          • DocumentDataFieldNamerequired — (String)

            The name of the ServiceNow field that is mapped to the index document contents field in the Amazon Kendra index.

          • DocumentTitleFieldName — (String)

            The name of the ServiceNow field that is mapped to the index document title field.

          • FieldMappings — (Array<map>)

            Maps attributes or field names of catalogs to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to ServiceNow fields. For more information, see Mapping data source fields. The ServiceNow data source field names must exist in your ServiceNow custom metadata.

            • DataSourceFieldNamerequired — (String)

              The name of the field in the data source. You must first create the index field using the UpdateIndex API.

            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldNamerequired — (String)

              The name of the index field to map to the data source field. The index field type must match the data source field type.

        • AuthenticationType — (String)

          The type of authentication used to connect to the ServiceNow instance. If you choose HTTP_BASIC, Amazon Kendra is authenticated using the user name and password provided in the Secrets Manager secret in the SecretArn field. If you choose OAUTH2, Amazon Kendra is authenticated using the credentials of client ID, client secret, user name and password.

          When you use OAUTH2 authentication, you must generate a token and a client secret using the ServiceNow console. For more information, see Using a ServiceNow data source.

          Possible values include:
          • "HTTP_BASIC"
          • "OAUTH2"
      • ConfluenceConfiguration — (map)

        Provides the configuration information to connect to Confluence as your data source.

        • ServerUrlrequired — (String)

          The URL of your Confluence instance. Use the full URL of the server. For example, https://server.example.com:port/. You can also use an IP address, for example, https://192.168.1.113/.

        • SecretArnrequired — (String)

          The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the user name and password required to connect to the Confluence instance. If you use Confluence Cloud, you use a generated API token as the password.

          You can also provide authentication credentials in the form of a personal access token. For more information, see Using a Confluence data source.

        • Versionrequired — (String)

          The version or the type of Confluence installation to connect to.

          Possible values include:
          • "CLOUD"
          • "SERVER"
        • SpaceConfiguration — (map)

          Configuration information for indexing Confluence spaces.

          • CrawlPersonalSpaces — (Boolean)

            TRUE to index personal spaces. You can add restrictions to items in personal spaces. If personal spaces are indexed, queries without user context information may return restricted items from a personal space in their results. For more information, see Filtering on user context.

          • CrawlArchivedSpaces — (Boolean)

            TRUE to index archived spaces.

          • IncludeSpaces — (Array<String>)

            A list of space keys for Confluence spaces. If you include a key, the blogs, documents, and attachments in the space are indexed. Spaces that aren't in the list aren't indexed. A space in the list must exist. Otherwise, Amazon Kendra logs an error when the data source is synchronized. If a space is in both the IncludeSpaces and the ExcludeSpaces list, the space is excluded.

          • ExcludeSpaces — (Array<String>)

            A list of space keys of Confluence spaces. If you include a key, the blogs, documents, and attachments in the space are not indexed. If a space is in both the ExcludeSpaces and the IncludeSpaces list, the space is excluded.

          • SpaceFieldMappings — (Array<map>)

            Maps attributes or field names of Confluence spaces to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Confluence fields. For more information, see Mapping data source fields. The Confluence data source field names must exist in your Confluence custom metadata.

            If you specify the SpaceFieldMappings parameter, you must specify at least one field mapping.

            • DataSourceFieldName — (String)

              The name of the field in the data source.

              Possible values include:
              • "DISPLAY_URL"
              • "ITEM_TYPE"
              • "SPACE_KEY"
              • "URL"
            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldName — (String)

              The name of the index field to map to the Confluence data source field. The index field type must match the Confluence field type.

        • PageConfiguration — (map)

          Configuration information for indexing Confluence pages.

          • PageFieldMappings — (Array<map>)

            Maps attributes or field names of Confluence pages to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Confluence fields. For more information, see Mapping data source fields. The Confluence data source field names must exist in your Confluence custom metadata.

            If you specify the PageFieldMappings parameter, you must specify at least one field mapping.

            • DataSourceFieldName — (String)

              The name of the field in the data source.

              Possible values include:
              • "AUTHOR"
              • "CONTENT_STATUS"
              • "CREATED_DATE"
              • "DISPLAY_URL"
              • "ITEM_TYPE"
              • "LABELS"
              • "MODIFIED_DATE"
              • "PARENT_ID"
              • "SPACE_KEY"
              • "SPACE_NAME"
              • "URL"
              • "VERSION"
            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldName — (String)

              The name of the index field to map to the Confluence data source field. The index field type must match the Confluence field type.

        • BlogConfiguration — (map)

          Configuration information for indexing Confluence blogs.

          • BlogFieldMappings — (Array<map>)

            Maps attributes or field names of Confluence blogs to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Confluence fields. For more information, see Mapping data source fields. The Confluence data source field names must exist in your Confluence custom metadata.

            If you specify the BlogFieldMappings parameter, you must specify at least one field mapping.

            • DataSourceFieldName — (String)

              The name of the field in the data source.

              Possible values include:
              • "AUTHOR"
              • "DISPLAY_URL"
              • "ITEM_TYPE"
              • "LABELS"
              • "PUBLISH_DATE"
              • "SPACE_KEY"
              • "SPACE_NAME"
              • "URL"
              • "VERSION"
            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldName — (String)

              The name of the index field to map to the Confluence data source field. The index field type must match the Confluence field type.

        • AttachmentConfiguration — (map)

          Configuration information for indexing attachments to Confluence blogs and pages.

          • CrawlAttachments — (Boolean)

            TRUE to index attachments of pages and blogs in Confluence.

          • AttachmentFieldMappings — (Array<map>)

            Maps attributes or field names of Confluence attachments to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Confluence fields. For more information, see Mapping data source fields. The Confluence data source field names must exist in your Confluence custom metadata.

            If you specify the AttachentFieldMappings parameter, you must specify at least one field mapping.

            • DataSourceFieldName — (String)

              The name of the field in the data source.

              You must first create the index field using the UpdateIndex API.

              Possible values include:
              • "AUTHOR"
              • "CONTENT_TYPE"
              • "CREATED_DATE"
              • "DISPLAY_URL"
              • "FILE_SIZE"
              • "ITEM_TYPE"
              • "PARENT_ID"
              • "SPACE_KEY"
              • "SPACE_NAME"
              • "URL"
              • "VERSION"
            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldName — (String)

              The name of the index field to map to the Confluence data source field. The index field type must match the Confluence field type.

        • VpcConfiguration — (map)

          Configuration information for an Amazon Virtual Private Cloud to connect to your Confluence. For more information, see Configuring a VPC.

          • SubnetIdsrequired — (Array<String>)

            A list of identifiers for subnets within your Amazon VPC. The subnets should be able to connect to each other in the VPC, and they should have outgoing access to the Internet through a NAT device.

          • SecurityGroupIdsrequired — (Array<String>)

            A list of identifiers of security groups within your Amazon VPC. The security groups should enable Amazon Kendra to connect to the data source.

        • InclusionPatterns — (Array<String>)

          A list of regular expression patterns to include certain blog posts, pages, spaces, or attachments in your Confluence. Content that matches the patterns are included in the index. Content that doesn't match the patterns is excluded from the index. If content matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the content isn't included in the index.

        • ExclusionPatterns — (Array<String>)

          A list of regular expression patterns to exclude certain blog posts, pages, spaces, or attachments in your Confluence. Content that matches the patterns are excluded from the index. Content that doesn't match the patterns is included in the index. If content matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the content isn't included in the index.

        • ProxyConfiguration — (map)

          Configuration information to connect to your Confluence URL instance via a web proxy. You can use this option for Confluence Server.

          You must provide the website host name and port number. For example, the host name of https://a.example.com/page1.html is "a.example.com" and the port is 443, the standard port for HTTPS.

          Web proxy credentials are optional and you can use them to connect to a web proxy server that requires basic authentication of user name and password. To store web proxy credentials, you use a secret in Secrets Manager.

          It is recommended that you follow best security practices when configuring your web proxy. This includes setting up throttling, setting up logging and monitoring, and applying security patches on a regular basis. If you use your web proxy with multiple data sources, sync jobs that occur at the same time could strain the load on your proxy. It is recommended you prepare your proxy beforehand for any security and load requirements.

          • Hostrequired — (String)

            The name of the website host you want to connect to via a web proxy server.

            For example, the host name of https://a.example.com/page1.html is "a.example.com".

          • Portrequired — (Integer)

            The port number of the website host you want to connect to via a web proxy server.

            For example, the port for https://a.example.com/page1.html is 443, the standard port for HTTPS.

          • Credentials — (String)

            Your secret ARN, which you can create in Secrets Manager

            The credentials are optional. You use a secret if web proxy credentials are required to connect to a website host. Amazon Kendra currently support basic authentication to connect to a web proxy server. The secret stores your credentials.

        • AuthenticationType — (String)

          Whether you want to connect to Confluence using basic authentication of user name and password, or a personal access token. You can use a personal access token for Confluence Server.

          Possible values include:
          • "HTTP_BASIC"
          • "PAT"
      • GoogleDriveConfiguration — (map)

        Provides the configuration information to connect to Google Drive as your data source.

        • SecretArnrequired — (String)

          The Amazon Resource Name (ARN) of a Secrets Managersecret that contains the credentials required to connect to Google Drive. For more information, see Using a Google Workspace Drive data source.

        • InclusionPatterns — (Array<String>)

          A list of regular expression patterns to include certain items in your Google Drive, including shared drives and users' My Drives. Items that match the patterns are included in the index. Items that don't match the patterns are excluded from the index. If an item matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the item isn't included in the index.

        • ExclusionPatterns — (Array<String>)

          A list of regular expression patterns to exclude certain items in your Google Drive, including shared drives and users' My Drives. Items that match the patterns are excluded from the index. Items that don't match the patterns are included in the index. If an item matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the item isn't included in the index.

        • FieldMappings — (Array<map>)

          Maps Google Drive data source attributes or field names to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Google Drive fields. For more information, see Mapping data source fields. The Google Drive data source field names must exist in your Google Drive custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • ExcludeMimeTypes — (Array<String>)

          A list of MIME types to exclude from the index. All documents matching the specified MIME type are excluded.

          For a list of MIME types, see Using a Google Workspace Drive data source.

        • ExcludeUserAccounts — (Array<String>)

          A list of email addresses of the users. Documents owned by these users are excluded from the index. Documents shared with excluded users are indexed unless they are excluded in another way.

        • ExcludeSharedDrives — (Array<String>)

          A list of identifiers or shared drives to exclude from the index. All files and folders stored on the shared drive are excluded.

      • WebCrawlerConfiguration — (map)

        Provides the configuration information required for Amazon Kendra Web Crawler.

        • Urlsrequired — (map)

          Specifies the seed or starting point URLs of the websites or the sitemap URLs of the websites you want to crawl.

          You can include website subdomains. You can list up to 100 seed URLs and up to three sitemap URLs.

          You can only crawl websites that use the secure communication protocol, Hypertext Transfer Protocol Secure (HTTPS). If you receive an error when crawling a website, it could be that the website is blocked from crawling.

          When selecting websites to index, you must adhere to the Amazon Acceptable Use Policy and all other Amazon terms. Remember that you must only use Amazon Kendra Web Crawler to index your own web pages, or web pages that you have authorization to index.

          • SeedUrlConfiguration — (map)

            Configuration of the seed or starting point URLs of the websites you want to crawl.

            You can choose to crawl only the website host names, or the website host names with subdomains, or the website host names with subdomains and other domains that the web pages link to.

            You can list up to 100 seed URLs.

            • SeedUrlsrequired — (Array<String>)

              The list of seed or starting point URLs of the websites you want to crawl.

              The list can include a maximum of 100 seed URLs.

            • WebCrawlerMode — (String)

              You can choose one of the following modes:

              • HOST_ONLY—crawl only the website host names. For example, if the seed URL is "abc.example.com", then only URLs with host name "abc.example.com" are crawled.

              • SUBDOMAINS—crawl the website host names with subdomains. For example, if the seed URL is "abc.example.com", then "a.abc.example.com" and "b.abc.example.com" are also crawled.

              • EVERYTHING—crawl the website host names with subdomains and other domains that the web pages link to.

              The default mode is set to HOST_ONLY.

              Possible values include:
              • "HOST_ONLY"
              • "SUBDOMAINS"
              • "EVERYTHING"
          • SiteMapsConfiguration — (map)

            Configuration of the sitemap URLs of the websites you want to crawl.

            Only URLs belonging to the same website host names are crawled. You can list up to three sitemap URLs.

            • SiteMapsrequired — (Array<String>)

              The list of sitemap URLs of the websites you want to crawl.

              The list can include a maximum of three sitemap URLs.

        • CrawlDepth — (Integer)

          The 'depth' or number of levels from the seed level to crawl. For example, the seed URL page is depth 1 and any hyperlinks on this page that are also crawled are depth 2.

        • MaxLinksPerPage — (Integer)

          The maximum number of URLs on a web page to include when crawling a website. This number is per web page.

          As a website’s web pages are crawled, any URLs the web pages link to are also crawled. URLs on a web page are crawled in order of appearance.

          The default maximum links per page is 100.

        • MaxContentSizePerPageInMegaBytes — (Float)

          The maximum size (in MB) of a web page or attachment to crawl.

          Files larger than this size (in MB) are skipped/not crawled.

          The default maximum size of a web page or attachment is set to 50 MB.

        • MaxUrlsPerMinuteCrawlRate — (Integer)

          The maximum number of URLs crawled per website host per minute.

          A minimum of one URL is required.

          The default maximum number of URLs crawled per website host per minute is 300.

        • UrlInclusionPatterns — (Array<String>)

          A list of regular expression patterns to include certain URLs to crawl. URLs that match the patterns are included in the index. URLs that don't match the patterns are excluded from the index. If a URL matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the URL file isn't included in the index.

        • UrlExclusionPatterns — (Array<String>)

          A list of regular expression patterns to exclude certain URLs to crawl. URLs that match the patterns are excluded from the index. URLs that don't match the patterns are included in the index. If a URL matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the URL file isn't included in the index.

        • ProxyConfiguration — (map)

          Configuration information required to connect to your internal websites via a web proxy.

          You must provide the website host name and port number. For example, the host name of https://a.example.com/page1.html is "a.example.com" and the port is 443, the standard port for HTTPS.

          Web proxy credentials are optional and you can use them to connect to a web proxy server that requires basic authentication. To store web proxy credentials, you use a secret in Secrets Manager.

          • Hostrequired — (String)

            The name of the website host you want to connect to via a web proxy server.

            For example, the host name of https://a.example.com/page1.html is "a.example.com".

          • Portrequired — (Integer)

            The port number of the website host you want to connect to via a web proxy server.

            For example, the port for https://a.example.com/page1.html is 443, the standard port for HTTPS.

          • Credentials — (String)

            Your secret ARN, which you can create in Secrets Manager

            The credentials are optional. You use a secret if web proxy credentials are required to connect to a website host. Amazon Kendra currently support basic authentication to connect to a web proxy server. The secret stores your credentials.

        • AuthenticationConfiguration — (map)

          Configuration information required to connect to websites using authentication.

          You can connect to websites using basic authentication of user name and password. You use a secret in Secrets Manager to store your authentication credentials.

          You must provide the website host name and port number. For example, the host name of https://a.example.com/page1.html is "a.example.com" and the port is 443, the standard port for HTTPS.

          • BasicAuthentication — (Array<map>)

            The list of configuration information that's required to connect to and crawl a website host using basic authentication credentials.

            The list includes the name and port number of the website host.

            • Hostrequired — (String)

              The name of the website host you want to connect to using authentication credentials.

              For example, the host name of https://a.example.com/page1.html is "a.example.com".

            • Portrequired — (Integer)

              The port number of the website host you want to connect to using authentication credentials.

              For example, the port for https://a.example.com/page1.html is 443, the standard port for HTTPS.

            • Credentialsrequired — (String)

              Your secret ARN, which you can create in Secrets Manager

              You use a secret if basic authentication credentials are required to connect to a website. The secret stores your credentials of user name and password.

      • WorkDocsConfiguration — (map)

        Provides the configuration information to connect to Amazon WorkDocs as your data source.

        • OrganizationIdrequired — (String)

          The identifier of the directory corresponding to your Amazon WorkDocs site repository.

          You can find the organization ID in the Directory Service by going to Active Directory, then Directories. Your Amazon WorkDocs site directory has an ID, which is the organization ID. You can also set up a new Amazon WorkDocs directory in the Directory Service console and enable a Amazon WorkDocs site for the directory in the Amazon WorkDocs console.

        • CrawlComments — (Boolean)

          TRUE to include comments on documents in your index. Including comments in your index means each comment is a document that can be searched on.

          The default is set to FALSE.

        • UseChangeLog — (Boolean)

          TRUE to use the Amazon WorkDocs change log to determine which documents require updating in the index. Depending on the change log's size, it may take longer for Amazon Kendra to use the change log than to scan all of your documents in Amazon WorkDocs.

        • InclusionPatterns — (Array<String>)

          A list of regular expression patterns to include certain files in your Amazon WorkDocs site repository. Files that match the patterns are included in the index. Files that don't match the patterns are excluded from the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.

        • ExclusionPatterns — (Array<String>)

          A list of regular expression patterns to exclude certain files in your Amazon WorkDocs site repository. Files that match the patterns are excluded from the index. Files that don’t match the patterns are included in the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.

        • FieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map Amazon WorkDocs data source attributes or field names to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Amazon WorkDocs fields. For more information, see Mapping data source fields. The Amazon WorkDocs data source field names must exist in your Amazon WorkDocs custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

      • FsxConfiguration — (map)

        Provides the configuration information to connect to Amazon FSx as your data source.

        Note: Amazon Kendra now supports an upgraded Amazon FSx Windows connector. You must now use the TemplateConfiguration object instead of the FsxConfiguration object to configure your connector. Connectors configured using the older console and API architecture will continue to function as configured. However, you won't be able to edit or update them. If you want to edit or update your connector configuration, you must create a new connector. We recommended migrating your connector workflow to the upgraded version. Support for connectors configured using the older architecture is scheduled to end by June 2024.
        • FileSystemIdrequired — (String)

          The identifier of the Amazon FSx file system.

          You can find your file system ID on the file system dashboard in the Amazon FSx console. For information on how to create a file system in Amazon FSx console, using Windows File Server as an example, see Amazon FSx Getting started guide.

        • FileSystemTyperequired — (String)

          The Amazon FSx file system type. Windows is currently the only supported type.

          Possible values include:
          • "WINDOWS"
        • VpcConfigurationrequired — (map)

          Configuration information for an Amazon Virtual Private Cloud to connect to your Amazon FSx. Your Amazon FSx instance must reside inside your VPC.

          • SubnetIdsrequired — (Array<String>)

            A list of identifiers for subnets within your Amazon VPC. The subnets should be able to connect to each other in the VPC, and they should have outgoing access to the Internet through a NAT device.

          • SecurityGroupIdsrequired — (Array<String>)

            A list of identifiers of security groups within your Amazon VPC. The security groups should enable Amazon Kendra to connect to the data source.

        • SecretArn — (String)

          The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the key-value pairs required to connect to your Amazon FSx file system. Windows is currently the only supported type. The secret must contain a JSON structure with the following keys:

          • username—The Active Directory user name, along with the Domain Name System (DNS) domain name. For example, user@corp.example.com. The Active Directory user account must have read and mounting access to the Amazon FSx file system for Windows.

          • password—The password of the Active Directory user account with read and mounting access to the Amazon FSx Windows file system.

        • InclusionPatterns — (Array<String>)

          A list of regular expression patterns to include certain files in your Amazon FSx file system. Files that match the patterns are included in the index. Files that don't match the patterns are excluded from the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.

        • ExclusionPatterns — (Array<String>)

          A list of regular expression patterns to exclude certain files in your Amazon FSx file system. Files that match the patterns are excluded from the index. Files that don't match the patterns are included in the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.

        • FieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map Amazon FSx data source attributes or field names to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Amazon FSx fields. For more information, see Mapping data source fields. The Amazon FSx data source field names must exist in your Amazon FSx custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

      • SlackConfiguration — (map)

        Provides the configuration information to connect to Slack as your data source.

        Note: Amazon Kendra now supports an upgraded Slack connector. You must now use the TemplateConfiguration object instead of the SlackConfiguration object to configure your connector. Connectors configured using the older console and API architecture will continue to function as configured. However, you won't be able to edit or update them. If you want to edit or update your connector configuration, you must create a new connector. We recommended migrating your connector workflow to the upgraded version. Support for connectors configured using the older architecture is scheduled to end by June 2024.
        • TeamIdrequired — (String)

          The identifier of the team in the Slack workspace. For example, T0123456789.

          You can find your team ID in the URL of the main page of your Slack workspace. When you log in to Slack via a browser, you are directed to the URL of the main page. For example, https://app.slack.com/client/T0123456789/....

        • SecretArnrequired — (String)

          The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the key-value pairs required to connect to your Slack workspace team. The secret must contain a JSON structure with the following keys:

        • VpcConfiguration — (map)

          Configuration information for an Amazon Virtual Private Cloud to connect to your Slack. For more information, see Configuring a VPC.

          • SubnetIdsrequired — (Array<String>)

            A list of identifiers for subnets within your Amazon VPC. The subnets should be able to connect to each other in the VPC, and they should have outgoing access to the Internet through a NAT device.

          • SecurityGroupIdsrequired — (Array<String>)

            A list of identifiers of security groups within your Amazon VPC. The security groups should enable Amazon Kendra to connect to the data source.

        • SlackEntityListrequired — (Array<String>)

          Specify whether to index public channels, private channels, group messages, and direct messages. You can specify one or more of these options.

        • UseChangeLog — (Boolean)

          TRUE to use the Slack change log to determine which documents require updating in the index. Depending on the Slack change log's size, it may take longer for Amazon Kendra to use the change log than to scan all of your documents in Slack.

        • CrawlBotMessage — (Boolean)

          TRUE to index bot messages from your Slack workspace team.

        • ExcludeArchived — (Boolean)

          TRUE to exclude archived messages to index from your Slack workspace team.

        • SinceCrawlDaterequired — (String)

          The date to start crawling your data from your Slack workspace team. The date must follow this format: yyyy-mm-dd.

        • LookBackPeriod — (Integer)

          The number of hours for change log to look back from when you last synchronized your data. You can look back up to 7 days or 168 hours.

          Change log updates your index only if new content was added since you last synced your data. Updated or deleted content from before you last synced does not get updated in your index. To capture updated or deleted content before you last synced, set the LookBackPeriod to the number of hours you want change log to look back.

        • PrivateChannelFilter — (Array<String>)

          The list of private channel names from your Slack workspace team. You use this if you want to index specific private channels, not all private channels. You can also use regular expression patterns to filter private channels.

        • PublicChannelFilter — (Array<String>)

          The list of public channel names to index from your Slack workspace team. You use this if you want to index specific public channels, not all public channels. You can also use regular expression patterns to filter public channels.

        • InclusionPatterns — (Array<String>)

          A list of regular expression patterns to include certain attached files in your Slack workspace team. Files that match the patterns are included in the index. Files that don't match the patterns are excluded from the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.

        • ExclusionPatterns — (Array<String>)

          A list of regular expression patterns to exclude certain attached files in your Slack workspace team. Files that match the patterns are excluded from the index. Files that don’t match the patterns are included in the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.

        • FieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map Slack data source attributes or field names to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Slack fields. For more information, see Mapping data source fields. The Slack data source field names must exist in your Slack custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

      • BoxConfiguration — (map)

        Provides the configuration information to connect to Box as your data source.

        • EnterpriseIdrequired — (String)

          The identifier of the Box Enterprise platform. You can find the enterprise ID in the Box Developer Console settings or when you create an app in Box and download your authentication credentials. For example, 801234567.

        • SecretArnrequired — (String)

          The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the key-value pairs required to connect to your Box platform. The secret must contain a JSON structure with the following keys:

          • clientID—The identifier of the client OAuth 2.0 authentication application created in Box.

          • clientSecret—A set of characters known only to the OAuth 2.0 authentication application created in Box.

          • publicKeyId—The identifier of the public key contained within an identity certificate.

          • privateKey—A set of characters that make up an encryption key.

          • passphrase—A set of characters that act like a password.

          You create an application in Box to generate the keys or credentials required for the secret. For more information, see Using a Box data source.

        • UseChangeLog — (Boolean)

          TRUE to use the Slack change log to determine which documents require updating in the index. Depending on the data source change log's size, it may take longer for Amazon Kendra to use the change log than to scan all of your documents.

        • CrawlComments — (Boolean)

          TRUE to index comments.

        • CrawlTasks — (Boolean)

          TRUE to index the contents of tasks.

        • CrawlWebLinks — (Boolean)

          TRUE to index web links.

        • FileFieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Box files to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Box fields. For more information, see Mapping data source fields. The Box field names must exist in your Box custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • TaskFieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Box tasks to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Box fields. For more information, see Mapping data source fields. The Box field names must exist in your Box custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • CommentFieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Box comments to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Box fields. For more information, see Mapping data source fields. The Box field names must exist in your Box custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • WebLinkFieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Box web links to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Box fields. For more information, see Mapping data source fields. The Box field names must exist in your Box custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • InclusionPatterns — (Array<String>)

          A list of regular expression patterns to include certain files and folders in your Box platform. Files and folders that match the patterns are included in the index. Files and folders that don't match the patterns are excluded from the index. If a file or folder matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file or folder isn't included in the index.

        • ExclusionPatterns — (Array<String>)

          A list of regular expression patterns to exclude certain files and folders from your Box platform. Files and folders that match the patterns are excluded from the index.Files and folders that don't match the patterns are included in the index. If a file or folder matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file or folder isn't included in the index.

        • VpcConfiguration — (map)

          Configuration information for an Amazon VPC to connect to your Box. For more information, see Configuring a VPC.

          • SubnetIdsrequired — (Array<String>)

            A list of identifiers for subnets within your Amazon VPC. The subnets should be able to connect to each other in the VPC, and they should have outgoing access to the Internet through a NAT device.

          • SecurityGroupIdsrequired — (Array<String>)

            A list of identifiers of security groups within your Amazon VPC. The security groups should enable Amazon Kendra to connect to the data source.

      • QuipConfiguration — (map)

        Provides the configuration information to connect to Quip as your data source.

        • Domainrequired — (String)

          The Quip site domain. For example, https://quip-company.quipdomain.com/browse. The domain in this example is "quipdomain".

        • SecretArnrequired — (String)

          The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the key-value pairs that are required to connect to your Quip. The secret must contain a JSON structure with the following keys:

        • CrawlFileComments — (Boolean)

          TRUE to index file comments.

        • CrawlChatRooms — (Boolean)

          TRUE to index the contents of chat rooms.

        • CrawlAttachments — (Boolean)

          TRUE to index attachments.

        • FolderIds — (Array<String>)

          The identifiers of the Quip folders you want to index. You can find the folder ID in your browser URL when you access your folder in Quip. For example, https://quip-company.quipdomain.com/zlLuOVNSarTL/folder-name. The folder ID in this example is "zlLuOVNSarTL".

        • ThreadFieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Quip threads to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Quip fields. For more information, see Mapping data source fields. The Quip field names must exist in your Quip custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • MessageFieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Quip messages to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Quip fields. For more information, see Mapping data source fields. The Quip field names must exist in your Quip custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • AttachmentFieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Quip attachments to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Quip fields. For more information, see Mapping data source fields. The Quip field names must exist in your Quip custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • InclusionPatterns — (Array<String>)

          A list of regular expression patterns to include certain files in your Quip file system. Files that match the patterns are included in the index. Files that don't match the patterns are excluded from the index. If a file matches both an inclusion pattern and an exclusion pattern, the exclusion pattern takes precedence, and the file isn't included in the index.

        • ExclusionPatterns — (Array<String>)

          A list of regular expression patterns to exclude certain files in your Quip file system. Files that match the patterns are excluded from the index. Files that don’t match the patterns are included in the index. If a file matches both an inclusion pattern and an exclusion pattern, the exclusion pattern takes precedence, and the file isn't included in the index.

        • VpcConfiguration — (map)

          Configuration information for an Amazon Virtual Private Cloud (VPC) to connect to your Quip. For more information, see Configuring a VPC.

          • SubnetIdsrequired — (Array<String>)

            A list of identifiers for subnets within your Amazon VPC. The subnets should be able to connect to each other in the VPC, and they should have outgoing access to the Internet through a NAT device.

          • SecurityGroupIdsrequired — (Array<String>)

            A list of identifiers of security groups within your Amazon VPC. The security groups should enable Amazon Kendra to connect to the data source.

      • JiraConfiguration — (map)

        Provides the configuration information to connect to Jira as your data source.

        • JiraAccountUrlrequired — (String)

          The URL of the Jira account. For example, company.atlassian.net.

        • SecretArnrequired — (String)

          The Amazon Resource Name (ARN) of a secret in Secrets Manager contains the key-value pairs required to connect to your Jira data source. The secret must contain a JSON structure with the following keys:

          • jiraId—The Jira user name or email.

          • jiraCredentials—The Jira API token. For more information, see Using a Jira data source.

        • UseChangeLog — (Boolean)

          TRUE to use the Jira change log to determine which documents require updating in the index. Depending on the change log's size, it may take longer for Amazon Kendra to use the change log than to scan all of your documents in Jira.

        • Project — (Array<String>)

          Specify which projects to crawl in your Jira data source. You can specify one or more Jira project IDs.

        • IssueType — (Array<String>)

          Specify which issue types to crawl in your Jira data source. You can specify one or more of these options to crawl.

        • Status — (Array<String>)

          Specify which statuses to crawl in your Jira data source. You can specify one or more of these options to crawl.

        • IssueSubEntityFilter — (Array<String>)

          Specify whether to crawl comments, attachments, and work logs. You can specify one or more of these options.

        • AttachmentFieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Jira attachments to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Jira fields. For more information, see Mapping data source fields. The Jira data source field names must exist in your Jira custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • CommentFieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Jira comments to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Jira fields. For more information, see Mapping data source fields. The Jira data source field names must exist in your Jira custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • IssueFieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Jira issues to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Jira fields. For more information, see Mapping data source fields. The Jira data source field names must exist in your Jira custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • ProjectFieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Jira projects to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Jira fields. For more information, see Mapping data source fields. The Jira data source field names must exist in your Jira custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • WorkLogFieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Jira work logs to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Jira fields. For more information, see Mapping data source fields. The Jira data source field names must exist in your Jira custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • InclusionPatterns — (Array<String>)

          A list of regular expression patterns to include certain file paths, file names, and file types in your Jira data source. Files that match the patterns are included in the index. Files that don't match the patterns are excluded from the index. If a file matches both an inclusion pattern and an exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.

        • ExclusionPatterns — (Array<String>)

          A list of regular expression patterns to exclude certain file paths, file names, and file types in your Jira data source. Files that match the patterns are excluded from the index. Files that don’t match the patterns are included in the index. If a file matches both an inclusion pattern and an exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.

        • VpcConfiguration — (map)

          Configuration information for an Amazon Virtual Private Cloud to connect to your Jira. For more information, see Configuring a VPC.

          • SubnetIdsrequired — (Array<String>)

            A list of identifiers for subnets within your Amazon VPC. The subnets should be able to connect to each other in the VPC, and they should have outgoing access to the Internet through a NAT device.

          • SecurityGroupIdsrequired — (Array<String>)

            A list of identifiers of security groups within your Amazon VPC. The security groups should enable Amazon Kendra to connect to the data source.

      • GitHubConfiguration — (map)

        Provides the configuration information to connect to GitHub as your data source.

        Note: Amazon Kendra now supports an upgraded GitHub connector. You must now use the TemplateConfiguration object instead of the GitHubConfiguration object to configure your connector. Connectors configured using the older console and API architecture will continue to function as configured. However, you won’t be able to edit or update them. If you want to edit or update your connector configuration, you must create a new connector. We recommended migrating your connector workflow to the upgraded version. Support for connectors configured using the older architecture is scheduled to end by June 2024.
        • SaaSConfiguration — (map)

          Configuration information to connect to GitHub Enterprise Cloud (SaaS).

          • OrganizationNamerequired — (String)

            The name of the organization of the GitHub Enterprise Cloud (SaaS) account you want to connect to. You can find your organization name by logging into GitHub desktop and selecting Your organizations under your profile picture dropdown.

          • HostUrlrequired — (String)

            The GitHub host URL or API endpoint URL. For example, https://api.github.com.

        • OnPremiseConfiguration — (map)

          Configuration information to connect to GitHub Enterprise Server (on premises).

          • HostUrlrequired — (String)

            The GitHub host URL or API endpoint URL. For example, https://on-prem-host-url/api/v3/

          • OrganizationNamerequired — (String)

            The name of the organization of the GitHub Enterprise Server (on-premises) account you want to connect to. You can find your organization name by logging into GitHub desktop and selecting Your organizations under your profile picture dropdown.

          • SslCertificateS3Pathrequired — (map)

            The path to the SSL certificate stored in an Amazon S3 bucket. You use this to connect to GitHub if you require a secure SSL connection.

            You can simply generate a self-signed X509 certificate on any computer using OpenSSL. For an example of using OpenSSL to create an X509 certificate, see Create and sign an X509 certificate.

            • Bucketrequired — (String)

              The name of the S3 bucket that contains the file.

            • Keyrequired — (String)

              The name of the file.

        • Type — (String)

          The type of GitHub service you want to connect to—GitHub Enterprise Cloud (SaaS) or GitHub Enterprise Server (on premises).

          Possible values include:
          • "SAAS"
          • "ON_PREMISE"
        • SecretArnrequired — (String)

          The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the key-value pairs required to connect to your GitHub. The secret must contain a JSON structure with the following keys:

          • personalToken—The access token created in GitHub. For more information on creating a token in GitHub, see Using a GitHub data source.

        • UseChangeLog — (Boolean)

          TRUE to use the GitHub change log to determine which documents require updating in the index. Depending on the GitHub change log's size, it may take longer for Amazon Kendra to use the change log than to scan all of your documents in GitHub.

        • GitHubDocumentCrawlProperties — (map)

          Configuration information to include certain types of GitHub content. You can configure to index repository files only, or also include issues and pull requests, comments, and comment attachments.

          • CrawlRepositoryDocuments — (Boolean)

            TRUE to index all files with a repository.

          • CrawlIssue — (Boolean)

            TRUE to index all issues within a repository.

          • CrawlIssueComment — (Boolean)

            TRUE to index all comments on issues.

          • CrawlIssueCommentAttachment — (Boolean)

            TRUE to include all comment attachments for issues.

          • CrawlPullRequest — (Boolean)

            TRUE to index all pull requests within a repository.

          • CrawlPullRequestComment — (Boolean)

            TRUE to index all comments on pull requests.

          • CrawlPullRequestCommentAttachment — (Boolean)

            TRUE to include all comment attachments for pull requests.

        • RepositoryFilter — (Array<String>)

          A list of names of the specific repositories you want to index.

        • InclusionFolderNamePatterns — (Array<String>)

          A list of regular expression patterns to include certain folder names in your GitHub repository or repositories. Folder names that match the patterns are included in the index. Folder names that don't match the patterns are excluded from the index. If a folder matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the folder isn't included in the index.

        • InclusionFileTypePatterns — (Array<String>)

          A list of regular expression patterns to include certain file types in your GitHub repository or repositories. File types that match the patterns are included in the index. File types that don't match the patterns are excluded from the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.

        • InclusionFileNamePatterns — (Array<String>)

          A list of regular expression patterns to include certain file names in your GitHub repository or repositories. File names that match the patterns are included in the index. File names that don't match the patterns are excluded from the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.

        • ExclusionFolderNamePatterns — (Array<String>)

          A list of regular expression patterns to exclude certain folder names in your GitHub repository or repositories. Folder names that match the patterns are excluded from the index. Folder names that don't match the patterns are included in the index. If a folder matches both an exclusion and inclusion pattern, the exclusion pattern takes precedence and the folder isn't included in the index.

        • ExclusionFileTypePatterns — (Array<String>)

          A list of regular expression patterns to exclude certain file types in your GitHub repository or repositories. File types that match the patterns are excluded from the index. File types that don't match the patterns are included in the index. If a file matches both an exclusion and inclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.

        • ExclusionFileNamePatterns — (Array<String>)

          A list of regular expression patterns to exclude certain file names in your GitHub repository or repositories. File names that match the patterns are excluded from the index. File names that don't match the patterns are included in the index. If a file matches both an exclusion and inclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.

        • VpcConfiguration — (map)

          Configuration information of an Amazon Virtual Private Cloud to connect to your GitHub. For more information, see Configuring a VPC.

          • SubnetIdsrequired — (Array<String>)

            A list of identifiers for subnets within your Amazon VPC. The subnets should be able to connect to each other in the VPC, and they should have outgoing access to the Internet through a NAT device.

          • SecurityGroupIdsrequired — (Array<String>)

            A list of identifiers of security groups within your Amazon VPC. The security groups should enable Amazon Kendra to connect to the data source.

        • GitHubRepositoryConfigurationFieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map GitHub repository attributes or field names to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to GitHub fields. For more information, see Mapping data source fields. The GitHub data source field names must exist in your GitHub custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • GitHubCommitConfigurationFieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map attributes or field names of GitHub commits to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to GitHub fields. For more information, see Mapping data source fields. The GitHub data source field names must exist in your GitHub custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • GitHubIssueDocumentConfigurationFieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map attributes or field names of GitHub issues to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to GitHub fields. For more information, see Mapping data source fields. The GitHub data source field names must exist in your GitHub custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • GitHubIssueCommentConfigurationFieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map attributes or field names of GitHub issue comments to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to GitHub fields. For more information, see Mapping data source fields. The GitHub data source field names must exist in your GitHub custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • GitHubIssueAttachmentConfigurationFieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map attributes or field names of GitHub issue attachments to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to GitHub fields. For more information, see Mapping data source fields. The GitHub data source field names must exist in your GitHub custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • GitHubPullRequestCommentConfigurationFieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map attributes or field names of GitHub pull request comments to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to GitHub fields. For more information, see Mapping data source fields. The GitHub data source field names must exist in your GitHub custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • GitHubPullRequestDocumentConfigurationFieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map attributes or field names of GitHub pull requests to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to GitHub fields. For more information, see Mapping data source fields. The GitHub data source field names must exist in your GitHub custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • GitHubPullRequestDocumentAttachmentConfigurationFieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map attributes or field names of GitHub pull request attachments to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to GitHub fields. For more information, see Mapping data source fields. The GitHub data source field names must exist in your GitHub custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

      • AlfrescoConfiguration — (map)

        Provides the configuration information to connect to Alfresco as your data source.

        Note: Support for AlfrescoConfiguration ended May 2023. We recommend migrating to or using the Alfresco data source template schema / TemplateConfiguration API.
        • SiteUrlrequired — (String)

          The URL of the Alfresco site. For example, https://hostname:8080.

        • SiteIdrequired — (String)

          The identifier of the Alfresco site. For example, my-site.

        • SecretArnrequired — (String)

          The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the key-value pairs required to connect to your Alfresco data source. The secret must contain a JSON structure with the following keys:

          • username—The user name of the Alfresco account.

          • password—The password of the Alfresco account.

        • SslCertificateS3Pathrequired — (map)

          The path to the SSL certificate stored in an Amazon S3 bucket. You use this to connect to Alfresco if you require a secure SSL connection.

          You can simply generate a self-signed X509 certificate on any computer using OpenSSL. For an example of using OpenSSL to create an X509 certificate, see Create and sign an X509 certificate.

          • Bucketrequired — (String)

            The name of the S3 bucket that contains the file.

          • Keyrequired — (String)

            The name of the file.

        • CrawlSystemFolders — (Boolean)

          TRUE to index shared files.

        • CrawlComments — (Boolean)

          TRUE to index comments of blogs and other content.

        • EntityFilter — (Array<String>)

          Specify whether to index document libraries, wikis, or blogs. You can specify one or more of these options.

        • DocumentLibraryFieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Alfresco document libraries to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Alfresco fields. For more information, see Mapping data source fields. The Alfresco data source field names must exist in your Alfresco custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • BlogFieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Alfresco blogs to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Alfresco fields. For more information, see Mapping data source fields. The Alfresco data source field names must exist in your Alfresco custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • WikiFieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Alfresco wikis to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Alfresco fields. For more information, see Mapping data source fields. The Alfresco data source field names must exist in your Alfresco custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • InclusionPatterns — (Array<String>)

          A list of regular expression patterns to include certain files in your Alfresco data source. Files that match the patterns are included in the index. Files that don't match the patterns are excluded from the index. If a file matches both an inclusion pattern and an exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.

        • ExclusionPatterns — (Array<String>)

          A list of regular expression patterns to exclude certain files in your Alfresco data source. Files that match the patterns are excluded from the index. Files that don't match the patterns are included in the index. If a file matches both an inclusion pattern and an exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.

        • VpcConfiguration — (map)

          Configuration information for an Amazon Virtual Private Cloud to connect to your Alfresco. For more information, see Configuring a VPC.

          • SubnetIdsrequired — (Array<String>)

            A list of identifiers for subnets within your Amazon VPC. The subnets should be able to connect to each other in the VPC, and they should have outgoing access to the Internet through a NAT device.

          • SecurityGroupIdsrequired — (Array<String>)

            A list of identifiers of security groups within your Amazon VPC. The security groups should enable Amazon Kendra to connect to the data source.

      • TemplateConfiguration — (map)

        Provides a template for the configuration information to connect to your data source.

    • VpcConfiguration — (map)

      Configuration information for an Amazon Virtual Private Cloud to connect to your data source. For more information, see Configuring a VPC.

      • SubnetIdsrequired — (Array<String>)

        A list of identifiers for subnets within your Amazon VPC. The subnets should be able to connect to each other in the VPC, and they should have outgoing access to the Internet through a NAT device.

      • SecurityGroupIdsrequired — (Array<String>)

        A list of identifiers of security groups within your Amazon VPC. The security groups should enable Amazon Kendra to connect to the data source.

    • Description — (String)

      A description for the data source connector.

    • Schedule — (String)

      Sets the frequency for Amazon Kendra to check the documents in your data source repository and update the index. If you don't set a schedule Amazon Kendra will not periodically update the index. You can call the StartDataSourceSyncJob API to update the index.

      Specify a cron- format schedule string or an empty string to indicate that the index is updated on demand.

      You can't specify the Schedule parameter when the Type parameter is set to CUSTOM. If you do, you receive a ValidationException exception.

    • RoleArn — (String)

      The Amazon Resource Name (ARN) of an IAM role with permission to access the data source and required resources. For more information, see IAM access roles for Amazon Kendra..

      You can't specify the RoleArn parameter when the Type parameter is set to CUSTOM. If you do, you receive a ValidationException exception.

      The RoleArn parameter is required for all other data sources.

    • Tags — (Array<map>)

      A list of key-value pairs that identify or categorize the data source connector. You can also use tags to help control access to the data source connector. Tag keys and values can consist of Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @.

      • Keyrequired — (String)

        The key for the tag. Keys are not case sensitive and must be unique for the index, FAQ, or data source.

      • Valuerequired — (String)

        The value associated with the tag. The value may be an empty string but it can't be null.

    • ClientToken — (String)

      A token that you provide to identify the request to create a data source connector. Multiple calls to the CreateDataSource API with the same client token will create only one data source connector.

      If a token is not provided, the SDK will use a version 4 UUID.
    • LanguageCode — (String)

      The code for a language. This allows you to support a language for all documents when creating the data source connector. English is supported by default. For more information on supported languages, including their codes, see Adding documents in languages other than English.

    • CustomDocumentEnrichmentConfiguration — (map)

      Configuration information for altering document metadata and content during the document ingestion process.

      For more information on how to create, modify and delete document metadata, or make other content alterations when you ingest documents into Amazon Kendra, see Customizing document metadata during the ingestion process.

      • InlineConfigurations — (Array<map>)

        Configuration information to alter document attributes or metadata fields and content when ingesting documents into Amazon Kendra.

        • Condition — (map)

          Configuration of the condition used for the target document attribute or metadata field when ingesting documents into Amazon Kendra.

          • ConditionDocumentAttributeKeyrequired — (String)

            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.

          • Operatorrequired — (String)

            The condition operator.

            For example, you can use 'Contains' to partially match a string.

            Possible values include:
            • "GreaterThan"
            • "GreaterThanOrEquals"
            • "LessThan"
            • "LessThanOrEquals"
            • "Equals"
            • "NotEquals"
            • "Contains"
            • "NotContains"
            • "Exists"
            • "NotExists"
            • "BeginsWith"
          • ConditionOnValue — (map)

            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.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • Target — (map)

          Configuration of the target document attribute or metadata field when ingesting documents into Amazon Kendra. You can also include a value.

          • TargetDocumentAttributeKey — (String)

            The identifier of the target document attribute or metadata field.

            For example, 'Department' could be an identifier for the target attribute or metadata field that includes the department names associated with the documents.

          • TargetDocumentAttributeValueDeletion — (Boolean)

            TRUE to delete the existing target value for your specified target attribute key. You cannot create a target value and set this to TRUE. To create a target value (TargetDocumentAttributeValue), set this to FALSE.

          • TargetDocumentAttributeValue — (map)

            The target value you want to create for the target attribute.

            For example, 'Finance' could be the target value for the target attribute key 'Department'.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • DocumentContentDeletion — (Boolean)

          TRUE to delete content if the condition used for the target attribute is met.

      • PreExtractionHookConfiguration — (map)

        Configuration information for invoking a Lambda function in Lambda on the original or raw documents before extracting their metadata and text. You can use a Lambda function to apply advanced logic for creating, modifying, or deleting document metadata and content. For more information, see Advanced data manipulation.

        • InvocationCondition — (map)

          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.

          • ConditionDocumentAttributeKeyrequired — (String)

            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.

          • Operatorrequired — (String)

            The condition operator.

            For example, you can use 'Contains' to partially match a string.

            Possible values include:
            • "GreaterThan"
            • "GreaterThanOrEquals"
            • "LessThan"
            • "LessThanOrEquals"
            • "Equals"
            • "NotEquals"
            • "Contains"
            • "NotContains"
            • "Exists"
            • "NotExists"
            • "BeginsWith"
          • ConditionOnValue — (map)

            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.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • LambdaArnrequired — (String)

          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.

        • S3Bucketrequired — (String)

          Stores the original, raw documents or the structured, parsed documents before and after altering them. For more information, see Data contracts for Lambda functions.

      • PostExtractionHookConfiguration — (map)

        Configuration information for invoking a Lambda function in Lambda on the structured documents with their metadata and text extracted. You can use a Lambda function to apply advanced logic for creating, modifying, or deleting document metadata and content. For more information, see Advanced data manipulation.

        • InvocationCondition — (map)

          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.

          • ConditionDocumentAttributeKeyrequired — (String)

            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.

          • Operatorrequired — (String)

            The condition operator.

            For example, you can use 'Contains' to partially match a string.

            Possible values include:
            • "GreaterThan"
            • "GreaterThanOrEquals"
            • "LessThan"
            • "LessThanOrEquals"
            • "Equals"
            • "NotEquals"
            • "Contains"
            • "NotContains"
            • "Exists"
            • "NotExists"
            • "BeginsWith"
          • ConditionOnValue — (map)

            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.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • LambdaArnrequired — (String)

          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.

        • S3Bucketrequired — (String)

          Stores the original, raw documents or the structured, parsed documents before and after altering them. For more information, see Data contracts for Lambda functions.

      • RoleArn — (String)

        The Amazon Resource Name (ARN) of a role with permission to run PreExtractionHookConfiguration and PostExtractionHookConfiguration for altering document metadata and content during the document ingestion process. For more information, see IAM roles for Amazon Kendra.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Id — (String)

        The identifier of the data source connector.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createExperience(params = {}, callback) ⇒ AWS.Request

Creates an Amazon Kendra experience such as a search application. For more information on creating a search application experience, including using the Python and Java SDKs, see Building a search experience with no code.

Service Reference:

Examples:

Calling the createExperience operation

var params = {
  IndexId: 'STRING_VALUE', /* required */
  Name: 'STRING_VALUE', /* required */
  ClientToken: 'STRING_VALUE',
  Configuration: {
    ContentSourceConfiguration: {
      DataSourceIds: [
        'STRING_VALUE',
        /* more items */
      ],
      DirectPutContent: true || false,
      FaqIds: [
        'STRING_VALUE',
        /* more items */
      ]
    },
    UserIdentityConfiguration: {
      IdentityAttributeName: 'STRING_VALUE'
    }
  },
  Description: 'STRING_VALUE',
  RoleArn: 'STRING_VALUE'
};
kendra.createExperience(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Name — (String)

      A name for your Amazon Kendra experience.

    • IndexId — (String)

      The identifier of the index for your Amazon Kendra experience.

    • RoleArn — (String)

      The Amazon Resource Name (ARN) of an IAM role with permission to access Query API, GetQuerySuggestions API, and other required APIs. The role also must include permission to access IAM Identity Center that stores your user and group information. For more information, see IAM access roles for Amazon Kendra.

    • Configuration — (map)

      Configuration information for your Amazon Kendra experience. This includes ContentSourceConfiguration, which specifies the data source IDs and/or FAQ IDs, and UserIdentityConfiguration, which specifies the user or group information to grant access to your Amazon Kendra experience.

      • ContentSourceConfiguration — (map)

        The identifiers of your data sources and FAQs. Or, you can specify that you want to use documents indexed via the BatchPutDocument API. This is the content you want to use for your Amazon Kendra experience.

        • DataSourceIds — (Array<String>)

          The identifier of the data sources you want to use for your Amazon Kendra experience.

        • FaqIds — (Array<String>)

          The identifier of the FAQs that you want to use for your Amazon Kendra experience.

        • DirectPutContent — (Boolean)

          TRUE to use documents you indexed directly using the BatchPutDocument API.

      • UserIdentityConfiguration — (map)

        The IAM Identity Center field name that contains the identifiers of your users, such as their emails.

        • IdentityAttributeName — (String)

          The IAM Identity Center field name that contains the identifiers of your users, such as their emails. This is used for user context filtering and for granting access to your Amazon Kendra experience. You must set up IAM Identity Center with Amazon Kendra. You must include your users and groups in your Access Control List when you ingest documents into your index. For more information, see Getting started with an IAM Identity Center identity source.

    • Description — (String)

      A description for your Amazon Kendra experience.

    • ClientToken — (String)

      A token that you provide to identify the request to create your Amazon Kendra experience. Multiple calls to the CreateExperience API with the same client token creates only one Amazon Kendra experience.

      If a token is not provided, the SDK will use a version 4 UUID.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Id — (String)

        The identifier of your Amazon Kendra experience.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createFaq(params = {}, callback) ⇒ AWS.Request

Creates a set of frequently ask questions (FAQs) using a specified FAQ file stored in an Amazon S3 bucket.

Adding FAQs to an index is an asynchronous operation.

For an example of adding an FAQ to an index using Python and Java SDKs, see Using your FAQ file.

Service Reference:

Examples:

Calling the createFaq operation

var params = {
  IndexId: 'STRING_VALUE', /* required */
  Name: 'STRING_VALUE', /* required */
  RoleArn: 'STRING_VALUE', /* required */
  S3Path: { /* required */
    Bucket: 'STRING_VALUE', /* required */
    Key: 'STRING_VALUE' /* required */
  },
  ClientToken: 'STRING_VALUE',
  Description: 'STRING_VALUE',
  FileFormat: CSV | CSV_WITH_HEADER | JSON,
  LanguageCode: 'STRING_VALUE',
  Tags: [
    {
      Key: 'STRING_VALUE', /* required */
      Value: 'STRING_VALUE' /* required */
    },
    /* more items */
  ]
};
kendra.createFaq(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • IndexId — (String)

      The identifier of the index for the FAQ.

    • Name — (String)

      A name for the FAQ.

    • Description — (String)

      A description for the FAQ.

    • S3Path — (map)

      The path to the FAQ file in S3.

      • Bucketrequired — (String)

        The name of the S3 bucket that contains the file.

      • Keyrequired — (String)

        The name of the file.

    • RoleArn — (String)

      The Amazon Resource Name (ARN) of an IAM role with permission to access the S3 bucket that contains the FAQs. For more information, see IAM access roles for Amazon Kendra.

    • Tags — (Array<map>)

      A list of key-value pairs that identify the FAQ. You can use the tags to identify and organize your resources and to control access to resources.

      • Keyrequired — (String)

        The key for the tag. Keys are not case sensitive and must be unique for the index, FAQ, or data source.

      • Valuerequired — (String)

        The value associated with the tag. The value may be an empty string but it can't be null.

    • FileFormat — (String)

      The format of the FAQ input file. You can choose between a basic CSV format, a CSV format that includes customs attributes in a header, and a JSON format that includes custom attributes.

      The default format is CSV.

      The format must match the format of the file stored in the S3 bucket identified in the S3Path parameter.

      For more information, see Adding questions and answers.

      Possible values include:
      • "CSV"
      • "CSV_WITH_HEADER"
      • "JSON"
    • ClientToken — (String)

      A token that you provide to identify the request to create a FAQ. Multiple calls to the CreateFaqRequest API with the same client token will create only one FAQ.

      If a token is not provided, the SDK will use a version 4 UUID.
    • LanguageCode — (String)

      The code for a language. This allows you to support a language for the FAQ document. English is supported by default. For more information on supported languages, including their codes, see Adding documents in languages other than English.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Id — (String)

        The identifier of the FAQ.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createFeaturedResultsSet(params = {}, callback) ⇒ AWS.Request

Creates a set of featured results to display at the top of the search results page. Featured results are placed above all other results for certain queries. You map specific queries to specific documents for featuring in the results. If a query contains an exact match, then one or more specific documents are featured in the search results.

You can create up to 50 sets of featured results per index. You can request to increase this limit by contacting Support.

Service Reference:

Examples:

Calling the createFeaturedResultsSet operation

var params = {
  FeaturedResultsSetName: 'STRING_VALUE', /* required */
  IndexId: 'STRING_VALUE', /* required */
  ClientToken: 'STRING_VALUE',
  Description: 'STRING_VALUE',
  FeaturedDocuments: [
    {
      Id: 'STRING_VALUE'
    },
    /* more items */
  ],
  QueryTexts: [
    'STRING_VALUE',
    /* more items */
  ],
  Status: ACTIVE | INACTIVE,
  Tags: [
    {
      Key: 'STRING_VALUE', /* required */
      Value: 'STRING_VALUE' /* required */
    },
    /* more items */
  ]
};
kendra.createFeaturedResultsSet(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • IndexId — (String)

      The identifier of the index that you want to use for featuring results.

    • FeaturedResultsSetName — (String)

      A name for the set of featured results.

    • Description — (String)

      A description for the set of featured results.

    • ClientToken — (String)

      A token that you provide to identify the request to create a set of featured results. Multiple calls to the CreateFeaturedResultsSet API with the same client token will create only one featured results set.

    • Status — (String)

      The current status of the set of featured results. When the value is ACTIVE, featured results are ready for use. You can still configure your settings before setting the status to ACTIVE. You can set the status to ACTIVE or INACTIVE using the UpdateFeaturedResultsSet API. The queries you specify for featured results must be unique per featured results set for each index, whether the status is ACTIVE or INACTIVE.

      Possible values include:
      • "ACTIVE"
      • "INACTIVE"
    • QueryTexts — (Array<String>)

      A list of queries for featuring results. For more information on the list of queries, see FeaturedResultsSet.

    • FeaturedDocuments — (Array<map>)

      A list of document IDs for the documents you want to feature at the top of the search results page. For more information on the list of documents, see FeaturedResultsSet.

      • Id — (String)

        The identifier of the document to feature in the search results. You can use the Query API to search for specific documents with their document IDs included in the result items, or you can use the console.

    • Tags — (Array<map>)

      A list of key-value pairs that identify or categorize the featured results set. You can also use tags to help control access to the featured results set. Tag keys and values can consist of Unicode letters, digits, white space, and any of the following symbols:_ . : / = + - @.

      • Keyrequired — (String)

        The key for the tag. Keys are not case sensitive and must be unique for the index, FAQ, or data source.

      • Valuerequired — (String)

        The value associated with the tag. The value may be an empty string but it can't be null.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • FeaturedResultsSet — (map)

        Information on the set of featured results. This includes the identifier of the featured results set, whether the featured results set is active or inactive, when the featured results set was created, and more.

        • FeaturedResultsSetId — (String)

          The identifier of the set of featured results.

        • FeaturedResultsSetName — (String)

          The name for the set of featured results.

        • Description — (String)

          The description for the set of featured results.

        • Status — (String)

          The current status of the set of featured results. When the value is ACTIVE, featured results are ready for use. You can still configure your settings before setting the status to ACTIVE. You can set the status to ACTIVE or INACTIVE using the UpdateFeaturedResultsSet API. The queries you specify for featured results must be unique per featured results set for each index, whether the status is ACTIVE or INACTIVE.

          Possible values include:
          • "ACTIVE"
          • "INACTIVE"
        • QueryTexts — (Array<String>)

          The list of queries for featuring results.

          Specific queries are mapped to specific documents for featuring in the results. If a query contains an exact match, then one or more specific documents are featured in the results. The exact match applies to the full query. For example, if you only specify 'Kendra', queries such as 'How does kendra semantically rank results?' will not render the featured results. Featured results are designed for specific queries, rather than queries that are too broad in scope.

        • FeaturedDocuments — (Array<map>)

          The list of document IDs for the documents you want to feature at the top of the search results page. You can use the Query API to search for specific documents with their document IDs included in the result items, or you can use the console.

          You can add up to four featured documents. You can request to increase this limit by contacting Support.

          Specific queries are mapped to specific documents for featuring in the results. If a query contains an exact match, then one or more specific documents are featured in the results. The exact match applies to the full query. For example, if you only specify 'Kendra', queries such as 'How does kendra semantically rank results?' will not render the featured results. Featured results are designed for specific queries, rather than queries that are too broad in scope.

          • Id — (String)

            The identifier of the document to feature in the search results. You can use the Query API to search for specific documents with their document IDs included in the result items, or you can use the console.

        • LastUpdatedTimestamp — (Integer)

          The Unix timestamp when the set of featured results was last updated.

        • CreationTimestamp — (Integer)

          The Unix timestamp when the set of featured results was created.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createIndex(params = {}, callback) ⇒ AWS.Request

Creates an Amazon Kendra index. Index creation is an asynchronous API. To determine if index creation has completed, check the Status field returned from a call to DescribeIndex. The Status field is set to ACTIVE when the index is ready to use.

Once the index is active, you can index your documents using the BatchPutDocument API or using one of the supported data sources.

For an example of creating an index and data source using the Python SDK, see Getting started with Python SDK. For an example of creating an index and data source using the Java SDK, see Getting started with Java SDK.

Service Reference:

Examples:

Calling the createIndex operation

var params = {
  Name: 'STRING_VALUE', /* required */
  RoleArn: 'STRING_VALUE', /* required */
  ClientToken: 'STRING_VALUE',
  Description: 'STRING_VALUE',
  Edition: DEVELOPER_EDITION | ENTERPRISE_EDITION,
  ServerSideEncryptionConfiguration: {
    KmsKeyId: 'STRING_VALUE'
  },
  Tags: [
    {
      Key: 'STRING_VALUE', /* required */
      Value: 'STRING_VALUE' /* required */
    },
    /* more items */
  ],
  UserContextPolicy: ATTRIBUTE_FILTER | USER_TOKEN,
  UserGroupResolutionConfiguration: {
    UserGroupResolutionMode: AWS_SSO | NONE /* required */
  },
  UserTokenConfigurations: [
    {
      JsonTokenTypeConfiguration: {
        GroupAttributeField: 'STRING_VALUE', /* required */
        UserNameAttributeField: 'STRING_VALUE' /* required */
      },
      JwtTokenTypeConfiguration: {
        KeyLocation: URL | SECRET_MANAGER, /* required */
        ClaimRegex: 'STRING_VALUE',
        GroupAttributeField: 'STRING_VALUE',
        Issuer: 'STRING_VALUE',
        SecretManagerArn: 'STRING_VALUE',
        URL: 'STRING_VALUE',
        UserNameAttributeField: 'STRING_VALUE'
      }
    },
    /* more items */
  ]
};
kendra.createIndex(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Name — (String)

      A name for the index.

    • Edition — (String)

      The Amazon Kendra edition to use for the index. Choose DEVELOPER_EDITION for indexes intended for development, testing, or proof of concept. Use ENTERPRISE_EDITION for production. Once you set the edition for an index, it can't be changed.

      The Edition parameter is optional. If you don't supply a value, the default is ENTERPRISE_EDITION.

      For more information on quota limits for Enterprise and Developer editions, see Quotas.

      Possible values include:
      • "DEVELOPER_EDITION"
      • "ENTERPRISE_EDITION"
    • RoleArn — (String)

      The Amazon Resource Name (ARN) of an IAM role with permission to access your Amazon CloudWatch logs and metrics. For more information, see IAM access roles for Amazon Kendra.

    • ServerSideEncryptionConfiguration — (map)

      The identifier of the KMS customer managed key (CMK) that's used to encrypt data indexed by Amazon Kendra. Amazon Kendra doesn't support asymmetric CMKs.

      • KmsKeyId — (String)

        The identifier of the KMS key. Amazon Kendra doesn't support asymmetric keys.

    • Description — (String)

      A description for the index.

    • ClientToken — (String)

      A token that you provide to identify the request to create an index. Multiple calls to the CreateIndex API with the same client token will create only one index.

      If a token is not provided, the SDK will use a version 4 UUID.
    • Tags — (Array<map>)

      A list of key-value pairs that identify or categorize the index. You can also use tags to help control access to the index. Tag keys and values can consist of Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @.

      • Keyrequired — (String)

        The key for the tag. Keys are not case sensitive and must be unique for the index, FAQ, or data source.

      • Valuerequired — (String)

        The value associated with the tag. The value may be an empty string but it can't be null.

    • UserTokenConfigurations — (Array<map>)

      The user token configuration.

      • JwtTokenTypeConfiguration — (map)

        Information about the JWT token type configuration.

        • KeyLocationrequired — (String)

          The location of the key.

          Possible values include:
          • "URL"
          • "SECRET_MANAGER"
        • URL — (String)

          The signing key URL.

        • SecretManagerArn — (String)

          The Amazon Resource Name (arn) of the secret.

        • UserNameAttributeField — (String)

          The user name attribute field.

        • GroupAttributeField — (String)

          The group attribute field.

        • Issuer — (String)

          The issuer of the token.

        • ClaimRegex — (String)

          The regular expression that identifies the claim.

      • JsonTokenTypeConfiguration — (map)

        Information about the JSON token type configuration.

        • UserNameAttributeFieldrequired — (String)

          The user name attribute field.

        • GroupAttributeFieldrequired — (String)

          The group attribute field.

    • UserContextPolicy — (String)

      The user context policy.

      ATTRIBUTE_FILTER

      All indexed content is searchable and displayable for all users. If you want to filter search results on user context, you can use the attribute filters of _user_id and _group_ids or you can provide user and group information in UserContext.

      USER_TOKEN

      Enables token-based user access control to filter search results on user context. All documents with no access control and all documents accessible to the user will be searchable and displayable.

      Possible values include:
      • "ATTRIBUTE_FILTER"
      • "USER_TOKEN"
    • UserGroupResolutionConfiguration — (map)

      Gets users and groups from IAM Identity Center identity source. To configure this, see UserGroupResolutionConfiguration. This is useful for user context filtering, where search results are filtered based on the user or their group access to documents.

      • UserGroupResolutionModerequired — (String)

        The identity store provider (mode) you want to use to get users and groups. IAM Identity Center is currently the only available mode. Your users and groups must exist in an IAM Identity Center identity source in order to use this mode.

        Possible values include:
        • "AWS_SSO"
        • "NONE"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Id — (String)

        The identifier of the index. Use this identifier when you query an index, set up a data source, or index a document.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createQuerySuggestionsBlockList(params = {}, callback) ⇒ AWS.Request

Creates a block list to exlcude certain queries from suggestions.

Any query that contains words or phrases specified in the block list is blocked or filtered out from being shown as a suggestion.

You need to provide the file location of your block list text file in your S3 bucket. In your text file, enter each block word or phrase on a separate line.

For information on the current quota limits for block lists, see Quotas for Amazon Kendra.

CreateQuerySuggestionsBlockList is currently not supported in the Amazon Web Services GovCloud (US-West) region.

For an example of creating a block list for query suggestions using the Python SDK, see Query suggestions block list.

Service Reference:

Examples:

Calling the createQuerySuggestionsBlockList operation

var params = {
  IndexId: 'STRING_VALUE', /* required */
  Name: 'STRING_VALUE', /* required */
  RoleArn: 'STRING_VALUE', /* required */
  SourceS3Path: { /* required */
    Bucket: 'STRING_VALUE', /* required */
    Key: 'STRING_VALUE' /* required */
  },
  ClientToken: 'STRING_VALUE',
  Description: 'STRING_VALUE',
  Tags: [
    {
      Key: 'STRING_VALUE', /* required */
      Value: 'STRING_VALUE' /* required */
    },
    /* more items */
  ]
};
kendra.createQuerySuggestionsBlockList(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • IndexId — (String)

      The identifier of the index you want to create a query suggestions block list for.

    • Name — (String)

      A name for the block list.

      For example, the name 'offensive-words', which includes all offensive words that could appear in user queries and need to be blocked from suggestions.

    • Description — (String)

      A description for the block list.

      For example, the description "List of all offensive words that can appear in user queries and need to be blocked from suggestions."

    • SourceS3Path — (map)

      The S3 path to your block list text file in your S3 bucket.

      Each block word or phrase should be on a separate line in a text file.

      For information on the current quota limits for block lists, see Quotas for Amazon Kendra.

      • Bucketrequired — (String)

        The name of the S3 bucket that contains the file.

      • Keyrequired — (String)

        The name of the file.

    • ClientToken — (String)

      A token that you provide to identify the request to create a query suggestions block list.

      If a token is not provided, the SDK will use a version 4 UUID.
    • RoleArn — (String)

      The Amazon Resource Name (ARN) of an IAM role with permission to access your S3 bucket that contains the block list text file. For more information, see IAM access roles for Amazon Kendra.

    • Tags — (Array<map>)

      A list of key-value pairs that identify or categorize the block list. Tag keys and values can consist of Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @.

      • Keyrequired — (String)

        The key for the tag. Keys are not case sensitive and must be unique for the index, FAQ, or data source.

      • Valuerequired — (String)

        The value associated with the tag. The value may be an empty string but it can't be null.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Id — (String)

        The identifier of the block list.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createThesaurus(params = {}, callback) ⇒ AWS.Request

Creates a thesaurus for an index. The thesaurus contains a list of synonyms in Solr format.

For an example of adding a thesaurus file to an index, see Adding custom synonyms to an index.

Service Reference:

Examples:

Calling the createThesaurus operation

var params = {
  IndexId: 'STRING_VALUE', /* required */
  Name: 'STRING_VALUE', /* required */
  RoleArn: 'STRING_VALUE', /* required */
  SourceS3Path: { /* required */
    Bucket: 'STRING_VALUE', /* required */
    Key: 'STRING_VALUE' /* required */
  },
  ClientToken: 'STRING_VALUE',
  Description: 'STRING_VALUE',
  Tags: [
    {
      Key: 'STRING_VALUE', /* required */
      Value: 'STRING_VALUE' /* required */
    },
    /* more items */
  ]
};
kendra.createThesaurus(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • IndexId — (String)

      The identifier of the index for the thesaurus.

    • Name — (String)

      A name for the thesaurus.

    • Description — (String)

      A description for the thesaurus.

    • RoleArn — (String)

      The Amazon Resource Name (ARN) of an IAM role with permission to access your S3 bucket that contains the thesaurus file. For more information, see IAM access roles for Amazon Kendra.

    • Tags — (Array<map>)

      A list of key-value pairs that identify or categorize the thesaurus. You can also use tags to help control access to the thesaurus. Tag keys and values can consist of Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @.

      • Keyrequired — (String)

        The key for the tag. Keys are not case sensitive and must be unique for the index, FAQ, or data source.

      • Valuerequired — (String)

        The value associated with the tag. The value may be an empty string but it can't be null.

    • SourceS3Path — (map)

      The path to the thesaurus file in S3.

      • Bucketrequired — (String)

        The name of the S3 bucket that contains the file.

      • Keyrequired — (String)

        The name of the file.

    • ClientToken — (String)

      A token that you provide to identify the request to create a thesaurus. Multiple calls to the CreateThesaurus API with the same client token will create only one thesaurus.

      If a token is not provided, the SDK will use a version 4 UUID.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Id — (String)

        The identifier of the thesaurus.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteAccessControlConfiguration(params = {}, callback) ⇒ AWS.Request

Deletes an access control configuration that you created for your documents in an index. This includes user and group access information for your documents. This is useful for user context filtering, where search results are filtered based on the user or their group access to documents.

Examples:

Calling the deleteAccessControlConfiguration operation

var params = {
  Id: 'STRING_VALUE', /* required */
  IndexId: 'STRING_VALUE' /* required */
};
kendra.deleteAccessControlConfiguration(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • IndexId — (String)

      The identifier of the index for an access control configuration.

    • Id — (String)

      The identifier of the access control configuration you want to delete.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteDataSource(params = {}, callback) ⇒ AWS.Request

Deletes an Amazon Kendra data source connector. An exception is not thrown if the data source is already being deleted. While the data source is being deleted, the Status field returned by a call to the DescribeDataSource API is set to DELETING. For more information, see Deleting Data Sources.

Deleting an entire data source or re-syncing your index after deleting specific documents from a data source could take up to an hour or more, depending on the number of documents you want to delete.

Service Reference:

Examples:

Calling the deleteDataSource operation

var params = {
  Id: 'STRING_VALUE', /* required */
  IndexId: 'STRING_VALUE' /* required */
};
kendra.deleteDataSource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Id — (String)

      The identifier of the data source connector you want to delete.

    • IndexId — (String)

      The identifier of the index used with the data source connector.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteExperience(params = {}, callback) ⇒ AWS.Request

Deletes your Amazon Kendra experience such as a search application. For more information on creating a search application experience, see Building a search experience with no code.

Service Reference:

Examples:

Calling the deleteExperience operation

var params = {
  Id: 'STRING_VALUE', /* required */
  IndexId: 'STRING_VALUE' /* required */
};
kendra.deleteExperience(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Id — (String)

      The identifier of your Amazon Kendra experience you want to delete.

    • IndexId — (String)

      The identifier of the index for your Amazon Kendra experience.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteFaq(params = {}, callback) ⇒ AWS.Request

Removes an FAQ from an index.

Service Reference:

Examples:

Calling the deleteFaq operation

var params = {
  Id: 'STRING_VALUE', /* required */
  IndexId: 'STRING_VALUE' /* required */
};
kendra.deleteFaq(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Id — (String)

      The identifier of the FAQ you want to remove.

    • IndexId — (String)

      The identifier of the index for the FAQ.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteIndex(params = {}, callback) ⇒ AWS.Request

Deletes an Amazon Kendra index. An exception is not thrown if the index is already being deleted. While the index is being deleted, the Status field returned by a call to the DescribeIndex API is set to DELETING.

Service Reference:

Examples:

Calling the deleteIndex operation

var params = {
  Id: 'STRING_VALUE' /* required */
};
kendra.deleteIndex(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Id — (String)

      The identifier of the index you want to delete.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deletePrincipalMapping(params = {}, callback) ⇒ AWS.Request

Deletes a group so that all users and sub groups that belong to the group can no longer access documents only available to that group.

For example, after deleting the group "Summer Interns", all interns who belonged to that group no longer see intern-only documents in their search results.

If you want to delete or replace users or sub groups of a group, you need to use the PutPrincipalMapping operation. For example, if a user in the group "Engineering" leaves the engineering team and another user takes their place, you provide an updated list of users or sub groups that belong to the "Engineering" group when calling PutPrincipalMapping. You can update your internal list of users or sub groups and input this list when calling PutPrincipalMapping.

DeletePrincipalMapping is currently not supported in the Amazon Web Services GovCloud (US-West) region.

Service Reference:

Examples:

Calling the deletePrincipalMapping operation

var params = {
  GroupId: 'STRING_VALUE', /* required */
  IndexId: 'STRING_VALUE', /* required */
  DataSourceId: 'STRING_VALUE',
  OrderingId: 'NUMBER_VALUE'
};
kendra.deletePrincipalMapping(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • IndexId — (String)

      The identifier of the index you want to delete a group from.

    • DataSourceId — (String)

      The identifier of the data source you want to delete a group from.

      A group can be tied to multiple data sources. You can delete a group from accessing documents in a certain data source. For example, the groups "Research", "Engineering", and "Sales and Marketing" are all tied to the company's documents stored in the data sources Confluence and Salesforce. You want to delete "Research" and "Engineering" groups from Salesforce, so that these groups cannot access customer-related documents stored in Salesforce. Only "Sales and Marketing" should access documents in the Salesforce data source.

    • GroupId — (String)

      The identifier of the group you want to delete.

    • OrderingId — (Integer)

      The timestamp identifier you specify to ensure Amazon Kendra does not override the latest DELETE action with previous actions. The highest number ID, which is the ordering ID, is the latest action you want to process and apply on top of other actions with lower number IDs. This prevents previous actions with lower number IDs from possibly overriding the latest action.

      The ordering ID can be the Unix time of the last update you made to a group members list. You would then provide this list when calling PutPrincipalMapping. This ensures your DELETE action for that updated group with the latest members list doesn't get overwritten by earlier DELETE actions for the same group which are yet to be processed.

      The default ordering ID is the current Unix time in milliseconds that the action was received by Amazon Kendra.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteQuerySuggestionsBlockList(params = {}, callback) ⇒ AWS.Request

Deletes a block list used for query suggestions for an index.

A deleted block list might not take effect right away. Amazon Kendra needs to refresh the entire suggestions list to add back the queries that were previously blocked.

DeleteQuerySuggestionsBlockList is currently not supported in the Amazon Web Services GovCloud (US-West) region.

Service Reference:

Examples:

Calling the deleteQuerySuggestionsBlockList operation

var params = {
  Id: 'STRING_VALUE', /* required */
  IndexId: 'STRING_VALUE' /* required */
};
kendra.deleteQuerySuggestionsBlockList(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • IndexId — (String)

      The identifier of the index for the block list.

    • Id — (String)

      The identifier of the block list you want to delete.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteThesaurus(params = {}, callback) ⇒ AWS.Request

Deletes an Amazon Kendra thesaurus.

Service Reference:

Examples:

Calling the deleteThesaurus operation

var params = {
  Id: 'STRING_VALUE', /* required */
  IndexId: 'STRING_VALUE' /* required */
};
kendra.deleteThesaurus(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Id — (String)

      The identifier of the thesaurus you want to delete.

    • IndexId — (String)

      The identifier of the index for the thesaurus.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeAccessControlConfiguration(params = {}, callback) ⇒ AWS.Request

Gets information about an access control configuration that you created for your documents in an index. This includes user and group access information for your documents. This is useful for user context filtering, where search results are filtered based on the user or their group access to documents.

Examples:

Calling the describeAccessControlConfiguration operation

var params = {
  Id: 'STRING_VALUE', /* required */
  IndexId: 'STRING_VALUE' /* required */
};
kendra.describeAccessControlConfiguration(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • IndexId — (String)

      The identifier of the index for an access control configuration.

    • Id — (String)

      The identifier of the access control configuration you want to get information on.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Name — (String)

        The name for the access control configuration.

      • Description — (String)

        The description for the access control configuration.

      • ErrorMessage — (String)

        The error message containing details if there are issues processing the access control configuration.

      • AccessControlList — (Array<map>)

        Information on principals (users and/or groups) and which documents they should have access to. This is useful for user context filtering, where search results are filtered based on the user or their group access to documents.

        • Namerequired — (String)

          The name of the user or group.

        • Typerequired — (String)

          The type of principal.

          Possible values include:
          • "USER"
          • "GROUP"
        • Accessrequired — (String)

          Whether to allow or deny document access to the principal.

          Possible values include:
          • "ALLOW"
          • "DENY"
        • DataSourceId — (String)

          The identifier of the data source the principal should access documents from.

      • HierarchicalAccessControlList — (Array<map>)

        The list of principal lists that define the hierarchy for which documents users should have access to.

        • PrincipalListrequired — (Array<map>)

          A list of principal lists that define the hierarchy for which documents users should have access to. Each hierarchical list specifies which user or group has allow or deny access for each document.

          • Namerequired — (String)

            The name of the user or group.

          • Typerequired — (String)

            The type of principal.

            Possible values include:
            • "USER"
            • "GROUP"
          • Accessrequired — (String)

            Whether to allow or deny document access to the principal.

            Possible values include:
            • "ALLOW"
            • "DENY"
          • DataSourceId — (String)

            The identifier of the data source the principal should access documents from.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeDataSource(params = {}, callback) ⇒ AWS.Request

Gets information about an Amazon Kendra data source connector.

Service Reference:

Examples:

Calling the describeDataSource operation

var params = {
  Id: 'STRING_VALUE', /* required */
  IndexId: 'STRING_VALUE' /* required */
};
kendra.describeDataSource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Id — (String)

      The identifier of the data source connector.

    • IndexId — (String)

      The identifier of the index used with the data source connector.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Id — (String)

        The identifier of the data source connector.

      • IndexId — (String)

        The identifier of the index used with the data source connector.

      • Name — (String)

        The name for the data source connector.

      • Type — (String)

        The type of the data source. For example, SHAREPOINT.

        Possible values include:
        • "S3"
        • "SHAREPOINT"
        • "DATABASE"
        • "SALESFORCE"
        • "ONEDRIVE"
        • "SERVICENOW"
        • "CUSTOM"
        • "CONFLUENCE"
        • "GOOGLEDRIVE"
        • "WEBCRAWLER"
        • "WORKDOCS"
        • "FSX"
        • "SLACK"
        • "BOX"
        • "QUIP"
        • "JIRA"
        • "GITHUB"
        • "ALFRESCO"
        • "TEMPLATE"
      • Configuration — (map)

        Configuration details for the data source connector. This shows how the data source is configured. The configuration options for a data source depend on the data source provider.

        • S3Configuration — (map)

          Provides the configuration information to connect to an Amazon S3 bucket as your data source.

          Note: Amazon Kendra now supports an upgraded Amazon S3 connector. You must now use the TemplateConfiguration object instead of the S3DataSourceConfiguration object to configure your connector. Connectors configured using the older console and API architecture will continue to function as configured. However, you won't be able to edit or update them. If you want to edit or update your connector configuration, you must create a new connector. We recommended migrating your connector workflow to the upgraded version. Support for connectors configured using the older architecture is scheduled to end by June 2024.
          • BucketNamerequired — (String)

            The name of the bucket that contains the documents.

          • InclusionPrefixes — (Array<String>)

            A list of S3 prefixes for the documents that should be included in the index.

          • InclusionPatterns — (Array<String>)

            A list of glob patterns (patterns that can expand a wildcard pattern into a list of path names that match the given pattern) for certain file names and file types to include in your index. If a document matches both an inclusion and exclusion prefix or pattern, the exclusion prefix takes precendence and the document is not indexed. Examples of glob patterns include:

            • /myapp/config/—All files inside config directory.

            • **/.png—All .png files in all directories.

            • /*.ico, md—All .png, .ico or .md files in all directories.

            • /myapp/src//.ts—All .ts files inside src directory (and all its subdirectories).

            • **/!(.module).ts—All .ts files but not .module.ts

            • .png , .jpg—All PNG and JPEG image files in a directory (files with the extensions .png and .jpg).

            • internal—All files in a directory that contain 'internal' in the file name, such as 'internal', 'internal_only', 'company_internal'.

            • /internal—All internal-related files in a directory and its subdirectories.

            For more examples, see Use of Exclude and Include Filters in the Amazon Web Services CLI Command Reference.

          • ExclusionPatterns — (Array<String>)

            A list of glob patterns (patterns that can expand a wildcard pattern into a list of path names that match the given pattern) for certain file names and file types to exclude from your index. If a document matches both an inclusion and exclusion prefix or pattern, the exclusion prefix takes precendence and the document is not indexed. Examples of glob patterns include:

            • /myapp/config/—All files inside config directory.

            • **/.png—All .png files in all directories.

            • /*.ico, md—All .png, .ico or .md files in all directories.

            • /myapp/src//.ts—All .ts files inside src directory (and all its subdirectories).

            • **/!(.module).ts—All .ts files but not .module.ts

            • .png , .jpg—All PNG and JPEG image files in a directory (files with the extensions .png and .jpg).

            • internal—All files in a directory that contain 'internal' in the file name, such as 'internal', 'internal_only', 'company_internal'.

            • /internal—All internal-related files in a directory and its subdirectories.

            For more examples, see Use of Exclude and Include Filters in the Amazon Web Services CLI Command Reference.

          • DocumentsMetadataConfiguration — (map)

            Document metadata files that contain information such as the document access control information, source URI, document author, and custom attributes. Each metadata file contains metadata about a single document.

            • S3Prefix — (String)

              A prefix used to filter metadata configuration files in the Amazon Web Services S3 bucket. The S3 bucket might contain multiple metadata files. Use S3Prefix to include only the desired metadata files.

          • AccessControlListConfiguration — (map)

            Provides the path to the S3 bucket that contains the user context filtering files for the data source. For the format of the file, see Access control for S3 data sources.

            • KeyPath — (String)

              Path to the Amazon S3 bucket that contains the ACL files.

        • SharePointConfiguration — (map)

          Provides the configuration information to connect to Microsoft SharePoint as your data source.

          • SharePointVersionrequired — (String)

            The version of Microsoft SharePoint that you use.

            Possible values include:
            • "SHAREPOINT_2013"
            • "SHAREPOINT_2016"
            • "SHAREPOINT_ONLINE"
            • "SHAREPOINT_2019"
          • Urlsrequired — (Array<String>)

            The Microsoft SharePoint site URLs for the documents you want to index.

          • SecretArnrequired — (String)

            The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the user name and password required to connect to the SharePoint instance. For more information, see Microsoft SharePoint.

          • CrawlAttachments — (Boolean)

            TRUE to index document attachments.

          • UseChangeLog — (Boolean)

            TRUE to use the SharePoint change log to determine which documents require updating in the index. Depending on the change log's size, it may take longer for Amazon Kendra to use the change log than to scan all of your documents in SharePoint.

          • InclusionPatterns — (Array<String>)

            A list of regular expression patterns to include certain documents in your SharePoint. Documents that match the patterns are included in the index. Documents that don't match the patterns are excluded from the index. If a document matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the document isn't included in the index.

            The regex applies to the display URL of the SharePoint document.

          • ExclusionPatterns — (Array<String>)

            A list of regular expression patterns to exclude certain documents in your SharePoint. Documents that match the patterns are excluded from the index. Documents that don't match the patterns are included in the index. If a document matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the document isn't included in the index.

            The regex applies to the display URL of the SharePoint document.

          • VpcConfiguration — (map)

            Configuration information for an Amazon Virtual Private Cloud to connect to your Microsoft SharePoint. For more information, see Configuring a VPC.

            • SubnetIdsrequired — (Array<String>)

              A list of identifiers for subnets within your Amazon VPC. The subnets should be able to connect to each other in the VPC, and they should have outgoing access to the Internet through a NAT device.

            • SecurityGroupIdsrequired — (Array<String>)

              A list of identifiers of security groups within your Amazon VPC. The security groups should enable Amazon Kendra to connect to the data source.

          • FieldMappings — (Array<map>)

            A list of DataSourceToIndexFieldMapping objects that map SharePoint data source attributes or field names to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to SharePoint fields. For more information, see Mapping data source fields. The SharePoint data source field names must exist in your SharePoint custom metadata.

            • DataSourceFieldNamerequired — (String)

              The name of the field in the data source. You must first create the index field using the UpdateIndex API.

            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldNamerequired — (String)

              The name of the index field to map to the data source field. The index field type must match the data source field type.

          • DocumentTitleFieldName — (String)

            The Microsoft SharePoint attribute field that contains the title of the document.

          • DisableLocalGroups — (Boolean)

            TRUE to disable local groups information.

          • SslCertificateS3Path — (map)

            The path to the SSL certificate stored in an Amazon S3 bucket. You use this to connect to SharePoint Server if you require a secure SSL connection.

            You can generate a self-signed X509 certificate on any computer using OpenSSL. For an example of using OpenSSL to create an X509 certificate, see Create and sign an X509 certificate.

            • Bucketrequired — (String)

              The name of the S3 bucket that contains the file.

            • Keyrequired — (String)

              The name of the file.

          • AuthenticationType — (String)

            Whether you want to connect to SharePoint Online using basic authentication of user name and password, or OAuth authentication of user name, password, client ID, and client secret, or AD App-only authentication of client secret.

            Possible values include:
            • "HTTP_BASIC"
            • "OAUTH2"
          • ProxyConfiguration — (map)

            Configuration information to connect to your Microsoft SharePoint site URLs via instance via a web proxy. You can use this option for SharePoint Server.

            You must provide the website host name and port number. For example, the host name of https://a.example.com/page1.html is "a.example.com" and the port is 443, the standard port for HTTPS.

            Web proxy credentials are optional and you can use them to connect to a web proxy server that requires basic authentication of user name and password. To store web proxy credentials, you use a secret in Secrets Manager.

            It is recommended that you follow best security practices when configuring your web proxy. This includes setting up throttling, setting up logging and monitoring, and applying security patches on a regular basis. If you use your web proxy with multiple data sources, sync jobs that occur at the same time could strain the load on your proxy. It is recommended you prepare your proxy beforehand for any security and load requirements.

            • Hostrequired — (String)

              The name of the website host you want to connect to via a web proxy server.

              For example, the host name of https://a.example.com/page1.html is "a.example.com".

            • Portrequired — (Integer)

              The port number of the website host you want to connect to via a web proxy server.

              For example, the port for https://a.example.com/page1.html is 443, the standard port for HTTPS.

            • Credentials — (String)

              Your secret ARN, which you can create in Secrets Manager

              The credentials are optional. You use a secret if web proxy credentials are required to connect to a website host. Amazon Kendra currently support basic authentication to connect to a web proxy server. The secret stores your credentials.

        • DatabaseConfiguration — (map)

          Provides the configuration information to connect to a database as your data source.

          • DatabaseEngineTyperequired — (String)

            The type of database engine that runs the database.

            Possible values include:
            • "RDS_AURORA_MYSQL"
            • "RDS_AURORA_POSTGRESQL"
            • "RDS_MYSQL"
            • "RDS_POSTGRESQL"
          • ConnectionConfigurationrequired — (map)

            Configuration information that's required to connect to a database.

            • DatabaseHostrequired — (String)

              The name of the host for the database. Can be either a string (host.subdomain.domain.tld) or an IPv4 or IPv6 address.

            • DatabasePortrequired — (Integer)

              The port that the database uses for connections.

            • DatabaseNamerequired — (String)

              The name of the database containing the document data.

            • TableNamerequired — (String)

              The name of the table that contains the document data.

            • SecretArnrequired — (String)

              The Amazon Resource Name (ARN) of credentials stored in Secrets Manager. The credentials should be a user/password pair. For more information, see Using a Database Data Source. For more information about Secrets Manager, see What Is Secrets Manager in the Secrets Manager user guide.

          • VpcConfiguration — (map)

            Provides the configuration information to connect to an Amazon VPC.

            • SubnetIdsrequired — (Array<String>)

              A list of identifiers for subnets within your Amazon VPC. The subnets should be able to connect to each other in the VPC, and they should have outgoing access to the Internet through a NAT device.

            • SecurityGroupIdsrequired — (Array<String>)

              A list of identifiers of security groups within your Amazon VPC. The security groups should enable Amazon Kendra to connect to the data source.

          • ColumnConfigurationrequired — (map)

            Information about where the index should get the document information from the database.

            • DocumentIdColumnNamerequired — (String)

              The column that provides the document's identifier.

            • DocumentDataColumnNamerequired — (String)

              The column that contains the contents of the document.

            • DocumentTitleColumnName — (String)

              The column that contains the title of the document.

            • FieldMappings — (Array<map>)

              An array of objects that map database column names to the corresponding fields in an index. You must first create the fields in the index using the UpdateIndex API.

              • DataSourceFieldNamerequired — (String)

                The name of the field in the data source. You must first create the index field using the UpdateIndex API.

              • DateFieldFormat — (String)

                The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

              • IndexFieldNamerequired — (String)

                The name of the index field to map to the data source field. The index field type must match the data source field type.

            • ChangeDetectingColumnsrequired — (Array<String>)

              One to five columns that indicate when a document in the database has changed.

          • AclConfiguration — (map)

            Information about the database column that provides information for user context filtering.

            • AllowedGroupsColumnNamerequired — (String)

              A list of groups, separated by semi-colons, that filters a query response based on user context. The document is only returned to users that are in one of the groups specified in the UserContext field of the Query API.

          • SqlConfiguration — (map)

            Provides information about how Amazon Kendra uses quote marks around SQL identifiers when querying a database data source.

            • QueryIdentifiersEnclosingOption — (String)

              Determines whether Amazon Kendra encloses SQL identifiers for tables and column names in double quotes (") when making a database query.

              By default, Amazon Kendra passes SQL identifiers the way that they are entered into the data source configuration. It does not change the case of identifiers or enclose them in quotes.

              PostgreSQL internally converts uppercase characters to lower case characters in identifiers unless they are quoted. Choosing this option encloses identifiers in quotes so that PostgreSQL does not convert the character's case.

              For MySQL databases, you must enable the ansi_quotes option when you set this field to DOUBLE_QUOTES.

              Possible values include:
              • "DOUBLE_QUOTES"
              • "NONE"
        • SalesforceConfiguration — (map)

          Provides the configuration information to connect to Salesforce as your data source.

          • ServerUrlrequired — (String)

            The instance URL for the Salesforce site that you want to index.

          • SecretArnrequired — (String)

            The Amazon Resource Name (ARN) of an Secrets Managersecret that contains the key/value pairs required to connect to your Salesforce instance. The secret must contain a JSON structure with the following keys:

            • authenticationUrl - The OAUTH endpoint that Amazon Kendra connects to get an OAUTH token.

            • consumerKey - The application public key generated when you created your Salesforce application.

            • consumerSecret - The application private key generated when you created your Salesforce application.

            • password - The password associated with the user logging in to the Salesforce instance.

            • securityToken - The token associated with the user logging in to the Salesforce instance.

            • username - The user name of the user logging in to the Salesforce instance.

          • StandardObjectConfigurations — (Array<map>)

            Configuration of the Salesforce standard objects that Amazon Kendra indexes.

            • Namerequired — (String)

              The name of the standard object.

              Possible values include:
              • "ACCOUNT"
              • "CAMPAIGN"
              • "CASE"
              • "CONTACT"
              • "CONTRACT"
              • "DOCUMENT"
              • "GROUP"
              • "IDEA"
              • "LEAD"
              • "OPPORTUNITY"
              • "PARTNER"
              • "PRICEBOOK"
              • "PRODUCT"
              • "PROFILE"
              • "SOLUTION"
              • "TASK"
              • "USER"
            • DocumentDataFieldNamerequired — (String)

              The name of the field in the standard object table that contains the document contents.

            • DocumentTitleFieldName — (String)

              The name of the field in the standard object table that contains the document title.

            • FieldMappings — (Array<map>)

              Maps attributes or field names of the standard object to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Salesforce fields. For more information, see Mapping data source fields. The Salesforce data source field names must exist in your Salesforce custom metadata.

              • DataSourceFieldNamerequired — (String)

                The name of the field in the data source. You must first create the index field using the UpdateIndex API.

              • DateFieldFormat — (String)

                The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

              • IndexFieldNamerequired — (String)

                The name of the index field to map to the data source field. The index field type must match the data source field type.

          • KnowledgeArticleConfiguration — (map)

            Configuration information for the knowledge article types that Amazon Kendra indexes. Amazon Kendra indexes standard knowledge articles and the standard fields of knowledge articles, or the custom fields of custom knowledge articles, but not both.

            • IncludedStatesrequired — (Array<String>)

              Specifies the document states that should be included when Amazon Kendra indexes knowledge articles. You must specify at least one state.

            • StandardKnowledgeArticleTypeConfiguration — (map)

              Configuration information for standard Salesforce knowledge articles.

              • DocumentDataFieldNamerequired — (String)

                The name of the field that contains the document data to index.

              • DocumentTitleFieldName — (String)

                The name of the field that contains the document title.

              • FieldMappings — (Array<map>)

                Maps attributes or field names of the knowledge article to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Salesforce fields. For more information, see Mapping data source fields. The Salesforce data source field names must exist in your Salesforce custom metadata.

                • DataSourceFieldNamerequired — (String)

                  The name of the field in the data source. You must first create the index field using the UpdateIndex API.

                • DateFieldFormat — (String)

                  The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

                • IndexFieldNamerequired — (String)

                  The name of the index field to map to the data source field. The index field type must match the data source field type.

            • CustomKnowledgeArticleTypeConfigurations — (Array<map>)

              Configuration information for custom Salesforce knowledge articles.

              • Namerequired — (String)

                The name of the configuration.

              • DocumentDataFieldNamerequired — (String)

                The name of the field in the custom knowledge article that contains the document data to index.

              • DocumentTitleFieldName — (String)

                The name of the field in the custom knowledge article that contains the document title.

              • FieldMappings — (Array<map>)

                Maps attributes or field names of the custom knowledge article to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Salesforce fields. For more information, see Mapping data source fields. The Salesforce data source field names must exist in your Salesforce custom metadata.

                • DataSourceFieldNamerequired — (String)

                  The name of the field in the data source. You must first create the index field using the UpdateIndex API.

                • DateFieldFormat — (String)

                  The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

                • IndexFieldNamerequired — (String)

                  The name of the index field to map to the data source field. The index field type must match the data source field type.

          • ChatterFeedConfiguration — (map)

            Configuration information for Salesforce chatter feeds.

            • DocumentDataFieldNamerequired — (String)

              The name of the column in the Salesforce FeedItem table that contains the content to index. Typically this is the Body column.

            • DocumentTitleFieldName — (String)

              The name of the column in the Salesforce FeedItem table that contains the title of the document. This is typically the Title column.

            • FieldMappings — (Array<map>)

              Maps fields from a Salesforce chatter feed into Amazon Kendra index fields.

              • DataSourceFieldNamerequired — (String)

                The name of the field in the data source. You must first create the index field using the UpdateIndex API.

              • DateFieldFormat — (String)

                The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

              • IndexFieldNamerequired — (String)

                The name of the index field to map to the data source field. The index field type must match the data source field type.

            • IncludeFilterTypes — (Array<String>)

              Filters the documents in the feed based on status of the user. When you specify ACTIVE_USERS only documents from users who have an active account are indexed. When you specify STANDARD_USER only documents for Salesforce standard users are documented. You can specify both.

          • CrawlAttachments — (Boolean)

            Indicates whether Amazon Kendra should index attachments to Salesforce objects.

          • StandardObjectAttachmentConfiguration — (map)

            Configuration information for processing attachments to Salesforce standard objects.

            • DocumentTitleFieldName — (String)

              The name of the field used for the document title.

            • FieldMappings — (Array<map>)

              One or more objects that map fields in attachments to Amazon Kendra index fields.

              • DataSourceFieldNamerequired — (String)

                The name of the field in the data source. You must first create the index field using the UpdateIndex API.

              • DateFieldFormat — (String)

                The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

              • IndexFieldNamerequired — (String)

                The name of the index field to map to the data source field. The index field type must match the data source field type.

          • IncludeAttachmentFilePatterns — (Array<String>)

            A list of regular expression patterns to include certain documents in your Salesforce. Documents that match the patterns are included in the index. Documents that don't match the patterns are excluded from the index. If a document matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the document isn't included in the index.

            The pattern is applied to the name of the attached file.

          • ExcludeAttachmentFilePatterns — (Array<String>)

            A list of regular expression patterns to exclude certain documents in your Salesforce. Documents that match the patterns are excluded from the index. Documents that don't match the patterns are included in the index. If a document matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the document isn't included in the index.

            The pattern is applied to the name of the attached file.

        • OneDriveConfiguration — (map)

          Provides the configuration information to connect to Microsoft OneDrive as your data source.

          • TenantDomainrequired — (String)

            The Azure Active Directory domain of the organization.

          • SecretArnrequired — (String)

            The Amazon Resource Name (ARN) of an Secrets Managersecret that contains the user name and password to connect to OneDrive. The user name should be the application ID for the OneDrive application, and the password is the application key for the OneDrive application.

          • OneDriveUsersrequired — (map)

            A list of user accounts whose documents should be indexed.

            • OneDriveUserList — (Array<String>)

              A list of users whose documents should be indexed. Specify the user names in email format, for example, username@tenantdomain. If you need to index the documents of more than 100 users, use the OneDriveUserS3Path field to specify the location of a file containing a list of users.

            • OneDriveUserS3Path — (map)

              The S3 bucket location of a file containing a list of users whose documents should be indexed.

              • Bucketrequired — (String)

                The name of the S3 bucket that contains the file.

              • Keyrequired — (String)

                The name of the file.

          • InclusionPatterns — (Array<String>)

            A list of regular expression patterns to include certain documents in your OneDrive. Documents that match the patterns are included in the index. Documents that don't match the patterns are excluded from the index. If a document matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the document isn't included in the index.

            The pattern is applied to the file name.

          • ExclusionPatterns — (Array<String>)

            A list of regular expression patterns to exclude certain documents in your OneDrive. Documents that match the patterns are excluded from the index. Documents that don't match the patterns are included in the index. If a document matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the document isn't included in the index.

            The pattern is applied to the file name.

          • FieldMappings — (Array<map>)

            A list of DataSourceToIndexFieldMapping objects that map OneDrive data source attributes or field names to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to OneDrive fields. For more information, see Mapping data source fields. The OneDrive data source field names must exist in your OneDrive custom metadata.

            • DataSourceFieldNamerequired — (String)

              The name of the field in the data source. You must first create the index field using the UpdateIndex API.

            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldNamerequired — (String)

              The name of the index field to map to the data source field. The index field type must match the data source field type.

          • DisableLocalGroups — (Boolean)

            TRUE to disable local groups information.

        • ServiceNowConfiguration — (map)

          Provides the configuration information to connect to ServiceNow as your data source.

          • HostUrlrequired — (String)

            The ServiceNow instance that the data source connects to. The host endpoint should look like the following: {instance}.service-now.com.

          • SecretArnrequired — (String)

            The Amazon Resource Name (ARN) of the Secrets Manager secret that contains the user name and password required to connect to the ServiceNow instance. You can also provide OAuth authentication credentials of user name, password, client ID, and client secret. For more information, see Using a ServiceNow data source.

          • ServiceNowBuildVersionrequired — (String)

            The identifier of the release that the ServiceNow host is running. If the host is not running the LONDON release, use OTHERS.

            Possible values include:
            • "LONDON"
            • "OTHERS"
          • KnowledgeArticleConfiguration — (map)

            Configuration information for crawling knowledge articles in the ServiceNow site.

            • CrawlAttachments — (Boolean)

              TRUE to index attachments to knowledge articles.

            • IncludeAttachmentFilePatterns — (Array<String>)

              A list of regular expression patterns applied to include knowledge article attachments. Attachments that match the patterns are included in the index. Items that don't match the patterns are excluded from the index. If an item matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the item isn't included in the index.

            • ExcludeAttachmentFilePatterns — (Array<String>)

              A list of regular expression patterns applied to exclude certain knowledge article attachments. Attachments that match the patterns are excluded from the index. Items that don't match the patterns are included in the index. If an item matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the item isn't included in the index.

            • DocumentDataFieldNamerequired — (String)

              The name of the ServiceNow field that is mapped to the index document contents field in the Amazon Kendra index.

            • DocumentTitleFieldName — (String)

              The name of the ServiceNow field that is mapped to the index document title field.

            • FieldMappings — (Array<map>)

              Maps attributes or field names of knoweldge articles to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to ServiceNow fields. For more information, see Mapping data source fields. The ServiceNow data source field names must exist in your ServiceNow custom metadata.

              • DataSourceFieldNamerequired — (String)

                The name of the field in the data source. You must first create the index field using the UpdateIndex API.

              • DateFieldFormat — (String)

                The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

              • IndexFieldNamerequired — (String)

                The name of the index field to map to the data source field. The index field type must match the data source field type.

            • FilterQuery — (String)

              A query that selects the knowledge articles to index. The query can return articles from multiple knowledge bases, and the knowledge bases can be public or private.

              The query string must be one generated by the ServiceNow console. For more information, see Specifying documents to index with a query.

          • ServiceCatalogConfiguration — (map)

            Configuration information for crawling service catalogs in the ServiceNow site.

            • CrawlAttachments — (Boolean)

              TRUE to index attachments to service catalog items.

            • IncludeAttachmentFilePatterns — (Array<String>)

              A list of regular expression patterns to include certain attachments of catalogs in your ServiceNow. Item that match the patterns are included in the index. Items that don't match the patterns are excluded from the index. If an item matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the item isn't included in the index.

              The regex is applied to the file name of the attachment.

            • ExcludeAttachmentFilePatterns — (Array<String>)

              A list of regular expression patterns to exclude certain attachments of catalogs in your ServiceNow. Item that match the patterns are excluded from the index. Items that don't match the patterns are included in the index. If an item matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the item isn't included in the index.

              The regex is applied to the file name of the attachment.

            • DocumentDataFieldNamerequired — (String)

              The name of the ServiceNow field that is mapped to the index document contents field in the Amazon Kendra index.

            • DocumentTitleFieldName — (String)

              The name of the ServiceNow field that is mapped to the index document title field.

            • FieldMappings — (Array<map>)

              Maps attributes or field names of catalogs to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to ServiceNow fields. For more information, see Mapping data source fields. The ServiceNow data source field names must exist in your ServiceNow custom metadata.

              • DataSourceFieldNamerequired — (String)

                The name of the field in the data source. You must first create the index field using the UpdateIndex API.

              • DateFieldFormat — (String)

                The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

              • IndexFieldNamerequired — (String)

                The name of the index field to map to the data source field. The index field type must match the data source field type.

          • AuthenticationType — (String)

            The type of authentication used to connect to the ServiceNow instance. If you choose HTTP_BASIC, Amazon Kendra is authenticated using the user name and password provided in the Secrets Manager secret in the SecretArn field. If you choose OAUTH2, Amazon Kendra is authenticated using the credentials of client ID, client secret, user name and password.

            When you use OAUTH2 authentication, you must generate a token and a client secret using the ServiceNow console. For more information, see Using a ServiceNow data source.

            Possible values include:
            • "HTTP_BASIC"
            • "OAUTH2"
        • ConfluenceConfiguration — (map)

          Provides the configuration information to connect to Confluence as your data source.

          • ServerUrlrequired — (String)

            The URL of your Confluence instance. Use the full URL of the server. For example, https://server.example.com:port/. You can also use an IP address, for example, https://192.168.1.113/.

          • SecretArnrequired — (String)

            The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the user name and password required to connect to the Confluence instance. If you use Confluence Cloud, you use a generated API token as the password.

            You can also provide authentication credentials in the form of a personal access token. For more information, see Using a Confluence data source.

          • Versionrequired — (String)

            The version or the type of Confluence installation to connect to.

            Possible values include:
            • "CLOUD"
            • "SERVER"
          • SpaceConfiguration — (map)

            Configuration information for indexing Confluence spaces.

            • CrawlPersonalSpaces — (Boolean)

              TRUE to index personal spaces. You can add restrictions to items in personal spaces. If personal spaces are indexed, queries without user context information may return restricted items from a personal space in their results. For more information, see Filtering on user context.

            • CrawlArchivedSpaces — (Boolean)

              TRUE to index archived spaces.

            • IncludeSpaces — (Array<String>)

              A list of space keys for Confluence spaces. If you include a key, the blogs, documents, and attachments in the space are indexed. Spaces that aren't in the list aren't indexed. A space in the list must exist. Otherwise, Amazon Kendra logs an error when the data source is synchronized. If a space is in both the IncludeSpaces and the ExcludeSpaces list, the space is excluded.

            • ExcludeSpaces — (Array<String>)

              A list of space keys of Confluence spaces. If you include a key, the blogs, documents, and attachments in the space are not indexed. If a space is in both the ExcludeSpaces and the IncludeSpaces list, the space is excluded.

            • SpaceFieldMappings — (Array<map>)

              Maps attributes or field names of Confluence spaces to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Confluence fields. For more information, see Mapping data source fields. The Confluence data source field names must exist in your Confluence custom metadata.

              If you specify the SpaceFieldMappings parameter, you must specify at least one field mapping.

              • DataSourceFieldName — (String)

                The name of the field in the data source.

                Possible values include:
                • "DISPLAY_URL"
                • "ITEM_TYPE"
                • "SPACE_KEY"
                • "URL"
              • DateFieldFormat — (String)

                The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field you must specify the date format. If the field is not a date field, an exception is thrown.

              • IndexFieldName — (String)

                The name of the index field to map to the Confluence data source field. The index field type must match the Confluence field type.

          • PageConfiguration — (map)

            Configuration information for indexing Confluence pages.

            • PageFieldMappings — (Array<map>)

              Maps attributes or field names of Confluence pages to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Confluence fields. For more information, see Mapping data source fields. The Confluence data source field names must exist in your Confluence custom metadata.

              If you specify the PageFieldMappings parameter, you must specify at least one field mapping.

              • DataSourceFieldName — (String)

                The name of the field in the data source.

                Possible values include:
                • "AUTHOR"
                • "CONTENT_STATUS"
                • "CREATED_DATE"
                • "DISPLAY_URL"
                • "ITEM_TYPE"
                • "LABELS"
                • "MODIFIED_DATE"
                • "PARENT_ID"
                • "SPACE_KEY"
                • "SPACE_NAME"
                • "URL"
                • "VERSION"
              • DateFieldFormat — (String)

                The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field you must specify the date format. If the field is not a date field, an exception is thrown.

              • IndexFieldName — (String)

                The name of the index field to map to the Confluence data source field. The index field type must match the Confluence field type.

          • BlogConfiguration — (map)

            Configuration information for indexing Confluence blogs.

            • BlogFieldMappings — (Array<map>)

              Maps attributes or field names of Confluence blogs to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Confluence fields. For more information, see Mapping data source fields. The Confluence data source field names must exist in your Confluence custom metadata.

              If you specify the BlogFieldMappings parameter, you must specify at least one field mapping.

              • DataSourceFieldName — (String)

                The name of the field in the data source.

                Possible values include:
                • "AUTHOR"
                • "DISPLAY_URL"
                • "ITEM_TYPE"
                • "LABELS"
                • "PUBLISH_DATE"
                • "SPACE_KEY"
                • "SPACE_NAME"
                • "URL"
                • "VERSION"
              • DateFieldFormat — (String)

                The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field you must specify the date format. If the field is not a date field, an exception is thrown.

              • IndexFieldName — (String)

                The name of the index field to map to the Confluence data source field. The index field type must match the Confluence field type.

          • AttachmentConfiguration — (map)

            Configuration information for indexing attachments to Confluence blogs and pages.

            • CrawlAttachments — (Boolean)

              TRUE to index attachments of pages and blogs in Confluence.

            • AttachmentFieldMappings — (Array<map>)

              Maps attributes or field names of Confluence attachments to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Confluence fields. For more information, see Mapping data source fields. The Confluence data source field names must exist in your Confluence custom metadata.

              If you specify the AttachentFieldMappings parameter, you must specify at least one field mapping.

              • DataSourceFieldName — (String)

                The name of the field in the data source.

                You must first create the index field using the UpdateIndex API.

                Possible values include:
                • "AUTHOR"
                • "CONTENT_TYPE"
                • "CREATED_DATE"
                • "DISPLAY_URL"
                • "FILE_SIZE"
                • "ITEM_TYPE"
                • "PARENT_ID"
                • "SPACE_KEY"
                • "SPACE_NAME"
                • "URL"
                • "VERSION"
              • DateFieldFormat — (String)

                The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field you must specify the date format. If the field is not a date field, an exception is thrown.

              • IndexFieldName — (String)

                The name of the index field to map to the Confluence data source field. The index field type must match the Confluence field type.

          • VpcConfiguration — (map)

            Configuration information for an Amazon Virtual Private Cloud to connect to your Confluence. For more information, see Configuring a VPC.

            • SubnetIdsrequired — (Array<String>)

              A list of identifiers for subnets within your Amazon VPC. The subnets should be able to connect to each other in the VPC, and they should have outgoing access to the Internet through a NAT device.

            • SecurityGroupIdsrequired — (Array<String>)

              A list of identifiers of security groups within your Amazon VPC. The security groups should enable Amazon Kendra to connect to the data source.

          • InclusionPatterns — (Array<String>)

            A list of regular expression patterns to include certain blog posts, pages, spaces, or attachments in your Confluence. Content that matches the patterns are included in the index. Content that doesn't match the patterns is excluded from the index. If content matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the content isn't included in the index.

          • ExclusionPatterns — (Array<String>)

            A list of regular expression patterns to exclude certain blog posts, pages, spaces, or attachments in your Confluence. Content that matches the patterns are excluded from the index. Content that doesn't match the patterns is included in the index. If content matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the content isn't included in the index.

          • ProxyConfiguration — (map)

            Configuration information to connect to your Confluence URL instance via a web proxy. You can use this option for Confluence Server.

            You must provide the website host name and port number. For example, the host name of https://a.example.com/page1.html is "a.example.com" and the port is 443, the standard port for HTTPS.

            Web proxy credentials are optional and you can use them to connect to a web proxy server that requires basic authentication of user name and password. To store web proxy credentials, you use a secret in Secrets Manager.

            It is recommended that you follow best security practices when configuring your web proxy. This includes setting up throttling, setting up logging and monitoring, and applying security patches on a regular basis. If you use your web proxy with multiple data sources, sync jobs that occur at the same time could strain the load on your proxy. It is recommended you prepare your proxy beforehand for any security and load requirements.

            • Hostrequired — (String)

              The name of the website host you want to connect to via a web proxy server.

              For example, the host name of https://a.example.com/page1.html is "a.example.com".

            • Portrequired — (Integer)

              The port number of the website host you want to connect to via a web proxy server.

              For example, the port for https://a.example.com/page1.html is 443, the standard port for HTTPS.

            • Credentials — (String)

              Your secret ARN, which you can create in Secrets Manager

              The credentials are optional. You use a secret if web proxy credentials are required to connect to a website host. Amazon Kendra currently support basic authentication to connect to a web proxy server. The secret stores your credentials.

          • AuthenticationType — (String)

            Whether you want to connect to Confluence using basic authentication of user name and password, or a personal access token. You can use a personal access token for Confluence Server.

            Possible values include:
            • "HTTP_BASIC"
            • "PAT"
        • GoogleDriveConfiguration — (map)

          Provides the configuration information to connect to Google Drive as your data source.

          • SecretArnrequired — (String)

            The Amazon Resource Name (ARN) of a Secrets Managersecret that contains the credentials required to connect to Google Drive. For more information, see Using a Google Workspace Drive data source.

          • InclusionPatterns — (Array<String>)

            A list of regular expression patterns to include certain items in your Google Drive, including shared drives and users' My Drives. Items that match the patterns are included in the index. Items that don't match the patterns are excluded from the index. If an item matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the item isn't included in the index.

          • ExclusionPatterns — (Array<String>)

            A list of regular expression patterns to exclude certain items in your Google Drive, including shared drives and users' My Drives. Items that match the patterns are excluded from the index. Items that don't match the patterns are included in the index. If an item matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the item isn't included in the index.

          • FieldMappings — (Array<map>)

            Maps Google Drive data source attributes or field names to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Google Drive fields. For more information, see Mapping data source fields. The Google Drive data source field names must exist in your Google Drive custom metadata.

            • DataSourceFieldNamerequired — (String)

              The name of the field in the data source. You must first create the index field using the UpdateIndex API.

            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldNamerequired — (String)

              The name of the index field to map to the data source field. The index field type must match the data source field type.

          • ExcludeMimeTypes — (Array<String>)

            A list of MIME types to exclude from the index. All documents matching the specified MIME type are excluded.

            For a list of MIME types, see Using a Google Workspace Drive data source.

          • ExcludeUserAccounts — (Array<String>)

            A list of email addresses of the users. Documents owned by these users are excluded from the index. Documents shared with excluded users are indexed unless they are excluded in another way.

          • ExcludeSharedDrives — (Array<String>)

            A list of identifiers or shared drives to exclude from the index. All files and folders stored on the shared drive are excluded.

        • WebCrawlerConfiguration — (map)

          Provides the configuration information required for Amazon Kendra Web Crawler.

          • Urlsrequired — (map)

            Specifies the seed or starting point URLs of the websites or the sitemap URLs of the websites you want to crawl.

            You can include website subdomains. You can list up to 100 seed URLs and up to three sitemap URLs.

            You can only crawl websites that use the secure communication protocol, Hypertext Transfer Protocol Secure (HTTPS). If you receive an error when crawling a website, it could be that the website is blocked from crawling.

            When selecting websites to index, you must adhere to the Amazon Acceptable Use Policy and all other Amazon terms. Remember that you must only use Amazon Kendra Web Crawler to index your own web pages, or web pages that you have authorization to index.

            • SeedUrlConfiguration — (map)

              Configuration of the seed or starting point URLs of the websites you want to crawl.

              You can choose to crawl only the website host names, or the website host names with subdomains, or the website host names with subdomains and other domains that the web pages link to.

              You can list up to 100 seed URLs.

              • SeedUrlsrequired — (Array<String>)

                The list of seed or starting point URLs of the websites you want to crawl.

                The list can include a maximum of 100 seed URLs.

              • WebCrawlerMode — (String)

                You can choose one of the following modes:

                • HOST_ONLY—crawl only the website host names. For example, if the seed URL is "abc.example.com", then only URLs with host name "abc.example.com" are crawled.

                • SUBDOMAINS—crawl the website host names with subdomains. For example, if the seed URL is "abc.example.com", then "a.abc.example.com" and "b.abc.example.com" are also crawled.

                • EVERYTHING—crawl the website host names with subdomains and other domains that the web pages link to.

                The default mode is set to HOST_ONLY.

                Possible values include:
                • "HOST_ONLY"
                • "SUBDOMAINS"
                • "EVERYTHING"
            • SiteMapsConfiguration — (map)

              Configuration of the sitemap URLs of the websites you want to crawl.

              Only URLs belonging to the same website host names are crawled. You can list up to three sitemap URLs.

              • SiteMapsrequired — (Array<String>)

                The list of sitemap URLs of the websites you want to crawl.

                The list can include a maximum of three sitemap URLs.

          • CrawlDepth — (Integer)

            The 'depth' or number of levels from the seed level to crawl. For example, the seed URL page is depth 1 and any hyperlinks on this page that are also crawled are depth 2.

          • MaxLinksPerPage — (Integer)

            The maximum number of URLs on a web page to include when crawling a website. This number is per web page.

            As a website’s web pages are crawled, any URLs the web pages link to are also crawled. URLs on a web page are crawled in order of appearance.

            The default maximum links per page is 100.

          • MaxContentSizePerPageInMegaBytes — (Float)

            The maximum size (in MB) of a web page or attachment to crawl.

            Files larger than this size (in MB) are skipped/not crawled.

            The default maximum size of a web page or attachment is set to 50 MB.

          • MaxUrlsPerMinuteCrawlRate — (Integer)

            The maximum number of URLs crawled per website host per minute.

            A minimum of one URL is required.

            The default maximum number of URLs crawled per website host per minute is 300.

          • UrlInclusionPatterns — (Array<String>)

            A list of regular expression patterns to include certain URLs to crawl. URLs that match the patterns are included in the index. URLs that don't match the patterns are excluded from the index. If a URL matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the URL file isn't included in the index.

          • UrlExclusionPatterns — (Array<String>)

            A list of regular expression patterns to exclude certain URLs to crawl. URLs that match the patterns are excluded from the index. URLs that don't match the patterns are included in the index. If a URL matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the URL file isn't included in the index.

          • ProxyConfiguration — (map)

            Configuration information required to connect to your internal websites via a web proxy.

            You must provide the website host name and port number. For example, the host name of https://a.example.com/page1.html is "a.example.com" and the port is 443, the standard port for HTTPS.

            Web proxy credentials are optional and you can use them to connect to a web proxy server that requires basic authentication. To store web proxy credentials, you use a secret in Secrets Manager.

            • Hostrequired — (String)

              The name of the website host you want to connect to via a web proxy server.

              For example, the host name of https://a.example.com/page1.html is "a.example.com".

            • Portrequired — (Integer)

              The port number of the website host you want to connect to via a web proxy server.

              For example, the port for https://a.example.com/page1.html is 443, the standard port for HTTPS.

            • Credentials — (String)

              Your secret ARN, which you can create in Secrets Manager

              The credentials are optional. You use a secret if web proxy credentials are required to connect to a website host. Amazon Kendra currently support basic authentication to connect to a web proxy server. The secret stores your credentials.

          • AuthenticationConfiguration — (map)

            Configuration information required to connect to websites using authentication.

            You can connect to websites using basic authentication of user name and password. You use a secret in Secrets Manager to store your authentication credentials.

            You must provide the website host name and port number. For example, the host name of https://a.example.com/page1.html is "a.example.com" and the port is 443, the standard port for HTTPS.

            • BasicAuthentication — (Array<map>)

              The list of configuration information that's required to connect to and crawl a website host using basic authentication credentials.

              The list includes the name and port number of the website host.

              • Hostrequired — (String)

                The name of the website host you want to connect to using authentication credentials.

                For example, the host name of https://a.example.com/page1.html is "a.example.com".

              • Portrequired — (Integer)

                The port number of the website host you want to connect to using authentication credentials.

                For example, the port for https://a.example.com/page1.html is 443, the standard port for HTTPS.

              • Credentialsrequired — (String)

                Your secret ARN, which you can create in Secrets Manager

                You use a secret if basic authentication credentials are required to connect to a website. The secret stores your credentials of user name and password.

        • WorkDocsConfiguration — (map)

          Provides the configuration information to connect to Amazon WorkDocs as your data source.

          • OrganizationIdrequired — (String)

            The identifier of the directory corresponding to your Amazon WorkDocs site repository.

            You can find the organization ID in the Directory Service by going to Active Directory, then Directories. Your Amazon WorkDocs site directory has an ID, which is the organization ID. You can also set up a new Amazon WorkDocs directory in the Directory Service console and enable a Amazon WorkDocs site for the directory in the Amazon WorkDocs console.

          • CrawlComments — (Boolean)

            TRUE to include comments on documents in your index. Including comments in your index means each comment is a document that can be searched on.

            The default is set to FALSE.

          • UseChangeLog — (Boolean)

            TRUE to use the Amazon WorkDocs change log to determine which documents require updating in the index. Depending on the change log's size, it may take longer for Amazon Kendra to use the change log than to scan all of your documents in Amazon WorkDocs.

          • InclusionPatterns — (Array<String>)

            A list of regular expression patterns to include certain files in your Amazon WorkDocs site repository. Files that match the patterns are included in the index. Files that don't match the patterns are excluded from the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.

          • ExclusionPatterns — (Array<String>)

            A list of regular expression patterns to exclude certain files in your Amazon WorkDocs site repository. Files that match the patterns are excluded from the index. Files that don’t match the patterns are included in the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.

          • FieldMappings — (Array<map>)

            A list of DataSourceToIndexFieldMapping objects that map Amazon WorkDocs data source attributes or field names to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Amazon WorkDocs fields. For more information, see Mapping data source fields. The Amazon WorkDocs data source field names must exist in your Amazon WorkDocs custom metadata.

            • DataSourceFieldNamerequired — (String)

              The name of the field in the data source. You must first create the index field using the UpdateIndex API.

            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldNamerequired — (String)

              The name of the index field to map to the data source field. The index field type must match the data source field type.

        • FsxConfiguration — (map)

          Provides the configuration information to connect to Amazon FSx as your data source.

          Note: Amazon Kendra now supports an upgraded Amazon FSx Windows connector. You must now use the TemplateConfiguration object instead of the FsxConfiguration object to configure your connector. Connectors configured using the older console and API architecture will continue to function as configured. However, you won't be able to edit or update them. If you want to edit or update your connector configuration, you must create a new connector. We recommended migrating your connector workflow to the upgraded version. Support for connectors configured using the older architecture is scheduled to end by June 2024.
          • FileSystemIdrequired — (String)

            The identifier of the Amazon FSx file system.

            You can find your file system ID on the file system dashboard in the Amazon FSx console. For information on how to create a file system in Amazon FSx console, using Windows File Server as an example, see Amazon FSx Getting started guide.

          • FileSystemTyperequired — (String)

            The Amazon FSx file system type. Windows is currently the only supported type.

            Possible values include:
            • "WINDOWS"
          • VpcConfigurationrequired — (map)

            Configuration information for an Amazon Virtual Private Cloud to connect to your Amazon FSx. Your Amazon FSx instance must reside inside your VPC.

            • SubnetIdsrequired — (Array<String>)

              A list of identifiers for subnets within your Amazon VPC. The subnets should be able to connect to each other in the VPC, and they should have outgoing access to the Internet through a NAT device.

            • SecurityGroupIdsrequired — (Array<String>)

              A list of identifiers of security groups within your Amazon VPC. The security groups should enable Amazon Kendra to connect to the data source.

          • SecretArn — (String)

            The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the key-value pairs required to connect to your Amazon FSx file system. Windows is currently the only supported type. The secret must contain a JSON structure with the following keys:

            • username—The Active Directory user name, along with the Domain Name System (DNS) domain name. For example, user@corp.example.com. The Active Directory user account must have read and mounting access to the Amazon FSx file system for Windows.

            • password—The password of the Active Directory user account with read and mounting access to the Amazon FSx Windows file system.

          • InclusionPatterns — (Array<String>)

            A list of regular expression patterns to include certain files in your Amazon FSx file system. Files that match the patterns are included in the index. Files that don't match the patterns are excluded from the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.

          • ExclusionPatterns — (Array<String>)

            A list of regular expression patterns to exclude certain files in your Amazon FSx file system. Files that match the patterns are excluded from the index. Files that don't match the patterns are included in the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.

          • FieldMappings — (Array<map>)

            A list of DataSourceToIndexFieldMapping objects that map Amazon FSx data source attributes or field names to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Amazon FSx fields. For more information, see Mapping data source fields. The Amazon FSx data source field names must exist in your Amazon FSx custom metadata.

            • DataSourceFieldNamerequired — (String)

              The name of the field in the data source. You must first create the index field using the UpdateIndex API.

            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldNamerequired — (String)

              The name of the index field to map to the data source field. The index field type must match the data source field type.

        • SlackConfiguration — (map)

          Provides the configuration information to connect to Slack as your data source.

          Note: Amazon Kendra now supports an upgraded Slack connector. You must now use the TemplateConfiguration object instead of the SlackConfiguration object to configure your connector. Connectors configured using the older console and API architecture will continue to function as configured. However, you won't be able to edit or update them. If you want to edit or update your connector configuration, you must create a new connector. We recommended migrating your connector workflow to the upgraded version. Support for connectors configured using the older architecture is scheduled to end by June 2024.
          • TeamIdrequired — (String)

            The identifier of the team in the Slack workspace. For example, T0123456789.

            You can find your team ID in the URL of the main page of your Slack workspace. When you log in to Slack via a browser, you are directed to the URL of the main page. For example, https://app.slack.com/client/T0123456789/....

          • SecretArnrequired — (String)

            The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the key-value pairs required to connect to your Slack workspace team. The secret must contain a JSON structure with the following keys:

          • VpcConfiguration — (map)

            Configuration information for an Amazon Virtual Private Cloud to connect to your Slack. For more information, see Configuring a VPC.

            • SubnetIdsrequired — (Array<String>)

              A list of identifiers for subnets within your Amazon VPC. The subnets should be able to connect to each other in the VPC, and they should have outgoing access to the Internet through a NAT device.

            • SecurityGroupIdsrequired — (Array<String>)

              A list of identifiers of security groups within your Amazon VPC. The security groups should enable Amazon Kendra to connect to the data source.

          • SlackEntityListrequired — (Array<String>)

            Specify whether to index public channels, private channels, group messages, and direct messages. You can specify one or more of these options.

          • UseChangeLog — (Boolean)

            TRUE to use the Slack change log to determine which documents require updating in the index. Depending on the Slack change log's size, it may take longer for Amazon Kendra to use the change log than to scan all of your documents in Slack.

          • CrawlBotMessage — (Boolean)

            TRUE to index bot messages from your Slack workspace team.

          • ExcludeArchived — (Boolean)

            TRUE to exclude archived messages to index from your Slack workspace team.

          • SinceCrawlDaterequired — (String)

            The date to start crawling your data from your Slack workspace team. The date must follow this format: yyyy-mm-dd.

          • LookBackPeriod — (Integer)

            The number of hours for change log to look back from when you last synchronized your data. You can look back up to 7 days or 168 hours.

            Change log updates your index only if new content was added since you last synced your data. Updated or deleted content from before you last synced does not get updated in your index. To capture updated or deleted content before you last synced, set the LookBackPeriod to the number of hours you want change log to look back.

          • PrivateChannelFilter — (Array<String>)

            The list of private channel names from your Slack workspace team. You use this if you want to index specific private channels, not all private channels. You can also use regular expression patterns to filter private channels.

          • PublicChannelFilter — (Array<String>)

            The list of public channel names to index from your Slack workspace team. You use this if you want to index specific public channels, not all public channels. You can also use regular expression patterns to filter public channels.

          • InclusionPatterns — (Array<String>)

            A list of regular expression patterns to include certain attached files in your Slack workspace team. Files that match the patterns are included in the index. Files that don't match the patterns are excluded from the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.

          • ExclusionPatterns — (Array<String>)

            A list of regular expression patterns to exclude certain attached files in your Slack workspace team. Files that match the patterns are excluded from the index. Files that don’t match the patterns are included in the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.

          • FieldMappings — (Array<map>)

            A list of DataSourceToIndexFieldMapping objects that map Slack data source attributes or field names to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Slack fields. For more information, see Mapping data source fields. The Slack data source field names must exist in your Slack custom metadata.

            • DataSourceFieldNamerequired — (String)

              The name of the field in the data source. You must first create the index field using the UpdateIndex API.

            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldNamerequired — (String)

              The name of the index field to map to the data source field. The index field type must match the data source field type.

        • BoxConfiguration — (map)

          Provides the configuration information to connect to Box as your data source.

          • EnterpriseIdrequired — (String)

            The identifier of the Box Enterprise platform. You can find the enterprise ID in the Box Developer Console settings or when you create an app in Box and download your authentication credentials. For example, 801234567.

          • SecretArnrequired — (String)

            The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the key-value pairs required to connect to your Box platform. The secret must contain a JSON structure with the following keys:

            • clientID—The identifier of the client OAuth 2.0 authentication application created in Box.

            • clientSecret—A set of characters known only to the OAuth 2.0 authentication application created in Box.

            • publicKeyId—The identifier of the public key contained within an identity certificate.

            • privateKey—A set of characters that make up an encryption key.

            • passphrase—A set of characters that act like a password.

            You create an application in Box to generate the keys or credentials required for the secret. For more information, see Using a Box data source.

          • UseChangeLog — (Boolean)

            TRUE to use the Slack change log to determine which documents require updating in the index. Depending on the data source change log's size, it may take longer for Amazon Kendra to use the change log than to scan all of your documents.

          • CrawlComments — (Boolean)

            TRUE to index comments.

          • CrawlTasks — (Boolean)

            TRUE to index the contents of tasks.

          • CrawlWebLinks — (Boolean)

            TRUE to index web links.

          • FileFieldMappings — (Array<map>)

            A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Box files to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Box fields. For more information, see Mapping data source fields. The Box field names must exist in your Box custom metadata.

            • DataSourceFieldNamerequired — (String)

              The name of the field in the data source. You must first create the index field using the UpdateIndex API.

            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldNamerequired — (String)

              The name of the index field to map to the data source field. The index field type must match the data source field type.

          • TaskFieldMappings — (Array<map>)

            A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Box tasks to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Box fields. For more information, see Mapping data source fields. The Box field names must exist in your Box custom metadata.

            • DataSourceFieldNamerequired — (String)

              The name of the field in the data source. You must first create the index field using the UpdateIndex API.

            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldNamerequired — (String)

              The name of the index field to map to the data source field. The index field type must match the data source field type.

          • CommentFieldMappings — (Array<map>)

            A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Box comments to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Box fields. For more information, see Mapping data source fields. The Box field names must exist in your Box custom metadata.

            • DataSourceFieldNamerequired — (String)

              The name of the field in the data source. You must first create the index field using the UpdateIndex API.

            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldNamerequired — (String)

              The name of the index field to map to the data source field. The index field type must match the data source field type.

          • WebLinkFieldMappings — (Array<map>)

            A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Box web links to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Box fields. For more information, see Mapping data source fields. The Box field names must exist in your Box custom metadata.

            • DataSourceFieldNamerequired — (String)

              The name of the field in the data source. You must first create the index field using the UpdateIndex API.

            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldNamerequired — (String)

              The name of the index field to map to the data source field. The index field type must match the data source field type.

          • InclusionPatterns — (Array<String>)

            A list of regular expression patterns to include certain files and folders in your Box platform. Files and folders that match the patterns are included in the index. Files and folders that don't match the patterns are excluded from the index. If a file or folder matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file or folder isn't included in the index.

          • ExclusionPatterns — (Array<String>)

            A list of regular expression patterns to exclude certain files and folders from your Box platform. Files and folders that match the patterns are excluded from the index.Files and folders that don't match the patterns are included in the index. If a file or folder matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file or folder isn't included in the index.

          • VpcConfiguration — (map)

            Configuration information for an Amazon VPC to connect to your Box. For more information, see Configuring a VPC.

            • SubnetIdsrequired — (Array<String>)

              A list of identifiers for subnets within your Amazon VPC. The subnets should be able to connect to each other in the VPC, and they should have outgoing access to the Internet through a NAT device.

            • SecurityGroupIdsrequired — (Array<String>)

              A list of identifiers of security groups within your Amazon VPC. The security groups should enable Amazon Kendra to connect to the data source.

        • QuipConfiguration — (map)

          Provides the configuration information to connect to Quip as your data source.

          • Domainrequired — (String)

            The Quip site domain. For example, https://quip-company.quipdomain.com/browse. The domain in this example is "quipdomain".

          • SecretArnrequired — (String)

            The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the key-value pairs that are required to connect to your Quip. The secret must contain a JSON structure with the following keys:

          • CrawlFileComments — (Boolean)

            TRUE to index file comments.

          • CrawlChatRooms — (Boolean)

            TRUE to index the contents of chat rooms.

          • CrawlAttachments — (Boolean)

            TRUE to index attachments.

          • FolderIds — (Array<String>)

            The identifiers of the Quip folders you want to index. You can find the folder ID in your browser URL when you access your folder in Quip. For example, https://quip-company.quipdomain.com/zlLuOVNSarTL/folder-name. The folder ID in this example is "zlLuOVNSarTL".

          • ThreadFieldMappings — (Array<map>)

            A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Quip threads to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Quip fields. For more information, see Mapping data source fields. The Quip field names must exist in your Quip custom metadata.

            • DataSourceFieldNamerequired — (String)

              The name of the field in the data source. You must first create the index field using the UpdateIndex API.

            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldNamerequired — (String)

              The name of the index field to map to the data source field. The index field type must match the data source field type.

          • MessageFieldMappings — (Array<map>)

            A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Quip messages to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Quip fields. For more information, see Mapping data source fields. The Quip field names must exist in your Quip custom metadata.

            • DataSourceFieldNamerequired — (String)

              The name of the field in the data source. You must first create the index field using the UpdateIndex API.

            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldNamerequired — (String)

              The name of the index field to map to the data source field. The index field type must match the data source field type.

          • AttachmentFieldMappings — (Array<map>)

            A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Quip attachments to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Quip fields. For more information, see Mapping data source fields. The Quip field names must exist in your Quip custom metadata.

            • DataSourceFieldNamerequired — (String)

              The name of the field in the data source. You must first create the index field using the UpdateIndex API.

            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldNamerequired — (String)

              The name of the index field to map to the data source field. The index field type must match the data source field type.

          • InclusionPatterns — (Array<String>)

            A list of regular expression patterns to include certain files in your Quip file system. Files that match the patterns are included in the index. Files that don't match the patterns are excluded from the index. If a file matches both an inclusion pattern and an exclusion pattern, the exclusion pattern takes precedence, and the file isn't included in the index.

          • ExclusionPatterns — (Array<String>)

            A list of regular expression patterns to exclude certain files in your Quip file system. Files that match the patterns are excluded from the index. Files that don’t match the patterns are included in the index. If a file matches both an inclusion pattern and an exclusion pattern, the exclusion pattern takes precedence, and the file isn't included in the index.

          • VpcConfiguration — (map)

            Configuration information for an Amazon Virtual Private Cloud (VPC) to connect to your Quip. For more information, see Configuring a VPC.

            • SubnetIdsrequired — (Array<String>)

              A list of identifiers for subnets within your Amazon VPC. The subnets should be able to connect to each other in the VPC, and they should have outgoing access to the Internet through a NAT device.

            • SecurityGroupIdsrequired — (Array<String>)

              A list of identifiers of security groups within your Amazon VPC. The security groups should enable Amazon Kendra to connect to the data source.

        • JiraConfiguration — (map)

          Provides the configuration information to connect to Jira as your data source.

          • JiraAccountUrlrequired — (String)

            The URL of the Jira account. For example, company.atlassian.net.

          • SecretArnrequired — (String)

            The Amazon Resource Name (ARN) of a secret in Secrets Manager contains the key-value pairs required to connect to your Jira data source. The secret must contain a JSON structure with the following keys:

            • jiraId—The Jira user name or email.

            • jiraCredentials—The Jira API token. For more information, see Using a Jira data source.

          • UseChangeLog — (Boolean)

            TRUE to use the Jira change log to determine which documents require updating in the index. Depending on the change log's size, it may take longer for Amazon Kendra to use the change log than to scan all of your documents in Jira.

          • Project — (Array<String>)

            Specify which projects to crawl in your Jira data source. You can specify one or more Jira project IDs.

          • IssueType — (Array<String>)

            Specify which issue types to crawl in your Jira data source. You can specify one or more of these options to crawl.

          • Status — (Array<String>)

            Specify which statuses to crawl in your Jira data source. You can specify one or more of these options to crawl.

          • IssueSubEntityFilter — (Array<String>)

            Specify whether to crawl comments, attachments, and work logs. You can specify one or more of these options.

          • AttachmentFieldMappings — (Array<map>)

            A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Jira attachments to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Jira fields. For more information, see Mapping data source fields. The Jira data source field names must exist in your Jira custom metadata.

            • DataSourceFieldNamerequired — (String)

              The name of the field in the data source. You must first create the index field using the UpdateIndex API.

            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldNamerequired — (String)

              The name of the index field to map to the data source field. The index field type must match the data source field type.

          • CommentFieldMappings — (Array<map>)

            A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Jira comments to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Jira fields. For more information, see Mapping data source fields. The Jira data source field names must exist in your Jira custom metadata.

            • DataSourceFieldNamerequired — (String)

              The name of the field in the data source. You must first create the index field using the UpdateIndex API.

            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldNamerequired — (String)

              The name of the index field to map to the data source field. The index field type must match the data source field type.

          • IssueFieldMappings — (Array<map>)

            A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Jira issues to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Jira fields. For more information, see Mapping data source fields. The Jira data source field names must exist in your Jira custom metadata.

            • DataSourceFieldNamerequired — (String)

              The name of the field in the data source. You must first create the index field using the UpdateIndex API.

            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldNamerequired — (String)

              The name of the index field to map to the data source field. The index field type must match the data source field type.

          • ProjectFieldMappings — (Array<map>)

            A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Jira projects to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Jira fields. For more information, see Mapping data source fields. The Jira data source field names must exist in your Jira custom metadata.

            • DataSourceFieldNamerequired — (String)

              The name of the field in the data source. You must first create the index field using the UpdateIndex API.

            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldNamerequired — (String)

              The name of the index field to map to the data source field. The index field type must match the data source field type.

          • WorkLogFieldMappings — (Array<map>)

            A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Jira work logs to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Jira fields. For more information, see Mapping data source fields. The Jira data source field names must exist in your Jira custom metadata.

            • DataSourceFieldNamerequired — (String)

              The name of the field in the data source. You must first create the index field using the UpdateIndex API.

            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldNamerequired — (String)

              The name of the index field to map to the data source field. The index field type must match the data source field type.

          • InclusionPatterns — (Array<String>)

            A list of regular expression patterns to include certain file paths, file names, and file types in your Jira data source. Files that match the patterns are included in the index. Files that don't match the patterns are excluded from the index. If a file matches both an inclusion pattern and an exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.

          • ExclusionPatterns — (Array<String>)

            A list of regular expression patterns to exclude certain file paths, file names, and file types in your Jira data source. Files that match the patterns are excluded from the index. Files that don’t match the patterns are included in the index. If a file matches both an inclusion pattern and an exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.

          • VpcConfiguration — (map)

            Configuration information for an Amazon Virtual Private Cloud to connect to your Jira. For more information, see Configuring a VPC.

            • SubnetIdsrequired — (Array<String>)

              A list of identifiers for subnets within your Amazon VPC. The subnets should be able to connect to each other in the VPC, and they should have outgoing access to the Internet through a NAT device.

            • SecurityGroupIdsrequired — (Array<String>)

              A list of identifiers of security groups within your Amazon VPC. The security groups should enable Amazon Kendra to connect to the data source.

        • GitHubConfiguration — (map)

          Provides the configuration information to connect to GitHub as your data source.

          Note: Amazon Kendra now supports an upgraded GitHub connector. You must now use the TemplateConfiguration object instead of the GitHubConfiguration object to configure your connector. Connectors configured using the older console and API architecture will continue to function as configured. However, you won’t be able to edit or update them. If you want to edit or update your connector configuration, you must create a new connector. We recommended migrating your connector workflow to the upgraded version. Support for connectors configured using the older architecture is scheduled to end by June 2024.
          • SaaSConfiguration — (map)

            Configuration information to connect to GitHub Enterprise Cloud (SaaS).

            • OrganizationNamerequired — (String)

              The name of the organization of the GitHub Enterprise Cloud (SaaS) account you want to connect to. You can find your organization name by logging into GitHub desktop and selecting Your organizations under your profile picture dropdown.

            • HostUrlrequired — (String)

              The GitHub host URL or API endpoint URL. For example, https://api.github.com.

          • OnPremiseConfiguration — (map)

            Configuration information to connect to GitHub Enterprise Server (on premises).

            • HostUrlrequired — (String)

              The GitHub host URL or API endpoint URL. For example, https://on-prem-host-url/api/v3/

            • OrganizationNamerequired — (String)

              The name of the organization of the GitHub Enterprise Server (on-premises) account you want to connect to. You can find your organization name by logging into GitHub desktop and selecting Your organizations under your profile picture dropdown.

            • SslCertificateS3Pathrequired — (map)

              The path to the SSL certificate stored in an Amazon S3 bucket. You use this to connect to GitHub if you require a secure SSL connection.

              You can simply generate a self-signed X509 certificate on any computer using OpenSSL. For an example of using OpenSSL to create an X509 certificate, see Create and sign an X509 certificate.

              • Bucketrequired — (String)

                The name of the S3 bucket that contains the file.

              • Keyrequired — (String)

                The name of the file.

          • Type — (String)

            The type of GitHub service you want to connect to—GitHub Enterprise Cloud (SaaS) or GitHub Enterprise Server (on premises).

            Possible values include:
            • "SAAS"
            • "ON_PREMISE"
          • SecretArnrequired — (String)

            The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the key-value pairs required to connect to your GitHub. The secret must contain a JSON structure with the following keys:

            • personalToken—The access token created in GitHub. For more information on creating a token in GitHub, see Using a GitHub data source.

          • UseChangeLog — (Boolean)

            TRUE to use the GitHub change log to determine which documents require updating in the index. Depending on the GitHub change log's size, it may take longer for Amazon Kendra to use the change log than to scan all of your documents in GitHub.

          • GitHubDocumentCrawlProperties — (map)

            Configuration information to include certain types of GitHub content. You can configure to index repository files only, or also include issues and pull requests, comments, and comment attachments.

            • CrawlRepositoryDocuments — (Boolean)

              TRUE to index all files with a repository.

            • CrawlIssue — (Boolean)

              TRUE to index all issues within a repository.

            • CrawlIssueComment — (Boolean)

              TRUE to index all comments on issues.

            • CrawlIssueCommentAttachment — (Boolean)

              TRUE to include all comment attachments for issues.

            • CrawlPullRequest — (Boolean)

              TRUE to index all pull requests within a repository.

            • CrawlPullRequestComment — (Boolean)

              TRUE to index all comments on pull requests.

            • CrawlPullRequestCommentAttachment — (Boolean)

              TRUE to include all comment attachments for pull requests.

          • RepositoryFilter — (Array<String>)

            A list of names of the specific repositories you want to index.

          • InclusionFolderNamePatterns — (Array<String>)

            A list of regular expression patterns to include certain folder names in your GitHub repository or repositories. Folder names that match the patterns are included in the index. Folder names that don't match the patterns are excluded from the index. If a folder matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the folder isn't included in the index.

          • InclusionFileTypePatterns — (Array<String>)

            A list of regular expression patterns to include certain file types in your GitHub repository or repositories. File types that match the patterns are included in the index. File types that don't match the patterns are excluded from the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.

          • InclusionFileNamePatterns — (Array<String>)

            A list of regular expression patterns to include certain file names in your GitHub repository or repositories. File names that match the patterns are included in the index. File names that don't match the patterns are excluded from the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.

          • ExclusionFolderNamePatterns — (Array<String>)

            A list of regular expression patterns to exclude certain folder names in your GitHub repository or repositories. Folder names that match the patterns are excluded from the index. Folder names that don't match the patterns are included in the index. If a folder matches both an exclusion and inclusion pattern, the exclusion pattern takes precedence and the folder isn't included in the index.

          • ExclusionFileTypePatterns — (Array<String>)

            A list of regular expression patterns to exclude certain file types in your GitHub repository or repositories. File types that match the patterns are excluded from the index. File types that don't match the patterns are included in the index. If a file matches both an exclusion and inclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.

          • ExclusionFileNamePatterns — (Array<String>)

            A list of regular expression patterns to exclude certain file names in your GitHub repository or repositories. File names that match the patterns are excluded from the index. File names that don't match the patterns are included in the index. If a file matches both an exclusion and inclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.

          • VpcConfiguration — (map)

            Configuration information of an Amazon Virtual Private Cloud to connect to your GitHub. For more information, see Configuring a VPC.

            • SubnetIdsrequired — (Array<String>)

              A list of identifiers for subnets within your Amazon VPC. The subnets should be able to connect to each other in the VPC, and they should have outgoing access to the Internet through a NAT device.

            • SecurityGroupIdsrequired — (Array<String>)

              A list of identifiers of security groups within your Amazon VPC. The security groups should enable Amazon Kendra to connect to the data source.

          • GitHubRepositoryConfigurationFieldMappings — (Array<map>)

            A list of DataSourceToIndexFieldMapping objects that map GitHub repository attributes or field names to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to GitHub fields. For more information, see Mapping data source fields. The GitHub data source field names must exist in your GitHub custom metadata.

            • DataSourceFieldNamerequired — (String)

              The name of the field in the data source. You must first create the index field using the UpdateIndex API.

            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldNamerequired — (String)

              The name of the index field to map to the data source field. The index field type must match the data source field type.

          • GitHubCommitConfigurationFieldMappings — (Array<map>)

            A list of DataSourceToIndexFieldMapping objects that map attributes or field names of GitHub commits to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to GitHub fields. For more information, see Mapping data source fields. The GitHub data source field names must exist in your GitHub custom metadata.

            • DataSourceFieldNamerequired — (String)

              The name of the field in the data source. You must first create the index field using the UpdateIndex API.

            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldNamerequired — (String)

              The name of the index field to map to the data source field. The index field type must match the data source field type.

          • GitHubIssueDocumentConfigurationFieldMappings — (Array<map>)

            A list of DataSourceToIndexFieldMapping objects that map attributes or field names of GitHub issues to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to GitHub fields. For more information, see Mapping data source fields. The GitHub data source field names must exist in your GitHub custom metadata.

            • DataSourceFieldNamerequired — (String)

              The name of the field in the data source. You must first create the index field using the UpdateIndex API.

            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldNamerequired — (String)

              The name of the index field to map to the data source field. The index field type must match the data source field type.

          • GitHubIssueCommentConfigurationFieldMappings — (Array<map>)

            A list of DataSourceToIndexFieldMapping objects that map attributes or field names of GitHub issue comments to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to GitHub fields. For more information, see Mapping data source fields. The GitHub data source field names must exist in your GitHub custom metadata.

            • DataSourceFieldNamerequired — (String)

              The name of the field in the data source. You must first create the index field using the UpdateIndex API.

            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldNamerequired — (String)

              The name of the index field to map to the data source field. The index field type must match the data source field type.

          • GitHubIssueAttachmentConfigurationFieldMappings — (Array<map>)

            A list of DataSourceToIndexFieldMapping objects that map attributes or field names of GitHub issue attachments to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to GitHub fields. For more information, see Mapping data source fields. The GitHub data source field names must exist in your GitHub custom metadata.

            • DataSourceFieldNamerequired — (String)

              The name of the field in the data source. You must first create the index field using the UpdateIndex API.

            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldNamerequired — (String)

              The name of the index field to map to the data source field. The index field type must match the data source field type.

          • GitHubPullRequestCommentConfigurationFieldMappings — (Array<map>)

            A list of DataSourceToIndexFieldMapping objects that map attributes or field names of GitHub pull request comments to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to GitHub fields. For more information, see Mapping data source fields. The GitHub data source field names must exist in your GitHub custom metadata.

            • DataSourceFieldNamerequired — (String)

              The name of the field in the data source. You must first create the index field using the UpdateIndex API.

            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldNamerequired — (String)

              The name of the index field to map to the data source field. The index field type must match the data source field type.

          • GitHubPullRequestDocumentConfigurationFieldMappings — (Array<map>)

            A list of DataSourceToIndexFieldMapping objects that map attributes or field names of GitHub pull requests to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to GitHub fields. For more information, see Mapping data source fields. The GitHub data source field names must exist in your GitHub custom metadata.

            • DataSourceFieldNamerequired — (String)

              The name of the field in the data source. You must first create the index field using the UpdateIndex API.

            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldNamerequired — (String)

              The name of the index field to map to the data source field. The index field type must match the data source field type.

          • GitHubPullRequestDocumentAttachmentConfigurationFieldMappings — (Array<map>)

            A list of DataSourceToIndexFieldMapping objects that map attributes or field names of GitHub pull request attachments to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to GitHub fields. For more information, see Mapping data source fields. The GitHub data source field names must exist in your GitHub custom metadata.

            • DataSourceFieldNamerequired — (String)

              The name of the field in the data source. You must first create the index field using the UpdateIndex API.

            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldNamerequired — (String)

              The name of the index field to map to the data source field. The index field type must match the data source field type.

        • AlfrescoConfiguration — (map)

          Provides the configuration information to connect to Alfresco as your data source.

          Note: Support for AlfrescoConfiguration ended May 2023. We recommend migrating to or using the Alfresco data source template schema / TemplateConfiguration API.
          • SiteUrlrequired — (String)

            The URL of the Alfresco site. For example, https://hostname:8080.

          • SiteIdrequired — (String)

            The identifier of the Alfresco site. For example, my-site.

          • SecretArnrequired — (String)

            The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the key-value pairs required to connect to your Alfresco data source. The secret must contain a JSON structure with the following keys:

            • username—The user name of the Alfresco account.

            • password—The password of the Alfresco account.

          • SslCertificateS3Pathrequired — (map)

            The path to the SSL certificate stored in an Amazon S3 bucket. You use this to connect to Alfresco if you require a secure SSL connection.

            You can simply generate a self-signed X509 certificate on any computer using OpenSSL. For an example of using OpenSSL to create an X509 certificate, see Create and sign an X509 certificate.

            • Bucketrequired — (String)

              The name of the S3 bucket that contains the file.

            • Keyrequired — (String)

              The name of the file.

          • CrawlSystemFolders — (Boolean)

            TRUE to index shared files.

          • CrawlComments — (Boolean)

            TRUE to index comments of blogs and other content.

          • EntityFilter — (Array<String>)

            Specify whether to index document libraries, wikis, or blogs. You can specify one or more of these options.

          • DocumentLibraryFieldMappings — (Array<map>)

            A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Alfresco document libraries to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Alfresco fields. For more information, see Mapping data source fields. The Alfresco data source field names must exist in your Alfresco custom metadata.

            • DataSourceFieldNamerequired — (String)

              The name of the field in the data source. You must first create the index field using the UpdateIndex API.

            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldNamerequired — (String)

              The name of the index field to map to the data source field. The index field type must match the data source field type.

          • BlogFieldMappings — (Array<map>)

            A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Alfresco blogs to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Alfresco fields. For more information, see Mapping data source fields. The Alfresco data source field names must exist in your Alfresco custom metadata.

            • DataSourceFieldNamerequired — (String)

              The name of the field in the data source. You must first create the index field using the UpdateIndex API.

            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldNamerequired — (String)

              The name of the index field to map to the data source field. The index field type must match the data source field type.

          • WikiFieldMappings — (Array<map>)

            A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Alfresco wikis to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Alfresco fields. For more information, see Mapping data source fields. The Alfresco data source field names must exist in your Alfresco custom metadata.

            • DataSourceFieldNamerequired — (String)

              The name of the field in the data source. You must first create the index field using the UpdateIndex API.

            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldNamerequired — (String)

              The name of the index field to map to the data source field. The index field type must match the data source field type.

          • InclusionPatterns — (Array<String>)

            A list of regular expression patterns to include certain files in your Alfresco data source. Files that match the patterns are included in the index. Files that don't match the patterns are excluded from the index. If a file matches both an inclusion pattern and an exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.

          • ExclusionPatterns — (Array<String>)

            A list of regular expression patterns to exclude certain files in your Alfresco data source. Files that match the patterns are excluded from the index. Files that don't match the patterns are included in the index. If a file matches both an inclusion pattern and an exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.

          • VpcConfiguration — (map)

            Configuration information for an Amazon Virtual Private Cloud to connect to your Alfresco. For more information, see Configuring a VPC.

            • SubnetIdsrequired — (Array<String>)

              A list of identifiers for subnets within your Amazon VPC. The subnets should be able to connect to each other in the VPC, and they should have outgoing access to the Internet through a NAT device.

            • SecurityGroupIdsrequired — (Array<String>)

              A list of identifiers of security groups within your Amazon VPC. The security groups should enable Amazon Kendra to connect to the data source.

        • TemplateConfiguration — (map)

          Provides a template for the configuration information to connect to your data source.

      • VpcConfiguration — (map)

        Configuration information for an Amazon Virtual Private Cloud to connect to your data source. For more information, see Configuring a VPC.

        • SubnetIdsrequired — (Array<String>)

          A list of identifiers for subnets within your Amazon VPC. The subnets should be able to connect to each other in the VPC, and they should have outgoing access to the Internet through a NAT device.

        • SecurityGroupIdsrequired — (Array<String>)

          A list of identifiers of security groups within your Amazon VPC. The security groups should enable Amazon Kendra to connect to the data source.

      • CreatedAt — (Date)

        The Unix timestamp when the data source connector was created.

      • UpdatedAt — (Date)

        The Unix timestamp when the data source connector was last updated.

      • Description — (String)

        The description for the data source connector.

      • Status — (String)

        The current status of the data source connector. When the status is ACTIVE the data source is ready to use. When the status is FAILED, the ErrorMessage field contains the reason that the data source failed.

        Possible values include:
        • "CREATING"
        • "DELETING"
        • "FAILED"
        • "UPDATING"
        • "ACTIVE"
      • Schedule — (String)

        The schedule for Amazon Kendra to update the index.

      • RoleArn — (String)

        The Amazon Resource Name (ARN) of the role with permission to access the data source and required resources.

      • ErrorMessage — (String)

        When the Status field value is FAILED, the ErrorMessage field contains a description of the error that caused the data source to fail.

      • LanguageCode — (String)

        The code for a language. This shows a supported language for all documents in the data source. English is supported by default. For more information on supported languages, including their codes, see Adding documents in languages other than English.

      • CustomDocumentEnrichmentConfiguration — (map)

        Configuration information for altering document metadata and content during the document ingestion process when you describe a data source.

        For more information on how to create, modify and delete document metadata, or make other content alterations when you ingest documents into Amazon Kendra, see Customizing document metadata during the ingestion process.

        • InlineConfigurations — (Array<map>)

          Configuration information to alter document attributes or metadata fields and content when ingesting documents into Amazon Kendra.

          • Condition — (map)

            Configuration of the condition used for the target document attribute or metadata field when ingesting documents into Amazon Kendra.

            • ConditionDocumentAttributeKeyrequired — (String)

              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.

            • Operatorrequired — (String)

              The condition operator.

              For example, you can use 'Contains' to partially match a string.

              Possible values include:
              • "GreaterThan"
              • "GreaterThanOrEquals"
              • "LessThan"
              • "LessThanOrEquals"
              • "Equals"
              • "NotEquals"
              • "Contains"
              • "NotContains"
              • "Exists"
              • "NotExists"
              • "BeginsWith"
            • ConditionOnValue — (map)

              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.

              • StringValue — (String)

                A string, such as "department".

              • StringListValue — (Array<String>)

                A list of strings. The default maximum length or number of strings is 10.

              • LongValue — (Integer)

                A long integer value.

              • DateValue — (Date)

                A date expressed as an ISO 8601 string.

                It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

          • Target — (map)

            Configuration of the target document attribute or metadata field when ingesting documents into Amazon Kendra. You can also include a value.

            • TargetDocumentAttributeKey — (String)

              The identifier of the target document attribute or metadata field.

              For example, 'Department' could be an identifier for the target attribute or metadata field that includes the department names associated with the documents.

            • TargetDocumentAttributeValueDeletion — (Boolean)

              TRUE to delete the existing target value for your specified target attribute key. You cannot create a target value and set this to TRUE. To create a target value (TargetDocumentAttributeValue), set this to FALSE.

            • TargetDocumentAttributeValue — (map)

              The target value you want to create for the target attribute.

              For example, 'Finance' could be the target value for the target attribute key 'Department'.

              • StringValue — (String)

                A string, such as "department".

              • StringListValue — (Array<String>)

                A list of strings. The default maximum length or number of strings is 10.

              • LongValue — (Integer)

                A long integer value.

              • DateValue — (Date)

                A date expressed as an ISO 8601 string.

                It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

          • DocumentContentDeletion — (Boolean)

            TRUE to delete content if the condition used for the target attribute is met.

        • PreExtractionHookConfiguration — (map)

          Configuration information for invoking a Lambda function in Lambda on the original or raw documents before extracting their metadata and text. You can use a Lambda function to apply advanced logic for creating, modifying, or deleting document metadata and content. For more information, see Advanced data manipulation.

          • InvocationCondition — (map)

            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.

            • ConditionDocumentAttributeKeyrequired — (String)

              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.

            • Operatorrequired — (String)

              The condition operator.

              For example, you can use 'Contains' to partially match a string.

              Possible values include:
              • "GreaterThan"
              • "GreaterThanOrEquals"
              • "LessThan"
              • "LessThanOrEquals"
              • "Equals"
              • "NotEquals"
              • "Contains"
              • "NotContains"
              • "Exists"
              • "NotExists"
              • "BeginsWith"
            • ConditionOnValue — (map)

              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.

              • StringValue — (String)

                A string, such as "department".

              • StringListValue — (Array<String>)

                A list of strings. The default maximum length or number of strings is 10.

              • LongValue — (Integer)

                A long integer value.

              • DateValue — (Date)

                A date expressed as an ISO 8601 string.

                It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

          • LambdaArnrequired — (String)

            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.

          • S3Bucketrequired — (String)

            Stores the original, raw documents or the structured, parsed documents before and after altering them. For more information, see Data contracts for Lambda functions.

        • PostExtractionHookConfiguration — (map)

          Configuration information for invoking a Lambda function in Lambda on the structured documents with their metadata and text extracted. You can use a Lambda function to apply advanced logic for creating, modifying, or deleting document metadata and content. For more information, see Advanced data manipulation.

          • InvocationCondition — (map)

            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.

            • ConditionDocumentAttributeKeyrequired — (String)

              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.

            • Operatorrequired — (String)

              The condition operator.

              For example, you can use 'Contains' to partially match a string.

              Possible values include:
              • "GreaterThan"
              • "GreaterThanOrEquals"
              • "LessThan"
              • "LessThanOrEquals"
              • "Equals"
              • "NotEquals"
              • "Contains"
              • "NotContains"
              • "Exists"
              • "NotExists"
              • "BeginsWith"
            • ConditionOnValue — (map)

              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.

              • StringValue — (String)

                A string, such as "department".

              • StringListValue — (Array<String>)

                A list of strings. The default maximum length or number of strings is 10.

              • LongValue — (Integer)

                A long integer value.

              • DateValue — (Date)

                A date expressed as an ISO 8601 string.

                It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

          • LambdaArnrequired — (String)

            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.

          • S3Bucketrequired — (String)

            Stores the original, raw documents or the structured, parsed documents before and after altering them. For more information, see Data contracts for Lambda functions.

        • RoleArn — (String)

          The Amazon Resource Name (ARN) of a role with permission to run PreExtractionHookConfiguration and PostExtractionHookConfiguration for altering document metadata and content during the document ingestion process. For more information, see IAM roles for Amazon Kendra.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeExperience(params = {}, callback) ⇒ AWS.Request

Gets information about your Amazon Kendra experience such as a search application. For more information on creating a search application experience, see Building a search experience with no code.

Service Reference:

Examples:

Calling the describeExperience operation

var params = {
  Id: 'STRING_VALUE', /* required */
  IndexId: 'STRING_VALUE' /* required */
};
kendra.describeExperience(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Id — (String)

      The identifier of your Amazon Kendra experience you want to get information on.

    • IndexId — (String)

      The identifier of the index for your Amazon Kendra experience.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Id — (String)

        Shows the identifier of your Amazon Kendra experience.

      • IndexId — (String)

        Shows the identifier of the index for your Amazon Kendra experience.

      • Name — (String)

        Shows the name of your Amazon Kendra experience.

      • Endpoints — (Array<map>)

        Shows the endpoint URLs for your Amazon Kendra experiences. The URLs are unique and fully hosted by Amazon Web Services.

        • EndpointType — (String)

          The type of endpoint for your Amazon Kendra experience. The type currently available is HOME, which is a unique and fully hosted URL to the home page of your Amazon Kendra experience.

          Possible values include:
          • "HOME"
        • Endpoint — (String)

          The endpoint of your Amazon Kendra experience.

      • Configuration — (map)

        Shows the configuration information for your Amazon Kendra experience. This includes ContentSourceConfiguration, which specifies the data source IDs and/or FAQ IDs, and UserIdentityConfiguration, which specifies the user or group information to grant access to your Amazon Kendra experience.

        • ContentSourceConfiguration — (map)

          The identifiers of your data sources and FAQs. Or, you can specify that you want to use documents indexed via the BatchPutDocument API. This is the content you want to use for your Amazon Kendra experience.

          • DataSourceIds — (Array<String>)

            The identifier of the data sources you want to use for your Amazon Kendra experience.

          • FaqIds — (Array<String>)

            The identifier of the FAQs that you want to use for your Amazon Kendra experience.

          • DirectPutContent — (Boolean)

            TRUE to use documents you indexed directly using the BatchPutDocument API.

        • UserIdentityConfiguration — (map)

          The IAM Identity Center field name that contains the identifiers of your users, such as their emails.

          • IdentityAttributeName — (String)

            The IAM Identity Center field name that contains the identifiers of your users, such as their emails. This is used for user context filtering and for granting access to your Amazon Kendra experience. You must set up IAM Identity Center with Amazon Kendra. You must include your users and groups in your Access Control List when you ingest documents into your index. For more information, see Getting started with an IAM Identity Center identity source.

      • CreatedAt — (Date)

        The Unix timestamp when your Amazon Kendra experience was created.

      • UpdatedAt — (Date)

        The Unix timestamp when your Amazon Kendra experience was last updated.

      • Description — (String)

        Shows the description for your Amazon Kendra experience.

      • Status — (String)

        The current processing status of your Amazon Kendra experience. When the status is ACTIVE, your Amazon Kendra experience is ready to use. When the status is FAILED, the ErrorMessage field contains the reason that this failed.

        Possible values include:
        • "CREATING"
        • "ACTIVE"
        • "DELETING"
        • "FAILED"
      • RoleArn — (String)

        Shows the Amazon Resource Name (ARN) of a role with permission to access Query API, QuerySuggestions API, SubmitFeedback API, and IAM Identity Center that stores your user and group information.

      • ErrorMessage — (String)

        The reason your Amazon Kendra experience could not properly process.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeFaq(params = {}, callback) ⇒ AWS.Request

Gets information about an FAQ list.

Service Reference:

Examples:

Calling the describeFaq operation

var params = {
  Id: 'STRING_VALUE', /* required */
  IndexId: 'STRING_VALUE' /* required */
};
kendra.describeFaq(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Id — (String)

      The identifier of the FAQ you want to get information on.

    • IndexId — (String)

      The identifier of the index for the FAQ.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Id — (String)

        The identifier of the FAQ.

      • IndexId — (String)

        The identifier of the index for the FAQ.

      • Name — (String)

        The name that you gave the FAQ when it was created.

      • Description — (String)

        The description of the FAQ that you provided when it was created.

      • CreatedAt — (Date)

        The Unix timestamp when the FAQ was created.

      • UpdatedAt — (Date)

        The Unix timestamp when the FAQ was last updated.

      • S3Path — (map)

        Information required to find a specific file in an Amazon S3 bucket.

        • Bucketrequired — (String)

          The name of the S3 bucket that contains the file.

        • Keyrequired — (String)

          The name of the file.

      • Status — (String)

        The status of the FAQ. It is ready to use when the status is ACTIVE.

        Possible values include:
        • "CREATING"
        • "UPDATING"
        • "ACTIVE"
        • "DELETING"
        • "FAILED"
      • RoleArn — (String)

        The Amazon Resource Name (ARN) of the role that provides access to the S3 bucket containing the input files for the FAQ.

      • ErrorMessage — (String)

        If the Status field is FAILED, the ErrorMessage field contains the reason why the FAQ failed.

      • FileFormat — (String)

        The file format used by the input files for the FAQ.

        Possible values include:
        • "CSV"
        • "CSV_WITH_HEADER"
        • "JSON"
      • LanguageCode — (String)

        The code for a language. This shows a supported language for the FAQ document. English is supported by default. For more information on supported languages, including their codes, see Adding documents in languages other than English.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeFeaturedResultsSet(params = {}, callback) ⇒ AWS.Request

Gets information about a set of featured results. Features results are placed above all other results for certain queries. If there's an exact match of a query, then one or more specific documents are featured in the search results.

Service Reference:

Examples:

Calling the describeFeaturedResultsSet operation

var params = {
  FeaturedResultsSetId: 'STRING_VALUE', /* required */
  IndexId: 'STRING_VALUE' /* required */
};
kendra.describeFeaturedResultsSet(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • IndexId — (String)

      The identifier of the index used for featuring results.

    • FeaturedResultsSetId — (String)

      The identifier of the set of featured results that you want to get information on.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • FeaturedResultsSetId — (String)

        The identifier of the set of featured results.

      • FeaturedResultsSetName — (String)

        The name for the set of featured results.

      • Description — (String)

        The description for the set of featured results.

      • Status — (String)

        The current status of the set of featured results. When the value is ACTIVE, featured results are ready for use. You can still configure your settings before setting the status to ACTIVE. You can set the status to ACTIVE or INACTIVE using the UpdateFeaturedResultsSet API. The queries you specify for featured results must be unique per featured results set for each index, whether the status is ACTIVE or INACTIVE.

        Possible values include:
        • "ACTIVE"
        • "INACTIVE"
      • QueryTexts — (Array<String>)

        The list of queries for featuring results. For more information on the list of queries, see FeaturedResultsSet.

      • FeaturedDocumentsWithMetadata — (Array<map>)

        The list of document IDs for the documents you want to feature with their metadata information. For more information on the list of featured documents, see FeaturedResultsSet.

        • Id — (String)

          The identifier of the featured document with its metadata. You can use the Query API to search for specific documents with their document IDs included in the result items, or you can use the console.

        • Title — (String)

          The main title of the featured document.

        • URI — (String)

          The source URI location of the featured document.

      • FeaturedDocumentsMissing — (Array<map>)

        The list of document IDs that don't exist but you have specified as featured documents. Amazon Kendra cannot feature these documents if they don't exist in the index. You can check the status of a document and its ID or check for documents with status errors using the BatchGetDocumentStatus API.

        • Id — (String)

          The identifier of the document that doesn't exist but you have specified as a featured document.

      • LastUpdatedTimestamp — (Integer)

        The timestamp when the set of featured results was last updated.

      • CreationTimestamp — (Integer)

        The Unix timestamp when the set of the featured results was created.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeIndex(params = {}, callback) ⇒ AWS.Request

Gets information about an Amazon Kendra index.

Service Reference:

Examples:

Calling the describeIndex operation

var params = {
  Id: 'STRING_VALUE' /* required */
};
kendra.describeIndex(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Id — (String)

      The identifier of the index you want to get information on.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Name — (String)

        The name of the index.

      • Id — (String)

        The identifier of the index.

      • Edition — (String)

        The Amazon Kendra edition used for the index. You decide the edition when you create the index.

        Possible values include:
        • "DEVELOPER_EDITION"
        • "ENTERPRISE_EDITION"
      • RoleArn — (String)

        The Amazon Resource Name (ARN) of the IAM role that gives Amazon Kendra permission to write to your Amazon CloudWatch logs.

      • ServerSideEncryptionConfiguration — (map)

        The identifier of the KMS customer master key (CMK) that is used to encrypt your data. Amazon Kendra doesn't support asymmetric CMKs.

        • KmsKeyId — (String)

          The identifier of the KMS key. Amazon Kendra doesn't support asymmetric keys.

      • Status — (String)

        The current status of the index. When the value is ACTIVE, the index is ready for use. If the Status field value is FAILED, the ErrorMessage field contains a message that explains why.

        Possible values include:
        • "CREATING"
        • "ACTIVE"
        • "DELETING"
        • "FAILED"
        • "UPDATING"
        • "SYSTEM_UPDATING"
      • Description — (String)

        The description for the index.

      • CreatedAt — (Date)

        The Unix timestamp when the index was created.

      • UpdatedAt — (Date)

        The Unix timestamp when the index was last updated.

      • DocumentMetadataConfigurations — (Array<map>)

        Configuration information for document metadata or fields. Document metadata are fields or attributes associated with your documents. For example, the company department name associated with each document.

        • Namerequired — (String)

          The name of the index field.

        • Typerequired — (String)

          The data type of the index field.

          Possible values include:
          • "STRING_VALUE"
          • "STRING_LIST_VALUE"
          • "LONG_VALUE"
          • "DATE_VALUE"
        • Relevance — (map)

          Provides tuning parameters to determine how the field affects the search results.

          • Freshness — (Boolean)

            Indicates that this field determines how "fresh" a document is. For example, if document 1 was created on November 5, and document 2 was created on October 31, document 1 is "fresher" than document 2. Only applies to DATE fields.

          • Importance — (Integer)

            The relative importance of the field in the search. Larger numbers provide more of a boost than smaller numbers.

          • Duration — (String)

            Specifies the time period that the boost applies to. For example, to make the boost apply to documents with the field value within the last month, you would use "2628000s". Once the field value is beyond the specified range, the effect of the boost drops off. The higher the importance, the faster the effect drops off. If you don't specify a value, the default is 3 months. The value of the field is a numeric string followed by the character "s", for example "86400s" for one day, or "604800s" for one week.

            Only applies to DATE fields.

          • RankOrder — (String)

            Determines how values should be interpreted.

            When the RankOrder field is ASCENDING, higher numbers are better. For example, a document with a rating score of 10 is higher ranking than a document with a rating score of 1.

            When the RankOrder field is DESCENDING, lower numbers are better. For example, in a task tracking application, a priority 1 task is more important than a priority 5 task.

            Only applies to LONG fields.

            Possible values include:
            • "ASCENDING"
            • "DESCENDING"
          • ValueImportanceMap — (map<Integer>)

            A list of values that should be given a different boost when they appear in the result list. For example, if you are boosting a field called "department", query terms that match the department field are boosted in the result. However, you can add entries from the department field to boost documents with those values higher.

            For example, you can add entries to the map with names of departments. If you add "HR",5 and "Legal",3 those departments are given special attention when they appear in the metadata of a document. When those terms appear they are given the specified importance instead of the regular importance for the boost.

        • Search — (map)

          Provides information about how the field is used during a search.

          • Facetable — (Boolean)

            Indicates that the field can be used to create search facets, a count of results for each value in the field. The default is false .

          • Searchable — (Boolean)

            Determines whether the field is used in the search. If the Searchable field is true, you can use relevance tuning to manually tune how Amazon Kendra weights the field in the search. The default is true for string fields and false for number and date fields.

          • Displayable — (Boolean)

            Determines whether the field is returned in the query response. The default is true.

          • Sortable — (Boolean)

            Determines whether the field can be used to sort the results of a query. If you specify sorting on a field that does not have Sortable set to true, Amazon Kendra returns an exception. The default is false.

      • IndexStatistics — (map)

        Provides information about the number of FAQ questions and answers and the number of text documents indexed.

        • FaqStatisticsrequired — (map)

          The number of question and answer topics in the index.

          • IndexedQuestionAnswersCountrequired — (Integer)

            The total number of FAQ questions and answers contained in the index.

        • TextDocumentStatisticsrequired — (map)

          The number of text documents indexed.

          • IndexedTextDocumentsCountrequired — (Integer)

            The number of text documents indexed.

          • IndexedTextBytesrequired — (Integer)

            The total size, in bytes, of the indexed documents.

      • ErrorMessage — (String)

        When the Status field value is FAILED, the ErrorMessage field contains a message that explains why.

      • CapacityUnits — (map)

        For Enterprise Edition indexes, you can choose to use additional capacity to meet the needs of your application. This contains the capacity units used for the index. A query or document storage capacity of zero indicates that the index is using the default capacity. For more information on the default capacity for an index and adjusting this, see Adjusting capacity.

        • StorageCapacityUnitsrequired — (Integer)

          The amount of extra storage capacity for an index. A single capacity unit provides 30 GB of storage space or 100,000 documents, whichever is reached first. You can add up to 100 extra capacity units.

        • QueryCapacityUnitsrequired — (Integer)

          The amount of extra query capacity for an index and GetQuerySuggestions capacity.

          A single extra capacity unit for an index provides 0.1 queries per second or approximately 8,000 queries per day. You can add up to 100 extra capacity units.

          GetQuerySuggestions capacity is five times the provisioned query capacity for an index, or the base capacity of 2.5 calls per second, whichever is higher. For example, the base capacity for an index is 0.1 queries per second, and GetQuerySuggestions capacity has a base of 2.5 calls per second. If you add another 0.1 queries per second to total 0.2 queries per second for an index, the GetQuerySuggestions capacity is 2.5 calls per second (higher than five times 0.2 queries per second).

      • UserTokenConfigurations — (Array<map>)

        The user token configuration for the Amazon Kendra index.

        • JwtTokenTypeConfiguration — (map)

          Information about the JWT token type configuration.

          • KeyLocationrequired — (String)

            The location of the key.

            Possible values include:
            • "URL"
            • "SECRET_MANAGER"
          • URL — (String)

            The signing key URL.

          • SecretManagerArn — (String)

            The Amazon Resource Name (arn) of the secret.

          • UserNameAttributeField — (String)

            The user name attribute field.

          • GroupAttributeField — (String)

            The group attribute field.

          • Issuer — (String)

            The issuer of the token.

          • ClaimRegex — (String)

            The regular expression that identifies the claim.

        • JsonTokenTypeConfiguration — (map)

          Information about the JSON token type configuration.

          • UserNameAttributeFieldrequired — (String)

            The user name attribute field.

          • GroupAttributeFieldrequired — (String)

            The group attribute field.

      • UserContextPolicy — (String)

        The user context policy for the Amazon Kendra index.

        Possible values include:
        • "ATTRIBUTE_FILTER"
        • "USER_TOKEN"
      • UserGroupResolutionConfiguration — (map)

        Whether you have enabled IAM Identity Center identity source for your users and groups. This is useful for user context filtering, where search results are filtered based on the user or their group access to documents.

        • UserGroupResolutionModerequired — (String)

          The identity store provider (mode) you want to use to get users and groups. IAM Identity Center is currently the only available mode. Your users and groups must exist in an IAM Identity Center identity source in order to use this mode.

          Possible values include:
          • "AWS_SSO"
          • "NONE"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describePrincipalMapping(params = {}, callback) ⇒ AWS.Request

Describes the processing of PUT and DELETE actions for mapping users to their groups. This includes information on the status of actions currently processing or yet to be processed, when actions were last updated, when actions were received by Amazon Kendra, the latest action that should process and apply after other actions, and useful error messages if an action could not be processed.

DescribePrincipalMapping is currently not supported in the Amazon Web Services GovCloud (US-West) region.

Service Reference:

Examples:

Calling the describePrincipalMapping operation

var params = {
  GroupId: 'STRING_VALUE', /* required */
  IndexId: 'STRING_VALUE', /* required */
  DataSourceId: 'STRING_VALUE'
};
kendra.describePrincipalMapping(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • IndexId — (String)

      The identifier of the index required to check the processing of PUT and DELETE actions for mapping users to their groups.

    • DataSourceId — (String)

      The identifier of the data source to check the processing of PUT and DELETE actions for mapping users to their groups.

    • GroupId — (String)

      The identifier of the group required to check the processing of PUT and DELETE actions for mapping users to their groups.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • IndexId — (String)

        Shows the identifier of the index to see information on the processing of PUT and DELETE actions for mapping users to their groups.

      • DataSourceId — (String)

        Shows the identifier of the data source to see information on the processing of PUT and DELETE actions for mapping users to their groups.

      • GroupId — (String)

        Shows the identifier of the group to see information on the processing of PUT and DELETE actions for mapping users to their groups.

      • GroupOrderingIdSummaries — (Array<map>)

        Shows the following information on the processing of PUT and DELETE actions for mapping users to their groups:

        • Status—the status can be either PROCESSING, SUCCEEDED, DELETING, DELETED, or FAILED.

        • Last updated—the last date-time an action was updated.

        • Received—the last date-time an action was received or submitted.

        • Ordering ID—the latest action that should process and apply after other actions.

        • Failure reason—the reason an action could not be processed.

        • Status — (String)

          The current processing status of actions for mapping users to their groups. The status can be either PROCESSING, SUCCEEDED, DELETING, DELETED, or FAILED.

          Possible values include:
          • "FAILED"
          • "SUCCEEDED"
          • "PROCESSING"
          • "DELETING"
          • "DELETED"
        • LastUpdatedAt — (Date)

          The Unix timestamp when an action was last updated. An action can be a PUT or DELETE action for mapping users to their groups.

        • ReceivedAt — (Date)

          The Unix timestamp when an action was received by Amazon Kendra. An action can be a PUT or DELETE action for mapping users to their groups.

        • OrderingId — (Integer)

          The order in which actions should complete processing. An action can be a PUT or DELETE action for mapping users to their groups.

        • FailureReason — (String)

          The reason an action could not be processed. An action can be a PUT or DELETE action for mapping users to their groups.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeQuerySuggestionsBlockList(params = {}, callback) ⇒ AWS.Request

Gets information about a block list used for query suggestions for an index.

This is used to check the current settings that are applied to a block list.

DescribeQuerySuggestionsBlockList is currently not supported in the Amazon Web Services GovCloud (US-West) region.

Examples:

Calling the describeQuerySuggestionsBlockList operation

var params = {
  Id: 'STRING_VALUE', /* required */
  IndexId: 'STRING_VALUE' /* required */
};
kendra.describeQuerySuggestionsBlockList(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • IndexId — (String)

      The identifier of the index for the block list.

    • Id — (String)

      The identifier of the block list you want to get information on.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • IndexId — (String)

        The identifier of the index for the block list.

      • Id — (String)

        The identifier of the block list.

      • Name — (String)

        The name of the block list.

      • Description — (String)

        The description for the block list.

      • Status — (String)

        The current status of the block list. When the value is ACTIVE, the block list is ready for use.

        Possible values include:
        • "ACTIVE"
        • "CREATING"
        • "DELETING"
        • "UPDATING"
        • "ACTIVE_BUT_UPDATE_FAILED"
        • "FAILED"
      • ErrorMessage — (String)

        The error message containing details if there are issues processing the block list.

      • CreatedAt — (Date)

        The Unix timestamp when a block list for query suggestions was created.

      • UpdatedAt — (Date)

        The Unix timestamp when a block list for query suggestions was last updated.

      • SourceS3Path — (map)

        Shows the current S3 path to your block list text file in your S3 bucket.

        Each block word or phrase should be on a separate line in a text file.

        For information on the current quota limits for block lists, see Quotas for Amazon Kendra.

        • Bucketrequired — (String)

          The name of the S3 bucket that contains the file.

        • Keyrequired — (String)

          The name of the file.

      • ItemCount — (Integer)

        The current number of valid, non-empty words or phrases in the block list text file.

      • FileSizeBytes — (Integer)

        The current size of the block list text file in S3.

      • RoleArn — (String)

        The IAM (Identity and Access Management) role used by Amazon Kendra to access the block list text file in S3.

        The role needs S3 read permissions to your file in S3 and needs to give STS (Security Token Service) assume role permissions to Amazon Kendra.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeQuerySuggestionsConfig(params = {}, callback) ⇒ AWS.Request

Gets information on the settings of query suggestions for an index.

This is used to check the current settings applied to query suggestions.

DescribeQuerySuggestionsConfig is currently not supported in the Amazon Web Services GovCloud (US-West) region.

Service Reference:

Examples:

Calling the describeQuerySuggestionsConfig operation

var params = {
  IndexId: 'STRING_VALUE' /* required */
};
kendra.describeQuerySuggestionsConfig(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • IndexId — (String)

      The identifier of the index with query suggestions that you want to get information on.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Mode — (String)

        Whether query suggestions are currently in ENABLED mode or LEARN_ONLY mode.

        By default, Amazon Kendra enables query suggestions.LEARN_ONLY turns off query suggestions for your users. You can change the mode using the UpdateQuerySuggestionsConfig API.

        Possible values include:
        • "ENABLED"
        • "LEARN_ONLY"
      • Status — (String)

        Whether the status of query suggestions settings is currently ACTIVE or UPDATING.

        Active means the current settings apply and Updating means your changed settings are in the process of applying.

        Possible values include:
        • "ACTIVE"
        • "UPDATING"
      • QueryLogLookBackWindowInDays — (Integer)

        How recent your queries are in your query log time window (in days).

      • IncludeQueriesWithoutUserInformation — (Boolean)

        TRUE to use all queries, otherwise use only queries that include user information to generate the query suggestions.

      • MinimumNumberOfQueryingUsers — (Integer)

        The minimum number of unique users who must search a query in order for the query to be eligible to suggest to your users.

      • MinimumQueryCount — (Integer)

        The minimum number of times a query must be searched in order for the query to be eligible to suggest to your users.

      • LastSuggestionsBuildTime — (Date)

        The Unix timestamp when query suggestions for an index was last updated.

        Amazon Kendra automatically updates suggestions every 24 hours, after you change a setting or after you apply a block list.

      • LastClearTime — (Date)

        The Unix timestamp when query suggestions for an index was last cleared.

        After you clear suggestions, Amazon Kendra learns new suggestions based on new queries added to the query log from the time you cleared suggestions. Amazon Kendra only considers re-occurences of a query from the time you cleared suggestions.

      • TotalSuggestionsCount — (Integer)

        The current total count of query suggestions for an index.

        This count can change when you update your query suggestions settings, if you filter out certain queries from suggestions using a block list, and as the query log accumulates more queries for Amazon Kendra to learn from.

        If the count is much lower than you expected, it could be because Amazon Kendra needs more queries in the query history to learn from or your current query suggestions settings are too strict.

      • AttributeSuggestionsConfig — (map)

        Configuration information for the document fields/attributes that you want to base query suggestions on.

        • SuggestableConfigList — (Array<map>)

          The list of fields/attributes that you want to set as suggestible for query suggestions.

          • AttributeName — (String)

            The name of the document field/attribute.

          • Suggestable — (Boolean)

            TRUE means the document field/attribute is suggestible, so the contents within the field can be used for query suggestions.

        • AttributeSuggestionsMode — (String)

          The mode is set to either ACTIVE or INACTIVE. If the Mode for query history is set to ENABLED when calling UpdateQuerySuggestionsConfig and AttributeSuggestionsMode to use fields/attributes is set to ACTIVE, and you haven't set your SuggestionTypes preference to DOCUMENT_ATTRIBUTES, then Amazon Kendra uses the query history.

          Possible values include:
          • "ACTIVE"
          • "INACTIVE"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeThesaurus(params = {}, callback) ⇒ AWS.Request

Gets information about an Amazon Kendra thesaurus.

Service Reference:

Examples:

Calling the describeThesaurus operation

var params = {
  Id: 'STRING_VALUE', /* required */
  IndexId: 'STRING_VALUE' /* required */
};
kendra.describeThesaurus(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Id — (String)

      The identifier of the thesaurus you want to get information on.

    • IndexId — (String)

      The identifier of the index for the thesaurus.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Id — (String)

        The identifier of the thesaurus.

      • IndexId — (String)

        The identifier of the index for the thesaurus.

      • Name — (String)

        The thesaurus name.

      • Description — (String)

        The thesaurus description.

      • Status — (String)

        The current status of the thesaurus. When the value is ACTIVE, queries are able to use the thesaurus. If the Status field value is FAILED, the ErrorMessage field provides more information.

        If the status is ACTIVE_BUT_UPDATE_FAILED, it means that Amazon Kendra could not ingest the new thesaurus file. The old thesaurus file is still active.

        Possible values include:
        • "CREATING"
        • "ACTIVE"
        • "DELETING"
        • "UPDATING"
        • "ACTIVE_BUT_UPDATE_FAILED"
        • "FAILED"
      • ErrorMessage — (String)

        When the Status field value is FAILED, the ErrorMessage field provides more information.

      • CreatedAt — (Date)

        The Unix timestamp when the thesaurus was created.

      • UpdatedAt — (Date)

        The Unix timestamp when the thesaurus was last updated.

      • RoleArn — (String)

        An IAM role that gives Amazon Kendra permissions to access thesaurus file specified in SourceS3Path.

      • SourceS3Path — (map)

        Information required to find a specific file in an Amazon S3 bucket.

        • Bucketrequired — (String)

          The name of the S3 bucket that contains the file.

        • Keyrequired — (String)

          The name of the file.

      • FileSizeBytes — (Integer)

        The size of the thesaurus file in bytes.

      • TermCount — (Integer)

        The number of unique terms in the thesaurus file. For example, the synonyms a,b,c and a=>d, the term count would be 4.

      • SynonymRuleCount — (Integer)

        The number of synonym rules in the thesaurus file.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

disassociateEntitiesFromExperience(params = {}, callback) ⇒ AWS.Request

Prevents users or groups in your IAM Identity Center identity source from accessing your Amazon Kendra experience. You can create an Amazon Kendra experience such as a search application. For more information on creating a search application experience, see Building a search experience with no code.

Examples:

Calling the disassociateEntitiesFromExperience operation

var params = {
  EntityList: [ /* required */
    {
      EntityId: 'STRING_VALUE', /* required */
      EntityType: USER | GROUP /* required */
    },
    /* more items */
  ],
  Id: 'STRING_VALUE', /* required */
  IndexId: 'STRING_VALUE' /* required */
};
kendra.disassociateEntitiesFromExperience(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Id — (String)

      The identifier of your Amazon Kendra experience.

    • IndexId — (String)

      The identifier of the index for your Amazon Kendra experience.

    • EntityList — (Array<map>)

      Lists users or groups in your IAM Identity Center identity source.

      • EntityIdrequired — (String)

        The identifier of a user or group in your IAM Identity Center identity source. For example, a user ID could be an email.

      • EntityTyperequired — (String)

        Specifies whether you are configuring a User or a Group.

        Possible values include:
        • "USER"
        • "GROUP"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • FailedEntityList — (Array<map>)

        Lists the users or groups in your IAM Identity Center identity source that failed to properly remove access to your Amazon Kendra experience.

        • EntityId — (String)

          The identifier of the user or group in your IAM Identity Center identity source. For example, a user ID could be an email.

        • ErrorMessage — (String)

          The reason the user or group in your IAM Identity Center identity source failed to properly configure with your Amazon Kendra experience.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

disassociatePersonasFromEntities(params = {}, callback) ⇒ AWS.Request

Removes the specific permissions of users or groups in your IAM Identity Center identity source with access to your Amazon Kendra experience. You can create an Amazon Kendra experience such as a search application. For more information on creating a search application experience, see Building a search experience with no code.

Examples:

Calling the disassociatePersonasFromEntities operation

var params = {
  EntityIds: [ /* required */
    'STRING_VALUE',
    /* more items */
  ],
  Id: 'STRING_VALUE', /* required */
  IndexId: 'STRING_VALUE' /* required */
};
kendra.disassociatePersonasFromEntities(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Id — (String)

      The identifier of your Amazon Kendra experience.

    • IndexId — (String)

      The identifier of the index for your Amazon Kendra experience.

    • EntityIds — (Array<String>)

      The identifiers of users or groups in your IAM Identity Center identity source. For example, user IDs could be user emails.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • FailedEntityList — (Array<map>)

        Lists the users or groups in your IAM Identity Center identity source that failed to properly remove access to your Amazon Kendra experience.

        • EntityId — (String)

          The identifier of the user or group in your IAM Identity Center identity source. For example, a user ID could be an email.

        • ErrorMessage — (String)

          The reason the user or group in your IAM Identity Center identity source failed to properly configure with your Amazon Kendra experience.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getQuerySuggestions(params = {}, callback) ⇒ AWS.Request

Fetches the queries that are suggested to your users.

GetQuerySuggestions is currently not supported in the Amazon Web Services GovCloud (US-West) region.

Service Reference:

Examples:

Calling the getQuerySuggestions operation

var params = {
  IndexId: 'STRING_VALUE', /* required */
  QueryText: 'STRING_VALUE', /* required */
  AttributeSuggestionsConfig: {
    AdditionalResponseAttributes: [
      'STRING_VALUE',
      /* more items */
    ],
    AttributeFilter: { /* AttributeFilter */
      AndAllFilters: [
        /* recursive AttributeFilter */,
        /* more items */
      ],
      ContainsAll: {
        Key: 'STRING_VALUE', /* required */
        Value: { /* required */
          DateValue: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
          LongValue: 'NUMBER_VALUE',
          StringListValue: [
            'STRING_VALUE',
            /* more items */
          ],
          StringValue: 'STRING_VALUE'
        }
      },
      ContainsAny: {
        Key: 'STRING_VALUE', /* required */
        Value: { /* required */
          DateValue: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
          LongValue: 'NUMBER_VALUE',
          StringListValue: [
            'STRING_VALUE',
            /* more items */
          ],
          StringValue: 'STRING_VALUE'
        }
      },
      EqualsTo: {
        Key: 'STRING_VALUE', /* required */
        Value: { /* required */
          DateValue: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
          LongValue: 'NUMBER_VALUE',
          StringListValue: [
            'STRING_VALUE',
            /* more items */
          ],
          StringValue: 'STRING_VALUE'
        }
      },
      GreaterThan: {
        Key: 'STRING_VALUE', /* required */
        Value: { /* required */
          DateValue: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
          LongValue: 'NUMBER_VALUE',
          StringListValue: [
            'STRING_VALUE',
            /* more items */
          ],
          StringValue: 'STRING_VALUE'
        }
      },
      GreaterThanOrEquals: {
        Key: 'STRING_VALUE', /* required */
        Value: { /* required */
          DateValue: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
          LongValue: 'NUMBER_VALUE',
          StringListValue: [
            'STRING_VALUE',
            /* more items */
          ],
          StringValue: 'STRING_VALUE'
        }
      },
      LessThan: {
        Key: 'STRING_VALUE', /* required */
        Value: { /* required */
          DateValue: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
          LongValue: 'NUMBER_VALUE',
          StringListValue: [
            'STRING_VALUE',
            /* more items */
          ],
          StringValue: 'STRING_VALUE'
        }
      },
      LessThanOrEquals: {
        Key: 'STRING_VALUE', /* required */
        Value: { /* required */
          DateValue: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
          LongValue: 'NUMBER_VALUE',
          StringListValue: [
            'STRING_VALUE',
            /* more items */
          ],
          StringValue: 'STRING_VALUE'
        }
      },
      NotFilter: /* recursive AttributeFilter */,
      OrAllFilters: [
        /* recursive AttributeFilter */,
        /* more items */
      ]
    },
    SuggestionAttributes: [
      'STRING_VALUE',
      /* more items */
    ],
    UserContext: {
      DataSourceGroups: [
        {
          DataSourceId: 'STRING_VALUE', /* required */
          GroupId: 'STRING_VALUE' /* required */
        },
        /* more items */
      ],
      Groups: [
        'STRING_VALUE',
        /* more items */
      ],
      Token: 'STRING_VALUE',
      UserId: 'STRING_VALUE'
    }
  },
  MaxSuggestionsCount: 'NUMBER_VALUE',
  SuggestionTypes: [
    QUERY | DOCUMENT_ATTRIBUTES,
    /* more items */
  ]
};
kendra.getQuerySuggestions(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • IndexId — (String)

      The identifier of the index you want to get query suggestions from.

    • QueryText — (String)

      The text of a user's query to generate query suggestions.

      A query is suggested if the query prefix matches what a user starts to type as their query.

      Amazon Kendra does not show any suggestions if a user types fewer than two characters or more than 60 characters. A query must also have at least one search result and contain at least one word of more than four characters.

    • MaxSuggestionsCount — (Integer)

      The maximum number of query suggestions you want to show to your users.

    • SuggestionTypes — (Array<String>)

      The suggestions type to base query suggestions on. The suggestion types are query history or document fields/attributes. You can set one type or the other.

      If you set query history as your suggestions type, Amazon Kendra suggests queries relevant to your users based on popular queries in the query history.

      If you set document fields/attributes as your suggestions type, Amazon Kendra suggests queries relevant to your users based on the contents of document fields.

    • AttributeSuggestionsConfig — (map)

      Configuration information for the document fields/attributes that you want to base query suggestions on.

      • SuggestionAttributes — (Array<String>)

        The list of document field/attribute keys or field names to use for query suggestions. If the content within any of the fields match what your user starts typing as their query, then the field content is returned as a query suggestion.

      • AdditionalResponseAttributes — (Array<String>)

        The list of additional document field/attribute keys or field names to include in the response. You can use additional fields to provide extra information in the response. Additional fields are not used to based suggestions on.

      • AttributeFilter — (map)

        Filters the search results based on document fields/attributes.

        • AndAllFilters — (Array<map>)

          Performs a logical AND operation on all filters that you specify.

        • OrAllFilters — (Array<map>)

          Performs a logical OR operation on all filters that you specify.

        • EqualsTo — (map)

          Performs an equals operation on document attributes/fields and their values.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • ContainsAll — (map)

          Returns true when a document contains all of the specified document attributes/fields. This filter is only applicable to StringListValue.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • ContainsAny — (map)

          Returns true when a document contains any of the specified document attributes/fields. This filter is only applicable to StringListValue.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • GreaterThan — (map)

          Performs a greater than operation on document attributes/fields and their values. Use with the document attribute type Date or Long.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • GreaterThanOrEquals — (map)

          Performs a greater or equals than operation on document attributes/fields and their values. Use with the document attribute type Date or Long.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • LessThan — (map)

          Performs a less than operation on document attributes/fields and their values. Use with the document attribute type Date or Long.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • LessThanOrEquals — (map)

          Performs a less than or equals operation on document attributes/fields and their values. Use with the document attribute type Date or Long.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

      • UserContext — (map)

        Applies user context filtering so that only users who are given access to certain documents see these document in their search results.

        • Token — (String)

          The user context token for filtering search results for a user. It must be a JWT or a JSON token.

        • UserId — (String)

          The identifier of the user you want to filter search results based on their access to documents.

        • Groups — (Array<String>)

          The list of groups you want to filter search results based on the groups' access to documents.

        • DataSourceGroups — (Array<map>)

          The list of data source groups you want to filter search results based on groups' access to documents in that data source.

          • GroupIdrequired — (String)

            The identifier of the group you want to add to your list of groups. This is for filtering search results based on the groups' access to documents.

          • DataSourceIdrequired — (String)

            The identifier of the data source group you want to add to your list of data source groups. This is for filtering search results based on the groups' access to documents in that data source.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • QuerySuggestionsId — (String)

        The identifier for a list of query suggestions for an index.

      • Suggestions — (Array<map>)

        A list of query suggestions for an index.

        • Id — (String)

          The UUID (universally unique identifier) of a single query suggestion.

        • Value — (map)

          The value for the UUID (universally unique identifier) of a single query suggestion.

          The value is the text string of a suggestion.

          • Text — (map)

            The SuggestionTextWithHighlights structure that contains the query suggestion text and highlights.

            • Text — (String)

              The query suggestion text to display to the user.

            • Highlights — (Array<map>)

              The beginning and end of the query suggestion text that should be highlighted.

              • BeginOffset — (Integer)

                The zero-based location in the response string where the highlight starts.

              • EndOffset — (Integer)

                The zero-based location in the response string where the highlight ends.

        • SourceDocuments — (Array<map>)

          The list of document IDs and their fields/attributes that are used for a single query suggestion, if document fields set to use for query suggestions.

          • DocumentId — (String)

            The identifier of the document used for a query suggestion.

          • SuggestionAttributes — (Array<String>)

            The document fields/attributes used for a query suggestion.

          • AdditionalAttributes — (Array<map>)

            The additional fields/attributes to include in the response. You can use additional fields to provide extra information in the response. Additional fields are not used to based suggestions on.

            • Keyrequired — (String)

              The identifier for the attribute.

            • Valuerequired — (map)

              The value of the attribute.

              • StringValue — (String)

                A string, such as "department".

              • StringListValue — (Array<String>)

                A list of strings. The default maximum length or number of strings is 10.

              • LongValue — (Integer)

                A long integer value.

              • DateValue — (Date)

                A date expressed as an ISO 8601 string.

                It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getSnapshots(params = {}, callback) ⇒ AWS.Request

Retrieves search metrics data. The data provides a snapshot of how your users interact with your search application and how effective the application is.

Service Reference:

Examples:

Calling the getSnapshots operation

var params = {
  IndexId: 'STRING_VALUE', /* required */
  Interval: THIS_MONTH | THIS_WEEK | ONE_WEEK_AGO | TWO_WEEKS_AGO | ONE_MONTH_AGO | TWO_MONTHS_AGO, /* required */
  MetricType: QUERIES_BY_COUNT | QUERIES_BY_ZERO_CLICK_RATE | QUERIES_BY_ZERO_RESULT_RATE | DOCS_BY_CLICK_COUNT | AGG_QUERY_DOC_METRICS | TREND_QUERY_DOC_METRICS, /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
kendra.getSnapshots(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • IndexId — (String)

      The identifier of the index to get search metrics data.

    • Interval — (String)

      The time interval or time window to get search metrics data. The time interval uses the time zone of your index. You can view data in the following time windows:

      • THIS_WEEK: The current week, starting on the Sunday and ending on the day before the current date.

      • ONE_WEEK_AGO: The previous week, starting on the Sunday and ending on the following Saturday.

      • TWO_WEEKS_AGO: The week before the previous week, starting on the Sunday and ending on the following Saturday.

      • THIS_MONTH: The current month, starting on the first day of the month and ending on the day before the current date.

      • ONE_MONTH_AGO: The previous month, starting on the first day of the month and ending on the last day of the month.

      • TWO_MONTHS_AGO: The month before the previous month, starting on the first day of the month and ending on last day of the month.

      Possible values include:
      • "THIS_MONTH"
      • "THIS_WEEK"
      • "ONE_WEEK_AGO"
      • "TWO_WEEKS_AGO"
      • "ONE_MONTH_AGO"
      • "TWO_MONTHS_AGO"
    • MetricType — (String)

      The metric you want to retrieve. You can specify only one metric per call.

      For more information about the metrics you can view, see Gaining insights with search analytics.

      Possible values include:
      • "QUERIES_BY_COUNT"
      • "QUERIES_BY_ZERO_CLICK_RATE"
      • "QUERIES_BY_ZERO_RESULT_RATE"
      • "DOCS_BY_CLICK_COUNT"
      • "AGG_QUERY_DOC_METRICS"
      • "TREND_QUERY_DOC_METRICS"
    • NextToken — (String)

      If the previous response was incomplete (because there is more data to retrieve), Amazon Kendra returns a pagination token in the response. You can use this pagination token to retrieve the next set of search metrics data.

    • MaxResults — (Integer)

      The maximum number of returned data for the metric.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • SnapShotTimeFilter — (map)

        The Unix timestamp for the beginning and end of the time window for the search metrics data.

        • StartTime — (Date)

          The Unix timestamp for the beginning of the time range.

        • EndTime — (Date)

          The Unix timestamp for the end of the time range.

      • SnapshotsDataHeader — (Array<String>)

        The column headers for the search metrics data.

      • SnapshotsData — (Array<Array<String>>)

        The search metrics data. The data returned depends on the metric type you requested.

      • NextToken — (String)

        If the response is truncated, Amazon Kendra returns this token, which you can use in a later request to retrieve the next set of search metrics data.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listAccessControlConfigurations(params = {}, callback) ⇒ AWS.Request

Lists one or more access control configurations for an index. This includes user and group access information for your documents. This is useful for user context filtering, where search results are filtered based on the user or their group access to documents.

Service Reference:

Examples:

Calling the listAccessControlConfigurations operation

var params = {
  IndexId: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
kendra.listAccessControlConfigurations(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • IndexId — (String)

      The identifier of the index for the access control configuration.

    • NextToken — (String)

      If the previous response was incomplete (because there's more data to retrieve), Amazon Kendra returns a pagination token in the response. You can use this pagination token to retrieve the next set of access control configurations.

    • MaxResults — (Integer)

      The maximum number of access control configurations to return.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • NextToken — (String)

        If the response is truncated, Amazon Kendra returns this token, which you can use in the subsequent request to retrieve the next set of access control configurations.

      • AccessControlConfigurations — (Array<map>)

        The details of your access control configurations.

        • Idrequired — (String)

          The identifier of the access control configuration.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listDataSources(params = {}, callback) ⇒ AWS.Request

Lists the data source connectors that you have created.

Service Reference:

Examples:

Calling the listDataSources operation

var params = {
  IndexId: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
kendra.listDataSources(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • IndexId — (String)

      The identifier of the index used with one or more data source connectors.

    • NextToken — (String)

      If the previous response was incomplete (because there is more data to retrieve), Amazon Kendra returns a pagination token in the response. You can use this pagination token to retrieve the next set of data source connectors.

    • MaxResults — (Integer)

      The maximum number of data source connectors to return.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • SummaryItems — (Array<map>)

        An array of summary information for one or more data source connector.

        • Name — (String)

          The name of the data source.

        • Id — (String)

          The identifier for the data source.

        • Type — (String)

          The type of the data source.

          Possible values include:
          • "S3"
          • "SHAREPOINT"
          • "DATABASE"
          • "SALESFORCE"
          • "ONEDRIVE"
          • "SERVICENOW"
          • "CUSTOM"
          • "CONFLUENCE"
          • "GOOGLEDRIVE"
          • "WEBCRAWLER"
          • "WORKDOCS"
          • "FSX"
          • "SLACK"
          • "BOX"
          • "QUIP"
          • "JIRA"
          • "GITHUB"
          • "ALFRESCO"
          • "TEMPLATE"
        • CreatedAt — (Date)

          The Unix timestamp when the data source connector was created.

        • UpdatedAt — (Date)

          The Unix timestamp when the data source connector was last updated.

        • Status — (String)

          The status of the data source. When the status is ACTIVE the data source is ready to use.

          Possible values include:
          • "CREATING"
          • "DELETING"
          • "FAILED"
          • "UPDATING"
          • "ACTIVE"
        • LanguageCode — (String)

          The code for a language. This shows a supported language for all documents in the data source. English is supported by default. For more information on supported languages, including their codes, see Adding documents in languages other than English.

      • NextToken — (String)

        If the response is truncated, Amazon Kendra returns this token that you can use in the subsequent request to retrieve the next set of data source connectors.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listDataSourceSyncJobs(params = {}, callback) ⇒ AWS.Request

Gets statistics about synchronizing a data source connector.

Service Reference:

Examples:

Calling the listDataSourceSyncJobs operation

var params = {
  Id: 'STRING_VALUE', /* required */
  IndexId: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  StartTimeFilter: {
    EndTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
    StartTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789
  },
  StatusFilter: FAILED | SUCCEEDED | SYNCING | INCOMPLETE | STOPPING | ABORTED | SYNCING_INDEXING
};
kendra.listDataSourceSyncJobs(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Id — (String)

      The identifier of the data source connector.

    • IndexId — (String)

      The identifier of the index used with the data source connector.

    • NextToken — (String)

      If the previous response was incomplete (because there is more data to retrieve), Amazon Kendra returns a pagination token in the response. You can use this pagination token to retrieve the next set of jobs.

    • MaxResults — (Integer)

      The maximum number of synchronization jobs to return in the response. If there are fewer results in the list, this response contains only the actual results.

    • StartTimeFilter — (map)

      When specified, the synchronization jobs returned in the list are limited to jobs between the specified dates.

      • StartTime — (Date)

        The Unix timestamp for the beginning of the time range.

      • EndTime — (Date)

        The Unix timestamp for the end of the time range.

    • StatusFilter — (String)

      Only returns synchronization jobs with the Status field equal to the specified status.

      Possible values include:
      • "FAILED"
      • "SUCCEEDED"
      • "SYNCING"
      • "INCOMPLETE"
      • "STOPPING"
      • "ABORTED"
      • "SYNCING_INDEXING"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • History — (Array<map>)

        A history of synchronization jobs for the data source connector.

        • ExecutionId — (String)

          A identifier for the synchronization job.

        • StartTime — (Date)

          The Unix timestamp when the synchronization job started.

        • EndTime — (Date)

          The Unix timestamp when the synchronization job completed.

        • Status — (String)

          The execution status of the synchronization job. When the Status field is set to SUCCEEDED, the synchronization job is done. If the status code is set to FAILED, the ErrorCode and ErrorMessage fields give you the reason for the failure.

          Possible values include:
          • "FAILED"
          • "SUCCEEDED"
          • "SYNCING"
          • "INCOMPLETE"
          • "STOPPING"
          • "ABORTED"
          • "SYNCING_INDEXING"
        • ErrorMessage — (String)

          If the Status field is set to ERROR, the ErrorMessage field contains a description of the error that caused the synchronization to fail.

        • ErrorCode — (String)

          If the Status field is set to FAILED, the ErrorCode field indicates the reason the synchronization failed.

          Possible values include:
          • "InternalError"
          • "InvalidRequest"
        • DataSourceErrorCode — (String)

          If the reason that the synchronization failed is due to an error with the underlying data source, this field contains a code that identifies the error.

        • Metrics — (map)

          Maps a batch delete document request to a specific data source sync job. This is optional and should only be supplied when documents are deleted by a data source connector.

          • DocumentsAdded — (String)

            The number of documents added from the data source up to now in the data source sync.

          • DocumentsModified — (String)

            The number of documents modified in the data source up to now in the data source sync run.

          • DocumentsDeleted — (String)

            The number of documents deleted from the data source up to now in the data source sync run.

          • DocumentsFailed — (String)

            The number of documents that failed to sync from the data source up to now in the data source sync run.

          • DocumentsScanned — (String)

            The current number of documents crawled by the current sync job in the data source.

      • NextToken — (String)

        If the response is truncated, Amazon Kendra returns this token that you can use in the subsequent request to retrieve the next set of jobs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listEntityPersonas(params = {}, callback) ⇒ AWS.Request

Lists specific permissions of users and groups with access to your Amazon Kendra experience.

Service Reference:

Examples:

Calling the listEntityPersonas operation

var params = {
  Id: 'STRING_VALUE', /* required */
  IndexId: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
kendra.listEntityPersonas(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Id — (String)

      The identifier of your Amazon Kendra experience.

    • IndexId — (String)

      The identifier of the index for your Amazon Kendra experience.

    • NextToken — (String)

      If the previous response was incomplete (because there is more data to retrieve), Amazon Kendra returns a pagination token in the response. You can use this pagination token to retrieve the next set of users or groups.

    • MaxResults — (Integer)

      The maximum number of returned users or groups.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • SummaryItems — (Array<map>)

        An array of summary information for one or more users or groups.

        • EntityId — (String)

          The identifier of a user or group in your IAM Identity Center identity source. For example, a user ID could be an email.

        • Persona — (String)

          The persona that defines the specific permissions of the user or group in your IAM Identity Center identity source. The available personas or access roles are Owner and Viewer. For more information on these personas, see Providing access to your search page.

          Possible values include:
          • "OWNER"
          • "VIEWER"
        • CreatedAt — (Date)

          The Unix timestamp when the summary information was created.

        • UpdatedAt — (Date)

          The Unix timestamp when the summary information was last updated.

      • NextToken — (String)

        If the response is truncated, Amazon Kendra returns this token, which you can use in a later request to retrieve the next set of users or groups.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listExperienceEntities(params = {}, callback) ⇒ AWS.Request

Lists users or groups in your IAM Identity Center identity source that are granted access to your Amazon Kendra experience. You can create an Amazon Kendra experience such as a search application. For more information on creating a search application experience, see Building a search experience with no code.

Service Reference:

Examples:

Calling the listExperienceEntities operation

var params = {
  Id: 'STRING_VALUE', /* required */
  IndexId: 'STRING_VALUE', /* required */
  NextToken: 'STRING_VALUE'
};
kendra.listExperienceEntities(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Id — (String)

      The identifier of your Amazon Kendra experience.

    • IndexId — (String)

      The identifier of the index for your Amazon Kendra experience.

    • NextToken — (String)

      If the previous response was incomplete (because there is more data to retrieve), Amazon Kendra returns a pagination token in the response. You can use this pagination token to retrieve the next set of users or groups.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • SummaryItems — (Array<map>)

        An array of summary information for one or more users or groups.

        • EntityId — (String)

          The identifier of a user or group in your IAM Identity Center identity source. For example, a user ID could be an email.

        • EntityType — (String)

          Shows the type as User or Group.

          Possible values include:
          • "USER"
          • "GROUP"
        • DisplayData — (map)

          Information about the user entity.

          • UserName — (String)

            The name of the user.

          • GroupName — (String)

            The name of the group.

          • IdentifiedUserName — (String)

            The user name of the user.

          • FirstName — (String)

            The first name of the user.

          • LastName — (String)

            The last name of the user.

      • NextToken — (String)

        If the response is truncated, Amazon Kendra returns this token, which you can use in a later request to retrieve the next set of users or groups.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listExperiences(params = {}, callback) ⇒ AWS.Request

Lists one or more Amazon Kendra experiences. You can create an Amazon Kendra experience such as a search application. For more information on creating a search application experience, see Building a search experience with no code.

Service Reference:

Examples:

Calling the listExperiences operation

var params = {
  IndexId: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
kendra.listExperiences(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • IndexId — (String)

      The identifier of the index for your Amazon Kendra experience.

    • NextToken — (String)

      If the previous response was incomplete (because there is more data to retrieve), Amazon Kendra returns a pagination token in the response. You can use this pagination token to retrieve the next set of Amazon Kendra experiences.

    • MaxResults — (Integer)

      The maximum number of returned Amazon Kendra experiences.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • SummaryItems — (Array<map>)

        An array of summary information for one or more Amazon Kendra experiences.

        • Name — (String)

          The name of your Amazon Kendra experience.

        • Id — (String)

          The identifier of your Amazon Kendra experience.

        • CreatedAt — (Date)

          The Unix timestamp when your Amazon Kendra experience was created.

        • Status — (String)

          The processing status of your Amazon Kendra experience.

          Possible values include:
          • "CREATING"
          • "ACTIVE"
          • "DELETING"
          • "FAILED"
        • Endpoints — (Array<map>)

          The endpoint URLs for your Amazon Kendra experiences. The URLs are unique and fully hosted by Amazon Web Services.

          • EndpointType — (String)

            The type of endpoint for your Amazon Kendra experience. The type currently available is HOME, which is a unique and fully hosted URL to the home page of your Amazon Kendra experience.

            Possible values include:
            • "HOME"
          • Endpoint — (String)

            The endpoint of your Amazon Kendra experience.

      • NextToken — (String)

        If the response is truncated, Amazon Kendra returns this token, which you can use in a later request to retrieve the next set of Amazon Kendra experiences.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listFaqs(params = {}, callback) ⇒ AWS.Request

Gets a list of FAQ lists associated with an index.

Service Reference:

Examples:

Calling the listFaqs operation

var params = {
  IndexId: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
kendra.listFaqs(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • IndexId — (String)

      The index that contains the FAQ lists.

    • NextToken — (String)

      If the previous response was incomplete (because there is more data to retrieve), Amazon Kendra returns a pagination token in the response. You can use this pagination token to retrieve the next set of FAQs.

    • MaxResults — (Integer)

      The maximum number of FAQs to return in the response. If there are fewer results in the list, this response contains only the actual results.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • NextToken — (String)

        If the response is truncated, Amazon Kendra returns this token that you can use in the subsequent request to retrieve the next set of FAQs.

      • FaqSummaryItems — (Array<map>)

        information about the FAQs associated with the specified index.

        • Id — (String)

          The identifier of the FAQ.

        • Name — (String)

          The name that you assigned the FAQ when you created or updated the FAQ.

        • Status — (String)

          The current status of the FAQ. When the status is ACTIVE the FAQ is ready for use.

          Possible values include:
          • "CREATING"
          • "UPDATING"
          • "ACTIVE"
          • "DELETING"
          • "FAILED"
        • CreatedAt — (Date)

          The Unix timestamp when the FAQ was created.

        • UpdatedAt — (Date)

          The Unix timestamp when the FAQ was last updated.

        • FileFormat — (String)

          The file type used to create the FAQ.

          Possible values include:
          • "CSV"
          • "CSV_WITH_HEADER"
          • "JSON"
        • LanguageCode — (String)

          The code for a language. This shows a supported language for the FAQ document as part of the summary information for FAQs. English is supported by default. For more information on supported languages, including their codes, see Adding documents in languages other than English.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listFeaturedResultsSets(params = {}, callback) ⇒ AWS.Request

Lists all your sets of featured results for a given index. Features results are placed above all other results for certain queries. If there's an exact match of a query, then one or more specific documents are featured in the search results.

Service Reference:

Examples:

Calling the listFeaturedResultsSets operation

var params = {
  IndexId: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
kendra.listFeaturedResultsSets(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • IndexId — (String)

      The identifier of the index used for featuring results.

    • NextToken — (String)

      If the response is truncated, Amazon Kendra returns a pagination token in the response. You can use this pagination token to retrieve the next set of featured results sets.

    • MaxResults — (Integer)

      The maximum number of featured results sets to return.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • FeaturedResultsSetSummaryItems — (Array<map>)

        An array of summary information for one or more featured results sets.

        • FeaturedResultsSetId — (String)

          The identifier of the set of featured results.

        • FeaturedResultsSetName — (String)

          The name for the set of featured results.

        • Status — (String)

          The current status of the set of featured results. When the value is ACTIVE, featured results are ready for use. You can still configure your settings before setting the status to ACTIVE. You can set the status to ACTIVE or INACTIVE using the UpdateFeaturedResultsSet API. The queries you specify for featured results must be unique per featured results set for each index, whether the status is ACTIVE or INACTIVE.

          Possible values include:
          • "ACTIVE"
          • "INACTIVE"
        • LastUpdatedTimestamp — (Integer)

          The Unix timestamp when the set of featured results was last updated.

        • CreationTimestamp — (Integer)

          The Unix timestamp when the set of featured results was created.

      • NextToken — (String)

        If the response is truncated, Amazon Kendra returns a pagination token in the response.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listGroupsOlderThanOrderingId(params = {}, callback) ⇒ AWS.Request

Provides a list of groups that are mapped to users before a given ordering or timestamp identifier.

ListGroupsOlderThanOrderingId is currently not supported in the Amazon Web Services GovCloud (US-West) region.

Service Reference:

Examples:

Calling the listGroupsOlderThanOrderingId operation

var params = {
  IndexId: 'STRING_VALUE', /* required */
  OrderingId: 'NUMBER_VALUE', /* required */
  DataSourceId: 'STRING_VALUE',
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
kendra.listGroupsOlderThanOrderingId(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • IndexId — (String)

      The identifier of the index for getting a list of groups mapped to users before a given ordering or timestamp identifier.

    • DataSourceId — (String)

      The identifier of the data source for getting a list of groups mapped to users before a given ordering timestamp identifier.

    • OrderingId — (Integer)

      The timestamp identifier used for the latest PUT or DELETE action for mapping users to their groups.

    • NextToken — (String)

      If the previous response was incomplete (because there is more data to retrieve), Amazon Kendra returns a pagination token in the response. You can use this pagination token to retrieve the next set of groups that are mapped to users before a given ordering or timestamp identifier.

    • MaxResults — (Integer)

      The maximum number of returned groups that are mapped to users before a given ordering or timestamp identifier.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • GroupsSummaries — (Array<map>)

        Summary information for list of groups that are mapped to users before a given ordering or timestamp identifier.

        • GroupId — (String)

          The identifier of the group you want group summary information on.

        • OrderingId — (Integer)

          The timestamp identifier used for the latest PUT or DELETE action.

      • NextToken — (String)

        If the response is truncated, Amazon Kendra returns this token that you can use in the subsequent request to retrieve the next set of groups that are mapped to users before a given ordering or timestamp identifier.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listIndices(params = {}, callback) ⇒ AWS.Request

Lists the Amazon Kendra indexes that you created.

Service Reference:

Examples:

Calling the listIndices operation

var params = {
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
kendra.listIndices(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • NextToken — (String)

      If the previous response was incomplete (because there is more data to retrieve), Amazon Kendra returns a pagination token in the response. You can use this pagination token to retrieve the next set of indexes.

    • MaxResults — (Integer)

      The maximum number of indices to return.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • IndexConfigurationSummaryItems — (Array<map>)

        An array of summary information on the configuration of one or more indexes.

        • Name — (String)

          The name of the index.

        • Id — (String)

          A identifier for the index. Use this to identify the index when you are using APIs such as Query, DescribeIndex, UpdateIndex, and DeleteIndex.

        • Edition — (String)

          Indicates whether the index is a Enterprise Edition index or a Developer Edition index.

          Possible values include:
          • "DEVELOPER_EDITION"
          • "ENTERPRISE_EDITION"
        • CreatedAtrequired — (Date)

          The Unix timestamp when the index was created.

        • UpdatedAtrequired — (Date)

          The Unix timestamp when the index was last updated.

        • Statusrequired — (String)

          The current status of the index. When the status is ACTIVE, the index is ready to search.

          Possible values include:
          • "CREATING"
          • "ACTIVE"
          • "DELETING"
          • "FAILED"
          • "UPDATING"
          • "SYSTEM_UPDATING"
      • NextToken — (String)

        If the response is truncated, Amazon Kendra returns this token that you can use in the subsequent request to retrieve the next set of indexes.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listQuerySuggestionsBlockLists(params = {}, callback) ⇒ AWS.Request

Lists the block lists used for query suggestions for an index.

For information on the current quota limits for block lists, see Quotas for Amazon Kendra.

ListQuerySuggestionsBlockLists is currently not supported in the Amazon Web Services GovCloud (US-West) region.

Service Reference:

Examples:

Calling the listQuerySuggestionsBlockLists operation

var params = {
  IndexId: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
kendra.listQuerySuggestionsBlockLists(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • IndexId — (String)

      The identifier of the index for a list of all block lists that exist for that index.

      For information on the current quota limits for block lists, see Quotas for Amazon Kendra.

    • NextToken — (String)

      If the previous response was incomplete (because there is more data to retrieve), Amazon Kendra returns a pagination token in the response. You can use this pagination token to retrieve the next set of block lists (BlockListSummaryItems).

    • MaxResults — (Integer)

      The maximum number of block lists to return.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • BlockListSummaryItems — (Array<map>)

        Summary items for a block list.

        This includes summary items on the block list ID, block list name, when the block list was created, when the block list was last updated, and the count of block words/phrases in the block list.

        For information on the current quota limits for block lists, see Quotas for Amazon Kendra.

        • Id — (String)

          The identifier of a block list.

        • Name — (String)

          The name of the block list.

        • Status — (String)

          The status of the block list.

          Possible values include:
          • "ACTIVE"
          • "CREATING"
          • "DELETING"
          • "UPDATING"
          • "ACTIVE_BUT_UPDATE_FAILED"
          • "FAILED"
        • CreatedAt — (Date)

          The Unix timestamp when the block list was created.

        • UpdatedAt — (Date)

          The Unix timestamp when the block list was last updated.

        • ItemCount — (Integer)

          The number of items in the block list file.

      • NextToken — (String)

        If the response is truncated, Amazon Kendra returns this token that you can use in the subsequent request to retrieve the next set of block lists.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listTagsForResource(params = {}, callback) ⇒ AWS.Request

Gets a list of tags associated with a specified resource. Indexes, FAQs, and data sources can have tags associated with them.

Service Reference:

Examples:

Calling the listTagsForResource operation

var params = {
  ResourceARN: 'STRING_VALUE' /* required */
};
kendra.listTagsForResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResourceARN — (String)

      The Amazon Resource Name (ARN) of the index, FAQ, or data source to get a list of tags for.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Tags — (Array<map>)

        A list of tags associated with the index, FAQ, or data source.

        • Keyrequired — (String)

          The key for the tag. Keys are not case sensitive and must be unique for the index, FAQ, or data source.

        • Valuerequired — (String)

          The value associated with the tag. The value may be an empty string but it can't be null.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listThesauri(params = {}, callback) ⇒ AWS.Request

Lists the thesauri for an index.

Service Reference:

Examples:

Calling the listThesauri operation

var params = {
  IndexId: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
kendra.listThesauri(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • IndexId — (String)

      The identifier of the index with one or more thesauri.

    • NextToken — (String)

      If the previous response was incomplete (because there is more data to retrieve), Amazon Kendra returns a pagination token in the response. You can use this pagination token to retrieve the next set of thesauri (ThesaurusSummaryItems).

    • MaxResults — (Integer)

      The maximum number of thesauri to return.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • NextToken — (String)

        If the response is truncated, Amazon Kendra returns this token that you can use in the subsequent request to retrieve the next set of thesauri.

      • ThesaurusSummaryItems — (Array<map>)

        An array of summary information for a thesaurus or multiple thesauri.

        • Id — (String)

          The identifier of the thesaurus.

        • Name — (String)

          The name of the thesaurus.

        • Status — (String)

          The status of the thesaurus.

          Possible values include:
          • "CREATING"
          • "ACTIVE"
          • "DELETING"
          • "UPDATING"
          • "ACTIVE_BUT_UPDATE_FAILED"
          • "FAILED"
        • CreatedAt — (Date)

          The Unix timestamp when the thesaurus was created.

        • UpdatedAt — (Date)

          The Unix timestamp when the thesaurus was last updated.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putPrincipalMapping(params = {}, callback) ⇒ AWS.Request

Maps users to their groups so that you only need to provide the user ID when you issue the query.

You can also map sub groups to groups. For example, the group "Company Intellectual Property Teams" includes sub groups "Research" and "Engineering". These sub groups include their own list of users or people who work in these teams. Only users who work in research and engineering, and therefore belong in the intellectual property group, can see top-secret company documents in their search results.

This is useful for user context filtering, where search results are filtered based on the user or their group access to documents. For more information, see Filtering on user context.

If more than five PUT actions for a group are currently processing, a validation exception is thrown.

Service Reference:

Examples:

Calling the putPrincipalMapping operation

var params = {
  GroupId: 'STRING_VALUE', /* required */
  GroupMembers: { /* required */
    MemberGroups: [
      {
        GroupId: 'STRING_VALUE', /* required */
        DataSourceId: 'STRING_VALUE'
      },
      /* more items */
    ],
    MemberUsers: [
      {
        UserId: 'STRING_VALUE' /* required */
      },
      /* more items */
    ],
    S3PathforGroupMembers: {
      Bucket: 'STRING_VALUE', /* required */
      Key: 'STRING_VALUE' /* required */
    }
  },
  IndexId: 'STRING_VALUE', /* required */
  DataSourceId: 'STRING_VALUE',
  OrderingId: 'NUMBER_VALUE',
  RoleArn: 'STRING_VALUE'
};
kendra.putPrincipalMapping(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • IndexId — (String)

      The identifier of the index you want to map users to their groups.

    • DataSourceId — (String)

      The identifier of the data source you want to map users to their groups.

      This is useful if a group is tied to multiple data sources, but you only want the group to access documents of a certain data source. For example, the groups "Research", "Engineering", and "Sales and Marketing" are all tied to the company's documents stored in the data sources Confluence and Salesforce. However, "Sales and Marketing" team only needs access to customer-related documents stored in Salesforce.

    • GroupId — (String)

      The identifier of the group you want to map its users to.

    • GroupMembers — (map)

      The list that contains your users or sub groups that belong the same group.

      For example, the group "Company" includes the user "CEO" and the sub groups "Research", "Engineering", and "Sales and Marketing".

      If you have more than 1000 users and/or sub groups for a single group, you need to provide the path to the S3 file that lists your users and sub groups for a group. Your sub groups can contain more than 1000 users, but the list of sub groups that belong to a group (and/or users) must be no more than 1000.

      • MemberGroups — (Array<map>)

        A list of sub groups that belong to a group. For example, the sub groups "Research", "Engineering", and "Sales and Marketing" all belong to the group "Company".

        • GroupIdrequired — (String)

          The identifier of the sub group you want to map to a group.

        • DataSourceId — (String)

          The identifier of the data source for the sub group you want to map to a group.

      • MemberUsers — (Array<map>)

        A list of users that belong to a group. For example, a list of interns all belong to the "Interns" group.

        • UserIdrequired — (String)

          The identifier of the user you want to map to a group.

      • S3PathforGroupMembers — (map)

        If you have more than 1000 users and/or sub groups for a single group, you need to provide the path to the S3 file that lists your users and sub groups for a group. Your sub groups can contain more than 1000 users, but the list of sub groups that belong to a group (and/or users) must be no more than 1000.

        You can download this example S3 file that uses the correct format for listing group members. Note, dataSourceId is optional. The value of type for a group is always GROUP and for a user it is always USER.

        • Bucketrequired — (String)

          The name of the S3 bucket that contains the file.

        • Keyrequired — (String)

          The name of the file.

    • OrderingId — (Integer)

      The timestamp identifier you specify to ensure Amazon Kendra does not override the latest PUT action with previous actions. The highest number ID, which is the ordering ID, is the latest action you want to process and apply on top of other actions with lower number IDs. This prevents previous actions with lower number IDs from possibly overriding the latest action.

      The ordering ID can be the Unix time of the last update you made to a group members list. You would then provide this list when calling PutPrincipalMapping. This ensures your PUT action for that updated group with the latest members list doesn't get overwritten by earlier PUT actions for the same group which are yet to be processed.

      The default ordering ID is the current Unix time in milliseconds that the action was received by Amazon Kendra.

    • RoleArn — (String)

      The Amazon Resource Name (ARN) of a role that has access to the S3 file that contains your list of users or sub groups that belong to a group.

      For more information, see IAM roles for Amazon Kendra.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

query(params = {}, callback) ⇒ AWS.Request

Searches an index given an input query.

Note: If you are working with large language models (LLMs) or implementing retrieval augmented generation (RAG) systems, you can use Amazon Kendra's Retrieve API, which can return longer semantically relevant passages. We recommend using the Retrieve API instead of filing a service limit increase to increase the Query API document excerpt length.

You can configure boosting or relevance tuning at the query level to override boosting at the index level, filter based on document fields/attributes and faceted search, and filter based on the user or their group access to documents. You can also include certain fields in the response that might provide useful additional information.

A query response contains three types of results.

  • Relevant suggested answers. The answers can be either a text excerpt or table excerpt. The answer can be highlighted in the excerpt.

  • Matching FAQs or questions-answer from your FAQ file.

  • Relevant documents. This result type includes an excerpt of the document with the document title. The searched terms can be highlighted in the excerpt.

You can specify that the query return only one type of result using the QueryResultTypeFilter parameter. Each query returns the 100 most relevant results. If you filter result type to only question-answers, a maximum of four results are returned. If you filter result type to only answers, a maximum of three results are returned.

Service Reference:

Examples:

Calling the query operation

var params = {
  IndexId: 'STRING_VALUE', /* required */
  AttributeFilter: { /* AttributeFilter */
    AndAllFilters: [
      /* recursive AttributeFilter */,
      /* more items */
    ],
    ContainsAll: {
      Key: 'STRING_VALUE', /* required */
      Value: { /* required */
        DateValue: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
        LongValue: 'NUMBER_VALUE',
        StringListValue: [
          'STRING_VALUE',
          /* more items */
        ],
        StringValue: 'STRING_VALUE'
      }
    },
    ContainsAny: {
      Key: 'STRING_VALUE', /* required */
      Value: { /* required */
        DateValue: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
        LongValue: 'NUMBER_VALUE',
        StringListValue: [
          'STRING_VALUE',
          /* more items */
        ],
        StringValue: 'STRING_VALUE'
      }
    },
    EqualsTo: {
      Key: 'STRING_VALUE', /* required */
      Value: { /* required */
        DateValue: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
        LongValue: 'NUMBER_VALUE',
        StringListValue: [
          'STRING_VALUE',
          /* more items */
        ],
        StringValue: 'STRING_VALUE'
      }
    },
    GreaterThan: {
      Key: 'STRING_VALUE', /* required */
      Value: { /* required */
        DateValue: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
        LongValue: 'NUMBER_VALUE',
        StringListValue: [
          'STRING_VALUE',
          /* more items */
        ],
        StringValue: 'STRING_VALUE'
      }
    },
    GreaterThanOrEquals: {
      Key: 'STRING_VALUE', /* required */
      Value: { /* required */
        DateValue: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
        LongValue: 'NUMBER_VALUE',
        StringListValue: [
          'STRING_VALUE',
          /* more items */
        ],
        StringValue: 'STRING_VALUE'
      }
    },
    LessThan: {
      Key: 'STRING_VALUE', /* required */
      Value: { /* required */
        DateValue: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
        LongValue: 'NUMBER_VALUE',
        StringListValue: [
          'STRING_VALUE',
          /* more items */
        ],
        StringValue: 'STRING_VALUE'
      }
    },
    LessThanOrEquals: {
      Key: 'STRING_VALUE', /* required */
      Value: { /* required */
        DateValue: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
        LongValue: 'NUMBER_VALUE',
        StringListValue: [
          'STRING_VALUE',
          /* more items */
        ],
        StringValue: 'STRING_VALUE'
      }
    },
    NotFilter: /* recursive AttributeFilter */,
    OrAllFilters: [
      /* recursive AttributeFilter */,
      /* more items */
    ]
  },
  CollapseConfiguration: {
    DocumentAttributeKey: 'STRING_VALUE', /* required */
    Expand: true || false,
    ExpandConfiguration: {
      MaxExpandedResultsPerItem: 'NUMBER_VALUE',
      MaxResultItemsToExpand: 'NUMBER_VALUE'
    },
    MissingAttributeKeyStrategy: IGNORE | COLLAPSE | EXPAND,
    SortingConfigurations: [
      {
        DocumentAttributeKey: 'STRING_VALUE', /* required */
        SortOrder: DESC | ASC /* required */
      },
      /* more items */
    ]
  },
  DocumentRelevanceOverrideConfigurations: [
    {
      Name: 'STRING_VALUE', /* required */
      Relevance: { /* required */
        Duration: 'STRING_VALUE',
        Freshness: true || false,
        Importance: 'NUMBER_VALUE',
        RankOrder: ASCENDING | DESCENDING,
        ValueImportanceMap: {
          '<ValueImportanceMapKey>': 'NUMBER_VALUE',
          /* '<ValueImportanceMapKey>': ... */
        }
      }
    },
    /* more items */
  ],
  Facets: [ /* FacetList */
    {
      DocumentAttributeKey: 'STRING_VALUE',
      Facets: /* recursive FacetList */,
      MaxResults: 'NUMBER_VALUE'
    },
    /* more items */
  ],
  PageNumber: 'NUMBER_VALUE',
  PageSize: 'NUMBER_VALUE',
  QueryResultTypeFilter: DOCUMENT | QUESTION_ANSWER | ANSWER,
  QueryText: 'STRING_VALUE',
  RequestedDocumentAttributes: [
    'STRING_VALUE',
    /* more items */
  ],
  SortingConfiguration: {
    DocumentAttributeKey: 'STRING_VALUE', /* required */
    SortOrder: DESC | ASC /* required */
  },
  SortingConfigurations: [
    {
      DocumentAttributeKey: 'STRING_VALUE', /* required */
      SortOrder: DESC | ASC /* required */
    },
    /* more items */
  ],
  SpellCorrectionConfiguration: {
    IncludeQuerySpellCheckSuggestions: true || false /* required */
  },
  UserContext: {
    DataSourceGroups: [
      {
        DataSourceId: 'STRING_VALUE', /* required */
        GroupId: 'STRING_VALUE' /* required */
      },
      /* more items */
    ],
    Groups: [
      'STRING_VALUE',
      /* more items */
    ],
    Token: 'STRING_VALUE',
    UserId: 'STRING_VALUE'
  },
  VisitorId: 'STRING_VALUE'
};
kendra.query(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • IndexId — (String)

      The identifier of the index for the search.

    • QueryText — (String)

      The input query text for the search. Amazon Kendra truncates queries at 30 token words, which excludes punctuation and stop words. Truncation still applies if you use Boolean or more advanced, complex queries. For example, Timeoff AND October AND Category:HR is counted as 3 tokens: timeoff, october, hr. For more information, see Searching with advanced query syntax in the Amazon Kendra Developer Guide.

    • AttributeFilter — (map)

      Filters search results by document fields/attributes. You can only provide one attribute filter; however, the AndAllFilters, NotFilter, and OrAllFilters parameters contain a list of other filters.

      The AttributeFilter parameter means you can create a set of filtering rules that a document must satisfy to be included in the query results.

      • AndAllFilters — (Array<map>)

        Performs a logical AND operation on all filters that you specify.

        • EqualsTo — (map)

          Performs an equals operation on document attributes/fields and their values.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • ContainsAll — (map)

          Returns true when a document contains all of the specified document attributes/fields. This filter is only applicable to StringListValue.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • ContainsAny — (map)

          Returns true when a document contains any of the specified document attributes/fields. This filter is only applicable to StringListValue.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • GreaterThan — (map)

          Performs a greater than operation on document attributes/fields and their values. Use with the document attribute type Date or Long.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • GreaterThanOrEquals — (map)

          Performs a greater or equals than operation on document attributes/fields and their values. Use with the document attribute type Date or Long.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • LessThan — (map)

          Performs a less than operation on document attributes/fields and their values. Use with the document attribute type Date or Long.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • LessThanOrEquals — (map)

          Performs a less than or equals operation on document attributes/fields and their values. Use with the document attribute type Date or Long.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

      • OrAllFilters — (Array<map>)

        Performs a logical OR operation on all filters that you specify.

        • EqualsTo — (map)

          Performs an equals operation on document attributes/fields and their values.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • ContainsAll — (map)

          Returns true when a document contains all of the specified document attributes/fields. This filter is only applicable to StringListValue.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • ContainsAny — (map)

          Returns true when a document contains any of the specified document attributes/fields. This filter is only applicable to StringListValue.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • GreaterThan — (map)

          Performs a greater than operation on document attributes/fields and their values. Use with the document attribute type Date or Long.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • GreaterThanOrEquals — (map)

          Performs a greater or equals than operation on document attributes/fields and their values. Use with the document attribute type Date or Long.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • LessThan — (map)

          Performs a less than operation on document attributes/fields and their values. Use with the document attribute type Date or Long.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • LessThanOrEquals — (map)

          Performs a less than or equals operation on document attributes/fields and their values. Use with the document attribute type Date or Long.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

      • NotFilter — (map)

        Performs a logical NOT operation on all filters that you specify.

        • AndAllFilters — (Array<map>)

          Performs a logical AND operation on all filters that you specify.

        • OrAllFilters — (Array<map>)

          Performs a logical OR operation on all filters that you specify.

        • EqualsTo — (map)

          Performs an equals operation on document attributes/fields and their values.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • ContainsAll — (map)

          Returns true when a document contains all of the specified document attributes/fields. This filter is only applicable to StringListValue.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • ContainsAny — (map)

          Returns true when a document contains any of the specified document attributes/fields. This filter is only applicable to StringListValue.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • GreaterThan — (map)

          Performs a greater than operation on document attributes/fields and their values. Use with the document attribute type Date or Long.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • GreaterThanOrEquals — (map)

          Performs a greater or equals than operation on document attributes/fields and their values. Use with the document attribute type Date or Long.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • LessThan — (map)

          Performs a less than operation on document attributes/fields and their values. Use with the document attribute type Date or Long.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • LessThanOrEquals — (map)

          Performs a less than or equals operation on document attributes/fields and their values. Use with the document attribute type Date or Long.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

      • EqualsTo — (map)

        Performs an equals operation on document attributes/fields and their values.

        • Keyrequired — (String)

          The identifier for the attribute.

        • Valuerequired — (map)

          The value of the attribute.

          • StringValue — (String)

            A string, such as "department".

          • StringListValue — (Array<String>)

            A list of strings. The default maximum length or number of strings is 10.

          • LongValue — (Integer)

            A long integer value.

          • DateValue — (Date)

            A date expressed as an ISO 8601 string.

            It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

      • ContainsAll — (map)

        Returns true when a document contains all of the specified document attributes/fields. This filter is only applicable to StringListValue.

        • Keyrequired — (String)

          The identifier for the attribute.

        • Valuerequired — (map)

          The value of the attribute.

          • StringValue — (String)

            A string, such as "department".

          • StringListValue — (Array<String>)

            A list of strings. The default maximum length or number of strings is 10.

          • LongValue — (Integer)

            A long integer value.

          • DateValue — (Date)

            A date expressed as an ISO 8601 string.

            It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

      • ContainsAny — (map)

        Returns true when a document contains any of the specified document attributes/fields. This filter is only applicable to StringListValue.

        • Keyrequired — (String)

          The identifier for the attribute.

        • Valuerequired — (map)

          The value of the attribute.

          • StringValue — (String)

            A string, such as "department".

          • StringListValue — (Array<String>)

            A list of strings. The default maximum length or number of strings is 10.

          • LongValue — (Integer)

            A long integer value.

          • DateValue — (Date)

            A date expressed as an ISO 8601 string.

            It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

      • GreaterThan — (map)

        Performs a greater than operation on document attributes/fields and their values. Use with the document attribute type Date or Long.

        • Keyrequired — (String)

          The identifier for the attribute.

        • Valuerequired — (map)

          The value of the attribute.

          • StringValue — (String)

            A string, such as "department".

          • StringListValue — (Array<String>)

            A list of strings. The default maximum length or number of strings is 10.

          • LongValue — (Integer)

            A long integer value.

          • DateValue — (Date)

            A date expressed as an ISO 8601 string.

            It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

      • GreaterThanOrEquals — (map)

        Performs a greater or equals than operation on document attributes/fields and their values. Use with the document attribute type Date or Long.

        • Keyrequired — (String)

          The identifier for the attribute.

        • Valuerequired — (map)

          The value of the attribute.

          • StringValue — (String)

            A string, such as "department".

          • StringListValue — (Array<String>)

            A list of strings. The default maximum length or number of strings is 10.

          • LongValue — (Integer)

            A long integer value.

          • DateValue — (Date)

            A date expressed as an ISO 8601 string.

            It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

      • LessThan — (map)

        Performs a less than operation on document attributes/fields and their values. Use with the document attribute type Date or Long.

        • Keyrequired — (String)

          The identifier for the attribute.

        • Valuerequired — (map)

          The value of the attribute.

          • StringValue — (String)

            A string, such as "department".

          • StringListValue — (Array<String>)

            A list of strings. The default maximum length or number of strings is 10.

          • LongValue — (Integer)

            A long integer value.

          • DateValue — (Date)

            A date expressed as an ISO 8601 string.

            It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

      • LessThanOrEquals — (map)

        Performs a less than or equals operation on document attributes/fields and their values. Use with the document attribute type Date or Long.

        • Keyrequired — (String)

          The identifier for the attribute.

        • Valuerequired — (map)

          The value of the attribute.

          • StringValue — (String)

            A string, such as "department".

          • StringListValue — (Array<String>)

            A list of strings. The default maximum length or number of strings is 10.

          • LongValue — (Integer)

            A long integer value.

          • DateValue — (Date)

            A date expressed as an ISO 8601 string.

            It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

    • Facets — (Array<map>)

      An array of documents fields/attributes for faceted search. Amazon Kendra returns a count for each field key specified. This helps your users narrow their search.

      • DocumentAttributeKey — (String)

        The unique key for the document attribute.

      • Facets — (Array<map>)

        An array of document attributes that are nested facets within a facet.

        For example, the document attribute or facet "Department" includes a value called "Engineering". In addition, the document attribute or facet "SubDepartment" includes the values "Frontend" and "Backend" for documents assigned to "Engineering". You can display nested facets in the search results so that documents can be searched not only by department but also by a sub department within a department. This helps your users further narrow their search.

        You can only have one nested facet within a facet. If you want to increase this limit, contact Support.

      • MaxResults — (Integer)

        Maximum number of facet values per facet. The default is 10. You can use this to limit the number of facet values to less than 10. If you want to increase the default, contact Support.

    • RequestedDocumentAttributes — (Array<String>)

      An array of document fields/attributes to include in the response. You can limit the response to include certain document fields. By default, all document attributes are included in the response.

    • QueryResultTypeFilter — (String)

      Sets the type of query result or response. Only results for the specified type are returned.

      Possible values include:
      • "DOCUMENT"
      • "QUESTION_ANSWER"
      • "ANSWER"
    • DocumentRelevanceOverrideConfigurations — (Array<map>)

      Overrides relevance tuning configurations of fields/attributes set at the index level.

      If you use this API to override the relevance tuning configured at the index level, but there is no relevance tuning configured at the index level, then Amazon Kendra does not apply any relevance tuning.

      If there is relevance tuning configured for fields at the index level, and you use this API to override only some of these fields, then for the fields you did not override, the importance is set to 1.

      • Namerequired — (String)

        The name of the index field.

      • Relevancerequired — (map)

        Provides information for tuning the relevance of a field in a search. When a query includes terms that match the field, the results are given a boost in the response based on these tuning parameters.

        • Freshness — (Boolean)

          Indicates that this field determines how "fresh" a document is. For example, if document 1 was created on November 5, and document 2 was created on October 31, document 1 is "fresher" than document 2. Only applies to DATE fields.

        • Importance — (Integer)

          The relative importance of the field in the search. Larger numbers provide more of a boost than smaller numbers.

        • Duration — (String)

          Specifies the time period that the boost applies to. For example, to make the boost apply to documents with the field value within the last month, you would use "2628000s". Once the field value is beyond the specified range, the effect of the boost drops off. The higher the importance, the faster the effect drops off. If you don't specify a value, the default is 3 months. The value of the field is a numeric string followed by the character "s", for example "86400s" for one day, or "604800s" for one week.

          Only applies to DATE fields.

        • RankOrder — (String)

          Determines how values should be interpreted.

          When the RankOrder field is ASCENDING, higher numbers are better. For example, a document with a rating score of 10 is higher ranking than a document with a rating score of 1.

          When the RankOrder field is DESCENDING, lower numbers are better. For example, in a task tracking application, a priority 1 task is more important than a priority 5 task.

          Only applies to LONG fields.

          Possible values include:
          • "ASCENDING"
          • "DESCENDING"
        • ValueImportanceMap — (map<Integer>)

          A list of values that should be given a different boost when they appear in the result list. For example, if you are boosting a field called "department", query terms that match the department field are boosted in the result. However, you can add entries from the department field to boost documents with those values higher.

          For example, you can add entries to the map with names of departments. If you add "HR",5 and "Legal",3 those departments are given special attention when they appear in the metadata of a document. When those terms appear they are given the specified importance instead of the regular importance for the boost.

    • PageNumber — (Integer)

      Query results are returned in pages the size of the PageSize parameter. By default, Amazon Kendra returns the first page of results. Use this parameter to get result pages after the first one.

    • PageSize — (Integer)

      Sets the number of results that are returned in each page of results. The default page size is 10. The maximum number of results returned is 100. If you ask for more than 100 results, only 100 are returned.

    • SortingConfiguration — (map)

      Provides information that determines how the results of the query are sorted. You can set the field that Amazon Kendra should sort the results on, and specify whether the results should be sorted in ascending or descending order. In the case of ties in sorting the results, the results are sorted by relevance.

      If you don't provide sorting configuration, the results are sorted by the relevance that Amazon Kendra determines for the result.

      • DocumentAttributeKeyrequired — (String)

        The name of the document attribute used to sort the response. You can use any field that has the Sortable flag set to true.

        You can also sort by any of the following built-in attributes:

        • category

        • created_at

        • last_updated_at

        • version

        • _view_count

      • SortOrderrequired — (String)

        The order that the results should be returned in. In case of ties, the relevance assigned to the result by Amazon Kendra is used as the tie-breaker.

        Possible values include:
        • "DESC"
        • "ASC"
    • SortingConfigurations — (Array<map>)

      Provides configuration information to determine how the results of a query are sorted.

      You can set upto 3 fields that Amazon Kendra should sort the results on, and specify whether the results should be sorted in ascending or descending order. The sort field quota can be increased.

      If you don't provide a sorting configuration, the results are sorted by the relevance that Amazon Kendra determines for the result. In the case of ties in sorting the results, the results are sorted by relevance.

      • DocumentAttributeKeyrequired — (String)

        The name of the document attribute used to sort the response. You can use any field that has the Sortable flag set to true.

        You can also sort by any of the following built-in attributes:

        • category

        • created_at

        • last_updated_at

        • version

        • _view_count

      • SortOrderrequired — (String)

        The order that the results should be returned in. In case of ties, the relevance assigned to the result by Amazon Kendra is used as the tie-breaker.

        Possible values include:
        • "DESC"
        • "ASC"
    • UserContext — (map)

      The user context token or user and group information.

      • Token — (String)

        The user context token for filtering search results for a user. It must be a JWT or a JSON token.

      • UserId — (String)

        The identifier of the user you want to filter search results based on their access to documents.

      • Groups — (Array<String>)

        The list of groups you want to filter search results based on the groups' access to documents.

      • DataSourceGroups — (Array<map>)

        The list of data source groups you want to filter search results based on groups' access to documents in that data source.

        • GroupIdrequired — (String)

          The identifier of the group you want to add to your list of groups. This is for filtering search results based on the groups' access to documents.

        • DataSourceIdrequired — (String)

          The identifier of the data source group you want to add to your list of data source groups. This is for filtering search results based on the groups' access to documents in that data source.

    • VisitorId — (String)

      Provides an identifier for a specific user. The VisitorId should be a unique identifier, such as a GUID. Don't use personally identifiable information, such as the user's email address, as the VisitorId.

    • SpellCorrectionConfiguration — (map)

      Enables suggested spell corrections for queries.

      • IncludeQuerySpellCheckSuggestionsrequired — (Boolean)

        TRUE to suggest spell corrections for queries.

    • CollapseConfiguration — (map)

      Provides configuration to determine how to group results by document attribute value, and how to display them (collapsed or expanded) under a designated primary document for each group.

      • DocumentAttributeKeyrequired — (String)

        The document attribute used to group search results. You can use any attribute that has the Sortable flag set to true. You can also sort by any of the following built-in attributes:"category","created_at", "last_updated_at", "version", "_view_count".

      • SortingConfigurations — (Array<map>)

        A prioritized list of document attributes/fields that determine the primary document among those in a collapsed group.

        • DocumentAttributeKeyrequired — (String)

          The name of the document attribute used to sort the response. You can use any field that has the Sortable flag set to true.

          You can also sort by any of the following built-in attributes:

          • category

          • created_at

          • last_updated_at

          • version

          • _view_count

        • SortOrderrequired — (String)

          The order that the results should be returned in. In case of ties, the relevance assigned to the result by Amazon Kendra is used as the tie-breaker.

          Possible values include:
          • "DESC"
          • "ASC"
      • MissingAttributeKeyStrategy — (String)

        Specifies the behavior for documents without a value for the collapse attribute.

        Amazon Kendra offers three customization options:

        • Choose to COLLAPSE all documents with null or missing values in one group. This is the default configuration.

        • Choose to IGNORE documents with null or missing values. Ignored documents will not appear in query results.

        • Choose to EXPAND each document with a null or missing value into a group of its own.

        Possible values include:
        • "IGNORE"
        • "COLLAPSE"
        • "EXPAND"
      • Expand — (Boolean)

        Specifies whether to expand the collapsed results.

      • ExpandConfiguration — (map)

        Provides configuration information to customize expansion options for a collapsed group.

        • MaxResultItemsToExpand — (Integer)

          The number of collapsed search result groups to expand. If you set this value to 10, for example, only the first 10 out of 100 result groups will have expand functionality.

        • MaxExpandedResultsPerItem — (Integer)

          The number of expanded results to show per collapsed primary document. For instance, if you set this value to 3, then at most 3 results per collapsed group will be displayed.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • QueryId — (String)

        The identifier for the search. You also use QueryId to identify the search when using the SubmitFeedback API.

      • ResultItems — (Array<map>)

        The results of the search.

        • Id — (String)

          The unique identifier for the query result item id (Id) and the query result item document id (DocumentId) combined. The value of this field changes with every request, even when you have the same documents.

        • Type — (String)

          The type of document within the response. For example, a response could include a question-answer that's relevant to the query.

          Possible values include:
          • "DOCUMENT"
          • "QUESTION_ANSWER"
          • "ANSWER"
        • Format — (String)

          If the Type of document within the response is ANSWER, then it is either a TABLE answer or TEXT answer. If it's a table answer, a table excerpt is returned in TableExcerpt. If it's a text answer, a text excerpt is returned in DocumentExcerpt.

          Possible values include:
          • "TABLE"
          • "TEXT"
        • AdditionalAttributes — (Array<map>)

          One or more additional fields/attributes associated with the query result.

          • Keyrequired — (String)

            The key that identifies the attribute.

          • ValueTyperequired — (String)

            The data type of the Value property.

            Possible values include:
            • "TEXT_WITH_HIGHLIGHTS_VALUE"
          • Valuerequired — (map)

            An object that contains the attribute value.

            • TextWithHighlightsValue — (map)

              The text associated with the attribute and information about the highlight to apply to the text.

              • Text — (String)

                The text to display to the user.

              • Highlights — (Array<map>)

                The beginning and end of the text that should be highlighted.

                • BeginOffsetrequired — (Integer)

                  The zero-based location in the response string where the highlight starts.

                • EndOffsetrequired — (Integer)

                  The zero-based location in the response string where the highlight ends.

                • TopAnswer — (Boolean)

                  Indicates whether the response is the best response. True if this is the best response; otherwise, false.

                • Type — (String)

                  The highlight type.

                  Possible values include:
                  • "STANDARD"
                  • "THESAURUS_SYNONYM"
        • DocumentId — (String)

          The identifier for the document.

        • DocumentTitle — (map)

          The title of the document. Contains the text of the title and information for highlighting the relevant terms in the title.

          • Text — (String)

            The text to display to the user.

          • Highlights — (Array<map>)

            The beginning and end of the text that should be highlighted.

            • BeginOffsetrequired — (Integer)

              The zero-based location in the response string where the highlight starts.

            • EndOffsetrequired — (Integer)

              The zero-based location in the response string where the highlight ends.

            • TopAnswer — (Boolean)

              Indicates whether the response is the best response. True if this is the best response; otherwise, false.

            • Type — (String)

              The highlight type.

              Possible values include:
              • "STANDARD"
              • "THESAURUS_SYNONYM"
        • DocumentExcerpt — (map)

          An extract of the text in the document. Contains information about highlighting the relevant terms in the excerpt.

          • Text — (String)

            The text to display to the user.

          • Highlights — (Array<map>)

            The beginning and end of the text that should be highlighted.

            • BeginOffsetrequired — (Integer)

              The zero-based location in the response string where the highlight starts.

            • EndOffsetrequired — (Integer)

              The zero-based location in the response string where the highlight ends.

            • TopAnswer — (Boolean)

              Indicates whether the response is the best response. True if this is the best response; otherwise, false.

            • Type — (String)

              The highlight type.

              Possible values include:
              • "STANDARD"
              • "THESAURUS_SYNONYM"
        • DocumentURI — (String)

          The URI of the original location of the document.

        • DocumentAttributes — (Array<map>)

          An array of document fields/attributes assigned to a document in the search results. For example, the document author (_author) or the source URI (_source_uri) of the document.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • ScoreAttributes — (map)

          Indicates the confidence level of Amazon Kendra providing a relevant result for the query. Each result is placed into a bin that indicates the confidence, VERY_HIGH, HIGH, MEDIUM and LOW. You can use the score to determine if a response meets the confidence needed for your application.

          The field is only set to LOW when the Type field is set to DOCUMENT and Amazon Kendra is not confident that the result is relevant to the query.

          • ScoreConfidence — (String)

            A relative ranking for how relevant the response is to the query.

            Possible values include:
            • "VERY_HIGH"
            • "HIGH"
            • "MEDIUM"
            • "LOW"
            • "NOT_AVAILABLE"
        • FeedbackToken — (String)

          A token that identifies a particular result from a particular query. Use this token to provide click-through feedback for the result. For more information, see Submitting feedback.

        • TableExcerpt — (map)

          An excerpt from a table within a document.

          • Rows — (Array<map>)

            A list of rows in the table excerpt.

            • Cells — (Array<map>)

              A list of table cells in a row.

              • Value — (String)

                The actual value or content within a table cell. A table cell could contain a date value of a year, or a string value of text, for example.

              • TopAnswer — (Boolean)

                TRUE if the response of the table cell is the top answer. This is the cell value or content with the highest confidence score or is the most relevant to the query.

              • Highlighted — (Boolean)

                TRUE means that the table cell has a high enough confidence and is relevant to the query, so the value or content should be highlighted.

              • Header — (Boolean)

                TRUE means that the table cell should be treated as a header.

          • TotalNumberOfRows — (Integer)

            A count of the number of rows in the original table within the document.

        • CollapsedResultDetail — (map)

          Provides details about a collapsed group of search results.

          • DocumentAttributerequired — (map)

            The value of the document attribute that results are collapsed on.

            • Keyrequired — (String)

              The identifier for the attribute.

            • Valuerequired — (map)

              The value of the attribute.

              • StringValue — (String)

                A string, such as "department".

              • StringListValue — (Array<String>)

                A list of strings. The default maximum length or number of strings is 10.

              • LongValue — (Integer)

                A long integer value.

              • DateValue — (Date)

                A date expressed as an ISO 8601 string.

                It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

          • ExpandedResults — (Array<map>)

            A list of results in the collapsed group.

            • Id — (String)

              The identifier for the expanded result.

            • DocumentId — (String)

              The idenitifier of the document.

            • DocumentTitle — (map)

              Provides text and information about where to highlight the text.

              • Text — (String)

                The text to display to the user.

              • Highlights — (Array<map>)

                The beginning and end of the text that should be highlighted.

                • BeginOffsetrequired — (Integer)

                  The zero-based location in the response string where the highlight starts.

                • EndOffsetrequired — (Integer)

                  The zero-based location in the response string where the highlight ends.

                • TopAnswer — (Boolean)

                  Indicates whether the response is the best response. True if this is the best response; otherwise, false.

                • Type — (String)

                  The highlight type.

                  Possible values include:
                  • "STANDARD"
                  • "THESAURUS_SYNONYM"
            • DocumentExcerpt — (map)

              Provides text and information about where to highlight the text.

              • Text — (String)

                The text to display to the user.

              • Highlights — (Array<map>)

                The beginning and end of the text that should be highlighted.

                • BeginOffsetrequired — (Integer)

                  The zero-based location in the response string where the highlight starts.

                • EndOffsetrequired — (Integer)

                  The zero-based location in the response string where the highlight ends.

                • TopAnswer — (Boolean)

                  Indicates whether the response is the best response. True if this is the best response; otherwise, false.

                • Type — (String)

                  The highlight type.

                  Possible values include:
                  • "STANDARD"
                  • "THESAURUS_SYNONYM"
            • DocumentURI — (String)

              The URI of the original location of the document.

            • DocumentAttributes — (Array<map>)

              An array of document attributes assigned to a document in the search results. For example, the document author ("author") or the source URI ("source_uri") of the document.

              • Keyrequired — (String)

                The identifier for the attribute.

              • Valuerequired — (map)

                The value of the attribute.

                • StringValue — (String)

                  A string, such as "department".

                • StringListValue — (Array<String>)

                  A list of strings. The default maximum length or number of strings is 10.

                • LongValue — (Integer)

                  A long integer value.

                • DateValue — (Date)

                  A date expressed as an ISO 8601 string.

                  It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

      • FacetResults — (Array<map>)

        Contains the facet results. A FacetResult contains the counts for each field/attribute key that was specified in the Facets input parameter.

        • DocumentAttributeKey — (String)

          The key for the facet values. This is the same as the DocumentAttributeKey provided in the query.

        • DocumentAttributeValueType — (String)

          The data type of the facet value. This is the same as the type defined for the index field when it was created.

          Possible values include:
          • "STRING_VALUE"
          • "STRING_LIST_VALUE"
          • "LONG_VALUE"
          • "DATE_VALUE"
        • DocumentAttributeValueCountPairs — (Array<map>)

          An array of key/value pairs, where the key is the value of the attribute and the count is the number of documents that share the key value.

          • DocumentAttributeValue — (map)

            The value of the attribute/field. For example, "HR".

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

          • Count — (Integer)

            The number of documents in the response that have the attribute/field value for the key.

          • FacetResults — (Array<map>)

            Contains the results of a document attribute/field that is a nested facet. A FacetResult contains the counts for each facet nested within a facet.

            For example, the document attribute or facet "Department" includes a value called "Engineering". In addition, the document attribute or facet "SubDepartment" includes the values "Frontend" and "Backend" for documents assigned to "Engineering". You can display nested facets in the search results so that documents can be searched not only by department but also by a sub department within a department. The counts for documents that belong to "Frontend" and "Backend" within "Engineering" are returned for a query.

      • TotalNumberOfResults — (Integer)

        The total number of items found by the search. However, you can only retrieve up to 100 items. For example, if the search found 192 items, you can only retrieve the first 100 of the items.

      • Warnings — (Array<map>)

        A list of warning codes and their messages on problems with your query.

        Amazon Kendra currently only supports one type of warning, which is a warning on invalid syntax used in the query. For examples of invalid query syntax, see Searching with advanced query syntax.

        • Message — (String)

          The message that explains the problem with the query.

        • Code — (String)

          The code used to show the type of warning for the query.

          Possible values include:
          • "QUERY_LANGUAGE_INVALID_SYNTAX"
      • SpellCorrectedQueries — (Array<map>)

        A list of information related to suggested spell corrections for a query.

        • SuggestedQueryText — (String)

          The query with the suggested spell corrections.

        • Corrections — (Array<map>)

          The corrected misspelled word or words in a query.

          • BeginOffset — (Integer)

            The zero-based location in the response string or text where the corrected word starts.

          • EndOffset — (Integer)

            The zero-based location in the response string or text where the corrected word ends.

          • Term — (String)

            The string or text of a misspelled word in a query.

          • CorrectedTerm — (String)

            The string or text of a corrected misspelled word in a query.

      • FeaturedResultsItems — (Array<map>)

        The list of featured result items. Featured results are displayed at the top of the search results page, placed above all other results for certain queries. If there's an exact match of a query, then certain documents are featured in the search results.

        • Id — (String)

          The identifier of the featured result.

        • Type — (String)

          The type of document within the featured result response. For example, a response could include a question-answer type that's relevant to the query.

          Possible values include:
          • "DOCUMENT"
          • "QUESTION_ANSWER"
          • "ANSWER"
        • AdditionalAttributes — (Array<map>)

          One or more additional attributes associated with the featured result.

          • Keyrequired — (String)

            The key that identifies the attribute.

          • ValueTyperequired — (String)

            The data type of the Value property.

            Possible values include:
            • "TEXT_WITH_HIGHLIGHTS_VALUE"
          • Valuerequired — (map)

            An object that contains the attribute value.

            • TextWithHighlightsValue — (map)

              The text associated with the attribute and information about the highlight to apply to the text.

              • Text — (String)

                The text to display to the user.

              • Highlights — (Array<map>)

                The beginning and end of the text that should be highlighted.

                • BeginOffsetrequired — (Integer)

                  The zero-based location in the response string where the highlight starts.

                • EndOffsetrequired — (Integer)

                  The zero-based location in the response string where the highlight ends.

                • TopAnswer — (Boolean)

                  Indicates whether the response is the best response. True if this is the best response; otherwise, false.

                • Type — (String)

                  The highlight type.

                  Possible values include:
                  • "STANDARD"
                  • "THESAURUS_SYNONYM"
        • DocumentId — (String)

          The identifier of the featured document.

        • DocumentTitle — (map)

          Provides text and information about where to highlight the text.

          • Text — (String)

            The text to display to the user.

          • Highlights — (Array<map>)

            The beginning and end of the text that should be highlighted.

            • BeginOffsetrequired — (Integer)

              The zero-based location in the response string where the highlight starts.

            • EndOffsetrequired — (Integer)

              The zero-based location in the response string where the highlight ends.

            • TopAnswer — (Boolean)

              Indicates whether the response is the best response. True if this is the best response; otherwise, false.

            • Type — (String)

              The highlight type.

              Possible values include:
              • "STANDARD"
              • "THESAURUS_SYNONYM"
        • DocumentExcerpt — (map)

          Provides text and information about where to highlight the text.

          • Text — (String)

            The text to display to the user.

          • Highlights — (Array<map>)

            The beginning and end of the text that should be highlighted.

            • BeginOffsetrequired — (Integer)

              The zero-based location in the response string where the highlight starts.

            • EndOffsetrequired — (Integer)

              The zero-based location in the response string where the highlight ends.

            • TopAnswer — (Boolean)

              Indicates whether the response is the best response. True if this is the best response; otherwise, false.

            • Type — (String)

              The highlight type.

              Possible values include:
              • "STANDARD"
              • "THESAURUS_SYNONYM"
        • DocumentURI — (String)

          The source URI location of the featured document.

        • DocumentAttributes — (Array<map>)

          An array of document attributes assigned to a featured document in the search results. For example, the document author (_author) or the source URI (_source_uri) of the document.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • FeedbackToken — (String)

          A token that identifies a particular featured result from a particular query. Use this token to provide click-through feedback for the result. For more information, see Submitting feedback.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

retrieve(params = {}, callback) ⇒ AWS.Request

Retrieves relevant passages or text excerpts given an input query.

This API is similar to the Query API. However, by default, the Query API only returns excerpt passages of up to 100 token words. With the Retrieve API, you can retrieve longer passages of up to 200 token words and up to 100 semantically relevant passages. This doesn't include question-answer or FAQ type responses from your index. The passages are text excerpts that can be semantically extracted from multiple documents and multiple parts of the same document. If in extreme cases your documents produce zero passages using the Retrieve API, you can alternatively use the Query API and its types of responses.

You can also do the following:

  • Override boosting at the index level

  • Filter based on document fields or attributes

  • Filter based on the user or their group access to documents

  • View the confidence score bucket for a retrieved passage result. The confidence bucket provides a relative ranking that indicates how confident Amazon Kendra is that the response is relevant to the query.

    Note: Confidence score buckets are currently available only for English.

You can also include certain fields in the response that might provide useful additional information.

The Retrieve API shares the number of query capacity units that you set for your index. For more information on what's included in a single capacity unit and the default base capacity for an index, see Adjusting capacity.

Service Reference:

Examples:

Calling the retrieve operation

var params = {
  IndexId: 'STRING_VALUE', /* required */
  QueryText: 'STRING_VALUE', /* required */
  AttributeFilter: { /* AttributeFilter */
    AndAllFilters: [
      /* recursive AttributeFilter */,
      /* more items */
    ],
    ContainsAll: {
      Key: 'STRING_VALUE', /* required */
      Value: { /* required */
        DateValue: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
        LongValue: 'NUMBER_VALUE',
        StringListValue: [
          'STRING_VALUE',
          /* more items */
        ],
        StringValue: 'STRING_VALUE'
      }
    },
    ContainsAny: {
      Key: 'STRING_VALUE', /* required */
      Value: { /* required */
        DateValue: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
        LongValue: 'NUMBER_VALUE',
        StringListValue: [
          'STRING_VALUE',
          /* more items */
        ],
        StringValue: 'STRING_VALUE'
      }
    },
    EqualsTo: {
      Key: 'STRING_VALUE', /* required */
      Value: { /* required */
        DateValue: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
        LongValue: 'NUMBER_VALUE',
        StringListValue: [
          'STRING_VALUE',
          /* more items */
        ],
        StringValue: 'STRING_VALUE'
      }
    },
    GreaterThan: {
      Key: 'STRING_VALUE', /* required */
      Value: { /* required */
        DateValue: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
        LongValue: 'NUMBER_VALUE',
        StringListValue: [
          'STRING_VALUE',
          /* more items */
        ],
        StringValue: 'STRING_VALUE'
      }
    },
    GreaterThanOrEquals: {
      Key: 'STRING_VALUE', /* required */
      Value: { /* required */
        DateValue: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
        LongValue: 'NUMBER_VALUE',
        StringListValue: [
          'STRING_VALUE',
          /* more items */
        ],
        StringValue: 'STRING_VALUE'
      }
    },
    LessThan: {
      Key: 'STRING_VALUE', /* required */
      Value: { /* required */
        DateValue: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
        LongValue: 'NUMBER_VALUE',
        StringListValue: [
          'STRING_VALUE',
          /* more items */
        ],
        StringValue: 'STRING_VALUE'
      }
    },
    LessThanOrEquals: {
      Key: 'STRING_VALUE', /* required */
      Value: { /* required */
        DateValue: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
        LongValue: 'NUMBER_VALUE',
        StringListValue: [
          'STRING_VALUE',
          /* more items */
        ],
        StringValue: 'STRING_VALUE'
      }
    },
    NotFilter: /* recursive AttributeFilter */,
    OrAllFilters: [
      /* recursive AttributeFilter */,
      /* more items */
    ]
  },
  DocumentRelevanceOverrideConfigurations: [
    {
      Name: 'STRING_VALUE', /* required */
      Relevance: { /* required */
        Duration: 'STRING_VALUE',
        Freshness: true || false,
        Importance: 'NUMBER_VALUE',
        RankOrder: ASCENDING | DESCENDING,
        ValueImportanceMap: {
          '<ValueImportanceMapKey>': 'NUMBER_VALUE',
          /* '<ValueImportanceMapKey>': ... */
        }
      }
    },
    /* more items */
  ],
  PageNumber: 'NUMBER_VALUE',
  PageSize: 'NUMBER_VALUE',
  RequestedDocumentAttributes: [
    'STRING_VALUE',
    /* more items */
  ],
  UserContext: {
    DataSourceGroups: [
      {
        DataSourceId: 'STRING_VALUE', /* required */
        GroupId: 'STRING_VALUE' /* required */
      },
      /* more items */
    ],
    Groups: [
      'STRING_VALUE',
      /* more items */
    ],
    Token: 'STRING_VALUE',
    UserId: 'STRING_VALUE'
  }
};
kendra.retrieve(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • IndexId — (String)

      The identifier of the index to retrieve relevant passages for the search.

    • QueryText — (String)

      The input query text to retrieve relevant passages for the search. Amazon Kendra truncates queries at 30 token words, which excludes punctuation and stop words. Truncation still applies if you use Boolean or more advanced, complex queries. For example, Timeoff AND October AND Category:HR is counted as 3 tokens: timeoff, october, hr. For more information, see Searching with advanced query syntax in the Amazon Kendra Developer Guide.

    • AttributeFilter — (map)

      Filters search results by document fields/attributes. You can only provide one attribute filter; however, the AndAllFilters, NotFilter, and OrAllFilters parameters contain a list of other filters.

      The AttributeFilter parameter means you can create a set of filtering rules that a document must satisfy to be included in the query results.

      • AndAllFilters — (Array<map>)

        Performs a logical AND operation on all filters that you specify.

        • EqualsTo — (map)

          Performs an equals operation on document attributes/fields and their values.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • ContainsAll — (map)

          Returns true when a document contains all of the specified document attributes/fields. This filter is only applicable to StringListValue.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • ContainsAny — (map)

          Returns true when a document contains any of the specified document attributes/fields. This filter is only applicable to StringListValue.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • GreaterThan — (map)

          Performs a greater than operation on document attributes/fields and their values. Use with the document attribute type Date or Long.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • GreaterThanOrEquals — (map)

          Performs a greater or equals than operation on document attributes/fields and their values. Use with the document attribute type Date or Long.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • LessThan — (map)

          Performs a less than operation on document attributes/fields and their values. Use with the document attribute type Date or Long.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • LessThanOrEquals — (map)

          Performs a less than or equals operation on document attributes/fields and their values. Use with the document attribute type Date or Long.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

      • OrAllFilters — (Array<map>)

        Performs a logical OR operation on all filters that you specify.

        • EqualsTo — (map)

          Performs an equals operation on document attributes/fields and their values.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • ContainsAll — (map)

          Returns true when a document contains all of the specified document attributes/fields. This filter is only applicable to StringListValue.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • ContainsAny — (map)

          Returns true when a document contains any of the specified document attributes/fields. This filter is only applicable to StringListValue.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • GreaterThan — (map)

          Performs a greater than operation on document attributes/fields and their values. Use with the document attribute type Date or Long.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • GreaterThanOrEquals — (map)

          Performs a greater or equals than operation on document attributes/fields and their values. Use with the document attribute type Date or Long.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • LessThan — (map)

          Performs a less than operation on document attributes/fields and their values. Use with the document attribute type Date or Long.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • LessThanOrEquals — (map)

          Performs a less than or equals operation on document attributes/fields and their values. Use with the document attribute type Date or Long.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

      • NotFilter — (map)

        Performs a logical NOT operation on all filters that you specify.

        • AndAllFilters — (Array<map>)

          Performs a logical AND operation on all filters that you specify.

        • OrAllFilters — (Array<map>)

          Performs a logical OR operation on all filters that you specify.

        • EqualsTo — (map)

          Performs an equals operation on document attributes/fields and their values.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • ContainsAll — (map)

          Returns true when a document contains all of the specified document attributes/fields. This filter is only applicable to StringListValue.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • ContainsAny — (map)

          Returns true when a document contains any of the specified document attributes/fields. This filter is only applicable to StringListValue.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • GreaterThan — (map)

          Performs a greater than operation on document attributes/fields and their values. Use with the document attribute type Date or Long.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • GreaterThanOrEquals — (map)

          Performs a greater or equals than operation on document attributes/fields and their values. Use with the document attribute type Date or Long.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • LessThan — (map)

          Performs a less than operation on document attributes/fields and their values. Use with the document attribute type Date or Long.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • LessThanOrEquals — (map)

          Performs a less than or equals operation on document attributes/fields and their values. Use with the document attribute type Date or Long.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

      • EqualsTo — (map)

        Performs an equals operation on document attributes/fields and their values.

        • Keyrequired — (String)

          The identifier for the attribute.

        • Valuerequired — (map)

          The value of the attribute.

          • StringValue — (String)

            A string, such as "department".

          • StringListValue — (Array<String>)

            A list of strings. The default maximum length or number of strings is 10.

          • LongValue — (Integer)

            A long integer value.

          • DateValue — (Date)

            A date expressed as an ISO 8601 string.

            It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

      • ContainsAll — (map)

        Returns true when a document contains all of the specified document attributes/fields. This filter is only applicable to StringListValue.

        • Keyrequired — (String)

          The identifier for the attribute.

        • Valuerequired — (map)

          The value of the attribute.

          • StringValue — (String)

            A string, such as "department".

          • StringListValue — (Array<String>)

            A list of strings. The default maximum length or number of strings is 10.

          • LongValue — (Integer)

            A long integer value.

          • DateValue — (Date)

            A date expressed as an ISO 8601 string.

            It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

      • ContainsAny — (map)

        Returns true when a document contains any of the specified document attributes/fields. This filter is only applicable to StringListValue.

        • Keyrequired — (String)

          The identifier for the attribute.

        • Valuerequired — (map)

          The value of the attribute.

          • StringValue — (String)

            A string, such as "department".

          • StringListValue — (Array<String>)

            A list of strings. The default maximum length or number of strings is 10.

          • LongValue — (Integer)

            A long integer value.

          • DateValue — (Date)

            A date expressed as an ISO 8601 string.

            It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

      • GreaterThan — (map)

        Performs a greater than operation on document attributes/fields and their values. Use with the document attribute type Date or Long.

        • Keyrequired — (String)

          The identifier for the attribute.

        • Valuerequired — (map)

          The value of the attribute.

          • StringValue — (String)

            A string, such as "department".

          • StringListValue — (Array<String>)

            A list of strings. The default maximum length or number of strings is 10.

          • LongValue — (Integer)

            A long integer value.

          • DateValue — (Date)

            A date expressed as an ISO 8601 string.

            It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

      • GreaterThanOrEquals — (map)

        Performs a greater or equals than operation on document attributes/fields and their values. Use with the document attribute type Date or Long.

        • Keyrequired — (String)

          The identifier for the attribute.

        • Valuerequired — (map)

          The value of the attribute.

          • StringValue — (String)

            A string, such as "department".

          • StringListValue — (Array<String>)

            A list of strings. The default maximum length or number of strings is 10.

          • LongValue — (Integer)

            A long integer value.

          • DateValue — (Date)

            A date expressed as an ISO 8601 string.

            It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

      • LessThan — (map)

        Performs a less than operation on document attributes/fields and their values. Use with the document attribute type Date or Long.

        • Keyrequired — (String)

          The identifier for the attribute.

        • Valuerequired — (map)

          The value of the attribute.

          • StringValue — (String)

            A string, such as "department".

          • StringListValue — (Array<String>)

            A list of strings. The default maximum length or number of strings is 10.

          • LongValue — (Integer)

            A long integer value.

          • DateValue — (Date)

            A date expressed as an ISO 8601 string.

            It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

      • LessThanOrEquals — (map)

        Performs a less than or equals operation on document attributes/fields and their values. Use with the document attribute type Date or Long.

        • Keyrequired — (String)

          The identifier for the attribute.

        • Valuerequired — (map)

          The value of the attribute.

          • StringValue — (String)

            A string, such as "department".

          • StringListValue — (Array<String>)

            A list of strings. The default maximum length or number of strings is 10.

          • LongValue — (Integer)

            A long integer value.

          • DateValue — (Date)

            A date expressed as an ISO 8601 string.

            It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

    • RequestedDocumentAttributes — (Array<String>)

      A list of document fields/attributes to include in the response. You can limit the response to include certain document fields. By default, all document fields are included in the response.

    • DocumentRelevanceOverrideConfigurations — (Array<map>)

      Overrides relevance tuning configurations of fields/attributes set at the index level.

      If you use this API to override the relevance tuning configured at the index level, but there is no relevance tuning configured at the index level, then Amazon Kendra does not apply any relevance tuning.

      If there is relevance tuning configured for fields at the index level, and you use this API to override only some of these fields, then for the fields you did not override, the importance is set to 1.

      • Namerequired — (String)

        The name of the index field.

      • Relevancerequired — (map)

        Provides information for tuning the relevance of a field in a search. When a query includes terms that match the field, the results are given a boost in the response based on these tuning parameters.

        • Freshness — (Boolean)

          Indicates that this field determines how "fresh" a document is. For example, if document 1 was created on November 5, and document 2 was created on October 31, document 1 is "fresher" than document 2. Only applies to DATE fields.

        • Importance — (Integer)

          The relative importance of the field in the search. Larger numbers provide more of a boost than smaller numbers.

        • Duration — (String)

          Specifies the time period that the boost applies to. For example, to make the boost apply to documents with the field value within the last month, you would use "2628000s". Once the field value is beyond the specified range, the effect of the boost drops off. The higher the importance, the faster the effect drops off. If you don't specify a value, the default is 3 months. The value of the field is a numeric string followed by the character "s", for example "86400s" for one day, or "604800s" for one week.

          Only applies to DATE fields.

        • RankOrder — (String)

          Determines how values should be interpreted.

          When the RankOrder field is ASCENDING, higher numbers are better. For example, a document with a rating score of 10 is higher ranking than a document with a rating score of 1.

          When the RankOrder field is DESCENDING, lower numbers are better. For example, in a task tracking application, a priority 1 task is more important than a priority 5 task.

          Only applies to LONG fields.

          Possible values include:
          • "ASCENDING"
          • "DESCENDING"
        • ValueImportanceMap — (map<Integer>)

          A list of values that should be given a different boost when they appear in the result list. For example, if you are boosting a field called "department", query terms that match the department field are boosted in the result. However, you can add entries from the department field to boost documents with those values higher.

          For example, you can add entries to the map with names of departments. If you add "HR",5 and "Legal",3 those departments are given special attention when they appear in the metadata of a document. When those terms appear they are given the specified importance instead of the regular importance for the boost.

    • PageNumber — (Integer)

      Retrieved relevant passages are returned in pages the size of the PageSize parameter. By default, Amazon Kendra returns the first page of results. Use this parameter to get result pages after the first one.

    • PageSize — (Integer)

      Sets the number of retrieved relevant passages that are returned in each page of results. The default page size is 10. The maximum number of results returned is 100. If you ask for more than 100 results, only 100 are returned.

    • UserContext — (map)

      The user context token or user and group information.

      • Token — (String)

        The user context token for filtering search results for a user. It must be a JWT or a JSON token.

      • UserId — (String)

        The identifier of the user you want to filter search results based on their access to documents.

      • Groups — (Array<String>)

        The list of groups you want to filter search results based on the groups' access to documents.

      • DataSourceGroups — (Array<map>)

        The list of data source groups you want to filter search results based on groups' access to documents in that data source.

        • GroupIdrequired — (String)

          The identifier of the group you want to add to your list of groups. This is for filtering search results based on the groups' access to documents.

        • DataSourceIdrequired — (String)

          The identifier of the data source group you want to add to your list of data source groups. This is for filtering search results based on the groups' access to documents in that data source.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • QueryId — (String)

        The identifier of query used for the search. You also use QueryId to identify the search when using the Submitfeedback API.

      • ResultItems — (Array<map>)

        The results of the retrieved relevant passages for the search.

        • Id — (String)

          The identifier of the relevant passage result.

        • DocumentId — (String)

          The identifier of the document.

        • DocumentTitle — (String)

          The title of the document.

        • Content — (String)

          The contents of the relevant passage.

        • DocumentURI — (String)

          The URI of the original location of the document.

        • DocumentAttributes — (Array<map>)

          An array of document fields/attributes assigned to a document in the search results. For example, the document author (_author) or the source URI (_source_uri) of the document.

          • Keyrequired — (String)

            The identifier for the attribute.

          • Valuerequired — (map)

            The value of the attribute.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • ScoreAttributes — (map)

          The confidence score bucket for a retrieved passage result. The confidence bucket provides a relative ranking that indicates how confident Amazon Kendra is that the response is relevant to the query.

          • ScoreConfidence — (String)

            A relative ranking for how relevant the response is to the query.

            Possible values include:
            • "VERY_HIGH"
            • "HIGH"
            • "MEDIUM"
            • "LOW"
            • "NOT_AVAILABLE"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

startDataSourceSyncJob(params = {}, callback) ⇒ AWS.Request

Starts a synchronization job for a data source connector. If a synchronization job is already in progress, Amazon Kendra returns a ResourceInUseException exception.

Re-syncing your data source with your index after modifying, adding, or deleting documents from your data source respository could take up to an hour or more, depending on the number of documents to sync.

Service Reference:

Examples:

Calling the startDataSourceSyncJob operation

var params = {
  Id: 'STRING_VALUE', /* required */
  IndexId: 'STRING_VALUE' /* required */
};
kendra.startDataSourceSyncJob(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Id — (String)

      The identifier of the data source connector to synchronize.

    • IndexId — (String)

      The identifier of the index used with the data source connector.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ExecutionId — (String)

        Identifies a particular synchronization job.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

stopDataSourceSyncJob(params = {}, callback) ⇒ AWS.Request

Stops a synchronization job that is currently running. You can't stop a scheduled synchronization job.

Service Reference:

Examples:

Calling the stopDataSourceSyncJob operation

var params = {
  Id: 'STRING_VALUE', /* required */
  IndexId: 'STRING_VALUE' /* required */
};
kendra.stopDataSourceSyncJob(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Id — (String)

      The identifier of the data source connector for which to stop the synchronization jobs.

    • IndexId — (String)

      The identifier of the index used with the data source connector.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

submitFeedback(params = {}, callback) ⇒ AWS.Request

Enables you to provide feedback to Amazon Kendra to improve the performance of your index.

SubmitFeedback is currently not supported in the Amazon Web Services GovCloud (US-West) region.

Service Reference:

Examples:

Calling the submitFeedback operation

var params = {
  IndexId: 'STRING_VALUE', /* required */
  QueryId: 'STRING_VALUE', /* required */
  ClickFeedbackItems: [
    {
      ClickTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, /* required */
      ResultId: 'STRING_VALUE' /* required */
    },
    /* more items */
  ],
  RelevanceFeedbackItems: [
    {
      RelevanceValue: RELEVANT | NOT_RELEVANT, /* required */
      ResultId: 'STRING_VALUE' /* required */
    },
    /* more items */
  ]
};
kendra.submitFeedback(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • IndexId — (String)

      The identifier of the index that was queried.

    • QueryId — (String)

      The identifier of the specific query for which you are submitting feedback. The query ID is returned in the response to the Query API.

    • ClickFeedbackItems — (Array<map>)

      Tells Amazon Kendra that a particular search result link was chosen by the user.

      • ResultIdrequired — (String)

        The identifier of the search result that was clicked.

      • ClickTimerequired — (Date)

        The Unix timestamp when the result was clicked.

    • RelevanceFeedbackItems — (Array<map>)

      Provides Amazon Kendra with relevant or not relevant feedback for whether a particular item was relevant to the search.

      • ResultIdrequired — (String)

        The identifier of the search result that the user provided relevance feedback for.

      • RelevanceValuerequired — (String)

        Whether the document was relevant or not relevant to the search.

        Possible values include:
        • "RELEVANT"
        • "NOT_RELEVANT"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

tagResource(params = {}, callback) ⇒ AWS.Request

Adds the specified tag to the specified index, FAQ, or data source resource. If the tag already exists, the existing value is replaced with the new value.

Service Reference:

Examples:

Calling the tagResource operation

var params = {
  ResourceARN: 'STRING_VALUE', /* required */
  Tags: [ /* required */
    {
      Key: 'STRING_VALUE', /* required */
      Value: 'STRING_VALUE' /* required */
    },
    /* more items */
  ]
};
kendra.tagResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResourceARN — (String)

      The Amazon Resource Name (ARN) of the index, FAQ, or data source to tag.

    • Tags — (Array<map>)

      A list of tag keys to add to the index, FAQ, or data source. If a tag already exists, the existing value is replaced with the new value.

      • Keyrequired — (String)

        The key for the tag. Keys are not case sensitive and must be unique for the index, FAQ, or data source.

      • Valuerequired — (String)

        The value associated with the tag. The value may be an empty string but it can't be null.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

untagResource(params = {}, callback) ⇒ AWS.Request

Removes a tag from an index, FAQ, or a data source.

Service Reference:

Examples:

Calling the untagResource operation

var params = {
  ResourceARN: 'STRING_VALUE', /* required */
  TagKeys: [ /* required */
    'STRING_VALUE',
    /* more items */
  ]
};
kendra.untagResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResourceARN — (String)

      The Amazon Resource Name (ARN) of the index, FAQ, or data source to remove the tag from.

    • TagKeys — (Array<String>)

      A list of tag keys to remove from the index, FAQ, or data source. If a tag key does not exist on the resource, it is ignored.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateAccessControlConfiguration(params = {}, callback) ⇒ AWS.Request

Updates an access control configuration for your documents in an index. This includes user and group access information for your documents. This is useful for user context filtering, where search results are filtered based on the user or their group access to documents.

You can update an access control configuration you created without indexing all of your documents again. For example, your index contains top-secret company documents that only certain employees or users should access. You created an 'allow' access control configuration for one user who recently joined the 'top-secret' team, switching from a team with 'deny' access to top-secret documents. However, the user suddenly returns to their previous team and should no longer have access to top secret documents. You can update the access control configuration to re-configure access control for your documents as circumstances change.

You call the BatchPutDocument API to apply the updated access control configuration, with the AccessControlConfigurationId included in the Document object. If you use an S3 bucket as a data source, you synchronize your data source to apply the AccessControlConfigurationId in the .metadata.json file. Amazon Kendra currently only supports access control configuration for S3 data sources and documents indexed using the BatchPutDocument API.

Examples:

Calling the updateAccessControlConfiguration operation

var params = {
  Id: 'STRING_VALUE', /* required */
  IndexId: 'STRING_VALUE', /* required */
  AccessControlList: [
    {
      Access: ALLOW | DENY, /* required */
      Name: 'STRING_VALUE', /* required */
      Type: USER | GROUP, /* required */
      DataSourceId: 'STRING_VALUE'
    },
    /* more items */
  ],
  Description: 'STRING_VALUE',
  HierarchicalAccessControlList: [
    {
      PrincipalList: [ /* required */
        {
          Access: ALLOW | DENY, /* required */
          Name: 'STRING_VALUE', /* required */
          Type: USER | GROUP, /* required */
          DataSourceId: 'STRING_VALUE'
        },
        /* more items */
      ]
    },
    /* more items */
  ],
  Name: 'STRING_VALUE'
};
kendra.updateAccessControlConfiguration(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • IndexId — (String)

      The identifier of the index for an access control configuration.

    • Id — (String)

      The identifier of the access control configuration you want to update.

    • Name — (String)

      A new name for the access control configuration.

    • Description — (String)

      A new description for the access control configuration.

    • AccessControlList — (Array<map>)

      Information you want to update on principals (users and/or groups) and which documents they should have access to. This is useful for user context filtering, where search results are filtered based on the user or their group access to documents.

      • Namerequired — (String)

        The name of the user or group.

      • Typerequired — (String)

        The type of principal.

        Possible values include:
        • "USER"
        • "GROUP"
      • Accessrequired — (String)

        Whether to allow or deny document access to the principal.

        Possible values include:
        • "ALLOW"
        • "DENY"
      • DataSourceId — (String)

        The identifier of the data source the principal should access documents from.

    • HierarchicalAccessControlList — (Array<map>)

      The updated list of principal lists that define the hierarchy for which documents users should have access to.

      • PrincipalListrequired — (Array<map>)

        A list of principal lists that define the hierarchy for which documents users should have access to. Each hierarchical list specifies which user or group has allow or deny access for each document.

        • Namerequired — (String)

          The name of the user or group.

        • Typerequired — (String)

          The type of principal.

          Possible values include:
          • "USER"
          • "GROUP"
        • Accessrequired — (String)

          Whether to allow or deny document access to the principal.

          Possible values include:
          • "ALLOW"
          • "DENY"
        • DataSourceId — (String)

          The identifier of the data source the principal should access documents from.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateDataSource(params = {}, callback) ⇒ AWS.Request

Updates an Amazon Kendra data source connector.

Service Reference:

Examples:

Calling the updateDataSource operation

var params = {
  Id: 'STRING_VALUE', /* required */
  IndexId: 'STRING_VALUE', /* required */
  Configuration: {
    AlfrescoConfiguration: {
      SecretArn: 'STRING_VALUE', /* required */
      SiteId: 'STRING_VALUE', /* required */
      SiteUrl: 'STRING_VALUE', /* required */
      SslCertificateS3Path: { /* required */
        Bucket: 'STRING_VALUE', /* required */
        Key: 'STRING_VALUE' /* required */
      },
      BlogFieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      CrawlComments: true || false,
      CrawlSystemFolders: true || false,
      DocumentLibraryFieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      EntityFilter: [
        wiki | blog | documentLibrary,
        /* more items */
      ],
      ExclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      InclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      VpcConfiguration: {
        SecurityGroupIds: [ /* required */
          'STRING_VALUE',
          /* more items */
        ],
        SubnetIds: [ /* required */
          'STRING_VALUE',
          /* more items */
        ]
      },
      WikiFieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ]
    },
    BoxConfiguration: {
      EnterpriseId: 'STRING_VALUE', /* required */
      SecretArn: 'STRING_VALUE', /* required */
      CommentFieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      CrawlComments: true || false,
      CrawlTasks: true || false,
      CrawlWebLinks: true || false,
      ExclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      FileFieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      InclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      TaskFieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      UseChangeLog: true || false,
      VpcConfiguration: {
        SecurityGroupIds: [ /* required */
          'STRING_VALUE',
          /* more items */
        ],
        SubnetIds: [ /* required */
          'STRING_VALUE',
          /* more items */
        ]
      },
      WebLinkFieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ]
    },
    ConfluenceConfiguration: {
      SecretArn: 'STRING_VALUE', /* required */
      ServerUrl: 'STRING_VALUE', /* required */
      Version: CLOUD | SERVER, /* required */
      AttachmentConfiguration: {
        AttachmentFieldMappings: [
          {
            DataSourceFieldName: AUTHOR | CONTENT_TYPE | CREATED_DATE | DISPLAY_URL | FILE_SIZE | ITEM_TYPE | PARENT_ID | SPACE_KEY | SPACE_NAME | URL | VERSION,
            DateFieldFormat: 'STRING_VALUE',
            IndexFieldName: 'STRING_VALUE'
          },
          /* more items */
        ],
        CrawlAttachments: true || false
      },
      AuthenticationType: HTTP_BASIC | PAT,
      BlogConfiguration: {
        BlogFieldMappings: [
          {
            DataSourceFieldName: AUTHOR | DISPLAY_URL | ITEM_TYPE | LABELS | PUBLISH_DATE | SPACE_KEY | SPACE_NAME | URL | VERSION,
            DateFieldFormat: 'STRING_VALUE',
            IndexFieldName: 'STRING_VALUE'
          },
          /* more items */
        ]
      },
      ExclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      InclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      PageConfiguration: {
        PageFieldMappings: [
          {
            DataSourceFieldName: AUTHOR | CONTENT_STATUS | CREATED_DATE | DISPLAY_URL | ITEM_TYPE | LABELS | MODIFIED_DATE | PARENT_ID | SPACE_KEY | SPACE_NAME | URL | VERSION,
            DateFieldFormat: 'STRING_VALUE',
            IndexFieldName: 'STRING_VALUE'
          },
          /* more items */
        ]
      },
      ProxyConfiguration: {
        Host: 'STRING_VALUE', /* required */
        Port: 'NUMBER_VALUE', /* required */
        Credentials: 'STRING_VALUE'
      },
      SpaceConfiguration: {
        CrawlArchivedSpaces: true || false,
        CrawlPersonalSpaces: true || false,
        ExcludeSpaces: [
          'STRING_VALUE',
          /* more items */
        ],
        IncludeSpaces: [
          'STRING_VALUE',
          /* more items */
        ],
        SpaceFieldMappings: [
          {
            DataSourceFieldName: DISPLAY_URL | ITEM_TYPE | SPACE_KEY | URL,
            DateFieldFormat: 'STRING_VALUE',
            IndexFieldName: 'STRING_VALUE'
          },
          /* more items */
        ]
      },
      VpcConfiguration: {
        SecurityGroupIds: [ /* required */
          'STRING_VALUE',
          /* more items */
        ],
        SubnetIds: [ /* required */
          'STRING_VALUE',
          /* more items */
        ]
      }
    },
    DatabaseConfiguration: {
      ColumnConfiguration: { /* required */
        ChangeDetectingColumns: [ /* required */
          'STRING_VALUE',
          /* more items */
        ],
        DocumentDataColumnName: 'STRING_VALUE', /* required */
        DocumentIdColumnName: 'STRING_VALUE', /* required */
        DocumentTitleColumnName: 'STRING_VALUE',
        FieldMappings: [
          {
            DataSourceFieldName: 'STRING_VALUE', /* required */
            IndexFieldName: 'STRING_VALUE', /* required */
            DateFieldFormat: 'STRING_VALUE'
          },
          /* more items */
        ]
      },
      ConnectionConfiguration: { /* required */
        DatabaseHost: 'STRING_VALUE', /* required */
        DatabaseName: 'STRING_VALUE', /* required */
        DatabasePort: 'NUMBER_VALUE', /* required */
        SecretArn: 'STRING_VALUE', /* required */
        TableName: 'STRING_VALUE' /* required */
      },
      DatabaseEngineType: RDS_AURORA_MYSQL | RDS_AURORA_POSTGRESQL | RDS_MYSQL | RDS_POSTGRESQL, /* required */
      AclConfiguration: {
        AllowedGroupsColumnName: 'STRING_VALUE' /* required */
      },
      SqlConfiguration: {
        QueryIdentifiersEnclosingOption: DOUBLE_QUOTES | NONE
      },
      VpcConfiguration: {
        SecurityGroupIds: [ /* required */
          'STRING_VALUE',
          /* more items */
        ],
        SubnetIds: [ /* required */
          'STRING_VALUE',
          /* more items */
        ]
      }
    },
    FsxConfiguration: {
      FileSystemId: 'STRING_VALUE', /* required */
      FileSystemType: WINDOWS, /* required */
      VpcConfiguration: { /* required */
        SecurityGroupIds: [ /* required */
          'STRING_VALUE',
          /* more items */
        ],
        SubnetIds: [ /* required */
          'STRING_VALUE',
          /* more items */
        ]
      },
      ExclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      FieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      InclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      SecretArn: 'STRING_VALUE'
    },
    GitHubConfiguration: {
      SecretArn: 'STRING_VALUE', /* required */
      ExclusionFileNamePatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      ExclusionFileTypePatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      ExclusionFolderNamePatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      GitHubCommitConfigurationFieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      GitHubDocumentCrawlProperties: {
        CrawlIssue: true || false,
        CrawlIssueComment: true || false,
        CrawlIssueCommentAttachment: true || false,
        CrawlPullRequest: true || false,
        CrawlPullRequestComment: true || false,
        CrawlPullRequestCommentAttachment: true || false,
        CrawlRepositoryDocuments: true || false
      },
      GitHubIssueAttachmentConfigurationFieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      GitHubIssueCommentConfigurationFieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      GitHubIssueDocumentConfigurationFieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      GitHubPullRequestCommentConfigurationFieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      GitHubPullRequestDocumentAttachmentConfigurationFieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      GitHubPullRequestDocumentConfigurationFieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      GitHubRepositoryConfigurationFieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      InclusionFileNamePatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      InclusionFileTypePatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      InclusionFolderNamePatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      OnPremiseConfiguration: {
        HostUrl: 'STRING_VALUE', /* required */
        OrganizationName: 'STRING_VALUE', /* required */
        SslCertificateS3Path: { /* required */
          Bucket: 'STRING_VALUE', /* required */
          Key: 'STRING_VALUE' /* required */
        }
      },
      RepositoryFilter: [
        'STRING_VALUE',
        /* more items */
      ],
      SaaSConfiguration: {
        HostUrl: 'STRING_VALUE', /* required */
        OrganizationName: 'STRING_VALUE' /* required */
      },
      Type: SAAS | ON_PREMISE,
      UseChangeLog: true || false,
      VpcConfiguration: {
        SecurityGroupIds: [ /* required */
          'STRING_VALUE',
          /* more items */
        ],
        SubnetIds: [ /* required */
          'STRING_VALUE',
          /* more items */
        ]
      }
    },
    GoogleDriveConfiguration: {
      SecretArn: 'STRING_VALUE', /* required */
      ExcludeMimeTypes: [
        'STRING_VALUE',
        /* more items */
      ],
      ExcludeSharedDrives: [
        'STRING_VALUE',
        /* more items */
      ],
      ExcludeUserAccounts: [
        'STRING_VALUE',
        /* more items */
      ],
      ExclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      FieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      InclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ]
    },
    JiraConfiguration: {
      JiraAccountUrl: 'STRING_VALUE', /* required */
      SecretArn: 'STRING_VALUE', /* required */
      AttachmentFieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      CommentFieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      ExclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      InclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      IssueFieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      IssueSubEntityFilter: [
        COMMENTS | ATTACHMENTS | WORKLOGS,
        /* more items */
      ],
      IssueType: [
        'STRING_VALUE',
        /* more items */
      ],
      Project: [
        'STRING_VALUE',
        /* more items */
      ],
      ProjectFieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      Status: [
        'STRING_VALUE',
        /* more items */
      ],
      UseChangeLog: true || false,
      VpcConfiguration: {
        SecurityGroupIds: [ /* required */
          'STRING_VALUE',
          /* more items */
        ],
        SubnetIds: [ /* required */
          'STRING_VALUE',
          /* more items */
        ]
      },
      WorkLogFieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ]
    },
    OneDriveConfiguration: {
      OneDriveUsers: { /* required */
        OneDriveUserList: [
          'STRING_VALUE',
          /* more items */
        ],
        OneDriveUserS3Path: {
          Bucket: 'STRING_VALUE', /* required */
          Key: 'STRING_VALUE' /* required */
        }
      },
      SecretArn: 'STRING_VALUE', /* required */
      TenantDomain: 'STRING_VALUE', /* required */
      DisableLocalGroups: true || false,
      ExclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      FieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      InclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ]
    },
    QuipConfiguration: {
      Domain: 'STRING_VALUE', /* required */
      SecretArn: 'STRING_VALUE', /* required */
      AttachmentFieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      CrawlAttachments: true || false,
      CrawlChatRooms: true || false,
      CrawlFileComments: true || false,
      ExclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      FolderIds: [
        'STRING_VALUE',
        /* more items */
      ],
      InclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      MessageFieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      ThreadFieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      VpcConfiguration: {
        SecurityGroupIds: [ /* required */
          'STRING_VALUE',
          /* more items */
        ],
        SubnetIds: [ /* required */
          'STRING_VALUE',
          /* more items */
        ]
      }
    },
    S3Configuration: {
      BucketName: 'STRING_VALUE', /* required */
      AccessControlListConfiguration: {
        KeyPath: 'STRING_VALUE'
      },
      DocumentsMetadataConfiguration: {
        S3Prefix: 'STRING_VALUE'
      },
      ExclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      InclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      InclusionPrefixes: [
        'STRING_VALUE',
        /* more items */
      ]
    },
    SalesforceConfiguration: {
      SecretArn: 'STRING_VALUE', /* required */
      ServerUrl: 'STRING_VALUE', /* required */
      ChatterFeedConfiguration: {
        DocumentDataFieldName: 'STRING_VALUE', /* required */
        DocumentTitleFieldName: 'STRING_VALUE',
        FieldMappings: [
          {
            DataSourceFieldName: 'STRING_VALUE', /* required */
            IndexFieldName: 'STRING_VALUE', /* required */
            DateFieldFormat: 'STRING_VALUE'
          },
          /* more items */
        ],
        IncludeFilterTypes: [
          ACTIVE_USER | STANDARD_USER,
          /* more items */
        ]
      },
      CrawlAttachments: true || false,
      ExcludeAttachmentFilePatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      IncludeAttachmentFilePatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      KnowledgeArticleConfiguration: {
        IncludedStates: [ /* required */
          DRAFT | PUBLISHED | ARCHIVED,
          /* more items */
        ],
        CustomKnowledgeArticleTypeConfigurations: [
          {
            DocumentDataFieldName: 'STRING_VALUE', /* required */
            Name: 'STRING_VALUE', /* required */
            DocumentTitleFieldName: 'STRING_VALUE',
            FieldMappings: [
              {
                DataSourceFieldName: 'STRING_VALUE', /* required */
                IndexFieldName: 'STRING_VALUE', /* required */
                DateFieldFormat: 'STRING_VALUE'
              },
              /* more items */
            ]
          },
          /* more items */
        ],
        StandardKnowledgeArticleTypeConfiguration: {
          DocumentDataFieldName: 'STRING_VALUE', /* required */
          DocumentTitleFieldName: 'STRING_VALUE',
          FieldMappings: [
            {
              DataSourceFieldName: 'STRING_VALUE', /* required */
              IndexFieldName: 'STRING_VALUE', /* required */
              DateFieldFormat: 'STRING_VALUE'
            },
            /* more items */
          ]
        }
      },
      StandardObjectAttachmentConfiguration: {
        DocumentTitleFieldName: 'STRING_VALUE',
        FieldMappings: [
          {
            DataSourceFieldName: 'STRING_VALUE', /* required */
            IndexFieldName: 'STRING_VALUE', /* required */
            DateFieldFormat: 'STRING_VALUE'
          },
          /* more items */
        ]
      },
      StandardObjectConfigurations: [
        {
          DocumentDataFieldName: 'STRING_VALUE', /* required */
          Name: ACCOUNT | CAMPAIGN | CASE | CONTACT | CONTRACT | DOCUMENT | GROUP | IDEA | LEAD | OPPORTUNITY | PARTNER | PRICEBOOK | PRODUCT | PROFILE | SOLUTION | TASK | USER, /* required */
          DocumentTitleFieldName: 'STRING_VALUE',
          FieldMappings: [
            {
              DataSourceFieldName: 'STRING_VALUE', /* required */
              IndexFieldName: 'STRING_VALUE', /* required */
              DateFieldFormat: 'STRING_VALUE'
            },
            /* more items */
          ]
        },
        /* more items */
      ]
    },
    ServiceNowConfiguration: {
      HostUrl: 'STRING_VALUE', /* required */
      SecretArn: 'STRING_VALUE', /* required */
      ServiceNowBuildVersion: LONDON | OTHERS, /* required */
      AuthenticationType: HTTP_BASIC | OAUTH2,
      KnowledgeArticleConfiguration: {
        DocumentDataFieldName: 'STRING_VALUE', /* required */
        CrawlAttachments: true || false,
        DocumentTitleFieldName: 'STRING_VALUE',
        ExcludeAttachmentFilePatterns: [
          'STRING_VALUE',
          /* more items */
        ],
        FieldMappings: [
          {
            DataSourceFieldName: 'STRING_VALUE', /* required */
            IndexFieldName: 'STRING_VALUE', /* required */
            DateFieldFormat: 'STRING_VALUE'
          },
          /* more items */
        ],
        FilterQuery: 'STRING_VALUE',
        IncludeAttachmentFilePatterns: [
          'STRING_VALUE',
          /* more items */
        ]
      },
      ServiceCatalogConfiguration: {
        DocumentDataFieldName: 'STRING_VALUE', /* required */
        CrawlAttachments: true || false,
        DocumentTitleFieldName: 'STRING_VALUE',
        ExcludeAttachmentFilePatterns: [
          'STRING_VALUE',
          /* more items */
        ],
        FieldMappings: [
          {
            DataSourceFieldName: 'STRING_VALUE', /* required */
            IndexFieldName: 'STRING_VALUE', /* required */
            DateFieldFormat: 'STRING_VALUE'
          },
          /* more items */
        ],
        IncludeAttachmentFilePatterns: [
          'STRING_VALUE',
          /* more items */
        ]
      }
    },
    SharePointConfiguration: {
      SecretArn: 'STRING_VALUE', /* required */
      SharePointVersion: SHAREPOINT_2013 | SHAREPOINT_2016 | SHAREPOINT_ONLINE | SHAREPOINT_2019, /* required */
      Urls: [ /* required */
        'STRING_VALUE',
        /* more items */
      ],
      AuthenticationType: HTTP_BASIC | OAUTH2,
      CrawlAttachments: true || false,
      DisableLocalGroups: true || false,
      DocumentTitleFieldName: 'STRING_VALUE',
      ExclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      FieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      InclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      ProxyConfiguration: {
        Host: 'STRING_VALUE', /* required */
        Port: 'NUMBER_VALUE', /* required */
        Credentials: 'STRING_VALUE'
      },
      SslCertificateS3Path: {
        Bucket: 'STRING_VALUE', /* required */
        Key: 'STRING_VALUE' /* required */
      },
      UseChangeLog: true || false,
      VpcConfiguration: {
        SecurityGroupIds: [ /* required */
          'STRING_VALUE',
          /* more items */
        ],
        SubnetIds: [ /* required */
          'STRING_VALUE',
          /* more items */
        ]
      }
    },
    SlackConfiguration: {
      SecretArn: 'STRING_VALUE', /* required */
      SinceCrawlDate: 'STRING_VALUE', /* required */
      SlackEntityList: [ /* required */
        PUBLIC_CHANNEL | PRIVATE_CHANNEL | GROUP_MESSAGE | DIRECT_MESSAGE,
        /* more items */
      ],
      TeamId: 'STRING_VALUE', /* required */
      CrawlBotMessage: true || false,
      ExcludeArchived: true || false,
      ExclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      FieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      InclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      LookBackPeriod: 'NUMBER_VALUE',
      PrivateChannelFilter: [
        'STRING_VALUE',
        /* more items */
      ],
      PublicChannelFilter: [
        'STRING_VALUE',
        /* more items */
      ],
      UseChangeLog: true || false,
      VpcConfiguration: {
        SecurityGroupIds: [ /* required */
          'STRING_VALUE',
          /* more items */
        ],
        SubnetIds: [ /* required */
          'STRING_VALUE',
          /* more items */
        ]
      }
    },
    TemplateConfiguration: {
      Template: {
      }
    },
    WebCrawlerConfiguration: {
      Urls: { /* required */
        SeedUrlConfiguration: {
          SeedUrls: [ /* required */
            'STRING_VALUE',
            /* more items */
          ],
          WebCrawlerMode: HOST_ONLY | SUBDOMAINS | EVERYTHING
        },
        SiteMapsConfiguration: {
          SiteMaps: [ /* required */
            'STRING_VALUE',
            /* more items */
          ]
        }
      },
      AuthenticationConfiguration: {
        BasicAuthentication: [
          {
            Credentials: 'STRING_VALUE', /* required */
            Host: 'STRING_VALUE', /* required */
            Port: 'NUMBER_VALUE' /* required */
          },
          /* more items */
        ]
      },
      CrawlDepth: 'NUMBER_VALUE',
      MaxContentSizePerPageInMegaBytes: 'NUMBER_VALUE',
      MaxLinksPerPage: 'NUMBER_VALUE',
      MaxUrlsPerMinuteCrawlRate: 'NUMBER_VALUE',
      ProxyConfiguration: {
        Host: 'STRING_VALUE', /* required */
        Port: 'NUMBER_VALUE', /* required */
        Credentials: 'STRING_VALUE'
      },
      UrlExclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      UrlInclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ]
    },
    WorkDocsConfiguration: {
      OrganizationId: 'STRING_VALUE', /* required */
      CrawlComments: true || false,
      ExclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      FieldMappings: [
        {
          DataSourceFieldName: 'STRING_VALUE', /* required */
          IndexFieldName: 'STRING_VALUE', /* required */
          DateFieldFormat: 'STRING_VALUE'
        },
        /* more items */
      ],
      InclusionPatterns: [
        'STRING_VALUE',
        /* more items */
      ],
      UseChangeLog: true || false
    }
  },
  CustomDocumentEnrichmentConfiguration: {
    InlineConfigurations: [
      {
        Condition: {
          ConditionDocumentAttributeKey: 'STRING_VALUE', /* required */
          Operator: GreaterThan | GreaterThanOrEquals | LessThan | LessThanOrEquals | Equals | NotEquals | Contains | NotContains | Exists | NotExists | BeginsWith, /* required */
          ConditionOnValue: {
            DateValue: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
            LongValue: 'NUMBER_VALUE',
            StringListValue: [
              'STRING_VALUE',
              /* more items */
            ],
            StringValue: 'STRING_VALUE'
          }
        },
        DocumentContentDeletion: true || false,
        Target: {
          TargetDocumentAttributeKey: 'STRING_VALUE',
          TargetDocumentAttributeValue: {
            DateValue: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
            LongValue: 'NUMBER_VALUE',
            StringListValue: [
              'STRING_VALUE',
              /* more items */
            ],
            StringValue: 'STRING_VALUE'
          },
          TargetDocumentAttributeValueDeletion: true || false
        }
      },
      /* more items */
    ],
    PostExtractionHookConfiguration: {
      LambdaArn: 'STRING_VALUE', /* required */
      S3Bucket: 'STRING_VALUE', /* required */
      InvocationCondition: {
        ConditionDocumentAttributeKey: 'STRING_VALUE', /* required */
        Operator: GreaterThan | GreaterThanOrEquals | LessThan | LessThanOrEquals | Equals | NotEquals | Contains | NotContains | Exists | NotExists | BeginsWith, /* required */
        ConditionOnValue: {
          DateValue: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
          LongValue: 'NUMBER_VALUE',
          StringListValue: [
            'STRING_VALUE',
            /* more items */
          ],
          StringValue: 'STRING_VALUE'
        }
      }
    },
    PreExtractionHookConfiguration: {
      LambdaArn: 'STRING_VALUE', /* required */
      S3Bucket: 'STRING_VALUE', /* required */
      InvocationCondition: {
        ConditionDocumentAttributeKey: 'STRING_VALUE', /* required */
        Operator: GreaterThan | GreaterThanOrEquals | LessThan | LessThanOrEquals | Equals | NotEquals | Contains | NotContains | Exists | NotExists | BeginsWith, /* required */
        ConditionOnValue: {
          DateValue: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
          LongValue: 'NUMBER_VALUE',
          StringListValue: [
            'STRING_VALUE',
            /* more items */
          ],
          StringValue: 'STRING_VALUE'
        }
      }
    },
    RoleArn: 'STRING_VALUE'
  },
  Description: 'STRING_VALUE',
  LanguageCode: 'STRING_VALUE',
  Name: 'STRING_VALUE',
  RoleArn: 'STRING_VALUE',
  Schedule: 'STRING_VALUE',
  VpcConfiguration: {
    SecurityGroupIds: [ /* required */
      'STRING_VALUE',
      /* more items */
    ],
    SubnetIds: [ /* required */
      'STRING_VALUE',
      /* more items */
    ]
  }
};
kendra.updateDataSource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Id — (String)

      The identifier of the data source connector you want to update.

    • Name — (String)

      A new name for the data source connector.

    • IndexId — (String)

      The identifier of the index used with the data source connector.

    • Configuration — (map)

      Configuration information you want to update for the data source connector.

      • S3Configuration — (map)

        Provides the configuration information to connect to an Amazon S3 bucket as your data source.

        Note: Amazon Kendra now supports an upgraded Amazon S3 connector. You must now use the TemplateConfiguration object instead of the S3DataSourceConfiguration object to configure your connector. Connectors configured using the older console and API architecture will continue to function as configured. However, you won't be able to edit or update them. If you want to edit or update your connector configuration, you must create a new connector. We recommended migrating your connector workflow to the upgraded version. Support for connectors configured using the older architecture is scheduled to end by June 2024.
        • BucketNamerequired — (String)

          The name of the bucket that contains the documents.

        • InclusionPrefixes — (Array<String>)

          A list of S3 prefixes for the documents that should be included in the index.

        • InclusionPatterns — (Array<String>)

          A list of glob patterns (patterns that can expand a wildcard pattern into a list of path names that match the given pattern) for certain file names and file types to include in your index. If a document matches both an inclusion and exclusion prefix or pattern, the exclusion prefix takes precendence and the document is not indexed. Examples of glob patterns include:

          • /myapp/config/—All files inside config directory.

          • **/.png—All .png files in all directories.

          • /*.ico, md—All .png, .ico or .md files in all directories.

          • /myapp/src//.ts—All .ts files inside src directory (and all its subdirectories).

          • **/!(.module).ts—All .ts files but not .module.ts

          • .png , .jpg—All PNG and JPEG image files in a directory (files with the extensions .png and .jpg).

          • internal—All files in a directory that contain 'internal' in the file name, such as 'internal', 'internal_only', 'company_internal'.

          • /internal—All internal-related files in a directory and its subdirectories.

          For more examples, see Use of Exclude and Include Filters in the Amazon Web Services CLI Command Reference.

        • ExclusionPatterns — (Array<String>)

          A list of glob patterns (patterns that can expand a wildcard pattern into a list of path names that match the given pattern) for certain file names and file types to exclude from your index. If a document matches both an inclusion and exclusion prefix or pattern, the exclusion prefix takes precendence and the document is not indexed. Examples of glob patterns include:

          • /myapp/config/—All files inside config directory.

          • **/.png—All .png files in all directories.

          • /*.ico, md—All .png, .ico or .md files in all directories.

          • /myapp/src//.ts—All .ts files inside src directory (and all its subdirectories).

          • **/!(.module).ts—All .ts files but not .module.ts

          • .png , .jpg—All PNG and JPEG image files in a directory (files with the extensions .png and .jpg).

          • internal—All files in a directory that contain 'internal' in the file name, such as 'internal', 'internal_only', 'company_internal'.

          • /internal—All internal-related files in a directory and its subdirectories.

          For more examples, see Use of Exclude and Include Filters in the Amazon Web Services CLI Command Reference.

        • DocumentsMetadataConfiguration — (map)

          Document metadata files that contain information such as the document access control information, source URI, document author, and custom attributes. Each metadata file contains metadata about a single document.

          • S3Prefix — (String)

            A prefix used to filter metadata configuration files in the Amazon Web Services S3 bucket. The S3 bucket might contain multiple metadata files. Use S3Prefix to include only the desired metadata files.

        • AccessControlListConfiguration — (map)

          Provides the path to the S3 bucket that contains the user context filtering files for the data source. For the format of the file, see Access control for S3 data sources.

          • KeyPath — (String)

            Path to the Amazon S3 bucket that contains the ACL files.

      • SharePointConfiguration — (map)

        Provides the configuration information to connect to Microsoft SharePoint as your data source.

        • SharePointVersionrequired — (String)

          The version of Microsoft SharePoint that you use.

          Possible values include:
          • "SHAREPOINT_2013"
          • "SHAREPOINT_2016"
          • "SHAREPOINT_ONLINE"
          • "SHAREPOINT_2019"
        • Urlsrequired — (Array<String>)

          The Microsoft SharePoint site URLs for the documents you want to index.

        • SecretArnrequired — (String)

          The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the user name and password required to connect to the SharePoint instance. For more information, see Microsoft SharePoint.

        • CrawlAttachments — (Boolean)

          TRUE to index document attachments.

        • UseChangeLog — (Boolean)

          TRUE to use the SharePoint change log to determine which documents require updating in the index. Depending on the change log's size, it may take longer for Amazon Kendra to use the change log than to scan all of your documents in SharePoint.

        • InclusionPatterns — (Array<String>)

          A list of regular expression patterns to include certain documents in your SharePoint. Documents that match the patterns are included in the index. Documents that don't match the patterns are excluded from the index. If a document matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the document isn't included in the index.

          The regex applies to the display URL of the SharePoint document.

        • ExclusionPatterns — (Array<String>)

          A list of regular expression patterns to exclude certain documents in your SharePoint. Documents that match the patterns are excluded from the index. Documents that don't match the patterns are included in the index. If a document matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the document isn't included in the index.

          The regex applies to the display URL of the SharePoint document.

        • VpcConfiguration — (map)

          Configuration information for an Amazon Virtual Private Cloud to connect to your Microsoft SharePoint. For more information, see Configuring a VPC.

          • SubnetIdsrequired — (Array<String>)

            A list of identifiers for subnets within your Amazon VPC. The subnets should be able to connect to each other in the VPC, and they should have outgoing access to the Internet through a NAT device.

          • SecurityGroupIdsrequired — (Array<String>)

            A list of identifiers of security groups within your Amazon VPC. The security groups should enable Amazon Kendra to connect to the data source.

        • FieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map SharePoint data source attributes or field names to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to SharePoint fields. For more information, see Mapping data source fields. The SharePoint data source field names must exist in your SharePoint custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • DocumentTitleFieldName — (String)

          The Microsoft SharePoint attribute field that contains the title of the document.

        • DisableLocalGroups — (Boolean)

          TRUE to disable local groups information.

        • SslCertificateS3Path — (map)

          The path to the SSL certificate stored in an Amazon S3 bucket. You use this to connect to SharePoint Server if you require a secure SSL connection.

          You can generate a self-signed X509 certificate on any computer using OpenSSL. For an example of using OpenSSL to create an X509 certificate, see Create and sign an X509 certificate.

          • Bucketrequired — (String)

            The name of the S3 bucket that contains the file.

          • Keyrequired — (String)

            The name of the file.

        • AuthenticationType — (String)

          Whether you want to connect to SharePoint Online using basic authentication of user name and password, or OAuth authentication of user name, password, client ID, and client secret, or AD App-only authentication of client secret.

          Possible values include:
          • "HTTP_BASIC"
          • "OAUTH2"
        • ProxyConfiguration — (map)

          Configuration information to connect to your Microsoft SharePoint site URLs via instance via a web proxy. You can use this option for SharePoint Server.

          You must provide the website host name and port number. For example, the host name of https://a.example.com/page1.html is "a.example.com" and the port is 443, the standard port for HTTPS.

          Web proxy credentials are optional and you can use them to connect to a web proxy server that requires basic authentication of user name and password. To store web proxy credentials, you use a secret in Secrets Manager.

          It is recommended that you follow best security practices when configuring your web proxy. This includes setting up throttling, setting up logging and monitoring, and applying security patches on a regular basis. If you use your web proxy with multiple data sources, sync jobs that occur at the same time could strain the load on your proxy. It is recommended you prepare your proxy beforehand for any security and load requirements.

          • Hostrequired — (String)

            The name of the website host you want to connect to via a web proxy server.

            For example, the host name of https://a.example.com/page1.html is "a.example.com".

          • Portrequired — (Integer)

            The port number of the website host you want to connect to via a web proxy server.

            For example, the port for https://a.example.com/page1.html is 443, the standard port for HTTPS.

          • Credentials — (String)

            Your secret ARN, which you can create in Secrets Manager

            The credentials are optional. You use a secret if web proxy credentials are required to connect to a website host. Amazon Kendra currently support basic authentication to connect to a web proxy server. The secret stores your credentials.

      • DatabaseConfiguration — (map)

        Provides the configuration information to connect to a database as your data source.

        • DatabaseEngineTyperequired — (String)

          The type of database engine that runs the database.

          Possible values include:
          • "RDS_AURORA_MYSQL"
          • "RDS_AURORA_POSTGRESQL"
          • "RDS_MYSQL"
          • "RDS_POSTGRESQL"
        • ConnectionConfigurationrequired — (map)

          Configuration information that's required to connect to a database.

          • DatabaseHostrequired — (String)

            The name of the host for the database. Can be either a string (host.subdomain.domain.tld) or an IPv4 or IPv6 address.

          • DatabasePortrequired — (Integer)

            The port that the database uses for connections.

          • DatabaseNamerequired — (String)

            The name of the database containing the document data.

          • TableNamerequired — (String)

            The name of the table that contains the document data.

          • SecretArnrequired — (String)

            The Amazon Resource Name (ARN) of credentials stored in Secrets Manager. The credentials should be a user/password pair. For more information, see Using a Database Data Source. For more information about Secrets Manager, see What Is Secrets Manager in the Secrets Manager user guide.

        • VpcConfiguration — (map)

          Provides the configuration information to connect to an Amazon VPC.

          • SubnetIdsrequired — (Array<String>)

            A list of identifiers for subnets within your Amazon VPC. The subnets should be able to connect to each other in the VPC, and they should have outgoing access to the Internet through a NAT device.

          • SecurityGroupIdsrequired — (Array<String>)

            A list of identifiers of security groups within your Amazon VPC. The security groups should enable Amazon Kendra to connect to the data source.

        • ColumnConfigurationrequired — (map)

          Information about where the index should get the document information from the database.

          • DocumentIdColumnNamerequired — (String)

            The column that provides the document's identifier.

          • DocumentDataColumnNamerequired — (String)

            The column that contains the contents of the document.

          • DocumentTitleColumnName — (String)

            The column that contains the title of the document.

          • FieldMappings — (Array<map>)

            An array of objects that map database column names to the corresponding fields in an index. You must first create the fields in the index using the UpdateIndex API.

            • DataSourceFieldNamerequired — (String)

              The name of the field in the data source. You must first create the index field using the UpdateIndex API.

            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldNamerequired — (String)

              The name of the index field to map to the data source field. The index field type must match the data source field type.

          • ChangeDetectingColumnsrequired — (Array<String>)

            One to five columns that indicate when a document in the database has changed.

        • AclConfiguration — (map)

          Information about the database column that provides information for user context filtering.

          • AllowedGroupsColumnNamerequired — (String)

            A list of groups, separated by semi-colons, that filters a query response based on user context. The document is only returned to users that are in one of the groups specified in the UserContext field of the Query API.

        • SqlConfiguration — (map)

          Provides information about how Amazon Kendra uses quote marks around SQL identifiers when querying a database data source.

          • QueryIdentifiersEnclosingOption — (String)

            Determines whether Amazon Kendra encloses SQL identifiers for tables and column names in double quotes (") when making a database query.

            By default, Amazon Kendra passes SQL identifiers the way that they are entered into the data source configuration. It does not change the case of identifiers or enclose them in quotes.

            PostgreSQL internally converts uppercase characters to lower case characters in identifiers unless they are quoted. Choosing this option encloses identifiers in quotes so that PostgreSQL does not convert the character's case.

            For MySQL databases, you must enable the ansi_quotes option when you set this field to DOUBLE_QUOTES.

            Possible values include:
            • "DOUBLE_QUOTES"
            • "NONE"
      • SalesforceConfiguration — (map)

        Provides the configuration information to connect to Salesforce as your data source.

        • ServerUrlrequired — (String)

          The instance URL for the Salesforce site that you want to index.

        • SecretArnrequired — (String)

          The Amazon Resource Name (ARN) of an Secrets Managersecret that contains the key/value pairs required to connect to your Salesforce instance. The secret must contain a JSON structure with the following keys:

          • authenticationUrl - The OAUTH endpoint that Amazon Kendra connects to get an OAUTH token.

          • consumerKey - The application public key generated when you created your Salesforce application.

          • consumerSecret - The application private key generated when you created your Salesforce application.

          • password - The password associated with the user logging in to the Salesforce instance.

          • securityToken - The token associated with the user logging in to the Salesforce instance.

          • username - The user name of the user logging in to the Salesforce instance.

        • StandardObjectConfigurations — (Array<map>)

          Configuration of the Salesforce standard objects that Amazon Kendra indexes.

          • Namerequired — (String)

            The name of the standard object.

            Possible values include:
            • "ACCOUNT"
            • "CAMPAIGN"
            • "CASE"
            • "CONTACT"
            • "CONTRACT"
            • "DOCUMENT"
            • "GROUP"
            • "IDEA"
            • "LEAD"
            • "OPPORTUNITY"
            • "PARTNER"
            • "PRICEBOOK"
            • "PRODUCT"
            • "PROFILE"
            • "SOLUTION"
            • "TASK"
            • "USER"
          • DocumentDataFieldNamerequired — (String)

            The name of the field in the standard object table that contains the document contents.

          • DocumentTitleFieldName — (String)

            The name of the field in the standard object table that contains the document title.

          • FieldMappings — (Array<map>)

            Maps attributes or field names of the standard object to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Salesforce fields. For more information, see Mapping data source fields. The Salesforce data source field names must exist in your Salesforce custom metadata.

            • DataSourceFieldNamerequired — (String)

              The name of the field in the data source. You must first create the index field using the UpdateIndex API.

            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldNamerequired — (String)

              The name of the index field to map to the data source field. The index field type must match the data source field type.

        • KnowledgeArticleConfiguration — (map)

          Configuration information for the knowledge article types that Amazon Kendra indexes. Amazon Kendra indexes standard knowledge articles and the standard fields of knowledge articles, or the custom fields of custom knowledge articles, but not both.

          • IncludedStatesrequired — (Array<String>)

            Specifies the document states that should be included when Amazon Kendra indexes knowledge articles. You must specify at least one state.

          • StandardKnowledgeArticleTypeConfiguration — (map)

            Configuration information for standard Salesforce knowledge articles.

            • DocumentDataFieldNamerequired — (String)

              The name of the field that contains the document data to index.

            • DocumentTitleFieldName — (String)

              The name of the field that contains the document title.

            • FieldMappings — (Array<map>)

              Maps attributes or field names of the knowledge article to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Salesforce fields. For more information, see Mapping data source fields. The Salesforce data source field names must exist in your Salesforce custom metadata.

              • DataSourceFieldNamerequired — (String)

                The name of the field in the data source. You must first create the index field using the UpdateIndex API.

              • DateFieldFormat — (String)

                The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

              • IndexFieldNamerequired — (String)

                The name of the index field to map to the data source field. The index field type must match the data source field type.

          • CustomKnowledgeArticleTypeConfigurations — (Array<map>)

            Configuration information for custom Salesforce knowledge articles.

            • Namerequired — (String)

              The name of the configuration.

            • DocumentDataFieldNamerequired — (String)

              The name of the field in the custom knowledge article that contains the document data to index.

            • DocumentTitleFieldName — (String)

              The name of the field in the custom knowledge article that contains the document title.

            • FieldMappings — (Array<map>)

              Maps attributes or field names of the custom knowledge article to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Salesforce fields. For more information, see Mapping data source fields. The Salesforce data source field names must exist in your Salesforce custom metadata.

              • DataSourceFieldNamerequired — (String)

                The name of the field in the data source. You must first create the index field using the UpdateIndex API.

              • DateFieldFormat — (String)

                The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

              • IndexFieldNamerequired — (String)

                The name of the index field to map to the data source field. The index field type must match the data source field type.

        • ChatterFeedConfiguration — (map)

          Configuration information for Salesforce chatter feeds.

          • DocumentDataFieldNamerequired — (String)

            The name of the column in the Salesforce FeedItem table that contains the content to index. Typically this is the Body column.

          • DocumentTitleFieldName — (String)

            The name of the column in the Salesforce FeedItem table that contains the title of the document. This is typically the Title column.

          • FieldMappings — (Array<map>)

            Maps fields from a Salesforce chatter feed into Amazon Kendra index fields.

            • DataSourceFieldNamerequired — (String)

              The name of the field in the data source. You must first create the index field using the UpdateIndex API.

            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldNamerequired — (String)

              The name of the index field to map to the data source field. The index field type must match the data source field type.

          • IncludeFilterTypes — (Array<String>)

            Filters the documents in the feed based on status of the user. When you specify ACTIVE_USERS only documents from users who have an active account are indexed. When you specify STANDARD_USER only documents for Salesforce standard users are documented. You can specify both.

        • CrawlAttachments — (Boolean)

          Indicates whether Amazon Kendra should index attachments to Salesforce objects.

        • StandardObjectAttachmentConfiguration — (map)

          Configuration information for processing attachments to Salesforce standard objects.

          • DocumentTitleFieldName — (String)

            The name of the field used for the document title.

          • FieldMappings — (Array<map>)

            One or more objects that map fields in attachments to Amazon Kendra index fields.

            • DataSourceFieldNamerequired — (String)

              The name of the field in the data source. You must first create the index field using the UpdateIndex API.

            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldNamerequired — (String)

              The name of the index field to map to the data source field. The index field type must match the data source field type.

        • IncludeAttachmentFilePatterns — (Array<String>)

          A list of regular expression patterns to include certain documents in your Salesforce. Documents that match the patterns are included in the index. Documents that don't match the patterns are excluded from the index. If a document matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the document isn't included in the index.

          The pattern is applied to the name of the attached file.

        • ExcludeAttachmentFilePatterns — (Array<String>)

          A list of regular expression patterns to exclude certain documents in your Salesforce. Documents that match the patterns are excluded from the index. Documents that don't match the patterns are included in the index. If a document matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the document isn't included in the index.

          The pattern is applied to the name of the attached file.

      • OneDriveConfiguration — (map)

        Provides the configuration information to connect to Microsoft OneDrive as your data source.

        • TenantDomainrequired — (String)

          The Azure Active Directory domain of the organization.

        • SecretArnrequired — (String)

          The Amazon Resource Name (ARN) of an Secrets Managersecret that contains the user name and password to connect to OneDrive. The user name should be the application ID for the OneDrive application, and the password is the application key for the OneDrive application.

        • OneDriveUsersrequired — (map)

          A list of user accounts whose documents should be indexed.

          • OneDriveUserList — (Array<String>)

            A list of users whose documents should be indexed. Specify the user names in email format, for example, username@tenantdomain. If you need to index the documents of more than 100 users, use the OneDriveUserS3Path field to specify the location of a file containing a list of users.

          • OneDriveUserS3Path — (map)

            The S3 bucket location of a file containing a list of users whose documents should be indexed.

            • Bucketrequired — (String)

              The name of the S3 bucket that contains the file.

            • Keyrequired — (String)

              The name of the file.

        • InclusionPatterns — (Array<String>)

          A list of regular expression patterns to include certain documents in your OneDrive. Documents that match the patterns are included in the index. Documents that don't match the patterns are excluded from the index. If a document matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the document isn't included in the index.

          The pattern is applied to the file name.

        • ExclusionPatterns — (Array<String>)

          A list of regular expression patterns to exclude certain documents in your OneDrive. Documents that match the patterns are excluded from the index. Documents that don't match the patterns are included in the index. If a document matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the document isn't included in the index.

          The pattern is applied to the file name.

        • FieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map OneDrive data source attributes or field names to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to OneDrive fields. For more information, see Mapping data source fields. The OneDrive data source field names must exist in your OneDrive custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • DisableLocalGroups — (Boolean)

          TRUE to disable local groups information.

      • ServiceNowConfiguration — (map)

        Provides the configuration information to connect to ServiceNow as your data source.

        • HostUrlrequired — (String)

          The ServiceNow instance that the data source connects to. The host endpoint should look like the following: {instance}.service-now.com.

        • SecretArnrequired — (String)

          The Amazon Resource Name (ARN) of the Secrets Manager secret that contains the user name and password required to connect to the ServiceNow instance. You can also provide OAuth authentication credentials of user name, password, client ID, and client secret. For more information, see Using a ServiceNow data source.

        • ServiceNowBuildVersionrequired — (String)

          The identifier of the release that the ServiceNow host is running. If the host is not running the LONDON release, use OTHERS.

          Possible values include:
          • "LONDON"
          • "OTHERS"
        • KnowledgeArticleConfiguration — (map)

          Configuration information for crawling knowledge articles in the ServiceNow site.

          • CrawlAttachments — (Boolean)

            TRUE to index attachments to knowledge articles.

          • IncludeAttachmentFilePatterns — (Array<String>)

            A list of regular expression patterns applied to include knowledge article attachments. Attachments that match the patterns are included in the index. Items that don't match the patterns are excluded from the index. If an item matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the item isn't included in the index.

          • ExcludeAttachmentFilePatterns — (Array<String>)

            A list of regular expression patterns applied to exclude certain knowledge article attachments. Attachments that match the patterns are excluded from the index. Items that don't match the patterns are included in the index. If an item matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the item isn't included in the index.

          • DocumentDataFieldNamerequired — (String)

            The name of the ServiceNow field that is mapped to the index document contents field in the Amazon Kendra index.

          • DocumentTitleFieldName — (String)

            The name of the ServiceNow field that is mapped to the index document title field.

          • FieldMappings — (Array<map>)

            Maps attributes or field names of knoweldge articles to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to ServiceNow fields. For more information, see Mapping data source fields. The ServiceNow data source field names must exist in your ServiceNow custom metadata.

            • DataSourceFieldNamerequired — (String)

              The name of the field in the data source. You must first create the index field using the UpdateIndex API.

            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldNamerequired — (String)

              The name of the index field to map to the data source field. The index field type must match the data source field type.

          • FilterQuery — (String)

            A query that selects the knowledge articles to index. The query can return articles from multiple knowledge bases, and the knowledge bases can be public or private.

            The query string must be one generated by the ServiceNow console. For more information, see Specifying documents to index with a query.

        • ServiceCatalogConfiguration — (map)

          Configuration information for crawling service catalogs in the ServiceNow site.

          • CrawlAttachments — (Boolean)

            TRUE to index attachments to service catalog items.

          • IncludeAttachmentFilePatterns — (Array<String>)

            A list of regular expression patterns to include certain attachments of catalogs in your ServiceNow. Item that match the patterns are included in the index. Items that don't match the patterns are excluded from the index. If an item matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the item isn't included in the index.

            The regex is applied to the file name of the attachment.

          • ExcludeAttachmentFilePatterns — (Array<String>)

            A list of regular expression patterns to exclude certain attachments of catalogs in your ServiceNow. Item that match the patterns are excluded from the index. Items that don't match the patterns are included in the index. If an item matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the item isn't included in the index.

            The regex is applied to the file name of the attachment.

          • DocumentDataFieldNamerequired — (String)

            The name of the ServiceNow field that is mapped to the index document contents field in the Amazon Kendra index.

          • DocumentTitleFieldName — (String)

            The name of the ServiceNow field that is mapped to the index document title field.

          • FieldMappings — (Array<map>)

            Maps attributes or field names of catalogs to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to ServiceNow fields. For more information, see Mapping data source fields. The ServiceNow data source field names must exist in your ServiceNow custom metadata.

            • DataSourceFieldNamerequired — (String)

              The name of the field in the data source. You must first create the index field using the UpdateIndex API.

            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldNamerequired — (String)

              The name of the index field to map to the data source field. The index field type must match the data source field type.

        • AuthenticationType — (String)

          The type of authentication used to connect to the ServiceNow instance. If you choose HTTP_BASIC, Amazon Kendra is authenticated using the user name and password provided in the Secrets Manager secret in the SecretArn field. If you choose OAUTH2, Amazon Kendra is authenticated using the credentials of client ID, client secret, user name and password.

          When you use OAUTH2 authentication, you must generate a token and a client secret using the ServiceNow console. For more information, see Using a ServiceNow data source.

          Possible values include:
          • "HTTP_BASIC"
          • "OAUTH2"
      • ConfluenceConfiguration — (map)

        Provides the configuration information to connect to Confluence as your data source.

        • ServerUrlrequired — (String)

          The URL of your Confluence instance. Use the full URL of the server. For example, https://server.example.com:port/. You can also use an IP address, for example, https://192.168.1.113/.

        • SecretArnrequired — (String)

          The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the user name and password required to connect to the Confluence instance. If you use Confluence Cloud, you use a generated API token as the password.

          You can also provide authentication credentials in the form of a personal access token. For more information, see Using a Confluence data source.

        • Versionrequired — (String)

          The version or the type of Confluence installation to connect to.

          Possible values include:
          • "CLOUD"
          • "SERVER"
        • SpaceConfiguration — (map)

          Configuration information for indexing Confluence spaces.

          • CrawlPersonalSpaces — (Boolean)

            TRUE to index personal spaces. You can add restrictions to items in personal spaces. If personal spaces are indexed, queries without user context information may return restricted items from a personal space in their results. For more information, see Filtering on user context.

          • CrawlArchivedSpaces — (Boolean)

            TRUE to index archived spaces.

          • IncludeSpaces — (Array<String>)

            A list of space keys for Confluence spaces. If you include a key, the blogs, documents, and attachments in the space are indexed. Spaces that aren't in the list aren't indexed. A space in the list must exist. Otherwise, Amazon Kendra logs an error when the data source is synchronized. If a space is in both the IncludeSpaces and the ExcludeSpaces list, the space is excluded.

          • ExcludeSpaces — (Array<String>)

            A list of space keys of Confluence spaces. If you include a key, the blogs, documents, and attachments in the space are not indexed. If a space is in both the ExcludeSpaces and the IncludeSpaces list, the space is excluded.

          • SpaceFieldMappings — (Array<map>)

            Maps attributes or field names of Confluence spaces to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Confluence fields. For more information, see Mapping data source fields. The Confluence data source field names must exist in your Confluence custom metadata.

            If you specify the SpaceFieldMappings parameter, you must specify at least one field mapping.

            • DataSourceFieldName — (String)

              The name of the field in the data source.

              Possible values include:
              • "DISPLAY_URL"
              • "ITEM_TYPE"
              • "SPACE_KEY"
              • "URL"
            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldName — (String)

              The name of the index field to map to the Confluence data source field. The index field type must match the Confluence field type.

        • PageConfiguration — (map)

          Configuration information for indexing Confluence pages.

          • PageFieldMappings — (Array<map>)

            Maps attributes or field names of Confluence pages to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Confluence fields. For more information, see Mapping data source fields. The Confluence data source field names must exist in your Confluence custom metadata.

            If you specify the PageFieldMappings parameter, you must specify at least one field mapping.

            • DataSourceFieldName — (String)

              The name of the field in the data source.

              Possible values include:
              • "AUTHOR"
              • "CONTENT_STATUS"
              • "CREATED_DATE"
              • "DISPLAY_URL"
              • "ITEM_TYPE"
              • "LABELS"
              • "MODIFIED_DATE"
              • "PARENT_ID"
              • "SPACE_KEY"
              • "SPACE_NAME"
              • "URL"
              • "VERSION"
            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldName — (String)

              The name of the index field to map to the Confluence data source field. The index field type must match the Confluence field type.

        • BlogConfiguration — (map)

          Configuration information for indexing Confluence blogs.

          • BlogFieldMappings — (Array<map>)

            Maps attributes or field names of Confluence blogs to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Confluence fields. For more information, see Mapping data source fields. The Confluence data source field names must exist in your Confluence custom metadata.

            If you specify the BlogFieldMappings parameter, you must specify at least one field mapping.

            • DataSourceFieldName — (String)

              The name of the field in the data source.

              Possible values include:
              • "AUTHOR"
              • "DISPLAY_URL"
              • "ITEM_TYPE"
              • "LABELS"
              • "PUBLISH_DATE"
              • "SPACE_KEY"
              • "SPACE_NAME"
              • "URL"
              • "VERSION"
            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldName — (String)

              The name of the index field to map to the Confluence data source field. The index field type must match the Confluence field type.

        • AttachmentConfiguration — (map)

          Configuration information for indexing attachments to Confluence blogs and pages.

          • CrawlAttachments — (Boolean)

            TRUE to index attachments of pages and blogs in Confluence.

          • AttachmentFieldMappings — (Array<map>)

            Maps attributes or field names of Confluence attachments to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Confluence fields. For more information, see Mapping data source fields. The Confluence data source field names must exist in your Confluence custom metadata.

            If you specify the AttachentFieldMappings parameter, you must specify at least one field mapping.

            • DataSourceFieldName — (String)

              The name of the field in the data source.

              You must first create the index field using the UpdateIndex API.

              Possible values include:
              • "AUTHOR"
              • "CONTENT_TYPE"
              • "CREATED_DATE"
              • "DISPLAY_URL"
              • "FILE_SIZE"
              • "ITEM_TYPE"
              • "PARENT_ID"
              • "SPACE_KEY"
              • "SPACE_NAME"
              • "URL"
              • "VERSION"
            • DateFieldFormat — (String)

              The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field you must specify the date format. If the field is not a date field, an exception is thrown.

            • IndexFieldName — (String)

              The name of the index field to map to the Confluence data source field. The index field type must match the Confluence field type.

        • VpcConfiguration — (map)

          Configuration information for an Amazon Virtual Private Cloud to connect to your Confluence. For more information, see Configuring a VPC.

          • SubnetIdsrequired — (Array<String>)

            A list of identifiers for subnets within your Amazon VPC. The subnets should be able to connect to each other in the VPC, and they should have outgoing access to the Internet through a NAT device.

          • SecurityGroupIdsrequired — (Array<String>)

            A list of identifiers of security groups within your Amazon VPC. The security groups should enable Amazon Kendra to connect to the data source.

        • InclusionPatterns — (Array<String>)

          A list of regular expression patterns to include certain blog posts, pages, spaces, or attachments in your Confluence. Content that matches the patterns are included in the index. Content that doesn't match the patterns is excluded from the index. If content matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the content isn't included in the index.

        • ExclusionPatterns — (Array<String>)

          A list of regular expression patterns to exclude certain blog posts, pages, spaces, or attachments in your Confluence. Content that matches the patterns are excluded from the index. Content that doesn't match the patterns is included in the index. If content matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the content isn't included in the index.

        • ProxyConfiguration — (map)

          Configuration information to connect to your Confluence URL instance via a web proxy. You can use this option for Confluence Server.

          You must provide the website host name and port number. For example, the host name of https://a.example.com/page1.html is "a.example.com" and the port is 443, the standard port for HTTPS.

          Web proxy credentials are optional and you can use them to connect to a web proxy server that requires basic authentication of user name and password. To store web proxy credentials, you use a secret in Secrets Manager.

          It is recommended that you follow best security practices when configuring your web proxy. This includes setting up throttling, setting up logging and monitoring, and applying security patches on a regular basis. If you use your web proxy with multiple data sources, sync jobs that occur at the same time could strain the load on your proxy. It is recommended you prepare your proxy beforehand for any security and load requirements.

          • Hostrequired — (String)

            The name of the website host you want to connect to via a web proxy server.

            For example, the host name of https://a.example.com/page1.html is "a.example.com".

          • Portrequired — (Integer)

            The port number of the website host you want to connect to via a web proxy server.

            For example, the port for https://a.example.com/page1.html is 443, the standard port for HTTPS.

          • Credentials — (String)

            Your secret ARN, which you can create in Secrets Manager

            The credentials are optional. You use a secret if web proxy credentials are required to connect to a website host. Amazon Kendra currently support basic authentication to connect to a web proxy server. The secret stores your credentials.

        • AuthenticationType — (String)

          Whether you want to connect to Confluence using basic authentication of user name and password, or a personal access token. You can use a personal access token for Confluence Server.

          Possible values include:
          • "HTTP_BASIC"
          • "PAT"
      • GoogleDriveConfiguration — (map)

        Provides the configuration information to connect to Google Drive as your data source.

        • SecretArnrequired — (String)

          The Amazon Resource Name (ARN) of a Secrets Managersecret that contains the credentials required to connect to Google Drive. For more information, see Using a Google Workspace Drive data source.

        • InclusionPatterns — (Array<String>)

          A list of regular expression patterns to include certain items in your Google Drive, including shared drives and users' My Drives. Items that match the patterns are included in the index. Items that don't match the patterns are excluded from the index. If an item matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the item isn't included in the index.

        • ExclusionPatterns — (Array<String>)

          A list of regular expression patterns to exclude certain items in your Google Drive, including shared drives and users' My Drives. Items that match the patterns are excluded from the index. Items that don't match the patterns are included in the index. If an item matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the item isn't included in the index.

        • FieldMappings — (Array<map>)

          Maps Google Drive data source attributes or field names to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Google Drive fields. For more information, see Mapping data source fields. The Google Drive data source field names must exist in your Google Drive custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • ExcludeMimeTypes — (Array<String>)

          A list of MIME types to exclude from the index. All documents matching the specified MIME type are excluded.

          For a list of MIME types, see Using a Google Workspace Drive data source.

        • ExcludeUserAccounts — (Array<String>)

          A list of email addresses of the users. Documents owned by these users are excluded from the index. Documents shared with excluded users are indexed unless they are excluded in another way.

        • ExcludeSharedDrives — (Array<String>)

          A list of identifiers or shared drives to exclude from the index. All files and folders stored on the shared drive are excluded.

      • WebCrawlerConfiguration — (map)

        Provides the configuration information required for Amazon Kendra Web Crawler.

        • Urlsrequired — (map)

          Specifies the seed or starting point URLs of the websites or the sitemap URLs of the websites you want to crawl.

          You can include website subdomains. You can list up to 100 seed URLs and up to three sitemap URLs.

          You can only crawl websites that use the secure communication protocol, Hypertext Transfer Protocol Secure (HTTPS). If you receive an error when crawling a website, it could be that the website is blocked from crawling.

          When selecting websites to index, you must adhere to the Amazon Acceptable Use Policy and all other Amazon terms. Remember that you must only use Amazon Kendra Web Crawler to index your own web pages, or web pages that you have authorization to index.

          • SeedUrlConfiguration — (map)

            Configuration of the seed or starting point URLs of the websites you want to crawl.

            You can choose to crawl only the website host names, or the website host names with subdomains, or the website host names with subdomains and other domains that the web pages link to.

            You can list up to 100 seed URLs.

            • SeedUrlsrequired — (Array<String>)

              The list of seed or starting point URLs of the websites you want to crawl.

              The list can include a maximum of 100 seed URLs.

            • WebCrawlerMode — (String)

              You can choose one of the following modes:

              • HOST_ONLY—crawl only the website host names. For example, if the seed URL is "abc.example.com", then only URLs with host name "abc.example.com" are crawled.

              • SUBDOMAINS—crawl the website host names with subdomains. For example, if the seed URL is "abc.example.com", then "a.abc.example.com" and "b.abc.example.com" are also crawled.

              • EVERYTHING—crawl the website host names with subdomains and other domains that the web pages link to.

              The default mode is set to HOST_ONLY.

              Possible values include:
              • "HOST_ONLY"
              • "SUBDOMAINS"
              • "EVERYTHING"
          • SiteMapsConfiguration — (map)

            Configuration of the sitemap URLs of the websites you want to crawl.

            Only URLs belonging to the same website host names are crawled. You can list up to three sitemap URLs.

            • SiteMapsrequired — (Array<String>)

              The list of sitemap URLs of the websites you want to crawl.

              The list can include a maximum of three sitemap URLs.

        • CrawlDepth — (Integer)

          The 'depth' or number of levels from the seed level to crawl. For example, the seed URL page is depth 1 and any hyperlinks on this page that are also crawled are depth 2.

        • MaxLinksPerPage — (Integer)

          The maximum number of URLs on a web page to include when crawling a website. This number is per web page.

          As a website’s web pages are crawled, any URLs the web pages link to are also crawled. URLs on a web page are crawled in order of appearance.

          The default maximum links per page is 100.

        • MaxContentSizePerPageInMegaBytes — (Float)

          The maximum size (in MB) of a web page or attachment to crawl.

          Files larger than this size (in MB) are skipped/not crawled.

          The default maximum size of a web page or attachment is set to 50 MB.

        • MaxUrlsPerMinuteCrawlRate — (Integer)

          The maximum number of URLs crawled per website host per minute.

          A minimum of one URL is required.

          The default maximum number of URLs crawled per website host per minute is 300.

        • UrlInclusionPatterns — (Array<String>)

          A list of regular expression patterns to include certain URLs to crawl. URLs that match the patterns are included in the index. URLs that don't match the patterns are excluded from the index. If a URL matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the URL file isn't included in the index.

        • UrlExclusionPatterns — (Array<String>)

          A list of regular expression patterns to exclude certain URLs to crawl. URLs that match the patterns are excluded from the index. URLs that don't match the patterns are included in the index. If a URL matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the URL file isn't included in the index.

        • ProxyConfiguration — (map)

          Configuration information required to connect to your internal websites via a web proxy.

          You must provide the website host name and port number. For example, the host name of https://a.example.com/page1.html is "a.example.com" and the port is 443, the standard port for HTTPS.

          Web proxy credentials are optional and you can use them to connect to a web proxy server that requires basic authentication. To store web proxy credentials, you use a secret in Secrets Manager.

          • Hostrequired — (String)

            The name of the website host you want to connect to via a web proxy server.

            For example, the host name of https://a.example.com/page1.html is "a.example.com".

          • Portrequired — (Integer)

            The port number of the website host you want to connect to via a web proxy server.

            For example, the port for https://a.example.com/page1.html is 443, the standard port for HTTPS.

          • Credentials — (String)

            Your secret ARN, which you can create in Secrets Manager

            The credentials are optional. You use a secret if web proxy credentials are required to connect to a website host. Amazon Kendra currently support basic authentication to connect to a web proxy server. The secret stores your credentials.

        • AuthenticationConfiguration — (map)

          Configuration information required to connect to websites using authentication.

          You can connect to websites using basic authentication of user name and password. You use a secret in Secrets Manager to store your authentication credentials.

          You must provide the website host name and port number. For example, the host name of https://a.example.com/page1.html is "a.example.com" and the port is 443, the standard port for HTTPS.

          • BasicAuthentication — (Array<map>)

            The list of configuration information that's required to connect to and crawl a website host using basic authentication credentials.

            The list includes the name and port number of the website host.

            • Hostrequired — (String)

              The name of the website host you want to connect to using authentication credentials.

              For example, the host name of https://a.example.com/page1.html is "a.example.com".

            • Portrequired — (Integer)

              The port number of the website host you want to connect to using authentication credentials.

              For example, the port for https://a.example.com/page1.html is 443, the standard port for HTTPS.

            • Credentialsrequired — (String)

              Your secret ARN, which you can create in Secrets Manager

              You use a secret if basic authentication credentials are required to connect to a website. The secret stores your credentials of user name and password.

      • WorkDocsConfiguration — (map)

        Provides the configuration information to connect to Amazon WorkDocs as your data source.

        • OrganizationIdrequired — (String)

          The identifier of the directory corresponding to your Amazon WorkDocs site repository.

          You can find the organization ID in the Directory Service by going to Active Directory, then Directories. Your Amazon WorkDocs site directory has an ID, which is the organization ID. You can also set up a new Amazon WorkDocs directory in the Directory Service console and enable a Amazon WorkDocs site for the directory in the Amazon WorkDocs console.

        • CrawlComments — (Boolean)

          TRUE to include comments on documents in your index. Including comments in your index means each comment is a document that can be searched on.

          The default is set to FALSE.

        • UseChangeLog — (Boolean)

          TRUE to use the Amazon WorkDocs change log to determine which documents require updating in the index. Depending on the change log's size, it may take longer for Amazon Kendra to use the change log than to scan all of your documents in Amazon WorkDocs.

        • InclusionPatterns — (Array<String>)

          A list of regular expression patterns to include certain files in your Amazon WorkDocs site repository. Files that match the patterns are included in the index. Files that don't match the patterns are excluded from the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.

        • ExclusionPatterns — (Array<String>)

          A list of regular expression patterns to exclude certain files in your Amazon WorkDocs site repository. Files that match the patterns are excluded from the index. Files that don’t match the patterns are included in the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.

        • FieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map Amazon WorkDocs data source attributes or field names to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Amazon WorkDocs fields. For more information, see Mapping data source fields. The Amazon WorkDocs data source field names must exist in your Amazon WorkDocs custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

      • FsxConfiguration — (map)

        Provides the configuration information to connect to Amazon FSx as your data source.

        Note: Amazon Kendra now supports an upgraded Amazon FSx Windows connector. You must now use the TemplateConfiguration object instead of the FsxConfiguration object to configure your connector. Connectors configured using the older console and API architecture will continue to function as configured. However, you won't be able to edit or update them. If you want to edit or update your connector configuration, you must create a new connector. We recommended migrating your connector workflow to the upgraded version. Support for connectors configured using the older architecture is scheduled to end by June 2024.
        • FileSystemIdrequired — (String)

          The identifier of the Amazon FSx file system.

          You can find your file system ID on the file system dashboard in the Amazon FSx console. For information on how to create a file system in Amazon FSx console, using Windows File Server as an example, see Amazon FSx Getting started guide.

        • FileSystemTyperequired — (String)

          The Amazon FSx file system type. Windows is currently the only supported type.

          Possible values include:
          • "WINDOWS"
        • VpcConfigurationrequired — (map)

          Configuration information for an Amazon Virtual Private Cloud to connect to your Amazon FSx. Your Amazon FSx instance must reside inside your VPC.

          • SubnetIdsrequired — (Array<String>)

            A list of identifiers for subnets within your Amazon VPC. The subnets should be able to connect to each other in the VPC, and they should have outgoing access to the Internet through a NAT device.

          • SecurityGroupIdsrequired — (Array<String>)

            A list of identifiers of security groups within your Amazon VPC. The security groups should enable Amazon Kendra to connect to the data source.

        • SecretArn — (String)

          The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the key-value pairs required to connect to your Amazon FSx file system. Windows is currently the only supported type. The secret must contain a JSON structure with the following keys:

          • username—The Active Directory user name, along with the Domain Name System (DNS) domain name. For example, user@corp.example.com. The Active Directory user account must have read and mounting access to the Amazon FSx file system for Windows.

          • password—The password of the Active Directory user account with read and mounting access to the Amazon FSx Windows file system.

        • InclusionPatterns — (Array<String>)

          A list of regular expression patterns to include certain files in your Amazon FSx file system. Files that match the patterns are included in the index. Files that don't match the patterns are excluded from the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.

        • ExclusionPatterns — (Array<String>)

          A list of regular expression patterns to exclude certain files in your Amazon FSx file system. Files that match the patterns are excluded from the index. Files that don't match the patterns are included in the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.

        • FieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map Amazon FSx data source attributes or field names to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Amazon FSx fields. For more information, see Mapping data source fields. The Amazon FSx data source field names must exist in your Amazon FSx custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

      • SlackConfiguration — (map)

        Provides the configuration information to connect to Slack as your data source.

        Note: Amazon Kendra now supports an upgraded Slack connector. You must now use the TemplateConfiguration object instead of the SlackConfiguration object to configure your connector. Connectors configured using the older console and API architecture will continue to function as configured. However, you won't be able to edit or update them. If you want to edit or update your connector configuration, you must create a new connector. We recommended migrating your connector workflow to the upgraded version. Support for connectors configured using the older architecture is scheduled to end by June 2024.
        • TeamIdrequired — (String)

          The identifier of the team in the Slack workspace. For example, T0123456789.

          You can find your team ID in the URL of the main page of your Slack workspace. When you log in to Slack via a browser, you are directed to the URL of the main page. For example, https://app.slack.com/client/T0123456789/....

        • SecretArnrequired — (String)

          The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the key-value pairs required to connect to your Slack workspace team. The secret must contain a JSON structure with the following keys:

        • VpcConfiguration — (map)

          Configuration information for an Amazon Virtual Private Cloud to connect to your Slack. For more information, see Configuring a VPC.

          • SubnetIdsrequired — (Array<String>)

            A list of identifiers for subnets within your Amazon VPC. The subnets should be able to connect to each other in the VPC, and they should have outgoing access to the Internet through a NAT device.

          • SecurityGroupIdsrequired — (Array<String>)

            A list of identifiers of security groups within your Amazon VPC. The security groups should enable Amazon Kendra to connect to the data source.

        • SlackEntityListrequired — (Array<String>)

          Specify whether to index public channels, private channels, group messages, and direct messages. You can specify one or more of these options.

        • UseChangeLog — (Boolean)

          TRUE to use the Slack change log to determine which documents require updating in the index. Depending on the Slack change log's size, it may take longer for Amazon Kendra to use the change log than to scan all of your documents in Slack.

        • CrawlBotMessage — (Boolean)

          TRUE to index bot messages from your Slack workspace team.

        • ExcludeArchived — (Boolean)

          TRUE to exclude archived messages to index from your Slack workspace team.

        • SinceCrawlDaterequired — (String)

          The date to start crawling your data from your Slack workspace team. The date must follow this format: yyyy-mm-dd.

        • LookBackPeriod — (Integer)

          The number of hours for change log to look back from when you last synchronized your data. You can look back up to 7 days or 168 hours.

          Change log updates your index only if new content was added since you last synced your data. Updated or deleted content from before you last synced does not get updated in your index. To capture updated or deleted content before you last synced, set the LookBackPeriod to the number of hours you want change log to look back.

        • PrivateChannelFilter — (Array<String>)

          The list of private channel names from your Slack workspace team. You use this if you want to index specific private channels, not all private channels. You can also use regular expression patterns to filter private channels.

        • PublicChannelFilter — (Array<String>)

          The list of public channel names to index from your Slack workspace team. You use this if you want to index specific public channels, not all public channels. You can also use regular expression patterns to filter public channels.

        • InclusionPatterns — (Array<String>)

          A list of regular expression patterns to include certain attached files in your Slack workspace team. Files that match the patterns are included in the index. Files that don't match the patterns are excluded from the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.

        • ExclusionPatterns — (Array<String>)

          A list of regular expression patterns to exclude certain attached files in your Slack workspace team. Files that match the patterns are excluded from the index. Files that don’t match the patterns are included in the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.

        • FieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map Slack data source attributes or field names to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Slack fields. For more information, see Mapping data source fields. The Slack data source field names must exist in your Slack custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

      • BoxConfiguration — (map)

        Provides the configuration information to connect to Box as your data source.

        • EnterpriseIdrequired — (String)

          The identifier of the Box Enterprise platform. You can find the enterprise ID in the Box Developer Console settings or when you create an app in Box and download your authentication credentials. For example, 801234567.

        • SecretArnrequired — (String)

          The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the key-value pairs required to connect to your Box platform. The secret must contain a JSON structure with the following keys:

          • clientID—The identifier of the client OAuth 2.0 authentication application created in Box.

          • clientSecret—A set of characters known only to the OAuth 2.0 authentication application created in Box.

          • publicKeyId—The identifier of the public key contained within an identity certificate.

          • privateKey—A set of characters that make up an encryption key.

          • passphrase—A set of characters that act like a password.

          You create an application in Box to generate the keys or credentials required for the secret. For more information, see Using a Box data source.

        • UseChangeLog — (Boolean)

          TRUE to use the Slack change log to determine which documents require updating in the index. Depending on the data source change log's size, it may take longer for Amazon Kendra to use the change log than to scan all of your documents.

        • CrawlComments — (Boolean)

          TRUE to index comments.

        • CrawlTasks — (Boolean)

          TRUE to index the contents of tasks.

        • CrawlWebLinks — (Boolean)

          TRUE to index web links.

        • FileFieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Box files to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Box fields. For more information, see Mapping data source fields. The Box field names must exist in your Box custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • TaskFieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Box tasks to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Box fields. For more information, see Mapping data source fields. The Box field names must exist in your Box custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • CommentFieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Box comments to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Box fields. For more information, see Mapping data source fields. The Box field names must exist in your Box custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • WebLinkFieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Box web links to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Box fields. For more information, see Mapping data source fields. The Box field names must exist in your Box custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • InclusionPatterns — (Array<String>)

          A list of regular expression patterns to include certain files and folders in your Box platform. Files and folders that match the patterns are included in the index. Files and folders that don't match the patterns are excluded from the index. If a file or folder matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file or folder isn't included in the index.

        • ExclusionPatterns — (Array<String>)

          A list of regular expression patterns to exclude certain files and folders from your Box platform. Files and folders that match the patterns are excluded from the index.Files and folders that don't match the patterns are included in the index. If a file or folder matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file or folder isn't included in the index.

        • VpcConfiguration — (map)

          Configuration information for an Amazon VPC to connect to your Box. For more information, see Configuring a VPC.

          • SubnetIdsrequired — (Array<String>)

            A list of identifiers for subnets within your Amazon VPC. The subnets should be able to connect to each other in the VPC, and they should have outgoing access to the Internet through a NAT device.

          • SecurityGroupIdsrequired — (Array<String>)

            A list of identifiers of security groups within your Amazon VPC. The security groups should enable Amazon Kendra to connect to the data source.

      • QuipConfiguration — (map)

        Provides the configuration information to connect to Quip as your data source.

        • Domainrequired — (String)

          The Quip site domain. For example, https://quip-company.quipdomain.com/browse. The domain in this example is "quipdomain".

        • SecretArnrequired — (String)

          The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the key-value pairs that are required to connect to your Quip. The secret must contain a JSON structure with the following keys:

        • CrawlFileComments — (Boolean)

          TRUE to index file comments.

        • CrawlChatRooms — (Boolean)

          TRUE to index the contents of chat rooms.

        • CrawlAttachments — (Boolean)

          TRUE to index attachments.

        • FolderIds — (Array<String>)

          The identifiers of the Quip folders you want to index. You can find the folder ID in your browser URL when you access your folder in Quip. For example, https://quip-company.quipdomain.com/zlLuOVNSarTL/folder-name. The folder ID in this example is "zlLuOVNSarTL".

        • ThreadFieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Quip threads to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Quip fields. For more information, see Mapping data source fields. The Quip field names must exist in your Quip custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • MessageFieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Quip messages to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Quip fields. For more information, see Mapping data source fields. The Quip field names must exist in your Quip custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • AttachmentFieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Quip attachments to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Quip fields. For more information, see Mapping data source fields. The Quip field names must exist in your Quip custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • InclusionPatterns — (Array<String>)

          A list of regular expression patterns to include certain files in your Quip file system. Files that match the patterns are included in the index. Files that don't match the patterns are excluded from the index. If a file matches both an inclusion pattern and an exclusion pattern, the exclusion pattern takes precedence, and the file isn't included in the index.

        • ExclusionPatterns — (Array<String>)

          A list of regular expression patterns to exclude certain files in your Quip file system. Files that match the patterns are excluded from the index. Files that don’t match the patterns are included in the index. If a file matches both an inclusion pattern and an exclusion pattern, the exclusion pattern takes precedence, and the file isn't included in the index.

        • VpcConfiguration — (map)

          Configuration information for an Amazon Virtual Private Cloud (VPC) to connect to your Quip. For more information, see Configuring a VPC.

          • SubnetIdsrequired — (Array<String>)

            A list of identifiers for subnets within your Amazon VPC. The subnets should be able to connect to each other in the VPC, and they should have outgoing access to the Internet through a NAT device.

          • SecurityGroupIdsrequired — (Array<String>)

            A list of identifiers of security groups within your Amazon VPC. The security groups should enable Amazon Kendra to connect to the data source.

      • JiraConfiguration — (map)

        Provides the configuration information to connect to Jira as your data source.

        • JiraAccountUrlrequired — (String)

          The URL of the Jira account. For example, company.atlassian.net.

        • SecretArnrequired — (String)

          The Amazon Resource Name (ARN) of a secret in Secrets Manager contains the key-value pairs required to connect to your Jira data source. The secret must contain a JSON structure with the following keys:

          • jiraId—The Jira user name or email.

          • jiraCredentials—The Jira API token. For more information, see Using a Jira data source.

        • UseChangeLog — (Boolean)

          TRUE to use the Jira change log to determine which documents require updating in the index. Depending on the change log's size, it may take longer for Amazon Kendra to use the change log than to scan all of your documents in Jira.

        • Project — (Array<String>)

          Specify which projects to crawl in your Jira data source. You can specify one or more Jira project IDs.

        • IssueType — (Array<String>)

          Specify which issue types to crawl in your Jira data source. You can specify one or more of these options to crawl.

        • Status — (Array<String>)

          Specify which statuses to crawl in your Jira data source. You can specify one or more of these options to crawl.

        • IssueSubEntityFilter — (Array<String>)

          Specify whether to crawl comments, attachments, and work logs. You can specify one or more of these options.

        • AttachmentFieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Jira attachments to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Jira fields. For more information, see Mapping data source fields. The Jira data source field names must exist in your Jira custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • CommentFieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Jira comments to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Jira fields. For more information, see Mapping data source fields. The Jira data source field names must exist in your Jira custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • IssueFieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Jira issues to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Jira fields. For more information, see Mapping data source fields. The Jira data source field names must exist in your Jira custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • ProjectFieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Jira projects to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Jira fields. For more information, see Mapping data source fields. The Jira data source field names must exist in your Jira custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • WorkLogFieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Jira work logs to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Jira fields. For more information, see Mapping data source fields. The Jira data source field names must exist in your Jira custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • InclusionPatterns — (Array<String>)

          A list of regular expression patterns to include certain file paths, file names, and file types in your Jira data source. Files that match the patterns are included in the index. Files that don't match the patterns are excluded from the index. If a file matches both an inclusion pattern and an exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.

        • ExclusionPatterns — (Array<String>)

          A list of regular expression patterns to exclude certain file paths, file names, and file types in your Jira data source. Files that match the patterns are excluded from the index. Files that don’t match the patterns are included in the index. If a file matches both an inclusion pattern and an exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.

        • VpcConfiguration — (map)

          Configuration information for an Amazon Virtual Private Cloud to connect to your Jira. For more information, see Configuring a VPC.

          • SubnetIdsrequired — (Array<String>)

            A list of identifiers for subnets within your Amazon VPC. The subnets should be able to connect to each other in the VPC, and they should have outgoing access to the Internet through a NAT device.

          • SecurityGroupIdsrequired — (Array<String>)

            A list of identifiers of security groups within your Amazon VPC. The security groups should enable Amazon Kendra to connect to the data source.

      • GitHubConfiguration — (map)

        Provides the configuration information to connect to GitHub as your data source.

        Note: Amazon Kendra now supports an upgraded GitHub connector. You must now use the TemplateConfiguration object instead of the GitHubConfiguration object to configure your connector. Connectors configured using the older console and API architecture will continue to function as configured. However, you won’t be able to edit or update them. If you want to edit or update your connector configuration, you must create a new connector. We recommended migrating your connector workflow to the upgraded version. Support for connectors configured using the older architecture is scheduled to end by June 2024.
        • SaaSConfiguration — (map)

          Configuration information to connect to GitHub Enterprise Cloud (SaaS).

          • OrganizationNamerequired — (String)

            The name of the organization of the GitHub Enterprise Cloud (SaaS) account you want to connect to. You can find your organization name by logging into GitHub desktop and selecting Your organizations under your profile picture dropdown.

          • HostUrlrequired — (String)

            The GitHub host URL or API endpoint URL. For example, https://api.github.com.

        • OnPremiseConfiguration — (map)

          Configuration information to connect to GitHub Enterprise Server (on premises).

          • HostUrlrequired — (String)

            The GitHub host URL or API endpoint URL. For example, https://on-prem-host-url/api/v3/

          • OrganizationNamerequired — (String)

            The name of the organization of the GitHub Enterprise Server (on-premises) account you want to connect to. You can find your organization name by logging into GitHub desktop and selecting Your organizations under your profile picture dropdown.

          • SslCertificateS3Pathrequired — (map)

            The path to the SSL certificate stored in an Amazon S3 bucket. You use this to connect to GitHub if you require a secure SSL connection.

            You can simply generate a self-signed X509 certificate on any computer using OpenSSL. For an example of using OpenSSL to create an X509 certificate, see Create and sign an X509 certificate.

            • Bucketrequired — (String)

              The name of the S3 bucket that contains the file.

            • Keyrequired — (String)

              The name of the file.

        • Type — (String)

          The type of GitHub service you want to connect to—GitHub Enterprise Cloud (SaaS) or GitHub Enterprise Server (on premises).

          Possible values include:
          • "SAAS"
          • "ON_PREMISE"
        • SecretArnrequired — (String)

          The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the key-value pairs required to connect to your GitHub. The secret must contain a JSON structure with the following keys:

          • personalToken—The access token created in GitHub. For more information on creating a token in GitHub, see Using a GitHub data source.

        • UseChangeLog — (Boolean)

          TRUE to use the GitHub change log to determine which documents require updating in the index. Depending on the GitHub change log's size, it may take longer for Amazon Kendra to use the change log than to scan all of your documents in GitHub.

        • GitHubDocumentCrawlProperties — (map)

          Configuration information to include certain types of GitHub content. You can configure to index repository files only, or also include issues and pull requests, comments, and comment attachments.

          • CrawlRepositoryDocuments — (Boolean)

            TRUE to index all files with a repository.

          • CrawlIssue — (Boolean)

            TRUE to index all issues within a repository.

          • CrawlIssueComment — (Boolean)

            TRUE to index all comments on issues.

          • CrawlIssueCommentAttachment — (Boolean)

            TRUE to include all comment attachments for issues.

          • CrawlPullRequest — (Boolean)

            TRUE to index all pull requests within a repository.

          • CrawlPullRequestComment — (Boolean)

            TRUE to index all comments on pull requests.

          • CrawlPullRequestCommentAttachment — (Boolean)

            TRUE to include all comment attachments for pull requests.

        • RepositoryFilter — (Array<String>)

          A list of names of the specific repositories you want to index.

        • InclusionFolderNamePatterns — (Array<String>)

          A list of regular expression patterns to include certain folder names in your GitHub repository or repositories. Folder names that match the patterns are included in the index. Folder names that don't match the patterns are excluded from the index. If a folder matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the folder isn't included in the index.

        • InclusionFileTypePatterns — (Array<String>)

          A list of regular expression patterns to include certain file types in your GitHub repository or repositories. File types that match the patterns are included in the index. File types that don't match the patterns are excluded from the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.

        • InclusionFileNamePatterns — (Array<String>)

          A list of regular expression patterns to include certain file names in your GitHub repository or repositories. File names that match the patterns are included in the index. File names that don't match the patterns are excluded from the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.

        • ExclusionFolderNamePatterns — (Array<String>)

          A list of regular expression patterns to exclude certain folder names in your GitHub repository or repositories. Folder names that match the patterns are excluded from the index. Folder names that don't match the patterns are included in the index. If a folder matches both an exclusion and inclusion pattern, the exclusion pattern takes precedence and the folder isn't included in the index.

        • ExclusionFileTypePatterns — (Array<String>)

          A list of regular expression patterns to exclude certain file types in your GitHub repository or repositories. File types that match the patterns are excluded from the index. File types that don't match the patterns are included in the index. If a file matches both an exclusion and inclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.

        • ExclusionFileNamePatterns — (Array<String>)

          A list of regular expression patterns to exclude certain file names in your GitHub repository or repositories. File names that match the patterns are excluded from the index. File names that don't match the patterns are included in the index. If a file matches both an exclusion and inclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.

        • VpcConfiguration — (map)

          Configuration information of an Amazon Virtual Private Cloud to connect to your GitHub. For more information, see Configuring a VPC.

          • SubnetIdsrequired — (Array<String>)

            A list of identifiers for subnets within your Amazon VPC. The subnets should be able to connect to each other in the VPC, and they should have outgoing access to the Internet through a NAT device.

          • SecurityGroupIdsrequired — (Array<String>)

            A list of identifiers of security groups within your Amazon VPC. The security groups should enable Amazon Kendra to connect to the data source.

        • GitHubRepositoryConfigurationFieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map GitHub repository attributes or field names to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to GitHub fields. For more information, see Mapping data source fields. The GitHub data source field names must exist in your GitHub custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • GitHubCommitConfigurationFieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map attributes or field names of GitHub commits to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to GitHub fields. For more information, see Mapping data source fields. The GitHub data source field names must exist in your GitHub custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • GitHubIssueDocumentConfigurationFieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map attributes or field names of GitHub issues to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to GitHub fields. For more information, see Mapping data source fields. The GitHub data source field names must exist in your GitHub custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • GitHubIssueCommentConfigurationFieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map attributes or field names of GitHub issue comments to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to GitHub fields. For more information, see Mapping data source fields. The GitHub data source field names must exist in your GitHub custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • GitHubIssueAttachmentConfigurationFieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map attributes or field names of GitHub issue attachments to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to GitHub fields. For more information, see Mapping data source fields. The GitHub data source field names must exist in your GitHub custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • GitHubPullRequestCommentConfigurationFieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map attributes or field names of GitHub pull request comments to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to GitHub fields. For more information, see Mapping data source fields. The GitHub data source field names must exist in your GitHub custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • GitHubPullRequestDocumentConfigurationFieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map attributes or field names of GitHub pull requests to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to GitHub fields. For more information, see Mapping data source fields. The GitHub data source field names must exist in your GitHub custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • GitHubPullRequestDocumentAttachmentConfigurationFieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map attributes or field names of GitHub pull request attachments to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to GitHub fields. For more information, see Mapping data source fields. The GitHub data source field names must exist in your GitHub custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

      • AlfrescoConfiguration — (map)

        Provides the configuration information to connect to Alfresco as your data source.

        Note: Support for AlfrescoConfiguration ended May 2023. We recommend migrating to or using the Alfresco data source template schema / TemplateConfiguration API.
        • SiteUrlrequired — (String)

          The URL of the Alfresco site. For example, https://hostname:8080.

        • SiteIdrequired — (String)

          The identifier of the Alfresco site. For example, my-site.

        • SecretArnrequired — (String)

          The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the key-value pairs required to connect to your Alfresco data source. The secret must contain a JSON structure with the following keys:

          • username—The user name of the Alfresco account.

          • password—The password of the Alfresco account.

        • SslCertificateS3Pathrequired — (map)

          The path to the SSL certificate stored in an Amazon S3 bucket. You use this to connect to Alfresco if you require a secure SSL connection.

          You can simply generate a self-signed X509 certificate on any computer using OpenSSL. For an example of using OpenSSL to create an X509 certificate, see Create and sign an X509 certificate.

          • Bucketrequired — (String)

            The name of the S3 bucket that contains the file.

          • Keyrequired — (String)

            The name of the file.

        • CrawlSystemFolders — (Boolean)

          TRUE to index shared files.

        • CrawlComments — (Boolean)

          TRUE to index comments of blogs and other content.

        • EntityFilter — (Array<String>)

          Specify whether to index document libraries, wikis, or blogs. You can specify one or more of these options.

        • DocumentLibraryFieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Alfresco document libraries to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Alfresco fields. For more information, see Mapping data source fields. The Alfresco data source field names must exist in your Alfresco custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • BlogFieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Alfresco blogs to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Alfresco fields. For more information, see Mapping data source fields. The Alfresco data source field names must exist in your Alfresco custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • WikiFieldMappings — (Array<map>)

          A list of DataSourceToIndexFieldMapping objects that map attributes or field names of Alfresco wikis to Amazon Kendra index field names. To create custom fields, use the UpdateIndex API before you map to Alfresco fields. For more information, see Mapping data source fields. The Alfresco data source field names must exist in your Alfresco custom metadata.

          • DataSourceFieldNamerequired — (String)

            The name of the field in the data source. You must first create the index field using the UpdateIndex API.

          • DateFieldFormat — (String)

            The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

          • IndexFieldNamerequired — (String)

            The name of the index field to map to the data source field. The index field type must match the data source field type.

        • InclusionPatterns — (Array<String>)

          A list of regular expression patterns to include certain files in your Alfresco data source. Files that match the patterns are included in the index. Files that don't match the patterns are excluded from the index. If a file matches both an inclusion pattern and an exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.

        • ExclusionPatterns — (Array<String>)

          A list of regular expression patterns to exclude certain files in your Alfresco data source. Files that match the patterns are excluded from the index. Files that don't match the patterns are included in the index. If a file matches both an inclusion pattern and an exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.

        • VpcConfiguration — (map)

          Configuration information for an Amazon Virtual Private Cloud to connect to your Alfresco. For more information, see Configuring a VPC.

          • SubnetIdsrequired — (Array<String>)

            A list of identifiers for subnets within your Amazon VPC. The subnets should be able to connect to each other in the VPC, and they should have outgoing access to the Internet through a NAT device.

          • SecurityGroupIdsrequired — (Array<String>)

            A list of identifiers of security groups within your Amazon VPC. The security groups should enable Amazon Kendra to connect to the data source.

      • TemplateConfiguration — (map)

        Provides a template for the configuration information to connect to your data source.

    • VpcConfiguration — (map)

      Configuration information for an Amazon Virtual Private Cloud to connect to your data source. For more information, see Configuring a VPC.

      • SubnetIdsrequired — (Array<String>)

        A list of identifiers for subnets within your Amazon VPC. The subnets should be able to connect to each other in the VPC, and they should have outgoing access to the Internet through a NAT device.

      • SecurityGroupIdsrequired — (Array<String>)

        A list of identifiers of security groups within your Amazon VPC. The security groups should enable Amazon Kendra to connect to the data source.

    • Description — (String)

      A new description for the data source connector.

    • Schedule — (String)

      The sync schedule you want to update for the data source connector.

    • RoleArn — (String)

      The Amazon Resource Name (ARN) of a role with permission to access the data source and required resources. For more information, see IAM roles for Amazon Kendra.

    • LanguageCode — (String)

      The code for a language you want to update for the data source connector. This allows you to support a language for all documents when updating the data source. English is supported by default. For more information on supported languages, including their codes, see Adding documents in languages other than English.

    • CustomDocumentEnrichmentConfiguration — (map)

      Configuration information you want to update for altering document metadata and content during the document ingestion process.

      For more information on how to create, modify and delete document metadata, or make other content alterations when you ingest documents into Amazon Kendra, see Customizing document metadata during the ingestion process.

      • InlineConfigurations — (Array<map>)

        Configuration information to alter document attributes or metadata fields and content when ingesting documents into Amazon Kendra.

        • Condition — (map)

          Configuration of the condition used for the target document attribute or metadata field when ingesting documents into Amazon Kendra.

          • ConditionDocumentAttributeKeyrequired — (String)

            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.

          • Operatorrequired — (String)

            The condition operator.

            For example, you can use 'Contains' to partially match a string.

            Possible values include:
            • "GreaterThan"
            • "GreaterThanOrEquals"
            • "LessThan"
            • "LessThanOrEquals"
            • "Equals"
            • "NotEquals"
            • "Contains"
            • "NotContains"
            • "Exists"
            • "NotExists"
            • "BeginsWith"
          • ConditionOnValue — (map)

            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.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • Target — (map)

          Configuration of the target document attribute or metadata field when ingesting documents into Amazon Kendra. You can also include a value.

          • TargetDocumentAttributeKey — (String)

            The identifier of the target document attribute or metadata field.

            For example, 'Department' could be an identifier for the target attribute or metadata field that includes the department names associated with the documents.

          • TargetDocumentAttributeValueDeletion — (Boolean)

            TRUE to delete the existing target value for your specified target attribute key. You cannot create a target value and set this to TRUE. To create a target value (TargetDocumentAttributeValue), set this to FALSE.

          • TargetDocumentAttributeValue — (map)

            The target value you want to create for the target attribute.

            For example, 'Finance' could be the target value for the target attribute key 'Department'.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • DocumentContentDeletion — (Boolean)

          TRUE to delete content if the condition used for the target attribute is met.

      • PreExtractionHookConfiguration — (map)

        Configuration information for invoking a Lambda function in Lambda on the original or raw documents before extracting their metadata and text. You can use a Lambda function to apply advanced logic for creating, modifying, or deleting document metadata and content. For more information, see Advanced data manipulation.

        • InvocationCondition — (map)

          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.

          • ConditionDocumentAttributeKeyrequired — (String)

            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.

          • Operatorrequired — (String)

            The condition operator.

            For example, you can use 'Contains' to partially match a string.

            Possible values include:
            • "GreaterThan"
            • "GreaterThanOrEquals"
            • "LessThan"
            • "LessThanOrEquals"
            • "Equals"
            • "NotEquals"
            • "Contains"
            • "NotContains"
            • "Exists"
            • "NotExists"
            • "BeginsWith"
          • ConditionOnValue — (map)

            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.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • LambdaArnrequired — (String)

          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.

        • S3Bucketrequired — (String)

          Stores the original, raw documents or the structured, parsed documents before and after altering them. For more information, see Data contracts for Lambda functions.

      • PostExtractionHookConfiguration — (map)

        Configuration information for invoking a Lambda function in Lambda on the structured documents with their metadata and text extracted. You can use a Lambda function to apply advanced logic for creating, modifying, or deleting document metadata and content. For more information, see Advanced data manipulation.

        • InvocationCondition — (map)

          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.

          • ConditionDocumentAttributeKeyrequired — (String)

            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.

          • Operatorrequired — (String)

            The condition operator.

            For example, you can use 'Contains' to partially match a string.

            Possible values include:
            • "GreaterThan"
            • "GreaterThanOrEquals"
            • "LessThan"
            • "LessThanOrEquals"
            • "Equals"
            • "NotEquals"
            • "Contains"
            • "NotContains"
            • "Exists"
            • "NotExists"
            • "BeginsWith"
          • ConditionOnValue — (map)

            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.

            • StringValue — (String)

              A string, such as "department".

            • StringListValue — (Array<String>)

              A list of strings. The default maximum length or number of strings is 10.

            • LongValue — (Integer)

              A long integer value.

            • DateValue — (Date)

              A date expressed as an ISO 8601 string.

              It is important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.

        • LambdaArnrequired — (String)

          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.

        • S3Bucketrequired — (String)

          Stores the original, raw documents or the structured, parsed documents before and after altering them. For more information, see Data contracts for Lambda functions.

      • RoleArn — (String)

        The Amazon Resource Name (ARN) of a role with permission to run PreExtractionHookConfiguration and PostExtractionHookConfiguration for altering document metadata and content during the document ingestion process. For more information, see IAM roles for Amazon Kendra.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateExperience(params = {}, callback) ⇒ AWS.Request

Updates your Amazon Kendra experience such as a search application. For more information on creating a search application experience, see Building a search experience with no code.

Service Reference:

Examples:

Calling the updateExperience operation

var params = {
  Id: 'STRING_VALUE', /* required */
  IndexId: 'STRING_VALUE', /* required */
  Configuration: {
    ContentSourceConfiguration: {
      DataSourceIds: [
        'STRING_VALUE',
        /* more items */
      ],
      DirectPutContent: true || false,
      FaqIds: [
        'STRING_VALUE',
        /* more items */
      ]
    },
    UserIdentityConfiguration: {
      IdentityAttributeName: 'STRING_VALUE'
    }
  },
  Description: 'STRING_VALUE',
  Name: 'STRING_VALUE',
  RoleArn: 'STRING_VALUE'
};
kendra.updateExperience(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Id — (String)

      The identifier of your Amazon Kendra experience you want to update.

    • Name — (String)

      A new name for your Amazon Kendra experience.

    • IndexId — (String)

      The identifier of the index for your Amazon Kendra experience.

    • RoleArn — (String)

      The Amazon Resource Name (ARN) of a role with permission to access Query API, QuerySuggestions API, SubmitFeedback API, and IAM Identity Center that stores your user and group information. For more information, see IAM roles for Amazon Kendra.

    • Configuration — (map)

      Configuration information you want to update for your Amazon Kendra experience.

      • ContentSourceConfiguration — (map)

        The identifiers of your data sources and FAQs. Or, you can specify that you want to use documents indexed via the BatchPutDocument API. This is the content you want to use for your Amazon Kendra experience.

        • DataSourceIds — (Array<String>)

          The identifier of the data sources you want to use for your Amazon Kendra experience.

        • FaqIds — (Array<String>)

          The identifier of the FAQs that you want to use for your Amazon Kendra experience.

        • DirectPutContent — (Boolean)

          TRUE to use documents you indexed directly using the BatchPutDocument API.

      • UserIdentityConfiguration — (map)

        The IAM Identity Center field name that contains the identifiers of your users, such as their emails.

        • IdentityAttributeName — (String)

          The IAM Identity Center field name that contains the identifiers of your users, such as their emails. This is used for user context filtering and for granting access to your Amazon Kendra experience. You must set up IAM Identity Center with Amazon Kendra. You must include your users and groups in your Access Control List when you ingest documents into your index. For more information, see Getting started with an IAM Identity Center identity source.

    • Description — (String)

      A new description for your Amazon Kendra experience.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateFeaturedResultsSet(params = {}, callback) ⇒ AWS.Request

Updates a set of featured results. Features results are placed above all other results for certain queries. You map specific queries to specific documents for featuring in the results. If a query contains an exact match of a query, then one or more specific documents are featured in the search results.

Service Reference:

Examples:

Calling the updateFeaturedResultsSet operation

var params = {
  FeaturedResultsSetId: 'STRING_VALUE', /* required */
  IndexId: 'STRING_VALUE', /* required */
  Description: 'STRING_VALUE',
  FeaturedDocuments: [
    {
      Id: 'STRING_VALUE'
    },
    /* more items */
  ],
  FeaturedResultsSetName: 'STRING_VALUE',
  QueryTexts: [
    'STRING_VALUE',
    /* more items */
  ],
  Status: ACTIVE | INACTIVE
};
kendra.updateFeaturedResultsSet(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • IndexId — (String)

      The identifier of the index used for featuring results.

    • FeaturedResultsSetId — (String)

      The identifier of the set of featured results that you want to update.

    • FeaturedResultsSetName — (String)

      A new name for the set of featured results.

    • Description — (String)

      A new description for the set of featured results.

    • Status — (String)

      You can set the status to ACTIVE or INACTIVE. When the value is ACTIVE, featured results are ready for use. You can still configure your settings before setting the status to ACTIVE. The queries you specify for featured results must be unique per featured results set for each index, whether the status is ACTIVE or INACTIVE.

      Possible values include:
      • "ACTIVE"
      • "INACTIVE"
    • QueryTexts — (Array<String>)

      A list of queries for featuring results. For more information on the list of queries, see FeaturedResultsSet.

    • FeaturedDocuments — (Array<map>)

      A list of document IDs for the documents you want to feature at the top of the search results page. For more information on the list of featured documents, see FeaturedResultsSet.

      • Id — (String)

        The identifier of the document to feature in the search results. You can use the Query API to search for specific documents with their document IDs included in the result items, or you can use the console.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • FeaturedResultsSet — (map)

        Information on the set of featured results. This includes the identifier of the featured results set, whether the featured results set is active or inactive, when the featured results set was last updated, and more.

        • FeaturedResultsSetId — (String)

          The identifier of the set of featured results.

        • FeaturedResultsSetName — (String)

          The name for the set of featured results.

        • Description — (String)

          The description for the set of featured results.

        • Status — (String)

          The current status of the set of featured results. When the value is ACTIVE, featured results are ready for use. You can still configure your settings before setting the status to ACTIVE. You can set the status to ACTIVE or INACTIVE using the UpdateFeaturedResultsSet API. The queries you specify for featured results must be unique per featured results set for each index, whether the status is ACTIVE or INACTIVE.

          Possible values include:
          • "ACTIVE"
          • "INACTIVE"
        • QueryTexts — (Array<String>)

          The list of queries for featuring results.

          Specific queries are mapped to specific documents for featuring in the results. If a query contains an exact match, then one or more specific documents are featured in the results. The exact match applies to the full query. For example, if you only specify 'Kendra', queries such as 'How does kendra semantically rank results?' will not render the featured results. Featured results are designed for specific queries, rather than queries that are too broad in scope.

        • FeaturedDocuments — (Array<map>)

          The list of document IDs for the documents you want to feature at the top of the search results page. You can use the Query API to search for specific documents with their document IDs included in the result items, or you can use the console.

          You can add up to four featured documents. You can request to increase this limit by contacting Support.

          Specific queries are mapped to specific documents for featuring in the results. If a query contains an exact match, then one or more specific documents are featured in the results. The exact match applies to the full query. For example, if you only specify 'Kendra', queries such as 'How does kendra semantically rank results?' will not render the featured results. Featured results are designed for specific queries, rather than queries that are too broad in scope.

          • Id — (String)

            The identifier of the document to feature in the search results. You can use the Query API to search for specific documents with their document IDs included in the result items, or you can use the console.

        • LastUpdatedTimestamp — (Integer)

          The Unix timestamp when the set of featured results was last updated.

        • CreationTimestamp — (Integer)

          The Unix timestamp when the set of featured results was created.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateIndex(params = {}, callback) ⇒ AWS.Request

Updates an Amazon Kendra index.

Service Reference:

Examples:

Calling the updateIndex operation

var params = {
  Id: 'STRING_VALUE', /* required */
  CapacityUnits: {
    QueryCapacityUnits: 'NUMBER_VALUE', /* required */
    StorageCapacityUnits: 'NUMBER_VALUE' /* required */
  },
  Description: 'STRING_VALUE',
  DocumentMetadataConfigurationUpdates: [
    {
      Name: 'STRING_VALUE', /* required */
      Type: STRING_VALUE | STRING_LIST_VALUE | LONG_VALUE | DATE_VALUE, /* required */
      Relevance: {
        Duration: 'STRING_VALUE',
        Freshness: true || false,
        Importance: 'NUMBER_VALUE',
        RankOrder: ASCENDING | DESCENDING,
        ValueImportanceMap: {
          '<ValueImportanceMapKey>': 'NUMBER_VALUE',
          /* '<ValueImportanceMapKey>': ... */
        }
      },
      Search: {
        Displayable: true || false,
        Facetable: true || false,
        Searchable: true || false,
        Sortable: true || false
      }
    },
    /* more items */
  ],
  Name: 'STRING_VALUE',
  RoleArn: 'STRING_VALUE',
  UserContextPolicy: ATTRIBUTE_FILTER | USER_TOKEN,
  UserGroupResolutionConfiguration: {
    UserGroupResolutionMode: AWS_SSO | NONE /* required */
  },
  UserTokenConfigurations: [
    {
      JsonTokenTypeConfiguration: {
        GroupAttributeField: 'STRING_VALUE', /* required */
        UserNameAttributeField: 'STRING_VALUE' /* required */
      },
      JwtTokenTypeConfiguration: {
        KeyLocation: URL | SECRET_MANAGER, /* required */
        ClaimRegex: 'STRING_VALUE',
        GroupAttributeField: 'STRING_VALUE',
        Issuer: 'STRING_VALUE',
        SecretManagerArn: 'STRING_VALUE',
        URL: 'STRING_VALUE',
        UserNameAttributeField: 'STRING_VALUE'
      }
    },
    /* more items */
  ]
};
kendra.updateIndex(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Id — (String)

      The identifier of the index you want to update.

    • Name — (String)

      A new name for the index.

    • RoleArn — (String)

      An Identity and Access Management (IAM) role that gives Amazon Kendra permission to access Amazon CloudWatch logs and metrics.

    • Description — (String)

      A new description for the index.

    • DocumentMetadataConfigurationUpdates — (Array<map>)

      The document metadata configuration you want to update for the index. Document metadata are fields or attributes associated with your documents. For example, the company department name associated with each document.

      • Namerequired — (String)

        The name of the index field.

      • Typerequired — (String)

        The data type of the index field.

        Possible values include:
        • "STRING_VALUE"
        • "STRING_LIST_VALUE"
        • "LONG_VALUE"
        • "DATE_VALUE"
      • Relevance — (map)

        Provides tuning parameters to determine how the field affects the search results.

        • Freshness — (Boolean)

          Indicates that this field determines how "fresh" a document is. For example, if document 1 was created on November 5, and document 2 was created on October 31, document 1 is "fresher" than document 2. Only applies to DATE fields.

        • Importance — (Integer)

          The relative importance of the field in the search. Larger numbers provide more of a boost than smaller numbers.

        • Duration — (String)

          Specifies the time period that the boost applies to. For example, to make the boost apply to documents with the field value within the last month, you would use "2628000s". Once the field value is beyond the specified range, the effect of the boost drops off. The higher the importance, the faster the effect drops off. If you don't specify a value, the default is 3 months. The value of the field is a numeric string followed by the character "s", for example "86400s" for one day, or "604800s" for one week.

          Only applies to DATE fields.

        • RankOrder — (String)

          Determines how values should be interpreted.

          When the RankOrder field is ASCENDING, higher numbers are better. For example, a document with a rating score of 10 is higher ranking than a document with a rating score of 1.

          When the RankOrder field is DESCENDING, lower numbers are better. For example, in a task tracking application, a priority 1 task is more important than a priority 5 task.

          Only applies to LONG fields.

          Possible values include:
          • "ASCENDING"
          • "DESCENDING"
        • ValueImportanceMap — (map<Integer>)

          A list of values that should be given a different boost when they appear in the result list. For example, if you are boosting a field called "department", query terms that match the department field are boosted in the result. However, you can add entries from the department field to boost documents with those values higher.

          For example, you can add entries to the map with names of departments. If you add "HR",5 and "Legal",3 those departments are given special attention when they appear in the metadata of a document. When those terms appear they are given the specified importance instead of the regular importance for the boost.

      • Search — (map)

        Provides information about how the field is used during a search.

        • Facetable — (Boolean)

          Indicates that the field can be used to create search facets, a count of results for each value in the field. The default is false .

        • Searchable — (Boolean)

          Determines whether the field is used in the search. If the Searchable field is true, you can use relevance tuning to manually tune how Amazon Kendra weights the field in the search. The default is true for string fields and false for number and date fields.

        • Displayable — (Boolean)

          Determines whether the field is returned in the query response. The default is true.

        • Sortable — (Boolean)

          Determines whether the field can be used to sort the results of a query. If you specify sorting on a field that does not have Sortable set to true, Amazon Kendra returns an exception. The default is false.

    • CapacityUnits — (map)

      Sets the number of additional document storage and query capacity units that should be used by the index. You can change the capacity of the index up to 5 times per day, or make 5 API calls.

      If you are using extra storage units, you can't reduce the storage capacity below what is required to meet the storage needs for your index.

      • StorageCapacityUnitsrequired — (Integer)

        The amount of extra storage capacity for an index. A single capacity unit provides 30 GB of storage space or 100,000 documents, whichever is reached first. You can add up to 100 extra capacity units.

      • QueryCapacityUnitsrequired — (Integer)

        The amount of extra query capacity for an index and GetQuerySuggestions capacity.

        A single extra capacity unit for an index provides 0.1 queries per second or approximately 8,000 queries per day. You can add up to 100 extra capacity units.

        GetQuerySuggestions capacity is five times the provisioned query capacity for an index, or the base capacity of 2.5 calls per second, whichever is higher. For example, the base capacity for an index is 0.1 queries per second, and GetQuerySuggestions capacity has a base of 2.5 calls per second. If you add another 0.1 queries per second to total 0.2 queries per second for an index, the GetQuerySuggestions capacity is 2.5 calls per second (higher than five times 0.2 queries per second).

    • UserTokenConfigurations — (Array<map>)

      The user token configuration.

      • JwtTokenTypeConfiguration — (map)

        Information about the JWT token type configuration.

        • KeyLocationrequired — (String)

          The location of the key.

          Possible values include:
          • "URL"
          • "SECRET_MANAGER"
        • URL — (String)

          The signing key URL.

        • SecretManagerArn — (String)

          The Amazon Resource Name (arn) of the secret.

        • UserNameAttributeField — (String)

          The user name attribute field.

        • GroupAttributeField — (String)

          The group attribute field.

        • Issuer — (String)

          The issuer of the token.

        • ClaimRegex — (String)

          The regular expression that identifies the claim.

      • JsonTokenTypeConfiguration — (map)

        Information about the JSON token type configuration.

        • UserNameAttributeFieldrequired — (String)

          The user name attribute field.

        • GroupAttributeFieldrequired — (String)

          The group attribute field.

    • UserContextPolicy — (String)

      The user context policy.

      Possible values include:
      • "ATTRIBUTE_FILTER"
      • "USER_TOKEN"
    • UserGroupResolutionConfiguration — (map)

      Gets users and groups from IAM Identity Center identity source. To configure this, see UserGroupResolutionConfiguration. This is useful for user context filtering, where search results are filtered based on the user or their group access to documents.

      • UserGroupResolutionModerequired — (String)

        The identity store provider (mode) you want to use to get users and groups. IAM Identity Center is currently the only available mode. Your users and groups must exist in an IAM Identity Center identity source in order to use this mode.

        Possible values include:
        • "AWS_SSO"
        • "NONE"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateQuerySuggestionsBlockList(params = {}, callback) ⇒ AWS.Request

Updates a block list used for query suggestions for an index.

Updates to a block list might not take effect right away. Amazon Kendra needs to refresh the entire suggestions list to apply any updates to the block list. Other changes not related to the block list apply immediately.

If a block list is updating, then you need to wait for the first update to finish before submitting another update.

Amazon Kendra supports partial updates, so you only need to provide the fields you want to update.

UpdateQuerySuggestionsBlockList is currently not supported in the Amazon Web Services GovCloud (US-West) region.

Service Reference:

Examples:

Calling the updateQuerySuggestionsBlockList operation

var params = {
  Id: 'STRING_VALUE', /* required */
  IndexId: 'STRING_VALUE', /* required */
  Description: 'STRING_VALUE',
  Name: 'STRING_VALUE',
  RoleArn: 'STRING_VALUE',
  SourceS3Path: {
    Bucket: 'STRING_VALUE', /* required */
    Key: 'STRING_VALUE' /* required */
  }
};
kendra.updateQuerySuggestionsBlockList(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • IndexId — (String)

      The identifier of the index for the block list.

    • Id — (String)

      The identifier of the block list you want to update.

    • Name — (String)

      A new name for the block list.

    • Description — (String)

      A new description for the block list.

    • SourceS3Path — (map)

      The S3 path where your block list text file sits in S3.

      If you update your block list and provide the same path to the block list text file in S3, then Amazon Kendra reloads the file to refresh the block list. Amazon Kendra does not automatically refresh your block list. You need to call the UpdateQuerySuggestionsBlockList API to refresh you block list.

      If you update your block list, then Amazon Kendra asynchronously refreshes all query suggestions with the latest content in the S3 file. This means changes might not take effect immediately.

      • Bucketrequired — (String)

        The name of the S3 bucket that contains the file.

      • Keyrequired — (String)

        The name of the file.

    • RoleArn — (String)

      The IAM (Identity and Access Management) role used to access the block list text file in S3.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateQuerySuggestionsConfig(params = {}, callback) ⇒ AWS.Request

Updates the settings of query suggestions for an index.

Amazon Kendra supports partial updates, so you only need to provide the fields you want to update.

If an update is currently processing, you need to wait for the update to finish before making another update.

Updates to query suggestions settings might not take effect right away. The time for your updated settings to take effect depends on the updates made and the number of search queries in your index.

You can still enable/disable query suggestions at any time.

UpdateQuerySuggestionsConfig is currently not supported in the Amazon Web Services GovCloud (US-West) region.

Service Reference:

Examples:

Calling the updateQuerySuggestionsConfig operation

var params = {
  IndexId: 'STRING_VALUE', /* required */
  AttributeSuggestionsConfig: {
    AttributeSuggestionsMode: ACTIVE | INACTIVE,
    SuggestableConfigList: [
      {
        AttributeName: 'STRING_VALUE',
        Suggestable: true || false
      },
      /* more items */
    ]
  },
  IncludeQueriesWithoutUserInformation: true || false,
  MinimumNumberOfQueryingUsers: 'NUMBER_VALUE',
  MinimumQueryCount: 'NUMBER_VALUE',
  Mode: ENABLED | LEARN_ONLY,
  QueryLogLookBackWindowInDays: 'NUMBER_VALUE'
};
kendra.updateQuerySuggestionsConfig(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • IndexId — (String)

      The identifier of the index with query suggestions you want to update.

    • Mode — (String)

      Set the mode to ENABLED or LEARN_ONLY.

      By default, Amazon Kendra enables query suggestions. LEARN_ONLY mode allows you to turn off query suggestions. You can to update this at any time.

      In LEARN_ONLY mode, Amazon Kendra continues to learn from new queries to keep suggestions up to date for when you are ready to switch to ENABLED mode again.

      Possible values include:
      • "ENABLED"
      • "LEARN_ONLY"
    • QueryLogLookBackWindowInDays — (Integer)

      How recent your queries are in your query log time window.

      The time window is the number of days from current day to past days.

      By default, Amazon Kendra sets this to 180.

    • IncludeQueriesWithoutUserInformation — (Boolean)

      TRUE to include queries without user information (i.e. all queries, irrespective of the user), otherwise FALSE to only include queries with user information.

      If you pass user information to Amazon Kendra along with the queries, you can set this flag to FALSE and instruct Amazon Kendra to only consider queries with user information.

      If you set to FALSE, Amazon Kendra only considers queries searched at least MinimumQueryCount times across MinimumNumberOfQueryingUsers unique users for suggestions.

      If you set to TRUE, Amazon Kendra ignores all user information and learns from all queries.

    • MinimumNumberOfQueryingUsers — (Integer)

      The minimum number of unique users who must search a query in order for the query to be eligible to suggest to your users.

      Increasing this number might decrease the number of suggestions. However, this ensures a query is searched by many users and is truly popular to suggest to users.

      How you tune this setting depends on your specific needs.

    • MinimumQueryCount — (Integer)

      The the minimum number of times a query must be searched in order to be eligible to suggest to your users.

      Decreasing this number increases the number of suggestions. However, this affects the quality of suggestions as it sets a low bar for a query to be considered popular to suggest to users.

      How you tune this setting depends on your specific needs.

    • AttributeSuggestionsConfig — (map)

      Configuration information for the document fields/attributes that you want to base query suggestions on.

      • SuggestableConfigList — (Array<map>)

        The list of fields/attributes that you want to set as suggestible for query suggestions.

        • AttributeName — (String)

          The name of the document field/attribute.

        • Suggestable — (Boolean)

          TRUE means the document field/attribute is suggestible, so the contents within the field can be used for query suggestions.

      • AttributeSuggestionsMode — (String)

        You can set the mode to ACTIVE or INACTIVE. You must also set SuggestionTypes as either QUERY or DOCUMENT_ATTRIBUTES and then call GetQuerySuggestions. If Mode to use query history is set to ENABLED when calling UpdateQuerySuggestionsConfig and AttributeSuggestionsMode to use fields/attributes is set to ACTIVE, and you haven't set your SuggestionTypes preference to DOCUMENT_ATTRIBUTES, then Amazon Kendra uses the query history.

        Possible values include:
        • "ACTIVE"
        • "INACTIVE"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateThesaurus(params = {}, callback) ⇒ AWS.Request

Updates a thesaurus for an index.

Service Reference:

Examples:

Calling the updateThesaurus operation

var params = {
  Id: 'STRING_VALUE', /* required */
  IndexId: 'STRING_VALUE', /* required */
  Description: 'STRING_VALUE',
  Name: 'STRING_VALUE',
  RoleArn: 'STRING_VALUE',
  SourceS3Path: {
    Bucket: 'STRING_VALUE', /* required */
    Key: 'STRING_VALUE' /* required */
  }
};
kendra.updateThesaurus(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Id — (String)

      The identifier of the thesaurus you want to update.

    • Name — (String)

      A new name for the thesaurus.

    • IndexId — (String)

      The identifier of the index for the thesaurus.

    • Description — (String)

      A new description for the thesaurus.

    • RoleArn — (String)

      An IAM role that gives Amazon Kendra permissions to access thesaurus file specified in SourceS3Path.

    • SourceS3Path — (map)

      Information required to find a specific file in an Amazon S3 bucket.

      • Bucketrequired — (String)

        The name of the S3 bucket that contains the file.

      • Keyrequired — (String)

        The name of the file.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.