Class CfnDataSourcePropsMixin.GoogleDriveConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.kendra.CfnDataSourcePropsMixin.GoogleDriveConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataSourcePropsMixin.GoogleDriveConfigurationProperty>
- Enclosing interface:
CfnDataSourcePropsMixin.GoogleDriveConfigurationProperty
@Stability(Stable)
public static final class CfnDataSourcePropsMixin.GoogleDriveConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataSourcePropsMixin.GoogleDriveConfigurationProperty>
A builder for
CfnDataSourcePropsMixin.GoogleDriveConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.excludeMimeTypes(List<String> excludeMimeTypes) excludeSharedDrives(List<String> excludeSharedDrives) excludeUserAccounts(List<String> excludeUserAccounts) exclusionPatterns(List<String> exclusionPatterns) fieldMappings(List<? extends Object> fieldMappings) fieldMappings(IResolvable fieldMappings) inclusionPatterns(List<String> inclusionPatterns) Sets the value ofCfnDataSourcePropsMixin.GoogleDriveConfigurationProperty.getSecretArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
excludeMimeTypes
@Stability(Stable) public CfnDataSourcePropsMixin.GoogleDriveConfigurationProperty.Builder excludeMimeTypes(List<String> excludeMimeTypes) - 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 CfnDataSourcePropsMixin.GoogleDriveConfigurationProperty.Builder excludeUserAccounts(List<String> excludeUserAccounts) - 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 CfnDataSourcePropsMixin.GoogleDriveConfigurationProperty.Builder exclusionPatterns(List<String> exclusionPatterns) - 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 CfnDataSourcePropsMixin.GoogleDriveConfigurationProperty.Builder fieldMappings(IResolvable fieldMappings) - Parameters:
fieldMappings- Maps Google Drive data source attributes or field names to Amazon Kendra index field names. To create custom fields, use theUpdateIndexAPI 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 CfnDataSourcePropsMixin.GoogleDriveConfigurationProperty.Builder fieldMappings(List<? extends Object> fieldMappings) - Parameters:
fieldMappings- Maps Google Drive data source attributes or field names to Amazon Kendra index field names. To create custom fields, use theUpdateIndexAPI 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 CfnDataSourcePropsMixin.GoogleDriveConfigurationProperty.Builder inclusionPatterns(List<String> inclusionPatterns) - 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
-
secretArn
@Stability(Stable) public CfnDataSourcePropsMixin.GoogleDriveConfigurationProperty.Builder secretArn(String secretArn) Sets the value ofCfnDataSourcePropsMixin.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. For more information, see Using a Google Workspace Drive data source .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDataSourcePropsMixin.GoogleDriveConfigurationProperty>- Returns:
- a new instance of
CfnDataSourcePropsMixin.GoogleDriveConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-