# OneDriveUsersProperty

User accounts whose documents should be indexed.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_kendra as kendra } from 'aws-cdk-lib';
const oneDriveUsersProperty: kendra.CfnDataSource.OneDriveUsersProperty = {
  oneDriveUserList: ['oneDriveUserList'],
  oneDriveUserS3Path: {
    bucket: 'bucket',
    key: 'key',
  },
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_kendra as kendra

one_drive_users_property = kendra.CfnDataSource.OneDriveUsersProperty(
    one_drive_user_list=["oneDriveUserList"],
    one_drive_user_s3_path=kendra.CfnDataSource.S3PathProperty(
        bucket="bucket",
        key="key"
    )
)
```

Java:

```java
// 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.*;

OneDriveUsersProperty oneDriveUsersProperty = OneDriveUsersProperty.builder()
        .oneDriveUserList(List.of("oneDriveUserList"))
        .oneDriveUserS3Path(S3PathProperty.builder()
                .bucket("bucket")
                .key("key")
                .build())
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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 oneDriveUsersProperty = new OneDriveUsersProperty {
    OneDriveUserList = new [] { "oneDriveUserList" },
    OneDriveUserS3Path = new S3PathProperty {
        Bucket = "bucket",
        Key = "key"
    }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

oneDriveUsersProperty := &OneDriveUsersProperty{
	OneDriveUserList: []*string{
		jsii.String("oneDriveUserList"),
	},
	OneDriveUserS3Path: &S3PathProperty{
		Bucket: jsii.String("bucket"),
		Key: jsii.String("key"),
	},
}
```

## Properties

- `oneDriveUserList`: string[] — A list of users whose documents should be indexed.

  Specify the user names in email format, for example, `username@tenantdomain` . If you need to index the documents of more than 10 users, use the `OneDriveUserS3Path` field to specify the location of a file containing a list of users.

- `oneDriveUserS3Path`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataSource.S3PathProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_kendra.CfnDataSource.S3PathProperty.html) — The S3 bucket location of a file containing a list of users whose documents should be indexed.
