Interface CfnDataSource.S3DataSourceConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnDataSource.S3DataSourceConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnDataSource
@Stability(Stable)
public static interface CfnDataSource.S3DataSourceConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.kendra.*; S3DataSourceConfigurationProperty s3DataSourceConfigurationProperty = S3DataSourceConfigurationProperty.builder() .bucketName("bucketName") // the properties below are optional .accessControlListConfiguration(AccessControlListConfigurationProperty.builder() .keyPath("keyPath") .build()) .documentsMetadataConfiguration(DocumentsMetadataConfigurationProperty.builder() .s3Prefix("s3Prefix") .build()) .exclusionPatterns(List.of("exclusionPatterns")) .inclusionPatterns(List.of("inclusionPatterns")) .inclusionPrefixes(List.of("inclusionPrefixes")) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnDataSource.S3DataSourceConfigurationProperty
static final class
An implementation forCfnDataSource.S3DataSourceConfigurationProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Object
Provides the path to the S3 bucket that contains the user context filtering files for the data source.The name of the bucket that contains the documents.default Object
Specifies document metadata files that contain information such as the document access control information, source URI, document author, and custom attributes.A list of glob patterns for documents that should not be indexed.A list of glob patterns for documents that should be indexed.A list of S3 prefixes for the documents that should be included in the index.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getBucketName
The name of the bucket that contains the documents. -
getAccessControlListConfiguration
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 .
-
getDocumentsMetadataConfiguration
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.
-
getExclusionPatterns
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.
-
getInclusionPatterns
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'.
-
getInclusionPrefixes
A list of S3 prefixes for the documents that should be included in the index. -
builder
-