public static interface CfnDataSource.GoogleDriveConfigurationProperty
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.*; GoogleDriveConfigurationProperty googleDriveConfigurationProperty = GoogleDriveConfigurationProperty.builder() .secretArn("secretArn") // the properties below are optional .excludeMimeTypes(List.of("excludeMimeTypes")) .excludeSharedDrives(List.of("excludeSharedDrives")) .excludeUserAccounts(List.of("excludeUserAccounts")) .exclusionPatterns(List.of("exclusionPatterns")) .fieldMappings(List.of(DataSourceToIndexFieldMappingProperty.builder() .dataSourceFieldName("dataSourceFieldName") .indexFieldName("indexFieldName") // the properties below are optional .dateFieldFormat("dateFieldFormat") .build())) .inclusionPatterns(List.of("inclusionPatterns")) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnDataSource.GoogleDriveConfigurationProperty.Builder
A builder for
CfnDataSource.GoogleDriveConfigurationProperty |
static class |
CfnDataSource.GoogleDriveConfigurationProperty.Jsii$Proxy
An implementation for
CfnDataSource.GoogleDriveConfigurationProperty |
Modifier and Type | Method and Description |
---|---|
static CfnDataSource.GoogleDriveConfigurationProperty.Builder |
builder() |
default java.util.List<java.lang.String> |
getExcludeMimeTypes()
A list of MIME types to exclude from the index.
|
default java.util.List<java.lang.String> |
getExcludeSharedDrives()
A list of identifiers or shared drives to exclude from the index.
|
default java.util.List<java.lang.String> |
getExcludeUserAccounts()
A list of email addresses of the users.
|
default java.util.List<java.lang.String> |
getExclusionPatterns()
A list of regular expression patterns to exclude certain items in your Google Drive, including shared drives and users' My Drives.
|
default java.lang.Object |
getFieldMappings()
Maps Google Drive data source attributes or field names to Amazon Kendra index field names.
|
default java.util.List<java.lang.String> |
getInclusionPatterns()
A list of regular expression patterns to include certain items in your Google Drive, including shared drives and users' My Drives.
|
java.lang.String |
getSecretArn()
The Amazon Resource Name (ARN) of a AWS Secrets Manager secret that contains the credentials required to connect to Google Drive.
|
java.lang.String getSecretArn()
For more information, see Using a Google Workspace Drive data source .
default java.util.List<java.lang.String> getExcludeMimeTypes()
For a list of MIME types, see Using a Google Workspace Drive data source .
default java.util.List<java.lang.String> getExcludeSharedDrives()
All files and folders stored on the shared drive are excluded.
default java.util.List<java.lang.String> getExcludeUserAccounts()
Documents owned by these users are excluded from the index. Documents shared with excluded users are indexed unless they are excluded in another way.
default java.util.List<java.lang.String> getExclusionPatterns()
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.
default java.lang.Object getFieldMappings()
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.
default java.util.List<java.lang.String> getInclusionPatterns()
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.
static CfnDataSource.GoogleDriveConfigurationProperty.Builder builder()