@Stability(value=Stable)
public static interface CfnDataSource.GoogleDriveConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
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 List<String> |
getExcludeMimeTypes()
A list of MIME types to exclude from the index.
|
default List<String> |
getExcludeSharedDrives()
A list of identifiers or shared drives to exclude from the index.
|
default List<String> |
getExcludeUserAccounts()
A list of email addresses of the users.
|
default List<String> |
getExclusionPatterns()
A list of regular expression patterns that apply to the path on Google Drive.
|
default Object |
getFieldMappings()
Defines mapping between a field in the Google Drive and a Amazon Kendra index field.
|
default List<String> |
getInclusionPatterns()
A list of regular expression patterns that apply to path on Google Drive.
|
String |
getSecretArn()
The Amazon Resource Name (ARN) of a AWS Secrets Manager secret that contains the credentials required to connect to Google Drive.
|
@Stability(value=Stable) @NotNull String getSecretArn()
For more information, see Using a Google Workspace Drive data source .
@Stability(value=Stable) @Nullable default List<String> getExcludeMimeTypes()
For a list of MIME types, see Using a Google Workspace Drive data source .
@Stability(value=Stable) @Nullable default List<String> getExcludeSharedDrives()
All files and folders stored on the shared drive are excluded.
@Stability(value=Stable) @Nullable default List<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.
@Stability(value=Stable) @Nullable default List<String> getExclusionPatterns()
Items that match the pattern are excluded from the index from both shared drives and users' My Drives. Items that don't match the pattern are included in the index. If an item matches both an exclusion pattern and an inclusion pattern, it is excluded from the index.
@Stability(value=Stable) @Nullable default Object getFieldMappings()
If you are using the console, you can define index fields when creating the mapping. If you are using the API, you must first create the field using the UpdateIndex operation.
@Stability(value=Stable) @Nullable default List<String> getInclusionPatterns()
Items that match the pattern are included in the index from both shared drives and users' My Drives. Items that don't match the pattern are excluded from the index. If an item matches both an inclusion pattern and an exclusion pattern, it is excluded from the index.
@Stability(value=Stable) static CfnDataSource.GoogleDriveConfigurationProperty.Builder builder()
Copyright © 2022. All rights reserved.