Interface CfnDataSource.OneDriveConfigurationProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnDataSource.OneDriveConfigurationProperty.Jsii$Proxy
Enclosing class:
CfnDataSource

@Stability(Stable) public static interface CfnDataSource.OneDriveConfigurationProperty extends software.amazon.jsii.JsiiSerializable
Provides the configuration information to connect to OneDrive as your data source.

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.*;
 OneDriveConfigurationProperty oneDriveConfigurationProperty = OneDriveConfigurationProperty.builder()
         .oneDriveUsers(OneDriveUsersProperty.builder()
                 .oneDriveUserList(List.of("oneDriveUserList"))
                 .oneDriveUserS3Path(S3PathProperty.builder()
                         .bucket("bucket")
                         .key("key")
                         .build())
                 .build())
         .secretArn("secretArn")
         .tenantDomain("tenantDomain")
         // the properties below are optional
         .disableLocalGroups(false)
         .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();
 
  • Method Details

    • getOneDriveUsers

      @Stability(Stable) @NotNull Object getOneDriveUsers()
      A list of user accounts whose documents should be indexed.
    • getSecretArn

      @Stability(Stable) @NotNull String getSecretArn()
      The Amazon Resource Name (ARN) of an AWS Secrets Manager secret that contains the user name and password to connect to OneDrive.

      The user name should be the application ID for the OneDrive application, and the password is the application key for the OneDrive application.

    • getTenantDomain

      @Stability(Stable) @NotNull String getTenantDomain()
      The Azure Active Directory domain of the organization.
    • getDisableLocalGroups

      @Stability(Stable) @Nullable default Object getDisableLocalGroups()
      TRUE to disable local groups information.
    • getExclusionPatterns

      @Stability(Stable) @Nullable default List<String> getExclusionPatterns()
      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.

    • getFieldMappings

      @Stability(Stable) @Nullable default Object getFieldMappings()
      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.

    • getInclusionPatterns

      @Stability(Stable) @Nullable default List<String> getInclusionPatterns()
      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.

    • builder

      @Stability(Stable) static CfnDataSource.OneDriveConfigurationProperty.Builder builder()
      Returns:
      a CfnDataSource.OneDriveConfigurationProperty.Builder of CfnDataSource.OneDriveConfigurationProperty