public static final class CfnDataSource.OneDriveConfigurationProperty.Builder
extends java.lang.Object
CfnDataSource.OneDriveConfigurationProperty
Constructor and Description |
---|
Builder() |
public CfnDataSource.OneDriveConfigurationProperty.Builder oneDriveUsers(IResolvable oneDriveUsers)
CfnDataSource.OneDriveConfigurationProperty.getOneDriveUsers()
oneDriveUsers
- A list of user accounts whose documents should be indexed. This parameter is required.this
public CfnDataSource.OneDriveConfigurationProperty.Builder oneDriveUsers(CfnDataSource.OneDriveUsersProperty oneDriveUsers)
CfnDataSource.OneDriveConfigurationProperty.getOneDriveUsers()
oneDriveUsers
- A list of user accounts whose documents should be indexed. This parameter is required.this
public CfnDataSource.OneDriveConfigurationProperty.Builder secretArn(java.lang.String secretArn)
CfnDataSource.OneDriveConfigurationProperty.getSecretArn()
secretArn
- The Amazon Resource Name (ARN) of an AWS Secrets Manager secret that contains the user name and password to connect to OneDrive. This parameter is required.
The user named should be the application ID for the OneDrive application, and the password is the application key for the OneDrive application.this
public CfnDataSource.OneDriveConfigurationProperty.Builder tenantDomain(java.lang.String tenantDomain)
CfnDataSource.OneDriveConfigurationProperty.getTenantDomain()
tenantDomain
- The Azure Active Directory domain of the organization. This parameter is required.this
public CfnDataSource.OneDriveConfigurationProperty.Builder disableLocalGroups(java.lang.Boolean disableLocalGroups)
CfnDataSource.OneDriveConfigurationProperty.getDisableLocalGroups()
disableLocalGroups
- A Boolean value that specifies whether local groups are disabled ( `True` ) or enabled ( `False` ).this
public CfnDataSource.OneDriveConfigurationProperty.Builder disableLocalGroups(IResolvable disableLocalGroups)
CfnDataSource.OneDriveConfigurationProperty.getDisableLocalGroups()
disableLocalGroups
- A Boolean value that specifies whether local groups are disabled ( `True` ) or enabled ( `False` ).this
public CfnDataSource.OneDriveConfigurationProperty.Builder exclusionPatterns(java.util.List<java.lang.String> exclusionPatterns)
CfnDataSource.OneDriveConfigurationProperty.getExclusionPatterns()
exclusionPatterns
- A list of regular expression patterns to exclude certain documents in your OneDrive.
Documents that match the patterns are excluded from the index. Documents that don't match the patterns are included in the index. If a document matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the document isn't included in the index.
The pattern is applied to the file name.
this
public CfnDataSource.OneDriveConfigurationProperty.Builder fieldMappings(IResolvable fieldMappings)
CfnDataSource.OneDriveConfigurationProperty.getFieldMappings()
fieldMappings
- A list of `DataSourceToIndexFieldMapping` objects that map OneDrive data source attributes or field names to Amazon Kendra index field names.
To create custom fields, use the UpdateIndex
API before you map to OneDrive fields. For more information, see Mapping data source fields . The OneDrive data source field names must exist in your OneDrive custom metadata.this
public CfnDataSource.OneDriveConfigurationProperty.Builder fieldMappings(java.util.List<? extends java.lang.Object> fieldMappings)
CfnDataSource.OneDriveConfigurationProperty.getFieldMappings()
fieldMappings
- A list of `DataSourceToIndexFieldMapping` objects that map OneDrive data source attributes or field names to Amazon Kendra index field names.
To create custom fields, use the UpdateIndex
API before you map to OneDrive fields. For more information, see Mapping data source fields . The OneDrive data source field names must exist in your OneDrive custom metadata.this
public CfnDataSource.OneDriveConfigurationProperty.Builder inclusionPatterns(java.util.List<java.lang.String> inclusionPatterns)
CfnDataSource.OneDriveConfigurationProperty.getInclusionPatterns()
inclusionPatterns
- A list of regular expression patterns to include certain documents in your OneDrive.
Documents that match the patterns are included in the index. Documents that don't match the patterns are excluded from the index. If a document matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the document isn't included in the index.
The pattern is applied to the file name.
this
public CfnDataSource.OneDriveConfigurationProperty build()
CfnDataSource.OneDriveConfigurationProperty
java.lang.NullPointerException
- if any required attribute was not provided