interface S3DataSourceConfigurationProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Kendra.CfnDataSource.S3DataSourceConfigurationProperty |
Java | software.amazon.awscdk.services.kendra.CfnDataSource.S3DataSourceConfigurationProperty |
Python | aws_cdk.aws_kendra.CfnDataSource.S3DataSourceConfigurationProperty |
TypeScript | @aws-cdk/aws-kendra » CfnDataSource » S3DataSourceConfigurationProperty |
Provides the configuration information to connect to an Amazon S3 bucket.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as kendra from '@aws-cdk/aws-kendra';
const s3DataSourceConfigurationProperty: kendra.CfnDataSource.S3DataSourceConfigurationProperty = {
bucketName: 'bucketName',
// the properties below are optional
accessControlListConfiguration: {
keyPath: 'keyPath',
},
documentsMetadataConfiguration: {
s3Prefix: 's3Prefix',
},
exclusionPatterns: ['exclusionPatterns'],
inclusionPatterns: ['inclusionPatterns'],
inclusionPrefixes: ['inclusionPrefixes'],
};
Properties
Name | Type | Description |
---|---|---|
bucket | string | The name of the bucket that contains the documents. |
access | IResolvable | Access | Provides the path to the S3 bucket that contains the user context filtering files for the data source. |
documents | IResolvable | Documents | Specifies document metadata files that contain information such as the document access control information, source URI, document author, and custom attributes. |
exclusion | string[] | A list of glob patterns for documents that should not be indexed. |
inclusion | string[] | A list of glob patterns for documents that should be indexed. |
inclusion | string[] | A list of S3 prefixes for the documents that should be included in the index. |
bucketName
Type:
string
The name of the bucket that contains the documents.
accessControlListConfiguration?
Type:
IResolvable
|
Access
(optional)
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 .
documentsMetadataConfiguration?
Type:
IResolvable
|
Documents
(optional)
Specifies 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.
exclusionPatterns?
Type:
string[]
(optional)
A list of glob patterns for documents that should not be indexed.
If a document that matches an inclusion prefix or inclusion pattern also matches an exclusion pattern, the document is not indexed.
Some examples are:
- **.png , .jpg will exclude all PNG and JPEG image files in a directory (files with the extensions .png and .jpg).
- internal will exclude all files in a directory that contain 'internal' in the file name, such as 'internal', 'internal_only', 'company_internal'.
- *** /internal* will exclude all internal-related files in a directory and its subdirectories.
inclusionPatterns?
Type:
string[]
(optional)
A list of glob patterns for documents that should be indexed.
If a document that matches an inclusion pattern also matches an exclusion pattern, the document is not indexed.
Some examples are:
- *.txt will include all text files in a directory (files with the extension .txt).
- *** /.txt will include all text files in a directory and its subdirectories.
- tax will include all files in a directory that contain 'tax' in the file name, such as 'tax', 'taxes', 'income_tax'.
inclusionPrefixes?
Type:
string[]
(optional)
A list of S3 prefixes for the documents that should be included in the index.