Class CfnDataSource.GoogleDriveConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.kendra.CfnDataSource.GoogleDriveConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataSource.GoogleDriveConfigurationProperty>
- Enclosing interface:
CfnDataSource.GoogleDriveConfigurationProperty
@Stability(Stable)
public static final class CfnDataSource.GoogleDriveConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataSource.GoogleDriveConfigurationProperty>
A builder for
CfnDataSource.GoogleDriveConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.excludeMimeTypes
(List<String> excludeMimeTypes) Sets the value ofCfnDataSource.GoogleDriveConfigurationProperty.getExcludeMimeTypes()
excludeSharedDrives
(List<String> excludeSharedDrives) Sets the value ofCfnDataSource.GoogleDriveConfigurationProperty.getExcludeSharedDrives()
excludeUserAccounts
(List<String> excludeUserAccounts) Sets the value ofCfnDataSource.GoogleDriveConfigurationProperty.getExcludeUserAccounts()
exclusionPatterns
(List<String> exclusionPatterns) Sets the value ofCfnDataSource.GoogleDriveConfigurationProperty.getExclusionPatterns()
fieldMappings
(List<? extends Object> fieldMappings) Sets the value ofCfnDataSource.GoogleDriveConfigurationProperty.getFieldMappings()
fieldMappings
(IResolvable fieldMappings) Sets the value ofCfnDataSource.GoogleDriveConfigurationProperty.getFieldMappings()
inclusionPatterns
(List<String> inclusionPatterns) Sets the value ofCfnDataSource.GoogleDriveConfigurationProperty.getInclusionPatterns()
Sets the value ofCfnDataSource.GoogleDriveConfigurationProperty.getSecretArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
secretArn
@Stability(Stable) public CfnDataSource.GoogleDriveConfigurationProperty.Builder secretArn(String secretArn) Sets the value ofCfnDataSource.GoogleDriveConfigurationProperty.getSecretArn()
- Parameters:
secretArn
- The Amazon Resource Name (ARN) of a AWS Secrets Manager secret that contains the credentials required to connect to Google Drive. This parameter is required. For more information, see Using a Google Workspace Drive data source .- Returns:
this
-
excludeMimeTypes
@Stability(Stable) public CfnDataSource.GoogleDriveConfigurationProperty.Builder excludeMimeTypes(List<String> excludeMimeTypes) Sets the value ofCfnDataSource.GoogleDriveConfigurationProperty.getExcludeMimeTypes()
- Parameters:
excludeMimeTypes
- 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 .- Returns:
this
-
excludeUserAccounts
@Stability(Stable) public CfnDataSource.GoogleDriveConfigurationProperty.Builder excludeUserAccounts(List<String> excludeUserAccounts) Sets the value ofCfnDataSource.GoogleDriveConfigurationProperty.getExcludeUserAccounts()
- Parameters:
excludeUserAccounts
- 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.- Returns:
this
-
exclusionPatterns
@Stability(Stable) public CfnDataSource.GoogleDriveConfigurationProperty.Builder exclusionPatterns(List<String> exclusionPatterns) Sets the value ofCfnDataSource.GoogleDriveConfigurationProperty.getExclusionPatterns()
- Parameters:
exclusionPatterns
- 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.- Returns:
this
-
fieldMappings
@Stability(Stable) public CfnDataSource.GoogleDriveConfigurationProperty.Builder fieldMappings(IResolvable fieldMappings) Sets the value ofCfnDataSource.GoogleDriveConfigurationProperty.getFieldMappings()
- Parameters:
fieldMappings
- Maps Google Drive data source attributes or field names to Amazon Kendra index field names. To create custom fields, use theUpdateIndex
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.- Returns:
this
-
fieldMappings
@Stability(Stable) public CfnDataSource.GoogleDriveConfigurationProperty.Builder fieldMappings(List<? extends Object> fieldMappings) Sets the value ofCfnDataSource.GoogleDriveConfigurationProperty.getFieldMappings()
- Parameters:
fieldMappings
- Maps Google Drive data source attributes or field names to Amazon Kendra index field names. To create custom fields, use theUpdateIndex
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.- Returns:
this
-
inclusionPatterns
@Stability(Stable) public CfnDataSource.GoogleDriveConfigurationProperty.Builder inclusionPatterns(List<String> inclusionPatterns) Sets the value ofCfnDataSource.GoogleDriveConfigurationProperty.getInclusionPatterns()
- Parameters:
inclusionPatterns
- 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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDataSource.GoogleDriveConfigurationProperty>
- Returns:
- a new instance of
CfnDataSource.GoogleDriveConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-