S3DataSourceConfigurationProperty Struct
The configuration information to connect to Amazon S3 as your data source.
| Source | |
|---|---|
| Type last changed |
Example
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
# 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
// 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();
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" }
};
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
The Amazon Resource Name (ARN) of the S3 bucket that contains your data.
bucketOwnerAccountIdoptionalstringbucket_owner_account_idoptionalstrbucketOwnerAccountIdoptionalStringBucketOwnerAccountIdoptionalstringBucketOwnerAccountIdoptional*string #The account ID for the owner of the S3 bucket.
inclusionPrefixesoptionalstring[]inclusion_prefixesoptionaltyping.List[str]inclusionPrefixesoptionalList<String>InclusionPrefixesoptionalstring[]InclusionPrefixesoptional*[]*string #A list of S3 prefixes to include certain files or content.
notes
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 .