# S3DataSourceConfigurationProperty

The configuration information to connect to Amazon S3 as your data source.

- Source: Generated at build time
- Type last changed: v2.154.1 · 23 Aug 2024

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrock as bedrock } from 'aws-cdk-lib';
const s3DataSourceConfigurationProperty: bedrock.CfnDataSource.S3DataSourceConfigurationProperty = {
  bucketArn: 'bucketArn',

  // the properties below are optional
  bucketOwnerAccountId: 'bucketOwnerAccountId',
  inclusionPrefixes: ['inclusionPrefixes'],
};
```

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_bedrock as bedrock

s3_data_source_configuration_property = bedrock.CfnDataSource.S3DataSourceConfigurationProperty(
    bucket_arn="bucketArn",

    # the properties below are optional
    bucket_owner_account_id="bucketOwnerAccountId",
    inclusion_prefixes=["inclusionPrefixes"]
)
```

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.bedrock.*;

S3DataSourceConfigurationProperty s3DataSourceConfigurationProperty = S3DataSourceConfigurationProperty.builder()
        .bucketArn("bucketArn")

        // the properties below are optional
        .bucketOwnerAccountId("bucketOwnerAccountId")
        .inclusionPrefixes(List.of("inclusionPrefixes"))
        .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.Bedrock;

var s3DataSourceConfigurationProperty = new S3DataSourceConfigurationProperty {
    BucketArn = "bucketArn",

    // the properties below are optional
    BucketOwnerAccountId = "bucketOwnerAccountId",
    InclusionPrefixes = new [] { "inclusionPrefixes" }
};
```

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"

s3DataSourceConfigurationProperty := &S3DataSourceConfigurationProperty{
	BucketArn: jsii.String("bucketArn"),

	// the properties below are optional
	BucketOwnerAccountId: jsii.String("bucketOwnerAccountId"),
	InclusionPrefixes: []*string{
		jsii.String("inclusionPrefixes"),
	},
}
```

## Properties

- `bucketArn`: string (required) — The Amazon Resource Name (ARN) of the S3 bucket that contains your data.

- `bucketOwnerAccountId`: string — The account ID for the owner of the S3 bucket.

- `inclusionPrefixes`: string[] — A list of S3 prefixes to include certain files or content.

  This field is an array with a maximum of one item, which can contain a string that has a maximum length of 300 characters. For more information, see [Organizing objects using prefixes](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-prefixes.html) .
