Class CfnDataSource.OneDriveConfigurationProperty
Provides the configuration information to connect to OneDrive as your data source.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Kendra
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class OneDriveConfigurationProperty : Object, CfnDataSource.IOneDriveConfigurationProperty
Syntax (vb)
Public Class OneDriveConfigurationProperty
Inherits Object
Implements CfnDataSource.IOneDriveConfigurationProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Kendra;
var oneDriveConfigurationProperty = new OneDriveConfigurationProperty {
OneDriveUsers = new OneDriveUsersProperty {
OneDriveUserList = new [] { "oneDriveUserList" },
OneDriveUserS3Path = new S3PathProperty {
Bucket = "bucket",
Key = "key"
}
},
SecretArn = "secretArn",
TenantDomain = "tenantDomain",
// the properties below are optional
DisableLocalGroups = false,
ExclusionPatterns = new [] { "exclusionPatterns" },
FieldMappings = new [] { new DataSourceToIndexFieldMappingProperty {
DataSourceFieldName = "dataSourceFieldName",
IndexFieldName = "indexFieldName",
// the properties below are optional
DateFieldFormat = "dateFieldFormat"
} },
InclusionPatterns = new [] { "inclusionPatterns" }
};
Synopsis
Constructors
OneDriveConfigurationProperty() |
Properties
DisableLocalGroups |
|
ExclusionPatterns | A list of regular expression patterns to exclude certain documents in your OneDrive. |
FieldMappings | A list of |
InclusionPatterns | A list of regular expression patterns to include certain documents in your OneDrive. |
OneDriveUsers | A list of user accounts whose documents should be indexed. |
SecretArn | The Amazon Resource Name (ARN) of an AWS Secrets Manager secret that contains the user name and password to connect to OneDrive. |
TenantDomain | The Azure Active Directory domain of the organization. |
Constructors
OneDriveConfigurationProperty()
public OneDriveConfigurationProperty()
Properties
DisableLocalGroups
TRUE
to disable local groups information.
public object DisableLocalGroups { get; set; }
Property Value
System.Object
Remarks
ExclusionPatterns
A list of regular expression patterns to exclude certain documents in your OneDrive.
public string[] ExclusionPatterns { get; set; }
Property Value
System.String[]
Remarks
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.
FieldMappings
A list of DataSourceToIndexFieldMapping
objects that map OneDrive data source attributes or field names to Amazon Kendra index field names.
public object FieldMappings { get; set; }
Property Value
System.Object
Remarks
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.
InclusionPatterns
A list of regular expression patterns to include certain documents in your OneDrive.
public string[] InclusionPatterns { get; set; }
Property Value
System.String[]
Remarks
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.
OneDriveUsers
A list of user accounts whose documents should be indexed.
public object OneDriveUsers { get; set; }
Property Value
System.Object
Remarks
SecretArn
The Amazon Resource Name (ARN) of an AWS Secrets Manager secret that contains the user name and password to connect to OneDrive.
public string SecretArn { get; set; }
Property Value
System.String
Remarks
The user name should be the application ID for the OneDrive application, and the password is the application key for the OneDrive application.
TenantDomain
The Azure Active Directory domain of the organization.
public string TenantDomain { get; set; }
Property Value
System.String